Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.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.Boundaries.Tests.Reservoir,fileNamePrefix="ThermofluidStream_ThermofluidStream_Boundaries_Tests_Reservoir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.Reservoir,fileNamePrefix="ThermofluidStream_ThermofluidStream_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.007983/0.007983, allocations: 94.98 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.001923/0.001923, allocations: 200.3 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.395/1.395, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6911/0.6911, allocations: 91.19 MB / 381.7 MB, free: 9.324 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002265/0.002265, allocations: 79.88 kB / 0.5164 GB, free: 9.504 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1354, allocations: 67.69 MB / 0.5825 GB, free: 5.73 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.Reservoir): time 0.3035/0.439, allocations: 39.35 MB / 0.6209 GB, free: 2.207 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01279/0.4518, allocations: 8.674 MB / 0.6294 GB, free: 12.01 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001553/0.4534, allocations: 36.91 kB / 0.6294 GB, free: 11.99 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001577/0.455, allocations: 0.5164 MB / 0.6299 GB, free: 11.69 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004271/0.4593, allocations: 1.304 MB / 0.6312 GB, free: 10.88 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002914/0.4622, allocations: 0.8925 MB / 0.6321 GB, free: 10.42 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.00324/0.4655, allocations: 1.969 MB / 0.634 GB, free: 9.453 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004717/0.466, allocations: 259.4 kB / 0.6342 GB, free: 9.34 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002645/0.4686, allocations: 1.123 MB / 0.6353 GB, free: 8.816 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001032/0.4697, allocations: 0.7247 MB / 0.636 GB, free: 8.465 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001681/0.4699, allocations: 96.25 kB / 0.6361 GB, free: 8.465 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002763/0.4726, allocations: 0.8533 MB / 0.637 GB, free: 8.094 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003067/0.4729, allocations: 256.8 kB / 0.6372 GB, free: 7.879 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007221/0.4737, allocations: 0.6269 MB / 0.6378 GB, free: 7.461 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003503/0.4772, allocations: 1.83 MB / 0.6396 GB, free: 6.312 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.4772, allocations: 1.156 kB / 0.6396 GB, free: 6.312 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4772, allocations: 0 / 0.6396 GB, free: 6.312 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.727e-05/0.4772, allocations: 0 / 0.6396 GB, free: 6.312 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: 211 * Number of variables: 211 Notification: Performance of Generate backend data structure: time 0.003391/0.4806, allocations: 1.7 MB / 0.6413 GB, free: 5.023 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.4807, allocations: 9.094 kB / 0.6413 GB, free: 5.023 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000165/0.4809, allocations: 132.1 kB / 0.6414 GB, free: 4.914 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004036/0.4813, allocations: 150.7 kB / 0.6415 GB, free: 4.84 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001548/0.4828, allocations: 0.8305 MB / 0.6423 GB, free: 4.176 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001074/0.4829, allocations: 97.06 kB / 0.6424 GB, free: 4.109 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000143/0.4831, allocations: 97.2 kB / 0.6425 GB, free: 4.07 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001732/0.4848, allocations: 0.9905 MB / 0.6435 GB, free: 3.445 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.609e-05/0.4849, allocations: 5.125 kB / 0.6435 GB, free: 3.441 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.446e-05/0.485, allocations: 37.53 kB / 0.6435 GB, free: 3.414 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.142e-05/0.485, allocations: 21.16 kB / 0.6436 GB, free: 3.414 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001687/0.4867, allocations: 0.8839 MB / 0.6444 GB, free: 2.984 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006158/0.4929, allocations: 4.603 MB / 0.6489 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002057/0.4949, allocations: 1.006 MB / 0.6499 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008523/0.4958, allocations: 478.8 kB / 0.6504 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004048/0.4999, allocations: 2.988 MB / 0.6533 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.469e-05/0.4999, allocations: 53.44 kB / 0.6533 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=99): time 2.344e-06/0.4999, allocations: 4 kB / 0.6533 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of matching and sorting (n=112): time 0.009896/0.5098, allocations: 4.278 MB / 0.6575 GB, free: 8.113 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.938e-05/0.5099, allocations: 96.36 kB / 0.6576 GB, free: 8.012 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001007/0.511, allocations: 0.7579 MB / 0.6583 GB, free: 7.582 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 7.782e-05/0.511, allocations: 43.55 kB / 0.6584 GB, free: 7.539 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003906/0.5114, allocations: 476.6 kB / 0.6588 GB, free: 7.121 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003352/0.5118, allocations: 416.6 kB / 0.6592 GB, free: 6.754 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003281/0.5121, allocations: 184.1 kB / 0.6594 GB, free: 6.645 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001567/0.5123, allocations: 343.2 kB / 0.6597 GB, free: 6.312 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008129/0.5131, allocations: 388.1 kB / 0.6601 GB, free: 6.121 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000975/0.5141, allocations: 0.5401 MB / 0.6606 GB, free: 5.75 MB / 0.4981 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: conductionElement.deltaE_system = $START.conductionElement.deltaE_system (0.0 = $START.conductionElement.deltaE_system) Notification: Performance of analyzeInitialSystem (initialization): time 0.00189/0.516, allocations: 1.063 MB / 0.6617 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.516, allocations: 1.25 kB / 0.6617 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.003173/0.5192, allocations: 1.459 MB / 0.6631 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.305e-05/0.5192, allocations: 6.531 kB / 0.6631 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.989e-05/0.5192, allocations: 9.406 kB / 0.6631 GB, free: 4.23 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00117/0.5204, allocations: 348.3 kB / 0.6634 GB, free: 4.02 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007487/0.5212, allocations: 200.4 kB / 0.6636 GB, free: 3.969 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01078/0.532, allocations: 12.6 MB / 0.6759 GB, free: 6.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009626/0.533, allocations: 43.97 kB / 0.676 GB, free: 6.457 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001118/0.5331, allocations: 43.98 kB / 0.676 GB, free: 6.414 MB / 0.5137 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: conductionElement.deltaE_system = $START.conductionElement.deltaE_system. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (110): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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%), (2,5,100.0%), (1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,6,100.0%), (1,4,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005185/0.5336, allocations: 255.1 kB / 0.6763 GB, free: 6.156 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002431/0.5339, allocations: 123.2 kB / 0.6764 GB, free: 6.035 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003627/0.5375, allocations: 1.601 MB / 0.678 GB, free: 4.383 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-05/0.5375, allocations: 12 kB / 0.678 GB, free: 4.371 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/0.5375, allocations: 4 kB / 0.678 GB, free: 4.367 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.524e-05/0.5376, allocations: 7.969 kB / 0.678 GB, free: 4.359 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005074/0.5426, allocations: 2.727 MB / 0.6806 GB, free: 1.547 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.075e-05/0.5427, allocations: 4 kB / 0.6806 GB, free: 1.543 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007513/0.5434, allocations: 175.9 kB / 0.6808 GB, free: 1.371 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001143/0.5446, allocations: 358.5 kB / 0.6812 GB, free: 0.9961 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.921e-05/0.5447, allocations: 39.97 kB / 0.6812 GB, free: 0.957 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01092/0.5556, allocations: 12.6 MB / 0.6935 GB, free: 3.242 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.708e-06/0.5556, allocations: 4.031 kB / 0.6935 GB, free: 3.238 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004407/0.56, allocations: 2.103 MB / 0.6955 GB, free: 1.09 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003662/0.5604, allocations: 184.3 kB / 0.6957 GB, free: 0.8906 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001485/0.5606, allocations: 27.98 kB / 0.6958 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007243/0.5613, allocations: 59.89 kB / 0.6958 GB, free: 0.8047 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002225/0.5615, allocations: 88.81 kB / 0.6959 GB, free: 0.7188 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.471e-05/0.5617, allocations: 47.97 kB / 0.6959 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0007266/0.5624, allocations: 0.5306 MB / 0.6965 GB, free: 132 kB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5624, allocations: 0 / 0.6965 GB, free: 132 kB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00163/0.564, allocations: 471.5 kB / 0.6969 GB, free: 15.66 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (reservoir1.M,reservoir1.U_med,pump.m_flow,conductionElement.h,reservoir.M,reservoir.U_med,flowResistance1.inlet.m_flow,flowResistance2.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 (91): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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,6,100.0%), (1,4,100.0%), (1,1,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.005153/0.5692, allocations: 3.01 MB / 0.6998 GB, free: 12.59 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003526/0.5727, allocations: 2.067 MB / 0.7019 GB, free: 10.41 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.515e-06/0.5728, allocations: 4 kB / 0.7019 GB, free: 10.41 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002416/0.5752, allocations: 1.598 MB / 0.7034 GB, free: 8.703 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00171/0.5769, allocations: 362.3 kB / 0.7038 GB, free: 8.359 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01639/0.5933, allocations: 9.767 MB / 0.7133 GB, free: 14.31 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007554/0.5941, allocations: 1.075 MB / 0.7144 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0007858/0.5949, allocations: 208.4 kB / 0.7146 GB, free: 13 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006164/0.5955, allocations: 451.3 kB / 0.715 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of SimCode: time 5.51e-07/0.5955, allocations: 3.938 kB / 0.715 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08864/0.6842, allocations: 34.75 MB / 0.7489 GB, free: 10.1 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.26/14.95, allocations: 2.812 kB / 0.7489 GB, free: 10.1 MB / 0.5919 GB (rm -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.sim & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.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_Boundaries_Tests_Reservoir.fmu > ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.Reservoir_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches