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/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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.001332/0.001332, allocations: 108.6 kB / 15.73 MB, free: 72 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001395/0.001395, allocations: 186.8 kB / 16.66 MB, free: 6.602 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.382/1.382, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.6644/0.6644, allocations: 89.48 MB / 380 MB, free: 10.93 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002194/0.002194, allocations: 79.86 kB / 0.5139 GB, free: 11.75 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1305/0.1327, allocations: 67.3 MB / 0.5796 GB, free: 8.379 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.Reservoir): time 0.3127/0.4454, allocations: 39.22 MB / 0.6179 GB, free: 5.469 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01266/0.4582, allocations: 8.627 MB / 0.6264 GB, free: 15.29 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001265/0.4595, allocations: 13.56 kB / 0.6264 GB, free: 15.29 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001595/0.4611, allocations: 0.5154 MB / 0.6269 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004443/0.4656, allocations: 1.263 MB / 0.6281 GB, free: 14.21 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002949/0.4685, allocations: 0.8937 MB / 0.629 GB, free: 13.75 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.003202/0.4718, allocations: 1.897 MB / 0.6308 GB, free: 12.82 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004806/0.4723, allocations: 241.1 kB / 0.6311 GB, free: 12.71 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002693/0.475, allocations: 1.087 MB / 0.6321 GB, free: 12.21 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001048/0.476, allocations: 0.7132 MB / 0.6328 GB, free: 11.88 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001743/0.4762, allocations: 97.5 kB / 0.6329 GB, free: 11.88 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002696/0.4789, allocations: 0.8535 MB / 0.6338 GB, free: 11.63 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002869/0.4792, allocations: 254.4 kB / 0.634 GB, free: 11.46 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007129/0.4799, allocations: 0.601 MB / 0.6346 GB, free: 11.11 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003369/0.4833, allocations: 1.735 MB / 0.6363 GB, free: 10.14 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.4833, allocations: 1.531 kB / 0.6363 GB, free: 10.14 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4833, allocations: 0 / 0.6363 GB, free: 10.14 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.979e-05/0.4834, allocations: 0 / 0.6363 GB, free: 10.14 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.003392/0.4868, allocations: 1.592 MB / 0.6378 GB, free: 8.934 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.847e-05/0.4868, allocations: 9.625 kB / 0.6379 GB, free: 8.934 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001873/0.487, allocations: 134.9 kB / 0.638 GB, free: 8.82 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004108/0.4874, allocations: 137.7 kB / 0.6381 GB, free: 8.754 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001148/0.4886, allocations: 0.648 MB / 0.6387 GB, free: 8.203 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001152/0.4887, allocations: 94.14 kB / 0.6388 GB, free: 8.141 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001494/0.4889, allocations: 96.88 kB / 0.6389 GB, free: 8.102 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001763/0.4906, allocations: 0.9997 MB / 0.6399 GB, free: 7.469 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.292e-05/0.4907, allocations: 1.219 kB / 0.6399 GB, free: 7.469 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.819e-05/0.4908, allocations: 37.84 kB / 0.6399 GB, free: 7.441 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.114e-05/0.4908, allocations: 20.53 kB / 0.64 GB, free: 7.441 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001642/0.4925, allocations: 0.889 MB / 0.6408 GB, free: 7.008 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006355/0.4988, allocations: 4.581 MB / 0.6453 GB, free: 2.844 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002133/0.501, allocations: 1.007 MB / 0.6463 GB, free: 2.238 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008071/0.5018, allocations: 470.4 kB / 0.6467 GB, free: 1.996 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004181/0.506, allocations: 3.001 MB / 0.6497 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.899e-05/0.5061, allocations: 47.09 kB / 0.6497 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=99): time 2.965e-06/0.5061, allocations: 0 / 0.6497 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of matching and sorting (n=112): time 0.01023/0.5163, allocations: 4.227 MB / 0.6538 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.176e-05/0.5164, allocations: 93.73 kB / 0.6539 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009764/0.5174, allocations: 0.6743 MB / 0.6546 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 8.875e-05/0.5175, allocations: 47.23 kB / 0.6546 GB, free: 11.65 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003621/0.5179, allocations: 426.3 kB / 0.655 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000351/0.5182, allocations: 404.2 kB / 0.6554 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003269/0.5185, allocations: 191.1 kB / 0.6556 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001756/0.5187, allocations: 346.4 kB / 0.6559 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008549/0.5196, allocations: 387.8 kB / 0.6563 GB, free: 10.28 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001026/0.5206, allocations: 0.5445 MB / 0.6568 GB, free: 9.902 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.002006/0.5226, allocations: 1.066 MB / 0.6579 GB, free: 9.195 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.802e-06/0.5227, allocations: 1.406 kB / 0.6579 GB, free: 9.195 MB / 0.4981 GB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003127/0.5258, allocations: 1.453 MB / 0.6593 GB, free: 8.395 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.5258, allocations: 7.688 kB / 0.6593 GB, free: 8.395 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.906e-05/0.5258, allocations: 5.375 kB / 0.6593 GB, free: 8.395 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00117/0.527, allocations: 355.4 kB / 0.6597 GB, free: 8.176 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007402/0.5278, allocations: 208 kB / 0.6598 GB, free: 8.117 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01149/0.5393, allocations: 12.59 MB / 0.6721 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001043/0.5404, allocations: 39.92 kB / 0.6722 GB, free: 11.5 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001254/0.5405, allocations: 47.98 kB / 0.6722 GB, free: 11.45 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 (111): * Single equations (assignments): 102 * 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.0005306/0.541, allocations: 254.3 kB / 0.6725 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002478/0.5413, allocations: 107.3 kB / 0.6726 GB, free: 11.09 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003679/0.545, allocations: 1.59 MB / 0.6741 GB, free: 9.461 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.386e-05/0.545, allocations: 12.14 kB / 0.6741 GB, free: 9.449 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.22e-05/0.545, allocations: 8.984 kB / 0.6741 GB, free: 9.441 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.564e-05/0.545, allocations: 3.984 kB / 0.6742 GB, free: 9.438 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005237/0.5503, allocations: 2.691 MB / 0.6768 GB, free: 6.648 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.551e-05/0.5503, allocations: 4 kB / 0.6768 GB, free: 6.645 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007456/0.5511, allocations: 183.8 kB / 0.677 GB, free: 6.465 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001162/0.5523, allocations: 351.2 kB / 0.6773 GB, free: 6.098 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.063e-05/0.5524, allocations: 43.97 kB / 0.6773 GB, free: 6.055 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01144/0.5638, allocations: 12.61 MB / 0.6897 GB, free: 8.324 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.5638, allocations: 0 / 0.6897 GB, free: 8.324 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00455/0.5684, allocations: 2.092 MB / 0.6917 GB, free: 6.188 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003858/0.5688, allocations: 172.4 kB / 0.6919 GB, free: 6 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001494/0.569, allocations: 27.94 kB / 0.6919 GB, free: 5.973 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007198/0.5697, allocations: 55.95 kB / 0.6919 GB, free: 5.918 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000264/0.57, allocations: 88.88 kB / 0.692 GB, free: 5.832 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001005/0.5701, allocations: 43.97 kB / 0.6921 GB, free: 5.789 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0006948/0.5708, allocations: 491 kB / 0.6925 GB, free: 5.316 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5708, allocations: 0 / 0.6925 GB, free: 5.316 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001818/0.5726, allocations: 471.3 kB / 0.693 GB, free: 4.855 MB / 0.5294 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.005441/0.5781, allocations: 2.991 MB / 0.6959 GB, free: 1.801 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.003807/0.5819, allocations: 2.075 MB / 0.6979 GB, free: 15.61 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/0.5819, allocations: 0 / 0.6979 GB, free: 15.61 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002556/0.5845, allocations: 1.602 MB / 0.6995 GB, free: 13.91 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001842/0.5863, allocations: 358.6 kB / 0.6998 GB, free: 13.55 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01677/0.6031, allocations: 9.364 MB / 0.709 GB, free: 3.906 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008008/0.604, allocations: 1.048 MB / 0.71 GB, free: 2.828 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0008242/0.6048, allocations: 195.5 kB / 0.7102 GB, free: 2.633 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000591/0.6054, allocations: 407.3 kB / 0.7106 GB, free: 2.238 MB / 0.545 GB Notification: Performance of SimCode: time 7.92e-07/0.6054, allocations: 4 kB / 0.7106 GB, free: 2.234 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09493/0.7004, allocations: 33.49 MB / 0.7433 GB, free: 1.031 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.98/14.68, allocations: 4.062 kB / 0.7433 GB, free: 1.027 MB / 0.5762 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Boundaries_Tests_Reservoir_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Boundaries_Tests_Reservoir.fmu > ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.pipe 2>&1) diffSimulationResults("ThermofluidStream_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_ThermofluidStream.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches