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.001413/0.001413, allocations: 92.2 kB / 20.19 MB, free: 4.352 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.001455/0.001455, allocations: 173 kB / 23.49 MB, free: 1.051 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.9568/0.9568, allocations: 177.1 MB / 203.8 MB, free: 5.629 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.6915/0.6915, allocations: 118.6 MB / 378.9 MB, free: 1.504 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 1.743e-06/1.743e-06, allocations: 0 / 483.6 MB, free: 8.266 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.268e-05/2.443e-05, allocations: 3.844 kB / 483.6 MB, free: 8.262 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.03146/0.03148, allocations: 44.96 MB / 0.5162 GB, free: 3.965 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.005445/0.03693, allocations: 4.289 MB / 0.5204 GB, free: 15.66 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007992/0.03773, allocations: 59.44 kB / 0.5204 GB, free: 15.61 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001106/0.03883, allocations: 0.5234 MB / 0.521 GB, free: 15.08 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003006/0.04184, allocations: 1.509 MB / 0.5224 GB, free: 13.56 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001933/0.04377, allocations: 0.9458 MB / 0.5234 GB, free: 12.61 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.001921/0.04569, allocations: 2.418 MB / 0.5257 GB, free: 10.18 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003137/0.04601, allocations: 173.4 kB / 0.5259 GB, free: 9.996 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002358/0.04836, allocations: 1.767 MB / 0.5276 GB, free: 8.223 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006639/0.04903, allocations: 0.6659 MB / 0.5283 GB, free: 7.555 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001202/0.04915, allocations: 100 kB / 0.5284 GB, free: 7.457 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001213/0.05036, allocations: 0.6823 MB / 0.529 GB, free: 6.773 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002036/0.05056, allocations: 286.7 kB / 0.5293 GB, free: 6.492 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003975/0.05096, allocations: 494.8 kB / 0.5298 GB, free: 6.008 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001758/0.05272, allocations: 1.58 MB / 0.5313 GB, free: 4.422 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.05272, allocations: 0 / 0.5313 GB, free: 4.422 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.05273, allocations: 0 / 0.5313 GB, free: 4.422 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.412e-05/0.05274, allocations: 0 / 0.5313 GB, free: 4.422 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.002079/0.05482, allocations: 1.798 MB / 0.5331 GB, free: 2.582 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.05486, allocations: 8.031 kB / 0.5331 GB, free: 2.574 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005719/0.05543, allocations: 303.4 kB / 0.5334 GB, free: 2.277 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001075/0.05651, allocations: 0.9046 MB / 0.5342 GB, free: 1.332 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.965e-05/0.05656, allocations: 70.38 kB / 0.5343 GB, free: 1.262 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001158/0.05667, allocations: 104.3 kB / 0.5344 GB, free: 1.16 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001087/0.05776, allocations: 1.072 MB / 0.5355 GB, free: 15.98 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.822e-05/0.05778, allocations: 192 / 0.5355 GB, free: 15.98 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.63e-05/0.05784, allocations: 47.94 kB / 0.5355 GB, free: 15.93 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.794e-05/0.05786, allocations: 20 kB / 0.5355 GB, free: 15.91 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007186/0.05858, allocations: 0.5052 MB / 0.536 GB, free: 15.41 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003225/0.06181, allocations: 3.49 MB / 0.5394 GB, free: 11.83 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001067/0.06287, allocations: 0.7865 MB / 0.5402 GB, free: 11.02 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003714/0.06324, allocations: 289.9 kB / 0.5405 GB, free: 10.73 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001667/0.06491, allocations: 1.43 MB / 0.5419 GB, free: 9.277 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.309e-05/0.06494, allocations: 50.05 kB / 0.5419 GB, free: 9.219 MB / 474.7 MB Notification: Performance of pre-optimization done (n=108): time 2.314e-06/0.06495, allocations: 0 / 0.5419 GB, free: 9.219 MB / 474.7 MB Notification: Performance of matching and sorting (n=122): time 0.004758/0.0697, allocations: 3.164 MB / 0.545 GB, free: 5.949 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.158e-05/0.06975, allocations: 90.27 kB / 0.5451 GB, free: 5.844 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005971/0.07034, allocations: 0.755 MB / 0.5458 GB, free: 5.062 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 5.791e-05/0.0704, allocations: 53.64 kB / 0.5459 GB, free: 5.004 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000267/0.07067, allocations: 0.5547 MB / 0.5464 GB, free: 4.441 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000215/0.07088, allocations: 436.2 kB / 0.5468 GB, free: 4.012 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002006/0.07108, allocations: 204.6 kB / 0.547 GB, free: 3.805 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.07121, allocations: 0.5238 MB / 0.5475 GB, free: 3.273 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003269/0.07154, allocations: 206.5 kB / 0.5477 GB, free: 3.07 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004415/0.07198, allocations: 463.5 kB / 0.5482 GB, free: 2.531 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008375/0.07282, allocations: 0.7657 MB / 0.5489 GB, free: 1.676 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.07282, allocations: 11.94 kB / 0.5489 GB, free: 1.664 MB / 474.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.001511/0.07433, allocations: 1.15 MB / 0.5501 GB, free: 480 kB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.07435, allocations: 8 kB / 0.5501 GB, free: 472 kB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.07436, allocations: 8.031 kB / 0.5501 GB, free: 464 kB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006808/0.07504, allocations: 321.1 kB / 0.5504 GB, free: 108 kB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004695/0.07551, allocations: 223.7 kB / 0.5506 GB, free: 15.89 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006109/0.08162, allocations: 14.62 MB / 0.5649 GB, free: 296 kB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004906/0.08211, allocations: 39.98 kB / 0.5649 GB, free: 256 kB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.992e-05/0.08217, allocations: 43.98 kB / 0.565 GB, free: 212 kB / 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.0002695/0.08244, allocations: 227.6 kB / 0.5652 GB, free: 15.97 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001806/0.08262, allocations: 171.2 kB / 0.5653 GB, free: 15.8 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001877/0.0845, allocations: 1.47 MB / 0.5668 GB, free: 14.29 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.08451, allocations: 12 kB / 0.5668 GB, free: 14.28 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.08451, allocations: 7.938 kB / 0.5668 GB, free: 14.27 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.08452, allocations: 7.984 kB / 0.5668 GB, free: 14.27 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00273/0.08725, allocations: 2.16 MB / 0.5689 GB, free: 12.01 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.08726, allocations: 3.938 kB / 0.5689 GB, free: 12.01 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004131/0.08767, allocations: 191.9 kB / 0.5691 GB, free: 11.82 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006467/0.08832, allocations: 340.9 kB / 0.5694 GB, free: 11.46 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.484e-05/0.08837, allocations: 35.98 kB / 0.5695 GB, free: 11.42 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006115/0.09449, allocations: 14.61 MB / 0.5837 GB, free: 11.83 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.09449, allocations: 7.938 kB / 0.5837 GB, free: 11.82 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001863/0.09635, allocations: 1.586 MB / 0.5853 GB, free: 10.16 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002743/0.09663, allocations: 219 kB / 0.5855 GB, free: 9.945 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.354e-05/0.09672, allocations: 24 kB / 0.5855 GB, free: 9.922 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003377/0.09706, allocations: 39.98 kB / 0.5855 GB, free: 9.883 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001786/0.09724, allocations: 116.8 kB / 0.5857 GB, free: 9.77 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.201e-05/0.09729, allocations: 39.97 kB / 0.5857 GB, free: 9.73 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0004094/0.0977, allocations: 0.5087 MB / 0.5862 GB, free: 9.211 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.1e-08/0.0977, allocations: 0 / 0.5862 GB, free: 9.211 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.000998/0.0987, allocations: 431.7 kB / 0.5866 GB, free: 8.789 MB / 0.5105 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.0004588/0.09915, allocations: 391.5 kB / 0.587 GB, free: 8.41 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001738/0.1009, allocations: 2.123 MB / 0.5891 GB, free: 6.148 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.1009, allocations: 4 kB / 0.5891 GB, free: 6.145 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00143/0.1023, allocations: 1.823 MB / 0.5908 GB, free: 4.176 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001249/0.1036, allocations: 0.4893 MB / 0.5913 GB, free: 3.691 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003387/0.107, allocations: 2.457 MB / 0.5937 GB, free: 1.176 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001855/0.1071, allocations: 232.1 kB / 0.5939 GB, free: 0.9297 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0005247/0.1077, allocations: 226 kB / 0.5942 GB, free: 0.7188 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002093/0.1079, allocations: 120.5 kB / 0.5943 GB, free: 0.5977 MB / 0.5105 GB Notification: Performance of SimCode: time 1.523e-06/0.1079, allocations: 0 / 0.5943 GB, free: 0.5977 MB / 0.5105 GB Notification: Performance of Templates: time 0.02997/0.1379, allocations: 27.23 MB / 0.6209 GB, free: 5.871 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=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_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.29821554501541]