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.001385/0.001385, allocations: 73.97 kB / 20.66 MB, free: 3.844 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.001472/0.001472, allocations: 169.4 kB / 24.06 MB, free: 456 kB / 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.9117/0.9117, allocations: 177.1 MB / 204.5 MB, free: 5.5 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.666/0.666, allocations: 118.7 MB / 379.7 MB, free: 1.352 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.343e-06/1.343e-06, allocations: 0 / 484.9 MB, free: 8.117 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.648e-05/1.782e-05, allocations: 2.312 kB / 484.9 MB, free: 8.113 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.00837/0.008388, allocations: 10.81 MB / 495.7 MB, free: 0.7109 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002816/0.0112, allocations: 2.471 MB / 498.1 MB, free: 14.97 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004443/0.01165, allocations: 65.28 kB / 498.2 MB, free: 14.93 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005456/0.01219, allocations: 281.3 kB / 498.5 MB, free: 14.78 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001465/0.01366, allocations: 1.076 MB / 499.6 MB, free: 14.06 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008567/0.01452, allocations: 0.5594 MB / 0.4884 GB, free: 13.76 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.001901/0.01642, allocations: 2.395 MB / 0.4907 GB, free: 12.54 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002855/0.0167, allocations: 170 kB / 0.4909 GB, free: 12.45 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001474/0.01818, allocations: 1.295 MB / 0.4922 GB, free: 11.94 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006904/0.01887, allocations: 0.6675 MB / 0.4928 GB, free: 11.72 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001215/0.01899, allocations: 103.9 kB / 0.4929 GB, free: 11.64 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004323/0.01942, allocations: 260.2 kB / 0.4932 GB, free: 11.41 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002113/0.01963, allocations: 284.4 kB / 0.4934 GB, free: 11.18 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004025/0.02003, allocations: 488.6 kB / 0.4939 GB, free: 10.74 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001173/0.02121, allocations: 1.261 MB / 0.4951 GB, free: 9.68 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.02121, allocations: 0 / 0.4951 GB, free: 9.68 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.02121, allocations: 0 / 0.4951 GB, free: 9.68 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.019e-05/0.02123, allocations: 4.594 kB / 0.4951 GB, free: 9.676 MB / 426.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.001951/0.02318, allocations: 1.739 MB / 0.4968 GB, free: 8.062 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.128e-05/0.02322, allocations: 8.031 kB / 0.4968 GB, free: 8.055 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004773/0.02369, allocations: 309.8 kB / 0.4971 GB, free: 7.762 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001463/0.02516, allocations: 0.879 MB / 0.498 GB, free: 6.98 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.115e-05/0.02521, allocations: 78.38 kB / 0.4981 GB, free: 6.906 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001185/0.02533, allocations: 105.5 kB / 0.4982 GB, free: 6.805 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00104/0.02637, allocations: 0.9999 MB / 0.4991 GB, free: 5.859 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.96e-05/0.02638, allocations: 8.188 kB / 0.4992 GB, free: 5.852 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.926e-05/0.02644, allocations: 43.92 kB / 0.4992 GB, free: 5.809 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.677e-05/0.02646, allocations: 24.66 kB / 0.4992 GB, free: 5.785 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005138/0.02697, allocations: 414.3 kB / 0.4996 GB, free: 5.445 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003142/0.03012, allocations: 3.346 MB / 0.5029 GB, free: 2.012 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008947/0.03101, allocations: 0.7297 MB / 0.5036 GB, free: 1.258 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002412/0.03125, allocations: 245.9 kB / 0.5038 GB, free: 1.012 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001489/0.03274, allocations: 1.364 MB / 0.5052 GB, free: 15.62 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.952e-05/0.03277, allocations: 46.05 kB / 0.5052 GB, free: 15.57 MB / 442.7 MB Notification: Performance of pre-optimization done (n=108): time 3.025e-06/0.03277, allocations: 0 / 0.5052 GB, free: 15.57 MB / 442.7 MB Notification: Performance of matching and sorting (n=122): time 0.003931/0.0367, allocations: 2.628 MB / 0.5078 GB, free: 12.84 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.773e-05/0.03674, allocations: 94.27 kB / 0.5079 GB, free: 12.73 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005035/0.03725, allocations: 0.7466 MB / 0.5086 GB, free: 11.96 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.669e-05/0.0373, allocations: 45.7 kB / 0.5086 GB, free: 11.91 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002672/0.03757, allocations: 0.5585 MB / 0.5092 GB, free: 11.34 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002311/0.0378, allocations: 448.1 kB / 0.5096 GB, free: 10.9 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002087/0.03801, allocations: 208.5 kB / 0.5098 GB, free: 10.69 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.03814, allocations: 0.5315 MB / 0.5103 GB, free: 10.15 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002065/0.03834, allocations: 154.5 kB / 0.5105 GB, free: 10 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003184/0.03866, allocations: 415.4 kB / 0.5109 GB, free: 9.5 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006001/0.03926, allocations: 0.6797 MB / 0.5115 GB, free: 8.734 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.03927, allocations: 4 kB / 0.5115 GB, free: 8.73 MB / 442.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.001214/0.04048, allocations: 1.048 MB / 0.5126 GB, free: 7.637 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.0405, allocations: 8 kB / 0.5126 GB, free: 7.629 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.0405, allocations: 8.031 kB / 0.5126 GB, free: 7.621 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005982/0.0411, allocations: 313.1 kB / 0.5129 GB, free: 7.281 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00045/0.04155, allocations: 227.7 kB / 0.5131 GB, free: 7.059 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005754/0.04731, allocations: 14.41 MB / 0.5272 GB, free: 7.738 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004977/0.0478, allocations: 47.97 kB / 0.5272 GB, free: 7.691 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.627e-05/0.04787, allocations: 43.92 kB / 0.5272 GB, free: 7.648 MB / 458.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.0003237/0.04819, allocations: 228.4 kB / 0.5275 GB, free: 7.414 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001924/0.04839, allocations: 159.2 kB / 0.5276 GB, free: 7.258 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001614/0.05, allocations: 1.388 MB / 0.529 GB, free: 5.801 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.05001, allocations: 12 kB / 0.529 GB, free: 5.789 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.05001, allocations: 4 kB / 0.529 GB, free: 5.785 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.05002, allocations: 11.91 kB / 0.529 GB, free: 5.773 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00235/0.05237, allocations: 1.994 MB / 0.5309 GB, free: 3.684 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.05238, allocations: 4.125 kB / 0.531 GB, free: 3.68 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004334/0.05281, allocations: 183.8 kB / 0.5311 GB, free: 3.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006581/0.05347, allocations: 333 kB / 0.5314 GB, free: 3.141 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.969e-05/0.05354, allocations: 35.97 kB / 0.5315 GB, free: 3.105 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005661/0.0592, allocations: 14.42 MB / 0.5456 GB, free: 3.77 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.0592, allocations: 4 kB / 0.5456 GB, free: 3.766 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001715/0.06092, allocations: 1.464 MB / 0.547 GB, free: 2.234 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003066/0.06122, allocations: 203.1 kB / 0.5472 GB, free: 2.035 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.06132, allocations: 24 kB / 0.5472 GB, free: 2.012 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003538/0.06168, allocations: 47.91 kB / 0.5473 GB, free: 1.965 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001772/0.06185, allocations: 109 kB / 0.5474 GB, free: 1.859 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.067e-05/0.06191, allocations: 27.98 kB / 0.5474 GB, free: 1.832 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0003403/0.06225, allocations: 488.7 kB / 0.5479 GB, free: 1.344 MB / 474.7 MB Notification: Performance of sort global known variables: time 4e-08/0.06225, allocations: 0 / 0.5479 GB, free: 1.344 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.000901/0.06315, allocations: 371.9 kB / 0.5482 GB, free: 0.9805 MB / 474.7 MB 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 (97): * Single equations (assignments): 89 * 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.0002269/0.06337, allocations: 157.2 kB / 0.5484 GB, free: 0.8203 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001633/0.06501, allocations: 2.037 MB / 0.5503 GB, free: 14.64 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.06501, allocations: 0 / 0.5503 GB, free: 14.64 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001103/0.06611, allocations: 1.784 MB / 0.5521 GB, free: 12.71 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001276/0.06739, allocations: 0.4906 MB / 0.5526 GB, free: 12.23 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003199/0.07059, allocations: 2.415 MB / 0.5549 GB, free: 9.754 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001886/0.07078, allocations: 228.1 kB / 0.5551 GB, free: 9.508 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0005948/0.07137, allocations: 221.2 kB / 0.5554 GB, free: 9.289 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007514/0.07212, allocations: 493.8 kB / 0.5558 GB, free: 8.805 MB / 490.7 MB Notification: Performance of SimCode: time 8.92e-07/0.07212, allocations: 0 / 0.5558 GB, free: 8.805 MB / 490.7 MB Notification: Performance of Templates: time 0.02942/0.1015, allocations: 26.95 MB / 0.5821 GB, free: 14.36 MB / 0.5105 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.069916125852615]