Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Sensors.Examples.Density.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Sensors.Examples.Density,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|masFloRat.ports.1..m_flow|senDenVol.d|senDenFlo.d",fileNamePrefix="Buildings_9_Buildings.Fluid.Sensors.Examples.Density") translateModel(Buildings.Fluid.Sensors.Examples.Density,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|masFloRat.ports.1..m_flow|senDenVol.d|senDenFlo.d",fileNamePrefix="Buildings_9_Buildings.Fluid.Sensors.Examples.Density") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001533/0.001533, allocations: 194.9 kB / 16.14 MB, free: 6.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.607/2.607, allocations: 390.2 MB / 0.6642 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001195, allocations: 59.91 kB / 0.8118 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7527/0.7539, allocations: 140.4 MB / 0.9489 GB, free: 9.137 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.2156/0.9696, allocations: 182.8 MB / 1.127 GB, free: 10.66 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.01072/0.9803, allocations: 7.052 MB / 1.134 GB, free: 3.582 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001111/0.9815, allocations: 27.81 kB / 1.134 GB, free: 3.555 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.001125/0.9826, allocations: 350.2 kB / 1.135 GB, free: 3.211 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.003696/0.9864, allocations: 1.358 MB / 1.136 GB, free: 1.848 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.002804/0.9892, allocations: 1.05 MB / 1.137 GB, free: 0.8008 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.002868/0.992, allocations: 2.709 MB / 1.14 GB, free: 14.08 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009033/0.993, allocations: 0.5643 MB / 1.14 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001675/0.9947, allocations: 0.7275 MB / 1.141 GB, free: 12.77 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001438/0.9961, allocations: 0.629 MB / 1.142 GB, free: 12.14 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001012/0.9962, allocations: 40 kB / 1.142 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004171/1, allocations: 2.194 MB / 1.144 GB, free: 9.906 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0003447/1.001, allocations: 263.2 kB / 1.144 GB, free: 9.648 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0004979/1.001, allocations: 390.1 kB / 1.144 GB, free: 9.266 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.002806/1.004, allocations: 1.835 MB / 1.146 GB, free: 7.426 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/1.004, allocations: 0 / 1.146 GB, free: 7.426 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.052e-06/1.004, allocations: 4 kB / 1.146 GB, free: 7.422 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.137e-05/1.004, allocations: 0 / 1.146 GB, free: 7.422 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.001908/1.006, allocations: 1.157 MB / 1.147 GB, free: 6.215 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/1.006, allocations: 8.031 kB / 1.147 GB, free: 6.207 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001945/1.008, allocations: 270.8 kB / 1.148 GB, free: 5.941 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009472/1.009, allocations: 0.5831 MB / 1.148 GB, free: 5.316 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.66e-05/1.009, allocations: 41.31 kB / 1.148 GB, free: 5.277 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.03e-05/1.009, allocations: 59.94 kB / 1.148 GB, free: 5.219 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/1.01, allocations: 0.6323 MB / 1.149 GB, free: 4.57 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.809e-05/1.01, allocations: 3.938 kB / 1.149 GB, free: 4.566 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.507e-05/1.01, allocations: 24 kB / 1.149 GB, free: 4.543 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.846e-05/1.01, allocations: 17.31 kB / 1.149 GB, free: 4.527 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009502/1.011, allocations: 0.5204 MB / 1.149 GB, free: 4.004 MB / 0.9044 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002983/1.014, allocations: 2.449 MB / 1.152 GB, free: 1.336 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006646/1.015, allocations: 365 kB / 1.152 GB, free: 0.9727 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003895/1.015, allocations: 237.4 kB / 1.152 GB, free: 0.7383 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005795/1.016, allocations: 303.6 kB / 1.153 GB, free: 396 kB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.465e-05/1.016, allocations: 46.83 kB / 1.153 GB, free: 340 kB / 0.9044 GB Notification: Performance of pre-optimization done (n=39): time 1.653e-06/1.016, allocations: 0 / 1.153 GB, free: 340 kB / 0.9044 GB Notification: Performance of matching and sorting (n=39): time 0.001409/1.017, allocations: 0.6067 MB / 1.153 GB, free: 15.72 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.761e-05/1.018, allocations: 55.41 kB / 1.153 GB, free: 15.65 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005668/1.018, allocations: 0.5028 MB / 1.154 GB, free: 15.14 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 4.476e-05/1.018, allocations: 37.7 kB / 1.154 GB, free: 15.09 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002332/1.018, allocations: 324.4 kB / 1.154 GB, free: 14.77 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001302/1.019, allocations: 138 kB / 1.154 GB, free: 14.64 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001454/1.019, allocations: 97.97 kB / 1.154 GB, free: 14.54 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001711/1.019, allocations: 366.7 kB / 1.155 GB, free: 14.17 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003445/1.019, allocations: 174.5 kB / 1.155 GB, free: 14 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004207/1.02, allocations: 279.4 kB / 1.155 GB, free: 13.68 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007293/1.02, allocations: 452.2 kB / 1.156 GB, free: 13.21 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/1.02, allocations: 0 / 1.156 GB, free: 13.21 MB / 0.92 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009481/1.021, allocations: 0.524 MB / 1.156 GB, free: 12.68 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/1.021, allocations: 8.281 kB / 1.156 GB, free: 12.67 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.787e-06/1.021, allocations: 4 kB / 1.156 GB, free: 12.67 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/1.021, allocations: 4 kB / 1.156 GB, free: 12.66 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000733/1.022, allocations: 127.8 kB / 1.156 GB, free: 12.54 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004247/1.023, allocations: 0.5976 MB / 1.157 GB, free: 11.92 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006443/1.023, allocations: 91.56 kB / 1.157 GB, free: 11.83 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.587e-05/1.023, allocations: 16 kB / 1.157 GB, free: 11.81 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005491/1.024, allocations: 348.9 kB / 1.157 GB, free: 11.47 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004085/1.024, allocations: 299.4 kB / 1.158 GB, free: 11.14 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00072/1.025, allocations: 452.3 kB / 1.158 GB, free: 10.66 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.794e-06/1.025, allocations: 0 / 1.158 GB, free: 10.66 MB / 0.92 GB Notification: Performance of matching and sorting (n=53) (initialization_lambda0): time 0.0009241/1.026, allocations: 0.52 MB / 1.159 GB, free: 10.14 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.213e-05/1.026, allocations: 8 kB / 1.159 GB, free: 10.13 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.996e-06/1.026, allocations: 0 / 1.159 GB, free: 10.13 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.174e-06/1.026, allocations: 7.938 kB / 1.159 GB, free: 10.12 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000499/1.026, allocations: 119.8 kB / 1.159 GB, free: 10 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/1.026, allocations: 4.281 kB / 1.159 GB, free: 10 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005802/1.027, allocations: 79.62 kB / 1.159 GB, free: 9.922 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.644e-05/1.027, allocations: 20 kB / 1.159 GB, free: 9.902 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001624/1.027, allocations: 208.1 kB / 1.159 GB, free: 9.691 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001119/1.027, allocations: 59.28 kB / 1.159 GB, free: 9.633 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000902/1.028, allocations: 487.9 kB / 1.159 GB, free: 9.148 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/1.028, allocations: 4 kB / 1.159 GB, free: 9.145 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/1.028, allocations: 4 kB / 1.159 GB, free: 9.141 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008703/1.029, allocations: 0.703 MB / 1.16 GB, free: 8.352 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002032/1.031, allocations: 1.289 MB / 1.161 GB, free: 6.984 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/1.031, allocations: 3.984 kB / 1.161 GB, free: 6.98 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006144/1.032, allocations: 123.9 kB / 1.162 GB, free: 6.859 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.985e-06/1.032, allocations: 4.219 kB / 1.162 GB, free: 6.855 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.799e-05/1.032, allocations: 19.98 kB / 1.162 GB, free: 6.836 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003484/1.032, allocations: 0.5898 MB / 1.162 GB, free: 6.223 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/1.032, allocations: 7.938 kB / 1.162 GB, free: 6.215 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001213/1.034, allocations: 0.79 MB / 1.163 GB, free: 5.387 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002536/1.034, allocations: 188.4 kB / 1.163 GB, free: 5.184 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.077e-05/1.034, allocations: 15.94 kB / 1.163 GB, free: 5.168 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004812/1.034, allocations: 43.95 kB / 1.163 GB, free: 5.125 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.731e-05/1.034, allocations: 27.95 kB / 1.163 GB, free: 5.098 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.217e-05/1.035, allocations: 16 kB / 1.163 GB, free: 5.082 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0004176/1.035, allocations: 350.8 kB / 1.164 GB, free: 4.742 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.61e-07/1.035, allocations: 0 / 1.164 GB, free: 4.742 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0009828/1.036, allocations: 367 kB / 1.164 GB, free: 4.383 MB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,senDenFlo.d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000546/1.037, allocations: 201.7 kB / 1.164 GB, free: 4.188 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.00148/1.038, allocations: 0.668 MB / 1.165 GB, free: 3.52 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/1.038, allocations: 0 / 1.165 GB, free: 3.52 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0004224/1.038, allocations: 215.7 kB / 1.165 GB, free: 3.309 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001738/1.04, allocations: 365.6 kB / 1.165 GB, free: 2.957 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002617/1.043, allocations: 1.638 MB / 1.167 GB, free: 1.273 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006494/1.043, allocations: 0.9496 MB / 1.168 GB, free: 304 kB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.000692/1.044, allocations: 216.9 kB / 1.168 GB, free: 88 kB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001393/1.044, allocations: 47.44 kB / 1.168 GB, free: 40 kB / 0.92 GB Notification: Performance of SimCode: time 6.61e-07/1.044, allocations: 4 kB / 1.168 GB, free: 36 kB / 0.92 GB Notification: Performance of Templates: time 0.02619/1.071, allocations: 11.93 MB / 1.18 GB, free: 4.285 MB / 0.9356 GB make -j1 -f Buildings_9_Buildings.Fluid.Sensors.Examples.Density.makefile (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.Density.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.Density.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.Density.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.Density.sim & ./Buildings_9_Buildings.Fluid.Sensors.Examples.Density -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Sensors.Examples.Density.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sensors.Examples.Density_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sensors_Examples_Density.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.Density.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches