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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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=2000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004262/0.004262, allocations: 106.5 kB / 15.74 MB, free: 5.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001059/0.001059, allocations: 189.9 kB / 16.67 MB, free: 5.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.74/0.74, allocations: 91.18 MB / 381.7 MB, free: 7.504 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001622/0.001622, allocations: 79.88 kB / 0.5168 GB, free: 4.113 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3542/0.3558, allocations: 67.69 MB / 0.583 GB, free: 13.79 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.03547/0.3913, allocations: 41.1 MB / 0.6231 GB, free: 4.867 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.007715/0.3991, allocations: 5.331 MB / 0.6283 GB, free: 15.52 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001057/0.4002, allocations: 39.75 kB / 0.6283 GB, free: 15.48 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001383/0.4015, allocations: 0.5394 MB / 0.6289 GB, free: 14.94 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003071/0.4047, allocations: 1.375 MB / 0.6302 GB, free: 13.55 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002115/0.4068, allocations: 0.8777 MB / 0.6311 GB, free: 12.68 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002032/0.4088, allocations: 2.128 MB / 0.6331 GB, free: 10.54 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003862/0.4092, allocations: 264.9 kB / 0.6334 GB, free: 10.27 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002561/0.4118, allocations: 1.311 MB / 0.6347 GB, free: 8.949 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008922/0.4127, allocations: 0.7817 MB / 0.6354 GB, free: 8.164 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001519/0.4129, allocations: 100 kB / 0.6355 GB, free: 8.066 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002102/0.415, allocations: 0.7374 MB / 0.6363 GB, free: 7.328 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002805/0.4153, allocations: 262.9 kB / 0.6365 GB, free: 7.07 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005724/0.4159, allocations: 0.6528 MB / 0.6371 GB, free: 6.414 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002355/0.4182, allocations: 1.84 MB / 0.6389 GB, free: 4.574 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.4183, allocations: 0 / 0.6389 GB, free: 4.574 MB / 494.1 MB Notification: Performance of FrontEnd: time 4.388e-06/0.4183, allocations: 0 / 0.6389 GB, free: 4.574 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.608e-05/0.4183, allocations: 3.938 kB / 0.6389 GB, free: 4.57 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.002796/0.4211, allocations: 1.651 MB / 0.6406 GB, free: 2.867 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.4211, allocations: 15.97 kB / 0.6406 GB, free: 2.852 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003695/0.4215, allocations: 151.2 kB / 0.6407 GB, free: 2.703 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001334/0.4229, allocations: 0.8638 MB / 0.6416 GB, free: 1.797 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.205e-05/0.4229, allocations: 70.12 kB / 0.6416 GB, free: 1.727 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001362/0.4231, allocations: 99.89 kB / 0.6417 GB, free: 1.629 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001639/0.4247, allocations: 1.077 MB / 0.6428 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.389e-05/0.4247, allocations: 3.938 kB / 0.6428 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.286e-05/0.4248, allocations: 36 kB / 0.6428 GB, free: 492 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.99e-05/0.4249, allocations: 24 kB / 0.6428 GB, free: 468 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001673/0.4265, allocations: 1.012 MB / 0.6438 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005313/0.4319, allocations: 4.743 MB / 0.6485 GB, free: 10.28 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00176/0.4336, allocations: 0.9303 MB / 0.6494 GB, free: 9.336 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007805/0.4344, allocations: 0.503 MB / 0.6499 GB, free: 8.832 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004198/0.4386, allocations: 3.469 MB / 0.6532 GB, free: 4.945 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.314e-05/0.4387, allocations: 47.12 kB / 0.6533 GB, free: 4.891 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=108): time 4.589e-06/0.4387, allocations: 4 kB / 0.6533 GB, free: 4.887 MB / 0.4981 GB Notification: Performance of matching and sorting (n=122): time 0.009507/0.4482, allocations: 4.423 MB / 0.6576 GB, free: 264 kB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.6e-05/0.4483, allocations: 90.2 kB / 0.6577 GB, free: 156 kB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001021/0.4493, allocations: 0.7557 MB / 0.6584 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 9.598e-05/0.4494, allocations: 45.7 kB / 0.6585 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003298/0.4498, allocations: 484.5 kB / 0.6589 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.000287/0.4501, allocations: 417.8 kB / 0.6593 GB, free: 14.44 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002975/0.4504, allocations: 195 kB / 0.6595 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001322/0.4505, allocations: 353.9 kB / 0.6599 GB, free: 13.89 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008048/0.4513, allocations: 418.4 kB / 0.6603 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009497/0.4523, allocations: 0.57 MB / 0.6608 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001957/0.4543, allocations: 1.04 MB / 0.6618 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.4543, allocations: 0 / 0.6618 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003033/0.4573, allocations: 1.507 MB / 0.6633 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/0.4573, allocations: 8 kB / 0.6633 GB, free: 10.22 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.4574, allocations: 4 kB / 0.6633 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001005/0.4584, allocations: 307 kB / 0.6636 GB, free: 9.891 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000883/0.4593, allocations: 235.7 kB / 0.6638 GB, free: 9.66 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008828/0.4681, allocations: 12.13 MB / 0.6757 GB, free: 12.41 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000899/0.469, allocations: 47.97 kB / 0.6757 GB, free: 12.36 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001132/0.4692, allocations: 51.92 kB / 0.6758 GB, free: 12.31 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (124): * Single equations (assignments): 116 * 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.0005215/0.4697, allocations: 261.6 kB / 0.676 GB, free: 12.04 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002274/0.4699, allocations: 114.6 kB / 0.6761 GB, free: 11.93 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003735/0.4737, allocations: 1.869 MB / 0.678 GB, free: 10.01 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.215e-05/0.4737, allocations: 12 kB / 0.678 GB, free: 10 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.818e-06/0.4737, allocations: 11.88 kB / 0.678 GB, free: 9.988 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.486e-05/0.4737, allocations: 11.97 kB / 0.678 GB, free: 9.977 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004925/0.4787, allocations: 2.879 MB / 0.6808 GB, free: 7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.4787, allocations: 0 / 0.6808 GB, free: 7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008913/0.4796, allocations: 215.7 kB / 0.681 GB, free: 6.789 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001005/0.4806, allocations: 322.5 kB / 0.6813 GB, free: 6.449 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.958e-05/0.4807, allocations: 35.98 kB / 0.6814 GB, free: 6.414 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00861/0.4893, allocations: 12.14 MB / 0.6932 GB, free: 9.16 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.4893, allocations: 3.938 kB / 0.6932 GB, free: 9.156 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004159/0.4935, allocations: 2.171 MB / 0.6953 GB, free: 6.93 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002308/0.4937, allocations: 175.7 kB / 0.6955 GB, free: 6.738 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001418/0.4939, allocations: 35.84 kB / 0.6955 GB, free: 6.703 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007084/0.4946, allocations: 59.89 kB / 0.6956 GB, free: 6.645 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002324/0.4948, allocations: 108.9 kB / 0.6957 GB, free: 6.539 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.315e-05/0.4949, allocations: 39.98 kB / 0.6957 GB, free: 6.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.000688/0.4956, allocations: 0.5629 MB / 0.6963 GB, free: 5.926 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.1e-07/0.4956, allocations: 0 / 0.6963 GB, free: 5.926 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001336/0.497, allocations: 439.8 kB / 0.6967 GB, free: 5.496 MB / 0.545 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 (104): * Single equations (assignments): 96 * 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.0006131/0.4976, allocations: 420.1 kB / 0.6971 GB, free: 5.082 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003292/0.5009, allocations: 2.079 MB / 0.6991 GB, free: 2.906 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.5009, allocations: 0 / 0.6991 GB, free: 2.906 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002296/0.5032, allocations: 1.605 MB / 0.7007 GB, free: 1.195 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001518/0.5048, allocations: 359.3 kB / 0.701 GB, free: 0.8516 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004583/0.5094, allocations: 2.659 MB / 0.7036 GB, free: 14.15 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006902/0.5101, allocations: 1.092 MB / 0.7047 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0007623/0.5108, allocations: 237 kB / 0.7049 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003044/0.5112, allocations: 123.4 kB / 0.705 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of SimCode: time 4.51e-07/0.5112, allocations: 0 / 0.705 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of Templates: time 0.03671/0.5479, allocations: 24.73 MB / 0.7292 GB, free: 4.199 MB / 0.5762 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.makefile (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) 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) Reference file matches