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: "" <> buildModelFMU(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007603/0.007603, allocations: 96.2 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.001817/0.001817, allocations: 197 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.375/1.375, 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.6812/0.6812, allocations: 91.19 MB / 381.7 MB, free: 9.348 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001549/0.00155, allocations: 83.86 kB / 0.5164 GB, free: 9.504 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1284, allocations: 67.68 MB / 0.5825 GB, free: 5.746 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.3233/0.4518, allocations: 41.1 MB / 0.6226 GB, free: 0.957 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.009483/0.4613, allocations: 5.328 MB / 0.6278 GB, free: 13.13 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001495/0.4629, allocations: 39.28 kB / 0.6279 GB, free: 13.12 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001639/0.4645, allocations: 0.5466 MB / 0.6284 GB, free: 12.79 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004335/0.4689, allocations: 1.361 MB / 0.6297 GB, free: 11.95 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002646/0.4716, allocations: 0.8828 MB / 0.6306 GB, free: 11.48 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.003428/0.475, allocations: 2.124 MB / 0.6327 GB, free: 10.45 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005903/0.4756, allocations: 274.3 kB / 0.6329 GB, free: 10.34 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003621/0.4792, allocations: 1.316 MB / 0.6342 GB, free: 9.723 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001129/0.4804, allocations: 0.7667 MB / 0.635 GB, free: 9.363 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001661/0.4806, allocations: 100.1 kB / 0.635 GB, free: 9.363 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002667/0.4832, allocations: 0.7387 MB / 0.6358 GB, free: 9.145 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002657/0.4835, allocations: 274.7 kB / 0.636 GB, free: 8.914 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000724/0.4843, allocations: 0.6473 MB / 0.6367 GB, free: 8.488 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0031/0.4874, allocations: 1.853 MB / 0.6385 GB, free: 7.289 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.4874, allocations: 0 / 0.6385 GB, free: 7.289 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4874, allocations: 5.125 kB / 0.6385 GB, free: 7.285 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.628e-05/0.4874, allocations: 0 / 0.6385 GB, free: 7.285 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.003199/0.4906, allocations: 1.689 MB / 0.6401 GB, free: 6.004 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.4907, allocations: 9.312 kB / 0.6401 GB, free: 6.004 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001658/0.4908, allocations: 146.8 kB / 0.6403 GB, free: 5.883 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004005/0.4913, allocations: 160.1 kB / 0.6404 GB, free: 5.801 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001499/0.4928, allocations: 0.8637 MB / 0.6413 GB, free: 5.113 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.676e-05/0.4928, allocations: 76.06 kB / 0.6413 GB, free: 5.074 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001449/0.493, allocations: 101.8 kB / 0.6414 GB, free: 5.035 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00178/0.4948, allocations: 1.082 MB / 0.6425 GB, free: 4.359 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.164e-05/0.4948, allocations: 1.469 kB / 0.6425 GB, free: 4.359 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.034e-05/0.4949, allocations: 41.81 kB / 0.6425 GB, free: 4.328 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.78e-05/0.4949, allocations: 21.81 kB / 0.6426 GB, free: 4.328 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001793/0.4967, allocations: 1.004 MB / 0.6435 GB, free: 3.848 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005759/0.5025, allocations: 4.761 MB / 0.6482 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001874/0.5044, allocations: 0.9407 MB / 0.6491 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008615/0.5053, allocations: 0.4883 MB / 0.6496 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004586/0.5099, allocations: 3.467 MB / 0.653 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.67e-05/0.5099, allocations: 44.81 kB / 0.653 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=108): time 2.435e-06/0.5099, allocations: 3.938 kB / 0.653 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of matching and sorting (n=122): time 0.01058/0.5205, allocations: 4.466 MB / 0.6574 GB, free: 8.348 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.826e-05/0.5207, allocations: 94.02 kB / 0.6575 GB, free: 8.25 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001062/0.5217, allocations: 0.7533 MB / 0.6582 GB, free: 7.824 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001089/0.5219, allocations: 47.05 kB / 0.6582 GB, free: 7.777 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003819/0.5222, allocations: 484.9 kB / 0.6587 GB, free: 7.352 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004018/0.5227, allocations: 444.7 kB / 0.6591 GB, free: 6.961 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003388/0.523, allocations: 203 kB / 0.6593 GB, free: 6.84 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001308/0.5231, allocations: 352.8 kB / 0.6597 GB, free: 6.5 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009201/0.5241, allocations: 412.2 kB / 0.6601 GB, free: 6.305 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001037/0.5251, allocations: 0.5614 MB / 0.6606 GB, free: 5.926 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002058/0.5272, allocations: 1.052 MB / 0.6616 GB, free: 5.297 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.5272, allocations: 0 / 0.6616 GB, free: 5.297 MB / 0.4981 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003509/0.5307, allocations: 1.506 MB / 0.6631 GB, free: 4.477 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.348e-05/0.5308, allocations: 6.938 kB / 0.6631 GB, free: 4.477 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.149e-05/0.5308, allocations: 2.75 kB / 0.6631 GB, free: 4.477 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001052/0.5318, allocations: 307.7 kB / 0.6634 GB, free: 4.285 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009237/0.5328, allocations: 245.9 kB / 0.6636 GB, free: 4.184 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009894/0.5427, allocations: 12.14 MB / 0.6755 GB, free: 6.938 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00121/0.5439, allocations: 51.97 kB / 0.6755 GB, free: 6.887 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001311/0.5441, allocations: 47.98 kB / 0.6756 GB, free: 6.84 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.0005536/0.5446, allocations: 266.2 kB / 0.6758 GB, free: 6.57 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002604/0.5449, allocations: 123.2 kB / 0.676 GB, free: 6.449 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003942/0.5489, allocations: 1.859 MB / 0.6778 GB, free: 4.539 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.24e-05/0.5489, allocations: 12 kB / 0.6778 GB, free: 4.527 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.607e-05/0.5489, allocations: 15.81 kB / 0.6778 GB, free: 4.512 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.492e-05/0.549, allocations: 3.984 kB / 0.6778 GB, free: 4.508 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005455/0.5544, allocations: 2.883 MB / 0.6806 GB, free: 1.535 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.947e-06/0.5544, allocations: 4 kB / 0.6806 GB, free: 1.531 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000909/0.5554, allocations: 211.7 kB / 0.6808 GB, free: 1.324 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001053/0.5564, allocations: 318.7 kB / 0.6811 GB, free: 0.9883 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000113/0.5566, allocations: 43.97 kB / 0.6812 GB, free: 0.9453 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009757/0.5663, allocations: 12.15 MB / 0.693 GB, free: 3.676 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.5664, allocations: 4.031 kB / 0.693 GB, free: 3.672 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004638/0.571, allocations: 2.18 MB / 0.6952 GB, free: 1.438 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000432/0.5715, allocations: 196.2 kB / 0.6954 GB, free: 1.227 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001869/0.5717, allocations: 31.92 kB / 0.6954 GB, free: 1.195 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008001/0.5725, allocations: 55.95 kB / 0.6954 GB, free: 1.141 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002344/0.5727, allocations: 104.9 kB / 0.6955 GB, free: 1.039 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.072e-05/0.5728, allocations: 47.97 kB / 0.6956 GB, free: 0.9922 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0007371/0.5735, allocations: 0.559 MB / 0.6961 GB, free: 432 kB / 0.5294 GB Notification: Performance of sort global known variables: time 1.91e-07/0.5736, allocations: 0 / 0.6961 GB, free: 432 kB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001582/0.5751, allocations: 439.6 kB / 0.6966 GB, free: 15.99 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.005175/0.5803, allocations: 3.039 MB / 0.6995 GB, free: 12.89 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003541/0.5839, allocations: 2.09 MB / 0.7016 GB, free: 10.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.5839, allocations: 0 / 0.7016 GB, free: 10.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002501/0.5864, allocations: 1.609 MB / 0.7031 GB, free: 8.988 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0019/0.5883, allocations: 350.2 kB / 0.7035 GB, free: 8.648 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01654/0.6049, allocations: 10.1 MB / 0.7133 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006387/0.6056, allocations: 1.096 MB / 0.7144 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0009143/0.6065, allocations: 247.4 kB / 0.7146 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006691/0.6072, allocations: 495.2 kB / 0.7151 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of SimCode: time 6.72e-07/0.6072, allocations: 4 kB / 0.7151 GB, free: 12.42 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07687/0.6841, allocations: 35.67 MB / 0.7499 GB, free: 9.062 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.9/15.58, allocations: 11.78 kB / 0.75 GB, free: 9.051 MB / 0.5919 GB (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 & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.csv --start-time 0 --stop-time 10 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 ThermofluidStream_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir.fmu > ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches