Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001407/0.001407, allocations: 81.17 kB / 19.87 MB, free: 4.621 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001931/0.001931, allocations: 169 kB / 23.27 MB, free: 1.223 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.993/0.993, allocations: 177.2 MB / 203.7 MB, free: 5.516 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo): time 0.7347/0.7347, allocations: 118.7 MB / 378.9 MB, free: 1.383 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|source.outlet.m_flow|tanValve.inlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve") translateModel(ThermofluidStream.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|source.outlet.m_flow|tanValve.inlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.964e-06/1.964e-06, allocations: 0 / 484 MB, free: 8.16 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.931e-05/3.127e-05, allocations: 2.312 kB / 484.1 MB, free: 8.156 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.1482/0.1483, allocations: 130.5 MB / 0.6002 GB, free: 13.47 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.003935/0.1522, allocations: 2.838 MB / 0.603 GB, free: 10.62 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004846/0.1527, allocations: 63.38 kB / 0.603 GB, free: 10.56 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0005717/0.1533, allocations: 225.9 kB / 0.6032 GB, free: 10.34 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.001125/0.1544, allocations: 0.6981 MB / 0.6039 GB, free: 9.637 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.001028/0.1554, allocations: 0.5607 MB / 0.6045 GB, free: 9.074 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.00105/0.1565, allocations: 1.573 MB / 0.606 GB, free: 7.492 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002412/0.1567, allocations: 199.7 kB / 0.6062 GB, free: 7.285 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007812/0.1575, allocations: 0.8725 MB / 0.607 GB, free: 6.41 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005046/0.158, allocations: 0.5765 MB / 0.6076 GB, free: 5.832 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 7.534e-05/0.1581, allocations: 76 kB / 0.6077 GB, free: 5.758 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004881/0.1586, allocations: 419.4 kB / 0.6081 GB, free: 5.348 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0001189/0.1587, allocations: 210.9 kB / 0.6083 GB, free: 5.141 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.0002322/0.1589, allocations: 371 kB / 0.6086 GB, free: 4.777 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.001047/0.16, allocations: 1.132 MB / 0.6097 GB, free: 3.641 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.16, allocations: 8 kB / 0.6097 GB, free: 3.633 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.914e-06/0.16, allocations: 0 / 0.6097 GB, free: 3.633 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 9.729e-06/0.16, allocations: 0 / 0.6097 GB, free: 3.633 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001582/0.1616, allocations: 1.541 MB / 0.6112 GB, free: 2.051 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/0.1616, allocations: 16.02 kB / 0.6113 GB, free: 2.035 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002295/0.1618, allocations: 215.9 kB / 0.6115 GB, free: 1.824 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008692/0.1627, allocations: 0.8403 MB / 0.6123 GB, free: 0.9453 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.378e-05/0.1627, allocations: 54.38 kB / 0.6123 GB, free: 0.8945 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.653e-05/0.1628, allocations: 68.33 kB / 0.6124 GB, free: 0.8281 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004843/0.1633, allocations: 0.5216 MB / 0.6129 GB, free: 284 kB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.1633, allocations: 192 / 0.6129 GB, free: 284 kB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.118e-05/0.1633, allocations: 27.94 kB / 0.6129 GB, free: 256 kB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.221e-05/0.1633, allocations: 20 kB / 0.613 GB, free: 236 kB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003069/0.1636, allocations: 253.7 kB / 0.6132 GB, free: 15.98 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001879/0.1655, allocations: 2.063 MB / 0.6152 GB, free: 13.87 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005427/0.1661, allocations: 480.7 kB / 0.6157 GB, free: 13.39 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001345/0.1662, allocations: 141.8 kB / 0.6158 GB, free: 13.25 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008575/0.1671, allocations: 0.8396 MB / 0.6166 GB, free: 12.4 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.29e-05/0.1671, allocations: 37.89 kB / 0.6167 GB, free: 12.35 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=49): time 1.352e-06/0.1671, allocations: 4 kB / 0.6167 GB, free: 12.35 MB / 0.5417 GB Notification: Performance of matching and sorting (n=50): time 0.001263/0.1683, allocations: 0.9637 MB / 0.6176 GB, free: 11.34 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.8e-05/0.1684, allocations: 59.84 kB / 0.6177 GB, free: 11.27 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004561/0.1688, allocations: 0.7147 MB / 0.6184 GB, free: 10.53 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.559e-05/0.1689, allocations: 41.7 kB / 0.6184 GB, free: 10.48 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002786/0.1691, allocations: 0.5537 MB / 0.6189 GB, free: 9.922 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 8.967e-05/0.1692, allocations: 182.4 kB / 0.6191 GB, free: 9.742 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.862e-05/0.1693, allocations: 99.75 kB / 0.6192 GB, free: 9.637 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001239/0.1694, allocations: 0.4926 MB / 0.6197 GB, free: 9.137 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.363e-05/0.1695, allocations: 56.95 kB / 0.6198 GB, free: 9.082 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001478/0.1697, allocations: 166.6 kB / 0.6199 GB, free: 8.883 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000239/0.1699, allocations: 270.9 kB / 0.6202 GB, free: 8.582 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.1699, allocations: 4 kB / 0.6202 GB, free: 8.578 MB / 0.5417 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0005031/0.1704, allocations: 488 kB / 0.6206 GB, free: 8.09 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.1704, allocations: 4 kB / 0.6206 GB, free: 8.086 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.1704, allocations: 4 kB / 0.6206 GB, free: 8.082 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002883/0.1707, allocations: 115.7 kB / 0.6208 GB, free: 7.965 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001653/0.1709, allocations: 87.89 kB / 0.6208 GB, free: 7.879 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00125/0.1721, allocations: 2.108 MB / 0.6229 GB, free: 5.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000138/0.1723, allocations: 20.02 kB / 0.6229 GB, free: 5.641 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.169e-05/0.1723, allocations: 20 kB / 0.6229 GB, free: 5.621 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (48): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001495/0.1724, allocations: 184.5 kB / 0.6231 GB, free: 5.43 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001208/0.1726, allocations: 123.2 kB / 0.6232 GB, free: 5.309 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006454/0.1732, allocations: 0.626 MB / 0.6238 GB, free: 4.652 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.1732, allocations: 8 kB / 0.6239 GB, free: 4.645 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.1732, allocations: 0 / 0.6239 GB, free: 4.645 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.1732, allocations: 0 / 0.6239 GB, free: 4.645 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001022/0.1743, allocations: 1.048 MB / 0.6249 GB, free: 3.543 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.1743, allocations: 0 / 0.6249 GB, free: 3.543 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001416/0.1744, allocations: 79.89 kB / 0.625 GB, free: 3.465 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002573/0.1747, allocations: 127.6 kB / 0.6251 GB, free: 3.336 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.743e-05/0.1747, allocations: 27.92 kB / 0.6251 GB, free: 3.309 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001091/0.1758, allocations: 2.088 MB / 0.6271 GB, free: 1.105 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.1758, allocations: 7.938 kB / 0.6271 GB, free: 1.098 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006267/0.1764, allocations: 0.7243 MB / 0.6279 GB, free: 336 kB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001375/0.1765, allocations: 123.3 kB / 0.628 GB, free: 212 kB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.443e-05/0.1766, allocations: 16 kB / 0.628 GB, free: 196 kB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001363/0.1767, allocations: 20.05 kB / 0.628 GB, free: 176 kB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.667e-05/0.1768, allocations: 44.36 kB / 0.628 GB, free: 132 kB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.736e-05/0.1768, allocations: 15.98 kB / 0.6281 GB, free: 116 kB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0002934/0.1771, allocations: 471.8 kB / 0.6285 GB, free: 15.64 MB / 0.5573 GB Notification: Performance of sort global known variables: time 6.1e-08/0.1771, allocations: 0 / 0.6285 GB, free: 15.64 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0004385/0.1775, allocations: 271.6 kB / 0.6288 GB, free: 15.38 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance1.inlet.m_flow,flowResistance2.inlet.m_flow) * 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 (43): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002741/0.1778, allocations: 230.7 kB / 0.629 GB, free: 15.14 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0004864/0.1783, allocations: 480.6 kB / 0.6295 GB, free: 14.65 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1783, allocations: 4.062 kB / 0.6295 GB, free: 14.65 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0003175/0.1786, allocations: 397 kB / 0.6298 GB, free: 14.24 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008057/0.1794, allocations: 346.7 kB / 0.6302 GB, free: 13.92 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002043/0.1815, allocations: 1.639 MB / 0.6318 GB, free: 12.22 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001164/0.1816, allocations: 179.5 kB / 0.6319 GB, free: 12.02 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0002552/0.1818, allocations: 142.3 kB / 0.6321 GB, free: 11.88 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004098/0.1822, allocations: 322 kB / 0.6324 GB, free: 11.56 MB / 0.5573 GB Notification: Performance of SimCode: time 6.71e-07/0.1822, allocations: 3.938 kB / 0.6324 GB, free: 11.56 MB / 0.5573 GB Notification: Performance of Templates: time 0.2408/0.4231, allocations: 15.76 MB / 0.6478 GB, free: 49.58 MB / 0.5573 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.TanValve_ref.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.2712767398916185]