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: translateModel(ThermofluidStream.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|conductionElement.h|pump.m_flow|reservoir.M|reservoir.U_med|reservoir.m_flow_in|reservoir.m_flow_out|reservoir1.M|reservoir1.U_med",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.Reservoir") translateModel(ThermofluidStream.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|conductionElement.h|pump.m_flow|reservoir.M|reservoir.U_med|reservoir.m_flow_in|reservoir.m_flow_out|reservoir1.M|reservoir1.U_med",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.Reservoir") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001675/0.001675, allocations: 109.2 kB / 16.41 MB, free: 6.504 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.001779/0.001779, allocations: 189.2 kB / 17.34 MB, free: 5.762 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.434/1.434, allocations: 222.9 MB / 241 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.7488/0.7488, allocations: 97.65 MB / 388.8 MB, free: 1.438 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002392/0.002392, allocations: 82.8 kB / 0.5268 GB, free: 38.52 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09752/0.09992, allocations: 69.24 MB / 0.5944 GB, free: 476 kB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.Reservoir): time 0.04193/0.1418, allocations: 39.44 MB / 0.6329 GB, free: 8.879 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01124/0.1531, allocations: 8.689 MB / 0.6414 GB, free: 168 kB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008638/0.1539, allocations: 35.81 kB / 0.6415 GB, free: 132 kB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001303/0.1553, allocations: 0.5199 MB / 0.642 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.003004/0.1583, allocations: 1.34 MB / 0.6433 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00211/0.1604, allocations: 0.9029 MB / 0.6442 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002263/0.1626, allocations: 1.992 MB / 0.6461 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000321/0.163, allocations: 164.2 kB / 0.6463 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001969/0.1649, allocations: 1.148 MB / 0.6474 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008607/0.1658, allocations: 0.7233 MB / 0.6481 GB, free: 9.297 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001577/0.1659, allocations: 96 kB / 0.6482 GB, free: 9.203 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001882/0.1678, allocations: 0.8621 MB / 0.649 GB, free: 8.34 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002689/0.1681, allocations: 262.8 kB / 0.6493 GB, free: 8.082 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0006064/0.1687, allocations: 0.6217 MB / 0.6499 GB, free: 7.457 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002513/0.1712, allocations: 1.833 MB / 0.6517 GB, free: 5.617 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.1712, allocations: 3.938 kB / 0.6517 GB, free: 5.613 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.996e-06/0.1712, allocations: 3.984 kB / 0.6517 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.386e-05/0.1712, allocations: 4 kB / 0.6517 GB, free: 5.605 MB / 0.4981 GB 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.003309/0.1745, allocations: 1.7 MB / 0.6533 GB, free: 3.848 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.1746, allocations: 12.03 kB / 0.6533 GB, free: 3.836 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003933/0.175, allocations: 152 kB / 0.6535 GB, free: 3.688 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001407/0.1764, allocations: 0.848 MB / 0.6543 GB, free: 2.797 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001123/0.1765, allocations: 99.64 kB / 0.6544 GB, free: 2.695 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001566/0.1766, allocations: 87.95 kB / 0.6545 GB, free: 2.609 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001785/0.1784, allocations: 0.9956 MB / 0.6555 GB, free: 1.574 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.101e-05/0.1784, allocations: 3.938 kB / 0.6555 GB, free: 1.57 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.698e-05/0.1785, allocations: 36 kB / 0.6555 GB, free: 1.535 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.163e-05/0.1786, allocations: 20 kB / 0.6555 GB, free: 1.516 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00174/0.1803, allocations: 0.89 MB / 0.6564 GB, free: 0.6289 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006207/0.1865, allocations: 4.605 MB / 0.6609 GB, free: 11.63 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002148/0.1887, allocations: 0.9514 MB / 0.6618 GB, free: 10.65 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008174/0.1895, allocations: 422.2 kB / 0.6622 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003893/0.1934, allocations: 2.991 MB / 0.6651 GB, free: 6.883 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.629e-05/0.1934, allocations: 54.92 kB / 0.6652 GB, free: 6.82 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=99): time 2.594e-06/0.1934, allocations: 0 / 0.6652 GB, free: 6.82 MB / 0.5137 GB Notification: Performance of matching and sorting (n=112): time 0.00994/0.2034, allocations: 4.268 MB / 0.6694 GB, free: 2.328 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.21e-05/0.2034, allocations: 94.05 kB / 0.6695 GB, free: 2.219 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009947/0.2044, allocations: 0.7637 MB / 0.6702 GB, free: 1.43 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 8.458e-05/0.2045, allocations: 49.64 kB / 0.6702 GB, free: 1.375 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003919/0.2049, allocations: 493.2 kB / 0.6707 GB, free: 0.8867 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003418/0.2052, allocations: 412.4 kB / 0.6711 GB, free: 492 kB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002975/0.2055, allocations: 179 kB / 0.6713 GB, free: 304 kB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001669/0.2057, allocations: 345.9 kB / 0.6716 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008565/0.2066, allocations: 382.4 kB / 0.672 GB, free: 15.58 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001015/0.2076, allocations: 0.5405 MB / 0.6725 GB, free: 14.98 MB / 0.5294 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.002062/0.2096, allocations: 1.061 MB / 0.6735 GB, free: 13.85 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.2096, allocations: 0 / 0.6735 GB, free: 13.85 MB / 0.5294 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.003328/0.213, allocations: 1.454 MB / 0.675 GB, free: 12.36 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.216e-05/0.213, allocations: 8 kB / 0.675 GB, free: 12.36 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.923e-05/0.213, allocations: 8 kB / 0.675 GB, free: 12.35 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001185/0.2142, allocations: 347 kB / 0.6753 GB, free: 11.98 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008186/0.215, allocations: 195.7 kB / 0.6755 GB, free: 11.79 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01115/0.2262, allocations: 12.6 MB / 0.6878 GB, free: 14.08 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007896/0.227, allocations: 44.03 kB / 0.6878 GB, free: 14.04 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.715e-05/0.2271, allocations: 47.98 kB / 0.6879 GB, free: 13.99 MB / 0.545 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.00048/0.2275, allocations: 245.6 kB / 0.6881 GB, free: 13.74 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000247/0.2278, allocations: 123.1 kB / 0.6882 GB, free: 13.62 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003809/0.2316, allocations: 1.6 MB / 0.6898 GB, free: 11.97 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.21e-05/0.2316, allocations: 16 kB / 0.6898 GB, free: 11.96 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.2316, allocations: 4 kB / 0.6898 GB, free: 11.95 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.304e-05/0.2316, allocations: 7.969 kB / 0.6898 GB, free: 11.95 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005234/0.2369, allocations: 2.71 MB / 0.6925 GB, free: 9.148 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-05/0.2369, allocations: 4 kB / 0.6925 GB, free: 9.145 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008171/0.2377, allocations: 175.9 kB / 0.6926 GB, free: 8.973 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00117/0.2389, allocations: 358.5 kB / 0.693 GB, free: 8.598 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.734e-05/0.2389, allocations: 35.97 kB / 0.693 GB, free: 8.562 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01114/0.2501, allocations: 12.61 MB / 0.7053 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.2501, allocations: 4.031 kB / 0.7053 GB, free: 10.83 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004454/0.2545, allocations: 2.096 MB / 0.7074 GB, free: 8.684 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002508/0.2548, allocations: 184.3 kB / 0.7076 GB, free: 8.484 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001497/0.2549, allocations: 27.95 kB / 0.7076 GB, free: 8.457 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007828/0.2557, allocations: 55.89 kB / 0.7076 GB, free: 8.402 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002089/0.2559, allocations: 92.86 kB / 0.7077 GB, free: 8.312 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.978e-05/0.256, allocations: 43.98 kB / 0.7078 GB, free: 8.27 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0007366/0.2568, allocations: 0.5349 MB / 0.7083 GB, free: 7.723 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8e-08/0.2568, allocations: 0 / 0.7083 GB, free: 7.723 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00153/0.2583, allocations: 475.3 kB / 0.7087 GB, free: 7.258 MB / 0.5606 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.0007748/0.2591, allocations: 476.4 kB / 0.7092 GB, free: 6.785 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.003523/0.2626, allocations: 2.001 MB / 0.7112 GB, free: 4.672 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.2626, allocations: 4 kB / 0.7112 GB, free: 4.668 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002483/0.2651, allocations: 1.551 MB / 0.7127 GB, free: 3.008 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001723/0.2668, allocations: 366.2 kB / 0.713 GB, free: 2.656 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004538/0.2713, allocations: 2.58 MB / 0.7155 GB, free: 44 kB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007656/0.2721, allocations: 1.083 MB / 0.7166 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0007145/0.2728, allocations: 200.5 kB / 0.7168 GB, free: 14.73 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002854/0.2731, allocations: 107.4 kB / 0.7169 GB, free: 14.63 MB / 0.5762 GB Notification: Performance of SimCode: time 5.81e-07/0.2731, allocations: 4 kB / 0.7169 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of Templates: time 0.0409/0.314, allocations: 24.3 MB / 0.7406 GB, free: 6.508 MB / 0.5919 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.Reservoir.makefile (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 & ./ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.Reservoir -abortSlowSimulation -alarm=1200 -s gbode -emit_protected -lv LOG_STATS > 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