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.001302/0.001302, allocations: 92.2 kB / 20.19 MB, free: 4.355 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.00205/0.00205, allocations: 177 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.9994/0.9994, allocations: 177.1 MB / 203.8 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 179] 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.6703/0.6703, 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 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.884e-06/1.884e-06, allocations: 0 / 483.6 MB, free: 8.258 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.506e-05/1.694e-05, allocations: 3.781 kB / 483.6 MB, free: 8.254 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.03438/0.03439, allocations: 44.96 MB / 0.5162 GB, free: 3.965 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.005253/0.03965, allocations: 4.293 MB / 0.5204 GB, free: 15.66 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006563/0.0403, allocations: 59.44 kB / 0.5204 GB, free: 15.6 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001064/0.04137, allocations: 0.5155 MB / 0.521 GB, free: 15.08 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002753/0.04412, allocations: 1.521 MB / 0.5224 GB, free: 13.55 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001848/0.04597, allocations: 0.9419 MB / 0.5234 GB, free: 12.61 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.002347/0.04831, allocations: 2.414 MB / 0.5257 GB, free: 10.18 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003606/0.04867, allocations: 169.5 kB / 0.5259 GB, free: 10 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002916/0.05159, allocations: 1.767 MB / 0.5276 GB, free: 8.227 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007793/0.05237, allocations: 0.6659 MB / 0.5283 GB, free: 7.559 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001444/0.05251, allocations: 100 kB / 0.5283 GB, free: 7.461 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001329/0.05384, allocations: 0.6823 MB / 0.529 GB, free: 6.777 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002017/0.05404, allocations: 278.7 kB / 0.5293 GB, free: 6.504 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008731/0.05492, allocations: 498.8 kB / 0.5298 GB, free: 6.016 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001719/0.05664, allocations: 1.584 MB / 0.5313 GB, free: 4.426 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.05664, allocations: 0 / 0.5313 GB, free: 4.426 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.05664, allocations: 0 / 0.5313 GB, free: 4.426 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.082e-05/0.05665, allocations: 0 / 0.5313 GB, free: 4.426 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.001868/0.05852, allocations: 1.79 MB / 0.533 GB, free: 2.594 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.05856, allocations: 8.031 kB / 0.5331 GB, free: 2.586 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005039/0.05906, allocations: 311.4 kB / 0.5334 GB, free: 2.281 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009682/0.06003, allocations: 0.9045 MB / 0.5342 GB, free: 1.336 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.312e-05/0.06007, allocations: 70.38 kB / 0.5343 GB, free: 1.266 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001021/0.06018, allocations: 100.4 kB / 0.5344 GB, free: 1.168 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001055/0.06123, allocations: 1.072 MB / 0.5354 GB, free: 15.98 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.669e-05/0.06125, allocations: 192 / 0.5354 GB, free: 15.98 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.42e-05/0.06131, allocations: 47.94 kB / 0.5355 GB, free: 15.94 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.705e-05/0.06133, allocations: 20 kB / 0.5355 GB, free: 15.92 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007166/0.06205, allocations: 0.513 MB / 0.536 GB, free: 15.41 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003161/0.06521, allocations: 3.494 MB / 0.5394 GB, free: 11.82 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001043/0.06625, allocations: 0.7845 MB / 0.5402 GB, free: 11.02 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003656/0.06662, allocations: 292.1 kB / 0.5405 GB, free: 10.73 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001562/0.06818, allocations: 1.423 MB / 0.5419 GB, free: 9.281 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.691e-05/0.06821, allocations: 46.05 kB / 0.5419 GB, free: 9.227 MB / 474.7 MB Notification: Performance of pre-optimization done (n=108): time 1.863e-06/0.06822, allocations: 0 / 0.5419 GB, free: 9.227 MB / 474.7 MB Notification: Performance of matching and sorting (n=122): time 0.004881/0.0731, allocations: 3.161 MB / 0.545 GB, free: 5.961 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.472e-05/0.07314, allocations: 98.25 kB / 0.5451 GB, free: 5.848 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005851/0.07373, allocations: 0.7511 MB / 0.5458 GB, free: 5.07 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 5.702e-05/0.07378, allocations: 49.7 kB / 0.5459 GB, free: 5.016 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002636/0.07405, allocations: 0.5508 MB / 0.5464 GB, free: 4.457 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000215/0.07426, allocations: 444.1 kB / 0.5468 GB, free: 4.02 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002045/0.07447, allocations: 208.5 kB / 0.547 GB, free: 3.809 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.0746, allocations: 0.5199 MB / 0.5475 GB, free: 3.281 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003422/0.07495, allocations: 206.5 kB / 0.5477 GB, free: 3.078 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004811/0.07543, allocations: 467.5 kB / 0.5482 GB, free: 2.535 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008685/0.07629, allocations: 0.7618 MB / 0.5489 GB, free: 1.684 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.0763, allocations: 15.94 kB / 0.5489 GB, free: 1.668 MB / 474.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.001518/0.07782, allocations: 1.15 MB / 0.5501 GB, free: 484 kB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.07783, allocations: 8 kB / 0.5501 GB, free: 476 kB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.07784, allocations: 8 kB / 0.5501 GB, free: 468 kB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008604/0.0787, allocations: 317.1 kB / 0.5504 GB, free: 116 kB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004634/0.07917, allocations: 219.7 kB / 0.5506 GB, free: 15.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006057/0.08522, allocations: 14.63 MB / 0.5649 GB, free: 292 kB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000303/0.08553, allocations: 35.98 kB / 0.5649 GB, free: 256 kB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.693e-05/0.08558, allocations: 47.98 kB / 0.565 GB, free: 208 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.0002411/0.08582, allocations: 224.5 kB / 0.5652 GB, free: 15.97 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001807/0.086, allocations: 167.2 kB / 0.5653 GB, free: 15.8 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001855/0.08786, allocations: 1.47 MB / 0.5668 GB, free: 14.3 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.08787, allocations: 12 kB / 0.5668 GB, free: 14.29 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.08787, allocations: 11.88 kB / 0.5668 GB, free: 14.27 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.08788, allocations: 7.969 kB / 0.5668 GB, free: 14.27 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002383/0.09026, allocations: 2.152 MB / 0.5689 GB, free: 12.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.09027, allocations: 0 / 0.5689 GB, free: 12.02 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004223/0.09069, allocations: 195.9 kB / 0.5691 GB, free: 11.83 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006471/0.09134, allocations: 345 kB / 0.5694 GB, free: 11.46 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.284e-05/0.0914, allocations: 39.97 kB / 0.5695 GB, free: 11.42 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005931/0.09733, allocations: 14.61 MB / 0.5837 GB, free: 11.82 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.277e-06/0.09733, allocations: 7.922 kB / 0.5837 GB, free: 11.82 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002115/0.09945, allocations: 1.59 MB / 0.5853 GB, free: 10.15 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002502/0.0997, allocations: 211 kB / 0.5855 GB, free: 9.945 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.796e-05/0.09979, allocations: 28 kB / 0.5855 GB, free: 9.918 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000325/0.1001, allocations: 39.97 kB / 0.5855 GB, free: 9.879 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001553/0.1003, allocations: 120.8 kB / 0.5857 GB, free: 9.762 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.939e-05/0.1003, allocations: 35.98 kB / 0.5857 GB, free: 9.727 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0004067/0.1007, allocations: 0.5087 MB / 0.5862 GB, free: 9.207 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7e-08/0.1007, allocations: 0 / 0.5862 GB, free: 9.207 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0008894/0.1016, allocations: 431.7 kB / 0.5866 GB, free: 8.785 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.0004154/0.102, allocations: 386.2 kB / 0.587 GB, free: 8.41 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001641/0.1037, allocations: 2.123 MB / 0.589 GB, free: 6.148 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.1037, allocations: 4 kB / 0.589 GB, free: 6.145 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001145/0.1048, allocations: 1.819 MB / 0.5908 GB, free: 4.18 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001424/0.1062, allocations: 0.4935 MB / 0.5913 GB, free: 3.699 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003551/0.1098, allocations: 2.448 MB / 0.5937 GB, free: 1.191 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001719/0.11, allocations: 228.1 kB / 0.5939 GB, free: 0.9492 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0005046/0.1105, allocations: 229.9 kB / 0.5941 GB, free: 0.7383 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002041/0.1107, allocations: 116.5 kB / 0.5942 GB, free: 0.6211 MB / 0.5105 GB Notification: Performance of SimCode: time 1.252e-06/0.1107, allocations: 0 / 0.5942 GB, free: 0.6211 MB / 0.5105 GB Notification: Performance of Templates: time 0.02863/0.1393, allocations: 27.24 MB / 0.6208 GB, free: 5.875 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=240 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_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.409999638097361]