Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_ThermofluidStream_Boundaries_Tests_Reservoir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.Reservoir,fileNamePrefix="ThermofluidStream_dev_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.007164/0.007164, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001301/0.001301, allocations: 194.8 kB / 16.67 MB, free: 5.973 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.376/1.376, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6899/0.6899, allocations: 93.7 MB / 384.2 MB, free: 6.934 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002343/0.002343, allocations: 79.88 kB / 0.5199 GB, free: 6.344 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1245, allocations: 68.27 MB / 0.5866 GB, free: 2 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.Reservoir): time 0.2776/0.4022, allocations: 39.36 MB / 0.625 GB, free: 13.83 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01408/0.4163, allocations: 8.687 MB / 0.6335 GB, free: 7.621 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001546/0.4179, allocations: 41.09 kB / 0.6336 GB, free: 7.602 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001818/0.4197, allocations: 0.521 MB / 0.6341 GB, free: 7.293 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00471/0.4245, allocations: 1.316 MB / 0.6354 GB, free: 6.48 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003008/0.4275, allocations: 0.8957 MB / 0.6362 GB, free: 5.992 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.00314/0.4307, allocations: 1.993 MB / 0.6382 GB, free: 4.816 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005217/0.4312, allocations: 258.5 kB / 0.6384 GB, free: 4.684 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002636/0.4339, allocations: 1.125 MB / 0.6395 GB, free: 3.992 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001368/0.4353, allocations: 0.7203 MB / 0.6402 GB, free: 3.531 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003321/0.4356, allocations: 95.59 kB / 0.6403 GB, free: 3.531 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002894/0.4385, allocations: 0.8613 MB / 0.6412 GB, free: 3.152 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003898/0.4389, allocations: 253.3 kB / 0.6414 GB, free: 2.941 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001058/0.44, allocations: 0.631 MB / 0.642 GB, free: 2.52 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003774/0.4438, allocations: 1.833 MB / 0.6438 GB, free: 1.371 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.4438, allocations: 1.656 kB / 0.6438 GB, free: 1.371 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4438, allocations: 0 / 0.6438 GB, free: 1.371 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.81e-05/0.4439, allocations: 0 / 0.6438 GB, free: 1.371 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.003946/0.4478, allocations: 1.714 MB / 0.6455 GB, free: 72 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.4479, allocations: 9.25 kB / 0.6455 GB, free: 72 kB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002213/0.4481, allocations: 135.4 kB / 0.6456 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005142/0.4486, allocations: 160.3 kB / 0.6458 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001725/0.4504, allocations: 0.8372 MB / 0.6466 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000117/0.4505, allocations: 92.7 kB / 0.6467 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001504/0.4506, allocations: 89.28 kB / 0.6468 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00191/0.4526, allocations: 0.9956 MB / 0.6477 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.612e-05/0.4526, allocations: 5.344 kB / 0.6477 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.629e-05/0.4527, allocations: 37.31 kB / 0.6478 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.201e-05/0.4527, allocations: 20.62 kB / 0.6478 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001767/0.4545, allocations: 0.8875 MB / 0.6487 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006634/0.4612, allocations: 4.619 MB / 0.6532 GB, free: 9.84 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00215/0.4633, allocations: 1.013 MB / 0.6542 GB, free: 9.234 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008456/0.4642, allocations: 461.2 kB / 0.6546 GB, free: 9 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004131/0.4683, allocations: 2.993 MB / 0.6575 GB, free: 6.066 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.367e-05/0.4684, allocations: 48.75 kB / 0.6576 GB, free: 6.016 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=99): time 3.216e-06/0.4684, allocations: 0 / 0.6576 GB, free: 6.016 MB / 0.4981 GB Notification: Performance of matching and sorting (n=112): time 0.01041/0.4788, allocations: 4.272 MB / 0.6617 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.548e-05/0.479, allocations: 92.08 kB / 0.6618 GB, free: 3.062 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001119/0.4801, allocations: 0.7676 MB / 0.6626 GB, free: 2.613 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001547/0.4802, allocations: 50.86 kB / 0.6626 GB, free: 2.562 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004161/0.4807, allocations: 489.4 kB / 0.6631 GB, free: 2.133 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003751/0.4811, allocations: 408.9 kB / 0.6635 GB, free: 1.773 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003159/0.4814, allocations: 181.1 kB / 0.6637 GB, free: 1.664 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001696/0.4816, allocations: 350.6 kB / 0.664 GB, free: 1.324 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008322/0.4824, allocations: 379.6 kB / 0.6644 GB, free: 1.145 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009919/0.4834, allocations: 0.5449 MB / 0.6649 GB, free: 0.7656 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.002114/0.4855, allocations: 1.06 MB / 0.6659 GB, free: 68 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.578e-06/0.4855, allocations: 1.375 kB / 0.6659 GB, free: 68 kB / 0.4981 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.003493/0.489, allocations: 1.477 MB / 0.6674 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.201e-05/0.4891, allocations: 4 kB / 0.6674 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.086e-05/0.4891, allocations: 8 kB / 0.6674 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001223/0.4903, allocations: 347 kB / 0.6677 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008012/0.4912, allocations: 199.7 kB / 0.6679 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01144/0.5026, allocations: 12.6 MB / 0.6802 GB, free: 0.8008 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009926/0.5036, allocations: 48.09 kB / 0.6803 GB, free: 0.7539 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000124/0.5038, allocations: 39.98 kB / 0.6803 GB, free: 0.7148 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.0005355/0.5043, allocations: 258.2 kB / 0.6805 GB, free: 464 kB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003041/0.5046, allocations: 127.2 kB / 0.6807 GB, free: 336 kB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003836/0.5085, allocations: 1.599 MB / 0.6822 GB, free: 14.69 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.406e-05/0.5085, allocations: 12 kB / 0.6822 GB, free: 14.68 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/0.5085, allocations: 4 kB / 0.6822 GB, free: 14.67 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.907e-05/0.5086, allocations: 11.91 kB / 0.6822 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005327/0.5139, allocations: 2.726 MB / 0.6849 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-05/0.5139, allocations: 4 kB / 0.6849 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007552/0.5147, allocations: 179.7 kB / 0.6851 GB, free: 11.66 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001178/0.5159, allocations: 354.6 kB / 0.6854 GB, free: 11.29 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.096e-05/0.516, allocations: 32.05 kB / 0.6855 GB, free: 11.26 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01097/0.527, allocations: 12.61 MB / 0.6978 GB, free: 13.53 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.527, allocations: 0 / 0.6978 GB, free: 13.53 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004504/0.5315, allocations: 2.112 MB / 0.6998 GB, free: 11.37 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003417/0.5319, allocations: 176.3 kB / 0.7 GB, free: 11.18 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001723/0.5321, allocations: 31.94 kB / 0.7 GB, free: 11.15 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007302/0.5328, allocations: 47.95 kB / 0.7001 GB, free: 11.1 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002497/0.5331, allocations: 100.9 kB / 0.7002 GB, free: 11 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.774e-05/0.5332, allocations: 43.97 kB / 0.7002 GB, free: 10.96 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0007425/0.5339, allocations: 0.531 MB / 0.7007 GB, free: 10.42 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.11e-07/0.5339, allocations: 0 / 0.7007 GB, free: 10.42 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001586/0.5355, allocations: 471.3 kB / 0.7012 GB, free: 9.957 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.005261/0.5408, allocations: 3.008 MB / 0.7041 GB, free: 6.883 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003786/0.5446, allocations: 2.067 MB / 0.7061 GB, free: 4.711 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.202e-06/0.5446, allocations: 0 / 0.7061 GB, free: 4.711 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002666/0.5473, allocations: 1.606 MB / 0.7077 GB, free: 2.996 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001963/0.5493, allocations: 371.4 kB / 0.7081 GB, free: 2.641 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01856/0.5679, allocations: 9.793 MB / 0.7176 GB, free: 8.551 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008059/0.5687, allocations: 1.083 MB / 0.7187 GB, free: 7.438 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0009233/0.5697, allocations: 204.4 kB / 0.7189 GB, free: 7.234 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006921/0.5704, allocations: 463.3 kB / 0.7193 GB, free: 6.781 MB / 0.5606 GB Notification: Performance of SimCode: time 9.52e-07/0.5704, allocations: 0 / 0.7193 GB, free: 6.781 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09639/0.6668, allocations: 34.88 MB / 0.7534 GB, free: 4.199 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.27/14.93, allocations: 0 / 0.7534 GB, free: 4.199 MB / 0.5919 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.Reservoir.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.Reservoir_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Boundaries_Tests_Reservoir_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Boundaries_Tests_Reservoir.fmu > ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.Reservoir.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.Reservoir_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.Reservoir_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches