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.0046/0.004605, allocations: 105 kB / 15.74 MB, free: 5.984 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.0011/0.0011, allocations: 197.5 kB / 16.67 MB, free: 5.91 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.289/1.289, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7144/0.7144, allocations: 91.19 MB / 381.7 MB, free: 7.512 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001698/0.001698, allocations: 75.89 kB / 0.5164 GB, free: 4.602 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.316/0.3177, allocations: 67.69 MB / 0.5825 GB, free: 13.59 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.Reservoir): time 0.03458/0.3523, allocations: 39.36 MB / 0.6209 GB, free: 6.602 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01059/0.3629, allocations: 8.664 MB / 0.6294 GB, free: 13.91 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001058/0.364, allocations: 35.75 kB / 0.6294 GB, free: 13.88 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001364/0.3654, allocations: 0.5238 MB / 0.6299 GB, free: 13.35 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003298/0.3688, allocations: 1.316 MB / 0.6312 GB, free: 12.02 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002224/0.371, allocations: 0.8826 MB / 0.6321 GB, free: 11.14 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002228/0.3733, allocations: 1.964 MB / 0.634 GB, free: 9.168 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003897/0.3737, allocations: 268.2 kB / 0.6342 GB, free: 8.895 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001969/0.3756, allocations: 1.128 MB / 0.6353 GB, free: 7.762 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007814/0.3764, allocations: 0.7311 MB / 0.636 GB, free: 7.027 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001338/0.3766, allocations: 96 kB / 0.6361 GB, free: 6.934 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002033/0.3786, allocations: 0.8543 MB / 0.637 GB, free: 6.078 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002506/0.3789, allocations: 258.9 kB / 0.6372 GB, free: 5.824 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005839/0.3795, allocations: 0.6256 MB / 0.6378 GB, free: 5.195 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002493/0.382, allocations: 1.819 MB / 0.6396 GB, free: 3.371 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.382, allocations: 0 / 0.6396 GB, free: 3.371 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.382, allocations: 0 / 0.6396 GB, free: 3.371 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.418e-05/0.382, allocations: 0 / 0.6396 GB, free: 3.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.003027/0.3851, allocations: 1.651 MB / 0.6412 GB, free: 1.668 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.3851, allocations: 8.031 kB / 0.6412 GB, free: 1.66 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001769/0.3853, allocations: 143.4 kB / 0.6414 GB, free: 1.512 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003701/0.3857, allocations: 143.2 kB / 0.6415 GB, free: 1.371 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001272/0.3869, allocations: 0.8197 MB / 0.6423 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.295e-05/0.3871, allocations: 99.69 kB / 0.6424 GB, free: 412 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001228/0.3872, allocations: 87.91 kB / 0.6425 GB, free: 324 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001602/0.3888, allocations: 0.9956 MB / 0.6435 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/0.3888, allocations: 0 / 0.6435 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.651e-05/0.3889, allocations: 36 kB / 0.6435 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.805e-05/0.3889, allocations: 23.94 kB / 0.6435 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001587/0.3905, allocations: 0.89 MB / 0.6444 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00559/0.3961, allocations: 4.604 MB / 0.6489 GB, free: 9.336 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001962/0.3981, allocations: 1.009 MB / 0.6499 GB, free: 8.293 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007313/0.3989, allocations: 465 kB / 0.6503 GB, free: 7.836 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003452/0.4023, allocations: 2.991 MB / 0.6532 GB, free: 4.488 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.287e-05/0.4024, allocations: 46.98 kB / 0.6533 GB, free: 4.434 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=99): time 2.275e-06/0.4024, allocations: 0 / 0.6533 GB, free: 4.434 MB / 0.4981 GB Notification: Performance of matching and sorting (n=112): time 0.009675/0.4121, allocations: 4.257 MB / 0.6574 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.099e-05/0.4121, allocations: 94.09 kB / 0.6575 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008912/0.413, allocations: 0.7516 MB / 0.6583 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 7.575e-05/0.4131, allocations: 49.7 kB / 0.6583 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003264/0.4135, allocations: 468.5 kB / 0.6587 GB, free: 14.56 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.00026/0.4137, allocations: 386.3 kB / 0.6591 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002742/0.414, allocations: 194.8 kB / 0.6593 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001172/0.4141, allocations: 345.9 kB / 0.6596 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007767/0.4149, allocations: 382.4 kB / 0.66 GB, free: 13.26 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008927/0.4158, allocations: 0.5366 MB / 0.6605 GB, free: 12.67 MB / 0.5137 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.001851/0.4177, allocations: 1.065 MB / 0.6616 GB, free: 11.53 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.4177, allocations: 4 kB / 0.6616 GB, free: 11.52 MB / 0.5137 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.003111/0.4208, allocations: 1.458 MB / 0.663 GB, free: 10.03 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.4208, allocations: 4 kB / 0.663 GB, free: 10.02 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.909e-05/0.4209, allocations: 8 kB / 0.663 GB, free: 10.02 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001171/0.422, allocations: 354.8 kB / 0.6633 GB, free: 9.645 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007674/0.4228, allocations: 191.7 kB / 0.6635 GB, free: 9.457 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009582/0.4324, allocations: 12.58 MB / 0.6758 GB, free: 11.76 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008832/0.4333, allocations: 47.95 kB / 0.6758 GB, free: 11.71 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.642e-05/0.4334, allocations: 43.98 kB / 0.6759 GB, free: 11.67 MB / 0.5294 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.0004776/0.4339, allocations: 258.5 kB / 0.6761 GB, free: 11.41 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000223/0.4342, allocations: 110.6 kB / 0.6762 GB, free: 11.3 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003459/0.4376, allocations: 1.601 MB / 0.6778 GB, free: 9.66 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.057e-05/0.4376, allocations: 8 kB / 0.6778 GB, free: 9.652 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.083e-05/0.4377, allocations: 8 kB / 0.6778 GB, free: 9.645 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.509e-05/0.4377, allocations: 15.91 kB / 0.6778 GB, free: 9.629 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004928/0.4426, allocations: 2.715 MB / 0.6805 GB, free: 6.824 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.408e-05/0.4427, allocations: 4 kB / 0.6805 GB, free: 6.82 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007919/0.4434, allocations: 175.8 kB / 0.6807 GB, free: 6.648 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001217/0.4447, allocations: 362.5 kB / 0.681 GB, free: 6.27 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001009/0.4448, allocations: 35.97 kB / 0.681 GB, free: 6.234 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01008/0.4549, allocations: 12.6 MB / 0.6933 GB, free: 8.523 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.67e-06/0.4549, allocations: 4.031 kB / 0.6933 GB, free: 8.52 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004389/0.4593, allocations: 2.087 MB / 0.6954 GB, free: 6.387 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003316/0.4597, allocations: 183.6 kB / 0.6956 GB, free: 6.188 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002219/0.4599, allocations: 27.94 kB / 0.6956 GB, free: 6.16 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008629/0.4608, allocations: 47.95 kB / 0.6956 GB, free: 6.113 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002493/0.461, allocations: 96.81 kB / 0.6957 GB, free: 6.016 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001023/0.4611, allocations: 47.97 kB / 0.6958 GB, free: 5.969 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0007934/0.4619, allocations: 0.5345 MB / 0.6963 GB, free: 5.422 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.8e-07/0.4619, allocations: 0 / 0.6963 GB, free: 5.422 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001727/0.4637, allocations: 463.8 kB / 0.6967 GB, free: 4.969 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.00538/0.4691, allocations: 3.002 MB / 0.6997 GB, free: 1.91 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003578/0.4727, allocations: 2.063 MB / 0.7017 GB, free: 15.73 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.4727, allocations: 0 / 0.7017 GB, free: 15.73 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002471/0.4752, allocations: 1.598 MB / 0.7032 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001932/0.4771, allocations: 358.3 kB / 0.7036 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01748/0.4946, allocations: 9.722 MB / 0.7131 GB, free: 3.68 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008377/0.4955, allocations: 1.079 MB / 0.7141 GB, free: 2.57 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0009421/0.4965, allocations: 208.4 kB / 0.7143 GB, free: 2.363 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007243/0.4972, allocations: 455.3 kB / 0.7148 GB, free: 1.918 MB / 0.5606 GB Notification: Performance of SimCode: time 1.492e-06/0.4973, allocations: 0 / 0.7148 GB, free: 1.918 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3915/0.8887, allocations: 35.31 MB / 0.7492 GB, free: 154.3 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.7/15.59, allocations: 7.766 kB / 0.7493 GB, free: 154.3 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 & /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