Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.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.001664/0.001664, allocations: 79.75 kB / 19.18 MB, free: 2.516 MB / 14.72 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.001999/0.001999, allocations: 162.3 kB / 22.46 MB, free: 5.375 MB / 14.72 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 1.445/1.445, allocations: 177.2 MB / 202.8 MB, free: 9.16 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.9719/0.9719, allocations: 116.1 MB / 375.2 MB, free: 7.527 MB / 350.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/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.Undirected.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|reservoir.M|reservoir.U_med|reservoir.m_flow_fore|reservoir.m_flow_rear|reservoir2.M|reservoir2.U_med|reservoir2.m_flow_in|reservoir2.m_flow_out",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") translateModel(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|reservoir.M|reservoir.U_med|reservoir.m_flow_fore|reservoir.m_flow_rear|reservoir2.M|reservoir2.U_med|reservoir2.m_flow_in|reservoir2.m_flow_out",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.224e-06/2.224e-06, allocations: 0 / 0.5538 GB, free: 13.76 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.623e-05/2.845e-05, allocations: 2.281 kB / 0.5538 GB, free: 13.75 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.04841/0.04844, allocations: 39.39 MB / 0.5922 GB, free: 6.227 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.007416/0.05585, allocations: 3.901 MB / 0.596 GB, free: 2.316 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00128/0.05713, allocations: 59.44 kB / 0.5961 GB, free: 2.258 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001568/0.0587, allocations: 0.5157 MB / 0.5966 GB, free: 1.738 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004133/0.06283, allocations: 1.505 MB / 0.5981 GB, free: 228 kB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002657/0.06549, allocations: 0.9529 MB / 0.599 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.003377/0.06887, allocations: 2.399 MB / 0.6013 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004037/0.06927, allocations: 161.5 kB / 0.6015 GB, free: 12.69 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003444/0.07272, allocations: 1.756 MB / 0.6032 GB, free: 10.93 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001044/0.07376, allocations: 0.6698 MB / 0.6039 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001872/0.07395, allocations: 100 kB / 0.604 GB, free: 10.16 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001835/0.07578, allocations: 0.6822 MB / 0.6046 GB, free: 9.477 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0003095/0.07609, allocations: 274.7 kB / 0.6049 GB, free: 9.207 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0007214/0.07681, allocations: 494.8 kB / 0.6054 GB, free: 8.723 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.003006/0.07982, allocations: 1.935 MB / 0.6072 GB, free: 6.781 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.07982, allocations: 0 / 0.6072 GB, free: 6.781 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.112e-06/0.07982, allocations: 4 kB / 0.6072 GB, free: 6.777 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.589e-05/0.07984, allocations: 0 / 0.6072 GB, free: 6.777 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 232 * Number of variables: 232 Notification: Performance of Generate backend data structure: time 0.003227/0.08307, allocations: 1.656 MB / 0.6089 GB, free: 5.086 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.0831, allocations: 8.031 kB / 0.6089 GB, free: 5.078 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006633/0.08377, allocations: 199.9 kB / 0.6091 GB, free: 4.883 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001626/0.08539, allocations: 0.8268 MB / 0.6099 GB, free: 4.027 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.289e-05/0.08546, allocations: 70.38 kB / 0.6099 GB, free: 3.957 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001519/0.08562, allocations: 100.3 kB / 0.61 GB, free: 3.859 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002083/0.0877, allocations: 1.342 MB / 0.6113 GB, free: 2.418 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.535e-05/0.08773, allocations: 7.938 kB / 0.6114 GB, free: 2.41 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.409e-05/0.08782, allocations: 40 kB / 0.6114 GB, free: 2.371 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.186e-05/0.08784, allocations: 24 kB / 0.6114 GB, free: 2.348 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001893/0.08973, allocations: 1.012 MB / 0.6124 GB, free: 1.336 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005337/0.09507, allocations: 3.09 MB / 0.6154 GB, free: 14.17 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001948/0.09702, allocations: 0.8757 MB / 0.6163 GB, free: 13.28 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008405/0.09786, allocations: 432.2 kB / 0.6167 GB, free: 12.85 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003166/0.101, allocations: 1.338 MB / 0.618 GB, free: 11.49 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.148e-05/0.1011, allocations: 43.22 kB / 0.618 GB, free: 11.44 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=108): time 2.985e-06/0.1011, allocations: 0 / 0.618 GB, free: 11.44 MB / 0.5294 GB Notification: Performance of matching and sorting (n=122): time 0.01112/0.1122, allocations: 4.019 MB / 0.622 GB, free: 7.332 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.049e-05/0.1123, allocations: 90.27 kB / 0.622 GB, free: 7.227 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009851/0.1133, allocations: 0.7516 MB / 0.6228 GB, free: 6.461 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0001/0.1134, allocations: 49.7 kB / 0.6228 GB, free: 6.406 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004478/0.1138, allocations: 0.4935 MB / 0.6233 GB, free: 5.906 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004442/0.1143, allocations: 440.2 kB / 0.6237 GB, free: 5.473 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003745/0.1146, allocations: 194.9 kB / 0.6239 GB, free: 5.277 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002323/0.1149, allocations: 353.9 kB / 0.6243 GB, free: 4.926 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001011/0.1159, allocations: 398.4 kB / 0.6246 GB, free: 4.539 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001208/0.1171, allocations: 0.5937 MB / 0.6252 GB, free: 3.879 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00225/0.1193, allocations: 1.067 MB / 0.6263 GB, free: 2.746 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.1193, allocations: 3.938 kB / 0.6263 GB, free: 2.742 MB / 0.5294 GB Notification: Performance of matching and sorting (n=146) (initialization): time 0.003517/0.1228, allocations: 1.506 MB / 0.6277 GB, free: 1.199 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.253e-05/0.1229, allocations: 8 kB / 0.6277 GB, free: 1.191 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.1229, allocations: 4 kB / 0.6277 GB, free: 1.188 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001153/0.124, allocations: 302.7 kB / 0.628 GB, free: 0.8672 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009922/0.125, allocations: 235.7 kB / 0.6283 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01078/0.1358, allocations: 11.09 MB / 0.6391 GB, free: 4.734 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009357/0.1367, allocations: 47.97 kB / 0.6391 GB, free: 4.688 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001128/0.1369, allocations: 55.92 kB / 0.6392 GB, free: 4.633 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (126): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,2,100.0%), (1,2,100.0%), (2,5,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005302/0.1374, allocations: 253.8 kB / 0.6394 GB, free: 4.375 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002622/0.1377, allocations: 131.2 kB / 0.6395 GB, free: 4.246 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004057/0.1417, allocations: 1.79 MB / 0.6413 GB, free: 2.41 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.317e-05/0.1417, allocations: 15.98 kB / 0.6413 GB, free: 2.395 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.1417, allocations: 4 kB / 0.6413 GB, free: 2.391 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.422e-05/0.1417, allocations: 11.98 kB / 0.6413 GB, free: 2.379 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005195/0.1469, allocations: 2.455 MB / 0.6437 GB, free: 15.85 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.1469, allocations: 0 / 0.6437 GB, free: 15.85 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009471/0.1479, allocations: 199.7 kB / 0.6439 GB, free: 15.66 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001109/0.149, allocations: 314.5 kB / 0.6442 GB, free: 15.32 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.069e-05/0.1491, allocations: 35.98 kB / 0.6442 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01074/0.1598, allocations: 11.1 MB / 0.6551 GB, free: 3.371 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.1598, allocations: 8.125 kB / 0.6551 GB, free: 3.363 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004806/0.1646, allocations: 2.091 MB / 0.6571 GB, free: 1.219 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005656/0.1652, allocations: 211.1 kB / 0.6573 GB, free: 1.012 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001734/0.1654, allocations: 31.92 kB / 0.6574 GB, free: 0.9805 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007821/0.1662, allocations: 59.95 kB / 0.6574 GB, free: 0.9219 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002783/0.1664, allocations: 104.9 kB / 0.6575 GB, free: 0.8203 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.698e-05/0.1665, allocations: 43.98 kB / 0.6576 GB, free: 0.7773 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000791/0.1673, allocations: 0.5352 MB / 0.6581 GB, free: 236 kB / 0.5606 GB Notification: Performance of sort global known variables: time 1.01e-07/0.1673, allocations: 4 kB / 0.6581 GB, free: 232 kB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001538/0.1689, allocations: 427.8 kB / 0.6585 GB, free: 15.8 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (reservoir.M,reservoir.U_med,flowResistance1.rear.m_flow,flowResistance2.rear.m_flow,reservoir2.M,reservoir2.U_med,flowResistance4.inlet.m_flow,flowResistance5.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 (98): * Single equations (assignments): 90 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (2,5,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006712/0.1695, allocations: 388.7 kB / 0.6589 GB, free: 15.43 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003835/0.1734, allocations: 1.997 MB / 0.6608 GB, free: 13.32 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.1734, allocations: 0 / 0.6608 GB, free: 13.32 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002678/0.1761, allocations: 1.523 MB / 0.6623 GB, free: 11.69 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002423/0.1785, allocations: 468.1 kB / 0.6628 GB, free: 11.24 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005584/0.1841, allocations: 2.558 MB / 0.6653 GB, free: 8.648 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00062/0.1847, allocations: 0.5219 MB / 0.6658 GB, free: 8.09 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0008565/0.1855, allocations: 230.4 kB / 0.666 GB, free: 7.875 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003349/0.1859, allocations: 108.5 kB / 0.6661 GB, free: 7.766 MB / 0.5762 GB Notification: Performance of SimCode: time 8.51e-07/0.1859, allocations: 0 / 0.6661 GB, free: 7.766 MB / 0.5762 GB Notification: Performance of Templates: time 0.2994/0.4852, allocations: 26.76 MB / 0.6922 GB, free: 131.3 MB / 0.5919 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.065686255693436]