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.004656/0.004656, allocations: 98.55 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.001132/0.001132, allocations: 201.3 kB / 16.68 MB, free: 5.965 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: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6725/0.6725, allocations: 91.2 MB / 381.7 MB, free: 9.371 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001681/0.001681, allocations: 75.88 kB / 0.5164 GB, free: 9.523 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1279, allocations: 67.69 MB / 0.5825 GB, free: 5.75 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.Reservoir): time 0.322/0.4499, allocations: 39.34 MB / 0.6209 GB, free: 2.227 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01385/0.4639, allocations: 8.672 MB / 0.6294 GB, free: 12.02 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001721/0.4656, allocations: 37.59 kB / 0.6294 GB, free: 12.01 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001687/0.4674, allocations: 0.5126 MB / 0.6299 GB, free: 11.71 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00517/0.4726, allocations: 1.33 MB / 0.6312 GB, free: 10.88 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003548/0.4761, allocations: 0.902 MB / 0.6321 GB, free: 10.41 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.003963/0.4801, allocations: 1.974 MB / 0.634 GB, free: 9.449 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005183/0.4806, allocations: 258.3 kB / 0.6343 GB, free: 9.336 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003316/0.484, allocations: 1.142 MB / 0.6354 GB, free: 8.805 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00121/0.4852, allocations: 0.7201 MB / 0.6361 GB, free: 8.465 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001682/0.4854, allocations: 96.25 kB / 0.6362 GB, free: 8.465 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003078/0.4884, allocations: 0.8539 MB / 0.637 GB, free: 8.094 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002914/0.4887, allocations: 260.6 kB / 0.6373 GB, free: 7.875 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008186/0.4896, allocations: 0.6185 MB / 0.6379 GB, free: 7.465 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003972/0.4936, allocations: 1.831 MB / 0.6396 GB, free: 6.316 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.972e-06/0.4936, allocations: 4 kB / 0.6396 GB, free: 6.312 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4936, allocations: 1.156 kB / 0.6397 GB, free: 6.312 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.215e-05/0.4936, allocations: 0 / 0.6397 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.003942/0.4976, allocations: 1.696 MB / 0.6413 GB, free: 5.027 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.73e-05/0.4976, allocations: 9.656 kB / 0.6413 GB, free: 5.027 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000278/0.4979, allocations: 135.8 kB / 0.6414 GB, free: 4.914 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004678/0.4984, allocations: 150.6 kB / 0.6416 GB, free: 4.84 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001666/0.5001, allocations: 0.8357 MB / 0.6424 GB, free: 4.172 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001142/0.5002, allocations: 94.53 kB / 0.6425 GB, free: 4.105 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000145/0.5003, allocations: 90.05 kB / 0.6426 GB, free: 4.074 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001863/0.5022, allocations: 0.9911 MB / 0.6435 GB, free: 3.449 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.628e-05/0.5023, allocations: 5.094 kB / 0.6436 GB, free: 3.445 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.181e-05/0.5024, allocations: 36.78 kB / 0.6436 GB, free: 3.418 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.539e-05/0.5024, allocations: 21.19 kB / 0.6436 GB, free: 3.418 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00186/0.5043, allocations: 0.8874 MB / 0.6445 GB, free: 2.984 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006746/0.511, allocations: 4.612 MB / 0.649 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002144/0.5132, allocations: 1.002 MB / 0.65 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008147/0.514, allocations: 477.3 kB / 0.6504 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003861/0.5179, allocations: 2.996 MB / 0.6533 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.41e-05/0.5179, allocations: 44.38 kB / 0.6534 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=99): time 2.544e-06/0.5179, allocations: 0 / 0.6534 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of matching and sorting (n=112): time 0.009943/0.5279, allocations: 4.285 MB / 0.6576 GB, free: 8.109 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.795e-05/0.528, allocations: 96.06 kB / 0.6577 GB, free: 8.008 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009916/0.529, allocations: 0.7536 MB / 0.6584 GB, free: 7.582 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 8.89e-05/0.5291, allocations: 47.64 kB / 0.6584 GB, free: 7.535 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003503/0.5294, allocations: 477 kB / 0.6589 GB, free: 7.117 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003009/0.5297, allocations: 412.4 kB / 0.6593 GB, free: 6.754 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002973/0.53, allocations: 188.8 kB / 0.6595 GB, free: 6.641 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001514/0.5302, allocations: 343.7 kB / 0.6598 GB, free: 6.309 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008337/0.531, allocations: 386.1 kB / 0.6602 GB, free: 6.117 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009303/0.532, allocations: 0.5441 MB / 0.6607 GB, free: 5.742 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.001874/0.5339, allocations: 1.065 MB / 0.6617 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.5339, allocations: 1.406 kB / 0.6617 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.003255/0.5371, allocations: 1.461 MB / 0.6632 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.5372, allocations: 6.906 kB / 0.6632 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.823e-05/0.5372, allocations: 6.469 kB / 0.6632 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001191/0.5384, allocations: 341.9 kB / 0.6635 GB, free: 4.02 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007769/0.5392, allocations: 197.6 kB / 0.6637 GB, free: 3.969 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009725/0.5489, allocations: 12.61 MB / 0.676 GB, free: 6.469 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00104/0.55, allocations: 39.97 kB / 0.676 GB, free: 6.43 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001116/0.5501, allocations: 47.98 kB / 0.6761 GB, free: 6.383 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.0005004/0.5506, allocations: 254.2 kB / 0.6763 GB, free: 6.125 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002377/0.5509, allocations: 123.2 kB / 0.6764 GB, free: 6.004 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003537/0.5544, allocations: 1.603 MB / 0.678 GB, free: 4.352 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.127e-05/0.5545, allocations: 12.06 kB / 0.678 GB, free: 4.34 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.5545, allocations: 8 kB / 0.678 GB, free: 4.332 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.218e-05/0.5545, allocations: 7.969 kB / 0.678 GB, free: 4.324 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004919/0.5594, allocations: 2.719 MB / 0.6807 GB, free: 1.52 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.28e-05/0.5594, allocations: 4.062 kB / 0.6807 GB, free: 1.516 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007768/0.5602, allocations: 183.7 kB / 0.6809 GB, free: 1.336 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001124/0.5614, allocations: 362.4 kB / 0.6812 GB, free: 0.957 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.684e-05/0.5615, allocations: 35.97 kB / 0.6813 GB, free: 0.9219 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009926/0.5714, allocations: 12.59 MB / 0.6935 GB, free: 3.211 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.5714, allocations: 0 / 0.6935 GB, free: 3.211 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004566/0.576, allocations: 2.103 MB / 0.6956 GB, free: 1.062 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004493/0.5765, allocations: 184.5 kB / 0.6958 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001799/0.5767, allocations: 24 kB / 0.6958 GB, free: 0.8398 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007915/0.5775, allocations: 63.89 kB / 0.6959 GB, free: 0.7773 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002557/0.5777, allocations: 92.81 kB / 0.696 GB, free: 0.6875 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.223e-05/0.5778, allocations: 43.97 kB / 0.696 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0007194/0.5785, allocations: 0.5306 MB / 0.6965 GB, free: 104 kB / 0.5294 GB Notification: Performance of sort global known variables: time 1.8e-07/0.5786, allocations: 0 / 0.6965 GB, free: 104 kB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001703/0.5803, allocations: 471.3 kB / 0.697 GB, free: 15.64 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.005211/0.5855, allocations: 3.006 MB / 0.6999 GB, free: 12.57 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003645/0.5891, allocations: 2.075 MB / 0.7019 GB, free: 10.38 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.5892, allocations: 0 / 0.7019 GB, free: 10.38 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002265/0.5914, allocations: 1.602 MB / 0.7035 GB, free: 8.676 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001732/0.5932, allocations: 346.9 kB / 0.7038 GB, free: 8.344 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01536/0.6086, allocations: 9.772 MB / 0.7134 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006505/0.6092, allocations: 1.083 MB / 0.7144 GB, free: 13.17 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0007299/0.61, allocations: 196.5 kB / 0.7146 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005887/0.6106, allocations: 455.3 kB / 0.715 GB, free: 12.53 MB / 0.5606 GB Notification: Performance of SimCode: time 5.71e-07/0.6106, allocations: 0 / 0.715 GB, free: 12.53 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1186/0.7291, allocations: 34.76 MB / 0.749 GB, free: 10.06 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.65/15.38, allocations: 10.55 kB / 0.749 GB, free: 10.05 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