Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.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.Undirected.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|reservoir.M|reservoir.U_med|reservoir.m_flow_fore|reservoir.m_flow_rear|reservoir2.M|reservoir2.U_med|reservoir2.m_flow_in|reservoir2.m_flow_out",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") translateModel(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|reservoir.M|reservoir.U_med|reservoir.m_flow_fore|reservoir.m_flow_rear|reservoir2.M|reservoir2.U_med|reservoir2.m_flow_in|reservoir2.m_flow_out",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001461/0.001461, allocations: 115.5 kB / 16.37 MB, free: 6.004 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.001685/0.001685, allocations: 195.6 kB / 17.31 MB, free: 5.613 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.328/1.328, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6623/0.6623, allocations: 89.49 MB / 380.7 MB, free: 8.652 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 75.89 kB / 459.7 MB, free: 10.61 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1162, allocations: 67.31 MB / 0.5146 GB, free: 7.219 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.2205/0.3367, allocations: 40.91 MB / 0.5546 GB, free: 26.12 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.006363/0.3431, allocations: 5.276 MB / 0.5597 GB, free: 22.93 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001257/0.3444, allocations: 18.03 kB / 0.5597 GB, free: 22.92 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001288/0.3457, allocations: 0.5315 MB / 0.5603 GB, free: 22.61 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003536/0.3493, allocations: 1.295 MB / 0.5615 GB, free: 21.82 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002338/0.3517, allocations: 0.88 MB / 0.5624 GB, free: 21.34 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002548/0.3542, allocations: 2.016 MB / 0.5644 GB, free: 20.37 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004108/0.3547, allocations: 271.6 kB / 0.5646 GB, free: 20.28 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002486/0.3571, allocations: 1.245 MB / 0.5658 GB, free: 19.7 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009409/0.3581, allocations: 0.7527 MB / 0.5666 GB, free: 19.35 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001623/0.3583, allocations: 100.1 kB / 0.5667 GB, free: 19.35 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002082/0.3604, allocations: 0.7384 MB / 0.5674 GB, free: 19.14 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002279/0.3606, allocations: 257.8 kB / 0.5676 GB, free: 18.97 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005796/0.3612, allocations: 0.6154 MB / 0.5682 GB, free: 18.62 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002498/0.3637, allocations: 1.722 MB / 0.5699 GB, free: 17.94 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.3637, allocations: 1.188 kB / 0.5699 GB, free: 17.94 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3637, allocations: 0 / 0.5699 GB, free: 17.94 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.548e-05/0.3637, allocations: 0 / 0.5699 GB, free: 17.94 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: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.002924/0.3667, allocations: 1.533 MB / 0.5714 GB, free: 16.94 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.3667, allocations: 10.03 kB / 0.5714 GB, free: 16.94 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003877/0.3671, allocations: 131.4 kB / 0.5715 GB, free: 16.88 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001044/0.3682, allocations: 0.6432 MB / 0.5722 GB, free: 16.43 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.086e-05/0.3682, allocations: 73.67 kB / 0.5722 GB, free: 16.39 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001534/0.3684, allocations: 98.77 kB / 0.5723 GB, free: 16.36 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001983/0.3704, allocations: 1.075 MB / 0.5734 GB, free: 15.88 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.015e-05/0.3704, allocations: 4 kB / 0.5734 GB, free: 15.88 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.387e-05/0.3705, allocations: 41.91 kB / 0.5734 GB, free: 15.85 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.998e-05/0.3706, allocations: 22.25 kB / 0.5735 GB, free: 15.85 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00171/0.3723, allocations: 1.006 MB / 0.5744 GB, free: 15.5 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005143/0.3774, allocations: 4.717 MB / 0.579 GB, free: 11.78 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00171/0.3792, allocations: 0.9312 MB / 0.58 GB, free: 11.35 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008008/0.38, allocations: 499.7 kB / 0.5804 GB, free: 11.14 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003959/0.3839, allocations: 3.48 MB / 0.5838 GB, free: 8.113 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.201e-05/0.384, allocations: 44.12 kB / 0.5839 GB, free: 8.066 MB / 446.1 MB Notification: Performance of pre-optimization done (n=108): time 2.524e-06/0.384, allocations: 1.094 kB / 0.5839 GB, free: 8.066 MB / 446.1 MB Notification: Performance of matching and sorting (n=122): time 0.009662/0.3937, allocations: 4.383 MB / 0.5882 GB, free: 5.691 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.544e-05/0.3937, allocations: 89.39 kB / 0.5882 GB, free: 5.598 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007794/0.3945, allocations: 0.6455 MB / 0.5889 GB, free: 5.312 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.93e-05/0.3946, allocations: 46.95 kB / 0.5889 GB, free: 5.266 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002049/0.3948, allocations: 415.2 kB / 0.5893 GB, free: 4.938 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002172/0.395, allocations: 418.6 kB / 0.5897 GB, free: 4.609 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002959/0.3954, allocations: 203.9 kB / 0.5899 GB, free: 4.508 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.158e-05/0.3954, allocations: 344.5 kB / 0.5902 GB, free: 4.188 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008572/0.3963, allocations: 417 kB / 0.5906 GB, free: 4.039 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009299/0.3972, allocations: 0.5708 MB / 0.5912 GB, free: 3.734 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001781/0.399, allocations: 1.04 MB / 0.5922 GB, free: 3.168 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.576e-06/0.399, allocations: 0 / 0.5922 GB, free: 3.168 MB / 446.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003188/0.4022, allocations: 1.493 MB / 0.5937 GB, free: 2.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.4023, allocations: 6.438 kB / 0.5937 GB, free: 2.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.4023, allocations: 4.156 kB / 0.5937 GB, free: 2.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001/0.4033, allocations: 307.7 kB / 0.594 GB, free: 2.309 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009293/0.4042, allocations: 243.3 kB / 0.5942 GB, free: 2.242 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00875/0.413, allocations: 12.13 MB / 0.606 GB, free: 6.004 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001087/0.4141, allocations: 54.89 kB / 0.6061 GB, free: 5.969 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001217/0.4142, allocations: 50.42 kB / 0.6061 GB, free: 5.953 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (124): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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%), (1,2,100.0%), (2,5,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005261/0.4148, allocations: 252.6 kB / 0.6064 GB, free: 5.742 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002293/0.415, allocations: 102.7 kB / 0.6065 GB, free: 5.688 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00385/0.4189, allocations: 1.856 MB / 0.6083 GB, free: 4.543 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.371e-05/0.4189, allocations: 13.62 kB / 0.6083 GB, free: 4.543 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.4189, allocations: 3.312 kB / 0.6083 GB, free: 4.543 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.588e-05/0.4189, allocations: 6.625 kB / 0.6083 GB, free: 4.539 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005215/0.4241, allocations: 2.847 MB / 0.6111 GB, free: 2.211 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.254e-06/0.4242, allocations: 4 kB / 0.6111 GB, free: 2.207 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009297/0.4251, allocations: 211.8 kB / 0.6113 GB, free: 2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001024/0.4261, allocations: 320.6 kB / 0.6116 GB, free: 1.664 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.016e-05/0.4262, allocations: 35.98 kB / 0.6116 GB, free: 1.629 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009216/0.4355, allocations: 12.16 MB / 0.6235 GB, free: 4.383 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.4355, allocations: 4.062 kB / 0.6235 GB, free: 4.379 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004368/0.4399, allocations: 2.154 MB / 0.6256 GB, free: 2.156 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003493/0.4402, allocations: 167.9 kB / 0.6258 GB, free: 1.973 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001671/0.4404, allocations: 27.98 kB / 0.6258 GB, free: 1.945 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007842/0.4412, allocations: 51.95 kB / 0.6259 GB, free: 1.895 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002523/0.4415, allocations: 112.8 kB / 0.626 GB, free: 1.785 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001074/0.4416, allocations: 47.97 kB / 0.626 GB, free: 1.738 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0006482/0.4422, allocations: 499 kB / 0.6265 GB, free: 1.258 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4423, allocations: 4 kB / 0.6265 GB, free: 1.254 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001571/0.4438, allocations: 435.9 kB / 0.6269 GB, free: 0.8281 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (reservoir.M,reservoir.U_med,flowResistance1.rear.m_flow,flowResistance2.rear.m_flow,reservoir2.M,reservoir2.U_med,flowResistance4.inlet.m_flow,flowResistance5.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 (104): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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,2,100.0%), (1,2,100.0%), (1,2,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.0006951/0.4445, allocations: 418.8 kB / 0.6273 GB, free: 444 kB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003404/0.448, allocations: 2.08 MB / 0.6293 GB, free: 14.26 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.207e-06/0.448, allocations: 4 kB / 0.6293 GB, free: 14.25 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002397/0.4504, allocations: 1.605 MB / 0.6309 GB, free: 12.54 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001708/0.4521, allocations: 334.7 kB / 0.6312 GB, free: 12.25 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004756/0.4569, allocations: 2.528 MB / 0.6337 GB, free: 9.734 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006905/0.4576, allocations: 1.054 MB / 0.6347 GB, free: 8.652 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0009014/0.4585, allocations: 219.1 kB / 0.6349 GB, free: 8.488 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003073/0.4588, allocations: 111.4 kB / 0.635 GB, free: 8.379 MB / 494.1 MB Notification: Performance of SimCode: time 1.032e-06/0.4588, allocations: 0 / 0.635 GB, free: 8.379 MB / 494.1 MB Notification: Performance of Templates: time 0.03914/0.498, allocations: 24.21 MB / 0.6587 GB, free: 0.5156 MB / 0.4981 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.makefile (rm -f ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.sim & ./ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir -abortSlowSimulation -alarm=1200 -s gbode -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches