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.006094/0.006094, allocations: 95.02 kB / 15.73 MB, free: 6.039 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.001243/0.001243, allocations: 199 kB / 16.68 MB, free: 5.969 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.363/1.363, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6611/0.6611, allocations: 91.18 MB / 381.7 MB, free: 9.371 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 75.88 kB / 0.5168 GB, free: 9.043 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1309, allocations: 67.69 MB / 0.583 GB, free: 5.27 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.3121/0.443, allocations: 41.1 MB / 0.6231 GB, free: 0.9609 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.009693/0.4527, allocations: 5.322 MB / 0.6283 GB, free: 13.14 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001638/0.4544, allocations: 42.78 kB / 0.6283 GB, free: 13.12 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001902/0.4563, allocations: 0.5389 MB / 0.6288 GB, free: 12.81 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004679/0.461, allocations: 1.353 MB / 0.6302 GB, free: 11.97 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00295/0.464, allocations: 0.8653 MB / 0.631 GB, free: 11.51 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.003273/0.4673, allocations: 2.122 MB / 0.6331 GB, free: 10.48 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005764/0.4679, allocations: 278.9 kB / 0.6334 GB, free: 10.37 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003122/0.471, allocations: 1.294 MB / 0.6346 GB, free: 9.758 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001575/0.4726, allocations: 0.7694 MB / 0.6354 GB, free: 9.395 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003592/0.473, allocations: 100.1 kB / 0.6355 GB, free: 9.395 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002917/0.4759, allocations: 0.7408 MB / 0.6362 GB, free: 9.109 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000481/0.4764, allocations: 271 kB / 0.6364 GB, free: 8.883 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001362/0.4778, allocations: 0.6544 MB / 0.6371 GB, free: 8.449 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004087/0.4819, allocations: 1.847 MB / 0.6389 GB, free: 7.258 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.4819, allocations: 0 / 0.6389 GB, free: 7.258 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4819, allocations: 0 / 0.6389 GB, free: 7.258 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.679e-05/0.482, allocations: 0 / 0.6389 GB, free: 7.258 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.004026/0.486, allocations: 1.698 MB / 0.6405 GB, free: 5.969 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.486, allocations: 8.906 kB / 0.6406 GB, free: 5.969 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005124/0.4866, allocations: 155.5 kB / 0.6407 GB, free: 5.891 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001779/0.4883, allocations: 0.873 MB / 0.6416 GB, free: 5.195 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.003e-05/0.4884, allocations: 66.94 kB / 0.6416 GB, free: 5.164 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001524/0.4886, allocations: 110.5 kB / 0.6417 GB, free: 5.117 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001976/0.4906, allocations: 1.075 MB / 0.6428 GB, free: 4.449 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.46e-05/0.4906, allocations: 0 / 0.6428 GB, free: 4.449 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.099e-05/0.4907, allocations: 38.5 kB / 0.6428 GB, free: 4.422 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.24e-05/0.4907, allocations: 25.97 kB / 0.6428 GB, free: 4.418 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001909/0.4926, allocations: 1.005 MB / 0.6438 GB, free: 3.938 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006033/0.4987, allocations: 4.758 MB / 0.6485 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001843/0.5005, allocations: 0.9365 MB / 0.6494 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008463/0.5014, allocations: 0.496 MB / 0.6499 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004459/0.5059, allocations: 3.471 MB / 0.6533 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.79e-05/0.5059, allocations: 48.53 kB / 0.6533 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=108): time 2.504e-06/0.5059, allocations: 0 / 0.6533 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of matching and sorting (n=122): time 0.01043/0.5164, allocations: 4.472 MB / 0.6577 GB, free: 8.438 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.55e-05/0.5165, allocations: 90.05 kB / 0.6578 GB, free: 8.344 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001107/0.5176, allocations: 0.7496 MB / 0.6585 GB, free: 7.922 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 9.015e-05/0.5177, allocations: 51.39 kB / 0.6585 GB, free: 7.871 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003591/0.5181, allocations: 486.9 kB / 0.659 GB, free: 7.445 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003231/0.5184, allocations: 442.9 kB / 0.6594 GB, free: 7.055 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003321/0.5187, allocations: 194.7 kB / 0.6596 GB, free: 6.941 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001365/0.5189, allocations: 355.9 kB / 0.6599 GB, free: 6.598 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009684/0.5198, allocations: 408.5 kB / 0.6603 GB, free: 6.406 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00115/0.521, allocations: 0.5729 MB / 0.6609 GB, free: 6.016 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002221/0.5232, allocations: 1.04 MB / 0.6619 GB, free: 5.398 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.062e-06/0.5233, allocations: 0 / 0.6619 GB, free: 5.398 MB / 0.4981 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003547/0.5268, allocations: 1.51 MB / 0.6634 GB, free: 4.574 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/0.5268, allocations: 6.688 kB / 0.6634 GB, free: 4.574 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.5269, allocations: 8.031 kB / 0.6634 GB, free: 4.57 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001036/0.5279, allocations: 315.8 kB / 0.6637 GB, free: 4.371 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008836/0.5288, allocations: 238.6 kB / 0.6639 GB, free: 4.145 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009363/0.5382, allocations: 12.13 MB / 0.6758 GB, free: 6.902 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009752/0.5392, allocations: 43.97 kB / 0.6758 GB, free: 6.859 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001693/0.5394, allocations: 51.98 kB / 0.6759 GB, free: 6.809 MB / 0.5137 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.0005846/0.54, allocations: 258.2 kB / 0.6761 GB, free: 6.547 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003639/0.5403, allocations: 119.2 kB / 0.6762 GB, free: 6.43 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004039/0.5444, allocations: 1.872 MB / 0.6781 GB, free: 4.504 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.169e-05/0.5444, allocations: 15.94 kB / 0.6781 GB, free: 4.488 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.457e-05/0.5444, allocations: 11.94 kB / 0.6781 GB, free: 4.477 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.367e-05/0.5444, allocations: 3.984 kB / 0.6781 GB, free: 4.473 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005537/0.55, allocations: 2.887 MB / 0.6809 GB, free: 1.496 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.201e-06/0.55, allocations: 0 / 0.6809 GB, free: 1.496 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009037/0.5509, allocations: 219.8 kB / 0.6811 GB, free: 1.281 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001058/0.552, allocations: 313 kB / 0.6814 GB, free: 0.9531 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001053/0.5521, allocations: 31.98 kB / 0.6814 GB, free: 0.9219 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00943/0.5615, allocations: 12.17 MB / 0.6933 GB, free: 3.637 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.5616, allocations: 3.938 kB / 0.6933 GB, free: 3.633 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00471/0.5663, allocations: 2.169 MB / 0.6954 GB, free: 1.41 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004451/0.5668, allocations: 192.2 kB / 0.6956 GB, free: 1.203 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002828/0.5671, allocations: 28 kB / 0.6957 GB, free: 1.176 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000901/0.568, allocations: 55.89 kB / 0.6957 GB, free: 1.121 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002516/0.5682, allocations: 104.9 kB / 0.6958 GB, free: 1.02 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000117/0.5684, allocations: 51.97 kB / 0.6959 GB, free: 0.9688 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0007763/0.5691, allocations: 0.5551 MB / 0.6964 GB, free: 412 kB / 0.5294 GB Notification: Performance of sort global known variables: time 1.653e-06/0.5691, allocations: 0 / 0.6964 GB, free: 412 kB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001697/0.5708, allocations: 447.5 kB / 0.6968 GB, free: 15.96 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.0007474/0.5716, allocations: 425.2 kB / 0.6972 GB, free: 15.54 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003656/0.5753, allocations: 2.082 MB / 0.6993 GB, free: 13.36 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.822e-06/0.5753, allocations: 0 / 0.6993 GB, free: 13.36 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002618/0.5779, allocations: 1.605 MB / 0.7008 GB, free: 11.65 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002039/0.58, allocations: 357.8 kB / 0.7012 GB, free: 11.31 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005274/0.5853, allocations: 2.696 MB / 0.7038 GB, free: 8.57 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008002/0.5861, allocations: 1.096 MB / 0.7049 GB, free: 7.449 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0009631/0.5871, allocations: 243.3 kB / 0.7051 GB, free: 7.223 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003529/0.5874, allocations: 119.4 kB / 0.7052 GB, free: 7.105 MB / 0.545 GB Notification: Performance of SimCode: time 6.21e-07/0.5874, allocations: 0 / 0.7052 GB, free: 7.105 MB / 0.545 GB Notification: Performance of Templates: time 0.04331/0.6307, allocations: 24.72 MB / 0.7294 GB, free: 14.59 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