Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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.002024/0.002024, allocations: 84.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.002672/0.002672, allocations: 157.7 kB / 22.75 MB, free: 1.68 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.521/1.521, allocations: 177.1 MB / 203.1 MB, free: 5.371 MB / 186.7 MB " [Timeout remaining time 178] 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 1.028/1.028, allocations: 118.6 MB / 378.2 MB, free: 1.453 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.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_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_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.354e-06/2.354e-06, allocations: 0 / 482.9 MB, free: 8.281 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.678e-05/2.914e-05, allocations: 2.312 kB / 482.9 MB, free: 8.277 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.05144/0.05146, allocations: 39.43 MB / 0.5101 GB, free: 9.562 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.009326/0.06079, allocations: 3.908 MB / 0.5139 GB, free: 5.645 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00186/0.06265, allocations: 63.38 kB / 0.514 GB, free: 5.582 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00232/0.06497, allocations: 0.5156 MB / 0.5145 GB, free: 5.062 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005424/0.07039, allocations: 1.517 MB / 0.5159 GB, free: 3.535 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003168/0.07356, allocations: 0.942 MB / 0.5169 GB, free: 2.59 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.003968/0.07753, allocations: 2.421 MB / 0.5192 GB, free: 164 kB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005862/0.07812, allocations: 173.5 kB / 0.5194 GB, free: 15.98 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00494/0.08306, allocations: 1.76 MB / 0.5211 GB, free: 14.21 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00158/0.08464, allocations: 0.6659 MB / 0.5218 GB, free: 13.54 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003742/0.08501, allocations: 100 kB / 0.5218 GB, free: 13.45 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002616/0.08763, allocations: 0.6861 MB / 0.5225 GB, free: 12.76 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005179/0.08814, allocations: 286.7 kB / 0.5228 GB, free: 12.48 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001168/0.08931, allocations: 498.8 kB / 0.5233 GB, free: 11.99 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004477/0.09379, allocations: 1.951 MB / 0.5252 GB, free: 10.03 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.09379, allocations: 0 / 0.5252 GB, free: 10.03 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.0938, allocations: 0 / 0.5252 GB, free: 10.03 MB / 458.7 MB Notification: Performance of Transformations before backend: time 6.976e-05/0.09387, allocations: 0 / 0.5252 GB, free: 10.03 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.004641/0.09851, allocations: 1.702 MB / 0.5268 GB, free: 8.293 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.09855, allocations: 8.031 kB / 0.5268 GB, free: 8.285 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001151/0.0997, allocations: 303.4 kB / 0.5271 GB, free: 7.988 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002355/0.1021, allocations: 0.8972 MB / 0.528 GB, free: 7.055 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.183e-05/0.1021, allocations: 78.31 kB / 0.5281 GB, free: 6.977 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002302/0.1024, allocations: 100.3 kB / 0.5282 GB, free: 6.879 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00279/0.1052, allocations: 1.342 MB / 0.5295 GB, free: 5.438 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.094e-05/0.1052, allocations: 8.156 kB / 0.5295 GB, free: 5.43 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001101/0.1053, allocations: 39.94 kB / 0.5295 GB, free: 5.391 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.013e-05/0.1053, allocations: 24 kB / 0.5296 GB, free: 5.367 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002134/0.1075, allocations: 1.008 MB / 0.5305 GB, free: 4.359 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007036/0.1145, allocations: 3.132 MB / 0.5336 GB, free: 1.156 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002284/0.1168, allocations: 0.8664 MB / 0.5344 GB, free: 276 kB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001002/0.1178, allocations: 432.3 kB / 0.5349 GB, free: 15.84 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003959/0.1218, allocations: 1.333 MB / 0.5362 GB, free: 14.49 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.397e-05/0.1218, allocations: 51.17 kB / 0.5362 GB, free: 14.43 MB / 474.7 MB Notification: Performance of pre-optimization done (n=108): time 2.975e-06/0.1218, allocations: 0 / 0.5362 GB, free: 14.43 MB / 474.7 MB Notification: Performance of matching and sorting (n=122): time 0.0133/0.1351, allocations: 4.078 MB / 0.5402 GB, free: 10.26 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.839e-05/0.1352, allocations: 90.27 kB / 0.5403 GB, free: 10.16 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001571/0.1368, allocations: 0.7649 MB / 0.541 GB, free: 9.367 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000187/0.137, allocations: 53.64 kB / 0.5411 GB, free: 9.309 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007118/0.1377, allocations: 0.5013 MB / 0.5416 GB, free: 8.801 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006407/0.1383, allocations: 444.1 kB / 0.542 GB, free: 8.363 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005303/0.1389, allocations: 198.9 kB / 0.5422 GB, free: 8.164 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002429/0.1391, allocations: 345.9 kB / 0.5425 GB, free: 7.82 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001035/0.1401, allocations: 410.4 kB / 0.5429 GB, free: 7.418 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001399/0.1415, allocations: 0.583 MB / 0.5435 GB, free: 6.773 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002248/0.1438, allocations: 1.055 MB / 0.5445 GB, free: 5.652 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.117e-06/0.1438, allocations: 7.938 kB / 0.5445 GB, free: 5.645 MB / 474.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.003818/0.1476, allocations: 1.545 MB / 0.546 GB, free: 4.062 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.861e-05/0.1476, allocations: 11.94 kB / 0.546 GB, free: 4.051 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.596e-05/0.1477, allocations: 4 kB / 0.546 GB, free: 4.047 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001542/0.1492, allocations: 359.1 kB / 0.5464 GB, free: 3.672 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009995/0.1502, allocations: 239.6 kB / 0.5466 GB, free: 3.438 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01218/0.1624, allocations: 11.12 MB / 0.5575 GB, free: 7.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001128/0.1635, allocations: 55.95 kB / 0.5575 GB, free: 7.445 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001428/0.1636, allocations: 40 kB / 0.5576 GB, free: 7.406 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.0006192/0.1643, allocations: 265.7 kB / 0.5578 GB, free: 7.137 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003815/0.1646, allocations: 159.2 kB / 0.558 GB, free: 6.98 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004237/0.1689, allocations: 1.8 MB / 0.5597 GB, free: 5.164 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-05/0.1689, allocations: 12 kB / 0.5597 GB, free: 5.152 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.382e-05/0.1689, allocations: 7.938 kB / 0.5597 GB, free: 5.145 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.931e-05/0.1689, allocations: 7.969 kB / 0.5597 GB, free: 5.137 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005821/0.1748, allocations: 2.463 MB / 0.5622 GB, free: 2.598 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/0.1748, allocations: 0 / 0.5622 GB, free: 2.598 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009567/0.1757, allocations: 207.8 kB / 0.5624 GB, free: 2.395 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00156/0.1773, allocations: 370.5 kB / 0.5627 GB, free: 2.008 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001097/0.1774, allocations: 31.98 kB / 0.5627 GB, free: 1.977 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01211/0.1895, allocations: 11.13 MB / 0.5736 GB, free: 6.027 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.814e-06/0.1895, allocations: 7.922 kB / 0.5736 GB, free: 6.02 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005218/0.1947, allocations: 2.126 MB / 0.5757 GB, free: 3.836 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006397/0.1954, allocations: 219 kB / 0.5759 GB, free: 3.621 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002553/0.1956, allocations: 24 kB / 0.5759 GB, free: 3.598 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009163/0.1965, allocations: 51.95 kB / 0.576 GB, free: 3.547 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003001/0.1968, allocations: 112.8 kB / 0.5761 GB, free: 3.438 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001109/0.197, allocations: 39.98 kB / 0.5761 GB, free: 3.398 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0009807/0.1979, allocations: 0.5518 MB / 0.5767 GB, free: 2.836 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1e-07/0.1979, allocations: 4 kB / 0.5767 GB, free: 2.832 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001739/0.1997, allocations: 427.8 kB / 0.5771 GB, free: 2.414 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.0007762/0.2005, allocations: 377.6 kB / 0.5774 GB, free: 2.043 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.004193/0.2046, allocations: 2.002 MB / 0.5794 GB, free: 15.94 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.195e-06/0.2047, allocations: 3.984 kB / 0.5794 GB, free: 15.94 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002882/0.2075, allocations: 1.527 MB / 0.5809 GB, free: 14.31 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002772/0.2103, allocations: 0.506 MB / 0.5814 GB, free: 13.81 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006384/0.2167, allocations: 2.611 MB / 0.5839 GB, free: 11.15 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008443/0.2175, allocations: 0.5227 MB / 0.5844 GB, free: 10.59 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.00119/0.2187, allocations: 228.2 kB / 0.5846 GB, free: 10.38 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004181/0.2191, allocations: 116.5 kB / 0.5848 GB, free: 10.27 MB / 0.5105 GB Notification: Performance of SimCode: time 1.893e-06/0.2192, allocations: 0 / 0.5848 GB, free: 10.27 MB / 0.5105 GB Notification: Performance of Templates: time 0.05166/0.2708, allocations: 27.05 MB / 0.6112 GB, free: 15.7 MB / 0.5417 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.sim & ./ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_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_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.0092486690264195]