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.00942/0.00942, allocations: 97.62 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.001796/0.001797, allocations: 202.5 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.477/1.477, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7687/0.7687, allocations: 93.7 MB / 384.3 MB, free: 6.898 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002362/0.002362, allocations: 79.86 kB / 0.52 GB, free: 6.301 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1412/0.1436, allocations: 68.26 MB / 0.5866 GB, free: 1.961 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.Reservoir): time 0.3495/0.4931, allocations: 39.37 MB / 0.6251 GB, free: 13.79 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0145/0.5076, allocations: 8.683 MB / 0.6335 GB, free: 7.578 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001917/0.5096, allocations: 35.09 kB / 0.6336 GB, free: 7.566 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001985/0.5116, allocations: 0.5273 MB / 0.6341 GB, free: 7.25 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005305/0.517, allocations: 1.312 MB / 0.6354 GB, free: 6.441 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003468/0.5205, allocations: 0.8967 MB / 0.6362 GB, free: 5.973 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.004279/0.5248, allocations: 1.988 MB / 0.6382 GB, free: 4.809 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00063/0.5255, allocations: 256.9 kB / 0.6384 GB, free: 4.676 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003461/0.5289, allocations: 1.13 MB / 0.6395 GB, free: 3.98 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001844/0.5308, allocations: 0.7239 MB / 0.6402 GB, free: 3.516 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000289/0.5311, allocations: 100.1 kB / 0.6403 GB, free: 3.512 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003343/0.5345, allocations: 0.849 MB / 0.6412 GB, free: 3.145 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003694/0.5349, allocations: 265.7 kB / 0.6414 GB, free: 2.922 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001167/0.536, allocations: 0.6233 MB / 0.642 GB, free: 2.508 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005425/0.5415, allocations: 1.833 MB / 0.6438 GB, free: 1.359 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.788e-06/0.5415, allocations: 0 / 0.6438 GB, free: 1.359 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.103e-06/0.5415, allocations: 3.938 kB / 0.6438 GB, free: 1.355 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.922e-05/0.5416, allocations: 3.5 kB / 0.6438 GB, free: 1.355 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.00421/0.5458, allocations: 1.708 MB / 0.6455 GB, free: 60 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.304e-05/0.5459, allocations: 9.531 kB / 0.6455 GB, free: 60 kB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002128/0.5461, allocations: 132.5 kB / 0.6456 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005359/0.5466, allocations: 150.2 kB / 0.6458 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001738/0.5484, allocations: 0.8457 MB / 0.6466 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001174/0.5485, allocations: 96.44 kB / 0.6467 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001467/0.5487, allocations: 84.97 kB / 0.6468 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001865/0.5505, allocations: 0.9955 MB / 0.6477 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.33e-05/0.5506, allocations: 1.375 kB / 0.6477 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.437e-05/0.5507, allocations: 40.56 kB / 0.6478 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.363e-05/0.5507, allocations: 20.62 kB / 0.6478 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001831/0.5525, allocations: 0.8912 MB / 0.6487 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00729/0.5598, allocations: 4.608 MB / 0.6532 GB, free: 9.84 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002367/0.5622, allocations: 1.024 MB / 0.6542 GB, free: 9.223 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008725/0.5632, allocations: 459.5 kB / 0.6546 GB, free: 8.992 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00453/0.5677, allocations: 2.988 MB / 0.6575 GB, free: 6.062 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.331e-05/0.5678, allocations: 48.16 kB / 0.6576 GB, free: 6.012 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=99): time 3.557e-06/0.5678, allocations: 0 / 0.6576 GB, free: 6.012 MB / 0.4981 GB Notification: Performance of matching and sorting (n=112): time 0.01089/0.5787, allocations: 4.287 MB / 0.6618 GB, free: 3.145 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.084e-05/0.5788, allocations: 88.95 kB / 0.6618 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001141/0.5799, allocations: 0.7661 MB / 0.6626 GB, free: 2.602 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.000165/0.5801, allocations: 47.3 kB / 0.6626 GB, free: 2.555 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000406/0.5805, allocations: 485.6 kB / 0.6631 GB, free: 2.129 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003767/0.5809, allocations: 416.1 kB / 0.6635 GB, free: 1.762 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003187/0.5812, allocations: 185.1 kB / 0.6637 GB, free: 1.648 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001618/0.5814, allocations: 343.2 kB / 0.664 GB, free: 1.316 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00086/0.5823, allocations: 382.8 kB / 0.6644 GB, free: 1.133 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001024/0.5833, allocations: 0.5395 MB / 0.6649 GB, free: 0.7578 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.002141/0.5855, allocations: 1.068 MB / 0.6659 GB, free: 52 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.244e-06/0.5855, allocations: 1.312 kB / 0.6659 GB, free: 52 kB / 0.4981 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.003616/0.5891, allocations: 1.465 MB / 0.6674 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.037e-05/0.5892, allocations: 14.02 kB / 0.6674 GB, free: 15.06 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.381e-05/0.5892, allocations: 4 kB / 0.6674 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001293/0.5905, allocations: 347.5 kB / 0.6677 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008395/0.5913, allocations: 203.7 kB / 0.6679 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0117/0.603, allocations: 12.6 MB / 0.6802 GB, free: 0.7891 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00114/0.6042, allocations: 39.97 kB / 0.6803 GB, free: 0.75 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001452/0.6044, allocations: 47.98 kB / 0.6803 GB, free: 0.7031 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.0006215/0.605, allocations: 255.1 kB / 0.6805 GB, free: 456 kB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003269/0.6054, allocations: 123.2 kB / 0.6807 GB, free: 332 kB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003852/0.6092, allocations: 1.599 MB / 0.6822 GB, free: 14.68 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.585e-05/0.6093, allocations: 12 kB / 0.6822 GB, free: 14.67 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.36e-05/0.6093, allocations: 4 kB / 0.6822 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.048e-05/0.6093, allocations: 11.91 kB / 0.6822 GB, free: 14.65 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006006/0.6153, allocations: 2.729 MB / 0.6849 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.779e-05/0.6154, allocations: 15.98 kB / 0.6849 GB, free: 11.82 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008009/0.6162, allocations: 175.8 kB / 0.6851 GB, free: 11.65 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00131/0.6175, allocations: 350.6 kB / 0.6854 GB, free: 11.28 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001235/0.6177, allocations: 39.97 kB / 0.6855 GB, free: 11.24 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0121/0.6298, allocations: 12.61 MB / 0.6978 GB, free: 13.52 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.6298, allocations: 4.031 kB / 0.6978 GB, free: 13.51 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005307/0.6352, allocations: 2.1 MB / 0.6998 GB, free: 11.36 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005469/0.6358, allocations: 188.3 kB / 0.7 GB, free: 11.16 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003834/0.6362, allocations: 31.94 kB / 0.7 GB, free: 11.13 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001003/0.6372, allocations: 47.95 kB / 0.7001 GB, free: 11.08 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000302/0.6375, allocations: 92.88 kB / 0.7002 GB, free: 10.99 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00015/0.6377, allocations: 43.97 kB / 0.7002 GB, free: 10.95 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0009608/0.6386, allocations: 0.5349 MB / 0.7007 GB, free: 10.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 2e-07/0.6386, allocations: 4 kB / 0.7007 GB, free: 10.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.002271/0.6409, allocations: 475.3 kB / 0.7012 GB, free: 9.934 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.006108/0.647, allocations: 3 MB / 0.7041 GB, free: 6.867 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.004142/0.6512, allocations: 2.067 MB / 0.7062 GB, free: 4.695 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.133e-05/0.6513, allocations: 4 kB / 0.7062 GB, free: 4.691 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002947/0.6542, allocations: 1.602 MB / 0.7077 GB, free: 2.98 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002771/0.657, allocations: 362.1 kB / 0.7081 GB, free: 2.633 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02119/0.6782, allocations: 9.811 MB / 0.7176 GB, free: 8.531 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009972/0.6793, allocations: 1.079 MB / 0.7187 GB, free: 7.422 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00106/0.6804, allocations: 204.5 kB / 0.7189 GB, free: 7.219 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007911/0.6812, allocations: 463.3 kB / 0.7193 GB, free: 6.766 MB / 0.5606 GB Notification: Performance of SimCode: time 5.11e-07/0.6812, allocations: 0 / 0.7193 GB, free: 6.766 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1014/0.7826, allocations: 34.87 MB / 0.7534 GB, free: 4.188 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.89/15.67, allocations: 2.969 kB / 0.7534 GB, free: 4.188 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 & python3 -m fmpy simulate --output-file ThermofluidStream_dev_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_dev_ThermofluidStream_Boundaries_Tests_Reservoir.fmu > ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.Reservoir.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches