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.009202/0.009203, allocations: 102.4 kB / 15.73 MB, free: 6.039 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.002515/0.002515, allocations: 189.1 kB / 16.67 MB, free: 5.973 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.403/1.403, allocations: 222.9 MB / 240.4 MB, free: 4.191 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7181/0.7181, allocations: 91.18 MB / 381.7 MB, free: 9.363 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001658/0.001658, allocations: 83.86 kB / 0.5168 GB, free: 9.008 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1547/0.1563, allocations: 67.69 MB / 0.5829 GB, free: 5.242 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.Reservoir): time 0.3769/0.5333, allocations: 39.36 MB / 0.6214 GB, free: 2.18 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.016/0.5494, allocations: 8.661 MB / 0.6298 GB, free: 11.99 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002844/0.5523, allocations: 37.31 kB / 0.6299 GB, free: 11.97 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003338/0.5557, allocations: 0.5248 MB / 0.6304 GB, free: 11.66 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007628/0.5634, allocations: 1.33 MB / 0.6317 GB, free: 10.84 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004212/0.5677, allocations: 0.8957 MB / 0.6326 GB, free: 10.37 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.003942/0.5717, allocations: 1.977 MB / 0.6345 GB, free: 9.402 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006736/0.5723, allocations: 257 kB / 0.6347 GB, free: 9.293 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003482/0.5758, allocations: 1.143 MB / 0.6358 GB, free: 8.762 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00189/0.5778, allocations: 0.7249 MB / 0.6366 GB, free: 8.348 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004777/0.5782, allocations: 95.69 kB / 0.6366 GB, free: 8.348 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003808/0.5821, allocations: 0.858 MB / 0.6375 GB, free: 7.973 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005581/0.5826, allocations: 256.8 kB / 0.6377 GB, free: 7.758 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001709/0.5844, allocations: 0.6268 MB / 0.6383 GB, free: 7.34 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005746/0.5901, allocations: 1.814 MB / 0.6401 GB, free: 6.203 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.5901, allocations: 1.344 kB / 0.6401 GB, free: 6.203 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.5902, allocations: 0 / 0.6401 GB, free: 6.203 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.846e-05/0.5902, allocations: 0 / 0.6401 GB, free: 6.203 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.004818/0.5951, allocations: 1.648 MB / 0.6417 GB, free: 4.969 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/0.5951, allocations: 9.875 kB / 0.6417 GB, free: 4.969 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006516/0.5958, allocations: 145.8 kB / 0.6419 GB, free: 4.898 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001846/0.5976, allocations: 0.8286 MB / 0.6427 GB, free: 4.234 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001055/0.5978, allocations: 93.17 kB / 0.6428 GB, free: 4.172 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001401/0.5979, allocations: 96.45 kB / 0.6429 GB, free: 4.133 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001798/0.5997, allocations: 0.992 MB / 0.6438 GB, free: 3.508 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.196e-05/0.5998, allocations: 0 / 0.6438 GB, free: 3.508 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.335e-05/0.5999, allocations: 37.53 kB / 0.6439 GB, free: 3.48 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.459e-05/0.5999, allocations: 24.78 kB / 0.6439 GB, free: 3.48 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001714/0.6016, allocations: 0.8873 MB / 0.6448 GB, free: 3.047 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00627/0.6079, allocations: 4.611 MB / 0.6493 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002081/0.61, allocations: 1.008 MB / 0.6502 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007965/0.6108, allocations: 458.5 kB / 0.6507 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004294/0.6151, allocations: 2.996 MB / 0.6536 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.666e-05/0.6152, allocations: 48.53 kB / 0.6537 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=99): time 3.567e-06/0.6152, allocations: 0 / 0.6537 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of matching and sorting (n=112): time 0.01098/0.6262, allocations: 4.241 MB / 0.6578 GB, free: 8.215 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.873e-05/0.6263, allocations: 100.6 kB / 0.6579 GB, free: 8.109 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001364/0.6277, allocations: 0.7583 MB / 0.6586 GB, free: 7.68 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001057/0.6278, allocations: 47.39 kB / 0.6587 GB, free: 7.633 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003999/0.6282, allocations: 468 kB / 0.6591 GB, free: 7.223 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003605/0.6286, allocations: 390.3 kB / 0.6595 GB, free: 6.879 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003498/0.6289, allocations: 188.6 kB / 0.6597 GB, free: 6.766 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001693/0.6291, allocations: 347.4 kB / 0.66 GB, free: 6.43 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008859/0.63, allocations: 384.5 kB / 0.6604 GB, free: 6.242 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001058/0.6311, allocations: 0.5417 MB / 0.6609 GB, free: 5.867 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.002056/0.6331, allocations: 1.06 MB / 0.6619 GB, free: 5.164 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.915e-06/0.6332, allocations: 1.094 kB / 0.6619 GB, free: 5.164 MB / 0.4981 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.003509/0.6367, allocations: 1.462 MB / 0.6634 GB, free: 4.352 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.707e-05/0.6367, allocations: 10.86 kB / 0.6634 GB, free: 4.348 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.307e-05/0.6368, allocations: 5.5 kB / 0.6634 GB, free: 4.348 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001272/0.638, allocations: 338.2 kB / 0.6637 GB, free: 4.148 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008268/0.6389, allocations: 202.3 kB / 0.6639 GB, free: 4.094 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01113/0.65, allocations: 12.59 MB / 0.6762 GB, free: 6.445 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001208/0.6513, allocations: 43.97 kB / 0.6762 GB, free: 6.402 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001927/0.6515, allocations: 40 kB / 0.6763 GB, free: 6.363 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.0006497/0.6521, allocations: 261.6 kB / 0.6765 GB, free: 6.098 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003875/0.6525, allocations: 114.5 kB / 0.6766 GB, free: 5.984 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003838/0.6564, allocations: 1.597 MB / 0.6782 GB, free: 4.34 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-05/0.6564, allocations: 15.98 kB / 0.6782 GB, free: 4.324 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.78e-05/0.6564, allocations: 4 kB / 0.6782 GB, free: 4.32 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.388e-05/0.6565, allocations: 7.984 kB / 0.6782 GB, free: 4.312 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005528/0.662, allocations: 2.726 MB / 0.6809 GB, free: 1.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.525e-05/0.662, allocations: 4 kB / 0.6809 GB, free: 1.496 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008042/0.6628, allocations: 175.8 kB / 0.6811 GB, free: 1.324 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001214/0.6641, allocations: 350.5 kB / 0.6814 GB, free: 0.957 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001024/0.6642, allocations: 39.92 kB / 0.6814 GB, free: 0.918 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01081/0.675, allocations: 12.61 MB / 0.6937 GB, free: 3.191 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.675, allocations: 0 / 0.6937 GB, free: 3.191 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004562/0.6796, allocations: 2.087 MB / 0.6958 GB, free: 1.059 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004614/0.6801, allocations: 179.7 kB / 0.6959 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00025/0.6804, allocations: 24 kB / 0.696 GB, free: 0.8398 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008726/0.6813, allocations: 55.89 kB / 0.696 GB, free: 0.7852 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002707/0.6815, allocations: 100.8 kB / 0.6961 GB, free: 0.6875 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001225/0.6817, allocations: 43.97 kB / 0.6962 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0008045/0.6825, allocations: 0.5267 MB / 0.6967 GB, free: 108 kB / 0.5294 GB Notification: Performance of sort global known variables: time 1.61e-07/0.6825, allocations: 4 kB / 0.6967 GB, free: 104 kB / 0.5294 GB Notification: Performance of remove unused functions: time 0.002039/0.6845, allocations: 471.8 kB / 0.6971 GB, free: 15.64 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.0009665/0.6855, allocations: 462.6 kB / 0.6976 GB, free: 15.18 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003668/0.6892, allocations: 2.063 MB / 0.6996 GB, free: 13 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.645e-06/0.6892, allocations: 4 kB / 0.6996 GB, free: 13 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002437/0.6917, allocations: 1.602 MB / 0.7012 GB, free: 11.28 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001791/0.6935, allocations: 360.8 kB / 0.7015 GB, free: 10.94 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004683/0.6982, allocations: 2.545 MB / 0.704 GB, free: 8.367 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007631/0.6989, allocations: 1.079 MB / 0.705 GB, free: 7.258 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0007518/0.6997, allocations: 200.4 kB / 0.7052 GB, free: 7.059 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002803/0.7, allocations: 99.41 kB / 0.7053 GB, free: 6.965 MB / 0.545 GB Notification: Performance of SimCode: time 6.41e-07/0.7, allocations: 0 / 0.7053 GB, free: 6.965 MB / 0.545 GB Notification: Performance of Templates: time 0.04202/0.742, allocations: 24.1 MB / 0.7289 GB, free: 15.04 MB / 0.5762 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches