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: 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_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_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.001109/0.001109, allocations: 103.7 kB / 16.35 MB, free: 5.828 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.001162/0.001162, allocations: 190.5 kB / 17.29 MB, free: 5.484 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.296/1.296, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6597/0.6597, allocations: 89.5 MB / 380.6 MB, free: 8.656 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001495/0.001495, allocations: 79.88 kB / 459.7 MB, free: 10.55 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1297/0.1312, allocations: 67.3 MB / 0.5146 GB, free: 7.164 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.Reservoir): time 0.2583/0.3895, allocations: 39.21 MB / 0.5529 GB, free: 26.91 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.009976/0.3996, allocations: 8.633 MB / 0.5613 GB, free: 21.65 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00136/0.401, allocations: 13.06 kB / 0.5613 GB, free: 21.64 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001539/0.4025, allocations: 0.5135 MB / 0.5618 GB, free: 21.34 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004811/0.4074, allocations: 1.263 MB / 0.5631 GB, free: 20.57 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002893/0.4103, allocations: 0.9089 MB / 0.564 GB, free: 20.09 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003414/0.4137, allocations: 1.887 MB / 0.5658 GB, free: 19.18 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005002/0.4142, allocations: 241.6 kB / 0.566 GB, free: 19.09 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002848/0.4171, allocations: 1.087 MB / 0.5671 GB, free: 18.58 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001168/0.4183, allocations: 0.7047 MB / 0.5678 GB, free: 18.26 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001884/0.4185, allocations: 95.84 kB / 0.5679 GB, free: 18.26 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002858/0.4214, allocations: 0.856 MB / 0.5687 GB, free: 18.01 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00028/0.4216, allocations: 259 kB / 0.569 GB, free: 17.84 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007232/0.4224, allocations: 0.6009 MB / 0.5696 GB, free: 17.49 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003211/0.4256, allocations: 1.725 MB / 0.5712 GB, free: 16.81 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.4256, allocations: 0 / 0.5712 GB, free: 16.81 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4256, allocations: 0 / 0.5712 GB, free: 16.81 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.112e-05/0.4257, allocations: 1.594 kB / 0.5712 GB, free: 16.81 MB / 446.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.003061/0.4287, allocations: 1.557 MB / 0.5728 GB, free: 15.8 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.4288, allocations: 10.47 kB / 0.5728 GB, free: 15.8 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004295/0.4292, allocations: 129.5 kB / 0.5729 GB, free: 15.75 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001136/0.4304, allocations: 0.6406 MB / 0.5735 GB, free: 15.29 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000103/0.4305, allocations: 94.2 kB / 0.5736 GB, free: 15.23 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001538/0.4306, allocations: 94.11 kB / 0.5737 GB, free: 15.2 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001717/0.4324, allocations: 1.001 MB / 0.5747 GB, free: 14.74 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.197e-05/0.4324, allocations: 0.9688 kB / 0.5747 GB, free: 14.74 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.431e-05/0.4325, allocations: 46.22 kB / 0.5747 GB, free: 14.7 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.284e-05/0.4325, allocations: 20.62 kB / 0.5747 GB, free: 14.7 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001696/0.4342, allocations: 0.8868 MB / 0.5756 GB, free: 14.4 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00584/0.4401, allocations: 4.573 MB / 0.5801 GB, free: 10.83 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002015/0.4421, allocations: 1.011 MB / 0.5811 GB, free: 10.31 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007411/0.4429, allocations: 462.4 kB / 0.5815 GB, free: 10.12 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003808/0.4467, allocations: 2.988 MB / 0.5844 GB, free: 7.496 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.73e-05/0.4468, allocations: 53 kB / 0.5845 GB, free: 7.441 MB / 446.1 MB Notification: Performance of pre-optimization done (n=99): time 3.126e-06/0.4468, allocations: 0 / 0.5845 GB, free: 7.441 MB / 446.1 MB Notification: Performance of matching and sorting (n=112): time 0.00914/0.4559, allocations: 4.205 MB / 0.5886 GB, free: 5.051 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.923e-05/0.456, allocations: 96.89 kB / 0.5887 GB, free: 4.945 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008701/0.4569, allocations: 0.6678 MB / 0.5893 GB, free: 4.656 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.576e-05/0.457, allocations: 47.45 kB / 0.5894 GB, free: 4.609 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002297/0.4572, allocations: 419.9 kB / 0.5898 GB, free: 4.277 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002033/0.4574, allocations: 396.2 kB / 0.5901 GB, free: 3.965 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002831/0.4577, allocations: 192.8 kB / 0.5903 GB, free: 3.867 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.614e-05/0.4578, allocations: 346.5 kB / 0.5907 GB, free: 3.547 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007711/0.4585, allocations: 386.2 kB / 0.591 GB, free: 3.402 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008638/0.4594, allocations: 0.5405 MB / 0.5916 GB, free: 3.09 MB / 446.1 MB 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.00176/0.4612, allocations: 1.065 MB / 0.5926 GB, free: 2.434 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.4612, allocations: 1.281 kB / 0.5926 GB, free: 2.434 MB / 446.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.00307/0.4643, allocations: 1.446 MB / 0.594 GB, free: 1.793 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.4643, allocations: 6.312 kB / 0.594 GB, free: 1.793 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.996e-05/0.4643, allocations: 5.75 kB / 0.594 GB, free: 1.793 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001179/0.4655, allocations: 354.2 kB / 0.5944 GB, free: 1.645 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008108/0.4663, allocations: 200.8 kB / 0.5945 GB, free: 1.621 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009445/0.4758, allocations: 12.6 MB / 0.6068 GB, free: 5.105 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001027/0.4769, allocations: 39.84 kB / 0.6069 GB, free: 5.082 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001245/0.477, allocations: 52.98 kB / 0.6069 GB, free: 5.062 MB / 462.1 MB 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.0005228/0.4775, allocations: 250.8 kB / 0.6072 GB, free: 4.852 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002185/0.4778, allocations: 101.4 kB / 0.6073 GB, free: 4.801 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003486/0.4812, allocations: 1.588 MB / 0.6088 GB, free: 3.84 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.261e-05/0.4813, allocations: 14.28 kB / 0.6088 GB, free: 3.84 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.4813, allocations: 4.25 kB / 0.6088 GB, free: 3.84 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.357e-05/0.4813, allocations: 5.016 kB / 0.6088 GB, free: 3.836 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004906/0.4862, allocations: 2.693 MB / 0.6115 GB, free: 1.711 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-05/0.4862, allocations: 4.062 kB / 0.6115 GB, free: 1.707 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007635/0.487, allocations: 179.8 kB / 0.6116 GB, free: 1.531 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001142/0.4882, allocations: 356.6 kB / 0.612 GB, free: 1.16 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.016e-05/0.4883, allocations: 40.53 kB / 0.612 GB, free: 1.121 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009897/0.4982, allocations: 12.6 MB / 0.6243 GB, free: 3.426 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.4982, allocations: 3.938 kB / 0.6243 GB, free: 3.422 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004329/0.5026, allocations: 2.087 MB / 0.6264 GB, free: 1.289 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003641/0.5029, allocations: 171.7 kB / 0.6265 GB, free: 1.102 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001656/0.5031, allocations: 24 kB / 0.6266 GB, free: 1.078 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007273/0.5038, allocations: 55.95 kB / 0.6266 GB, free: 1.023 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002263/0.5041, allocations: 92.86 kB / 0.6267 GB, free: 0.9336 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.495e-05/0.5042, allocations: 43.97 kB / 0.6267 GB, free: 0.8906 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.000662/0.5048, allocations: 483 kB / 0.6272 GB, free: 436 kB / 478.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5049, allocations: 4 kB / 0.6272 GB, free: 432 kB / 478.1 MB Notification: Performance of remove unused functions: time 0.001776/0.5066, allocations: 463.9 kB / 0.6277 GB, free: 15.96 MB / 494.1 MB 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.0007805/0.5074, allocations: 474.2 kB / 0.6281 GB, free: 15.52 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003452/0.5109, allocations: 2.073 MB / 0.6301 GB, free: 13.34 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.5109, allocations: 0 / 0.6301 GB, free: 13.34 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002475/0.5134, allocations: 1.598 MB / 0.6317 GB, free: 11.62 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00186/0.5153, allocations: 353.2 kB / 0.632 GB, free: 11.32 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004406/0.5197, allocations: 2.435 MB / 0.6344 GB, free: 8.898 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006977/0.5204, allocations: 1.044 MB / 0.6354 GB, free: 7.824 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0008289/0.5212, allocations: 188 kB / 0.6356 GB, free: 7.672 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002587/0.5215, allocations: 91.41 kB / 0.6357 GB, free: 7.582 MB / 494.1 MB Notification: Performance of SimCode: time 1.002e-06/0.5215, allocations: 4 kB / 0.6357 GB, free: 7.578 MB / 494.1 MB Notification: Performance of Templates: time 0.03742/0.5589, allocations: 23.67 MB / 0.6588 GB, free: 268 kB / 0.4981 GB make -j1 -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.makefile (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 & ./ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir -abortSlowSimulation -alarm=1200 -s cvode -emit_protected -lv LOG_STATS > 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