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.001359/0.001359, allocations: 80.73 kB / 19.44 MB, free: 352 kB / 13.93 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.002837/0.002837, allocations: 157.7 kB / 22.76 MB, free: 1.676 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 1.536/1.536, allocations: 177.2 MB / 203.1 MB, free: 5.148 MB / 186.7 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 1.046/1.046, allocations: 118.6 MB / 378.2 MB, free: 1.414 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.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 1.954e-06/1.954e-06, allocations: 0 / 482.9 MB, free: 8.316 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3e-05/3.195e-05, allocations: 4.984 kB / 482.9 MB, free: 8.312 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.04648/0.04652, allocations: 39.43 MB / 0.5101 GB, free: 9.52 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.008765/0.05528, allocations: 3.908 MB / 0.5139 GB, free: 5.602 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001815/0.0571, allocations: 67.38 kB / 0.514 GB, free: 5.535 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001963/0.05906, allocations: 0.5195 MB / 0.5145 GB, free: 5.012 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005115/0.06418, allocations: 1.517 MB / 0.5159 GB, free: 3.484 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003132/0.06731, allocations: 0.9459 MB / 0.5169 GB, free: 2.535 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.004164/0.07147, allocations: 2.41 MB / 0.5192 GB, free: 116 kB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005829/0.07205, allocations: 169.5 kB / 0.5194 GB, free: 15.93 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004617/0.07667, allocations: 1.764 MB / 0.5211 GB, free: 14.16 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00122/0.07789, allocations: 0.6698 MB / 0.5218 GB, free: 13.49 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000192/0.07808, allocations: 100 kB / 0.5219 GB, free: 13.39 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002068/0.08015, allocations: 0.6783 MB / 0.5225 GB, free: 12.71 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003287/0.08048, allocations: 282.7 kB / 0.5228 GB, free: 12.44 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007178/0.0812, allocations: 0.491 MB / 0.5233 GB, free: 11.95 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003616/0.08481, allocations: 1.959 MB / 0.5252 GB, free: 9.98 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.08482, allocations: 0 / 0.5252 GB, free: 9.98 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.08482, allocations: 3.938 kB / 0.5252 GB, free: 9.977 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.717e-05/0.08484, allocations: 0 / 0.5252 GB, free: 9.977 MB / 458.7 MB 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.003743/0.08858, allocations: 1.687 MB / 0.5268 GB, free: 8.254 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.08862, allocations: 8.031 kB / 0.5268 GB, free: 8.246 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000895/0.08952, allocations: 311.4 kB / 0.5271 GB, free: 7.941 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001843/0.09136, allocations: 0.8933 MB / 0.528 GB, free: 7.012 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.452e-05/0.09144, allocations: 78.31 kB / 0.5281 GB, free: 6.934 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001941/0.09164, allocations: 100.3 kB / 0.5282 GB, free: 6.836 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002261/0.0939, allocations: 1.338 MB / 0.5295 GB, free: 5.398 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.336e-05/0.09392, allocations: 4.188 kB / 0.5295 GB, free: 5.395 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001027/0.09403, allocations: 39.94 kB / 0.5295 GB, free: 5.355 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.743e-05/0.09405, allocations: 28 kB / 0.5296 GB, free: 5.328 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001968/0.09602, allocations: 1.012 MB / 0.5305 GB, free: 4.316 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006105/0.1021, allocations: 3.136 MB / 0.5336 GB, free: 1.109 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002001/0.1041, allocations: 0.8577 MB / 0.5344 GB, free: 236 kB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008894/0.105, allocations: 429.2 kB / 0.5349 GB, free: 15.81 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003326/0.1083, allocations: 1.337 MB / 0.5362 GB, free: 14.45 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.525e-05/0.1084, allocations: 55.16 kB / 0.5362 GB, free: 14.39 MB / 474.7 MB Notification: Performance of pre-optimization done (n=108): time 2.736e-06/0.1084, allocations: 0 / 0.5362 GB, free: 14.39 MB / 474.7 MB Notification: Performance of matching and sorting (n=122): time 0.01158/0.12, allocations: 4.074 MB / 0.5402 GB, free: 10.22 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.574e-05/0.1201, allocations: 90.27 kB / 0.5403 GB, free: 10.12 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001109/0.1212, allocations: 0.7688 MB / 0.541 GB, free: 9.324 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 9.614e-05/0.1213, allocations: 49.7 kB / 0.5411 GB, free: 9.27 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000487/0.1217, allocations: 0.5052 MB / 0.5416 GB, free: 8.758 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004342/0.1222, allocations: 440.2 kB / 0.542 GB, free: 8.324 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003506/0.1225, allocations: 198.9 kB / 0.5422 GB, free: 8.125 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000219/0.1227, allocations: 345.9 kB / 0.5425 GB, free: 7.781 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009607/0.1237, allocations: 410.4 kB / 0.5429 GB, free: 7.379 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001156/0.1249, allocations: 0.5821 MB / 0.5435 GB, free: 6.734 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002215/0.1271, allocations: 1.055 MB / 0.5445 GB, free: 5.613 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.556e-06/0.1271, allocations: 7.938 kB / 0.5445 GB, free: 5.605 MB / 474.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.00375/0.1308, allocations: 1.545 MB / 0.546 GB, free: 4.023 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.516e-05/0.1309, allocations: 11.94 kB / 0.546 GB, free: 4.012 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.562e-05/0.1309, allocations: 7.984 kB / 0.546 GB, free: 4.004 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001479/0.1324, allocations: 350.9 kB / 0.5464 GB, free: 3.637 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009759/0.1333, allocations: 243.6 kB / 0.5466 GB, free: 3.398 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0121/0.1454, allocations: 11.13 MB / 0.5575 GB, free: 7.457 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00103/0.1465, allocations: 56.16 kB / 0.5575 GB, free: 7.402 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000131/0.1466, allocations: 47.98 kB / 0.5576 GB, free: 7.355 MB / 490.7 MB 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.0005669/0.1472, allocations: 253.6 kB / 0.5578 GB, free: 7.098 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003633/0.1475, allocations: 163.2 kB / 0.558 GB, free: 6.938 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004245/0.1518, allocations: 1.798 MB / 0.5597 GB, free: 5.121 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.438e-05/0.1518, allocations: 12 kB / 0.5597 GB, free: 5.109 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.225e-05/0.1518, allocations: 3.938 kB / 0.5597 GB, free: 5.105 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.42e-05/0.1518, allocations: 7.984 kB / 0.5597 GB, free: 5.098 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005621/0.1574, allocations: 2.463 MB / 0.5621 GB, free: 2.559 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/0.1574, allocations: 0 / 0.5621 GB, free: 2.559 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008997/0.1583, allocations: 199.7 kB / 0.5623 GB, free: 2.363 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001548/0.1599, allocations: 374.6 kB / 0.5627 GB, free: 1.973 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001074/0.16, allocations: 35.97 kB / 0.5627 GB, free: 1.938 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01187/0.1719, allocations: 11.13 MB / 0.5736 GB, free: 5.988 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.1719, allocations: 3.938 kB / 0.5736 GB, free: 5.984 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005094/0.177, allocations: 2.13 MB / 0.5757 GB, free: 3.797 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000593/0.1776, allocations: 211.2 kB / 0.5759 GB, free: 3.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001599/0.1777, allocations: 28 kB / 0.5759 GB, free: 3.562 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007769/0.1785, allocations: 55.95 kB / 0.576 GB, free: 3.508 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003015/0.1788, allocations: 116.8 kB / 0.5761 GB, free: 3.395 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.812e-05/0.1789, allocations: 43.97 kB / 0.5761 GB, free: 3.352 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0008423/0.1797, allocations: 0.5518 MB / 0.5767 GB, free: 2.789 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6e-08/0.1797, allocations: 0 / 0.5767 GB, free: 2.789 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001483/0.1812, allocations: 423.8 kB / 0.5771 GB, free: 2.375 MB / 0.4948 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.0006324/0.1819, allocations: 383.2 kB / 0.5774 GB, free: 2 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003932/0.1858, allocations: 2.002 MB / 0.5794 GB, free: 15.9 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.1858, allocations: 0 / 0.5794 GB, free: 15.9 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002862/0.1886, allocations: 1.527 MB / 0.5809 GB, free: 14.27 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00252/0.1912, allocations: 0.4944 MB / 0.5813 GB, free: 13.79 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006164/0.1973, allocations: 2.619 MB / 0.5839 GB, free: 11.13 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007145/0.198, allocations: 0.5227 MB / 0.5844 GB, free: 10.57 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.001021/0.1991, allocations: 236.5 kB / 0.5846 GB, free: 10.36 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003329/0.1994, allocations: 116.5 kB / 0.5848 GB, free: 10.24 MB / 0.5105 GB Notification: Performance of SimCode: time 9.82e-07/0.1994, allocations: 0 / 0.5848 GB, free: 10.24 MB / 0.5105 GB Notification: Performance of Templates: time 0.05311/0.2525, allocations: 27.04 MB / 0.6112 GB, free: 15.7 MB / 0.5417 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.0294212839799]