Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_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_dev_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.001516/0.001516, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001857/0.001857, allocations: 192.3 kB / 16.14 MB, free: 6.715 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.378/1.378, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7012/0.7012, allocations: 93.71 MB / 383.7 MB, free: 7.16 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001537/0.001537, allocations: 76.97 kB / 462.7 MB, free: 22.32 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1088, allocations: 68.27 MB / 0.5185 GB, free: 7.469 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.0436/0.1524, allocations: 42.11 MB / 0.5597 GB, free: 13.21 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.008488/0.1609, allocations: 5.51 MB / 0.565 GB, free: 7.676 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001442/0.1624, allocations: 51.62 kB / 0.5651 GB, free: 7.625 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001653/0.1641, allocations: 477.4 kB / 0.5655 GB, free: 7.156 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003699/0.1678, allocations: 1.239 MB / 0.5668 GB, free: 5.91 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002378/0.1702, allocations: 0.7828 MB / 0.5675 GB, free: 5.125 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003106/0.1733, allocations: 2.7 MB / 0.5702 GB, free: 2.418 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005582/0.1739, allocations: 269.2 kB / 0.5704 GB, free: 2.145 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002694/0.1766, allocations: 1.198 MB / 0.5716 GB, free: 0.9414 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001185/0.1778, allocations: 0.7582 MB / 0.5723 GB, free: 184 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003239/0.1782, allocations: 67.98 kB / 0.5724 GB, free: 116 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002178/0.1803, allocations: 0.6943 MB / 0.5731 GB, free: 15.42 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003785/0.1807, allocations: 230.9 kB / 0.5733 GB, free: 15.19 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009065/0.1817, allocations: 0.6176 MB / 0.5739 GB, free: 14.57 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002914/0.1846, allocations: 1.737 MB / 0.5756 GB, free: 12.83 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1846, allocations: 0 / 0.5756 GB, free: 12.83 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1846, allocations: 0 / 0.5756 GB, free: 12.83 MB / 462.1 MB Notification: Performance of Transformations before backend: time 4.852e-05/0.1847, allocations: 0 / 0.5756 GB, free: 12.83 MB / 462.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.00371/0.1884, allocations: 1.659 MB / 0.5772 GB, free: 11.12 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.1884, allocations: 8.031 kB / 0.5772 GB, free: 11.11 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004687/0.1889, allocations: 147.2 kB / 0.5774 GB, free: 10.96 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001435/0.1904, allocations: 0.813 MB / 0.5781 GB, free: 10.11 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.569e-05/0.1904, allocations: 74.12 kB / 0.5782 GB, free: 10.04 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001546/0.1906, allocations: 92 kB / 0.5783 GB, free: 9.945 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002009/0.1926, allocations: 1.073 MB / 0.5794 GB, free: 8.844 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.167e-05/0.1927, allocations: 4 kB / 0.5794 GB, free: 8.84 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.341e-05/0.1928, allocations: 36 kB / 0.5794 GB, free: 8.805 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.243e-05/0.1928, allocations: 35.97 kB / 0.5794 GB, free: 8.77 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001893/0.1947, allocations: 1.004 MB / 0.5804 GB, free: 7.762 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00615/0.2008, allocations: 4.758 MB / 0.5851 GB, free: 2.57 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001871/0.2027, allocations: 0.9344 MB / 0.586 GB, free: 1.621 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008838/0.2036, allocations: 0.496 MB / 0.5865 GB, free: 1.121 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.215/0.4186, allocations: 3.46 MB / 0.5898 GB, free: 69.26 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.757e-05/0.4187, allocations: 49.16 kB / 0.5899 GB, free: 69.22 MB / 462.1 MB Notification: Performance of pre-optimization done (n=108): time 4.539e-06/0.4188, allocations: 0 / 0.5899 GB, free: 69.22 MB / 462.1 MB Notification: Performance of matching and sorting (n=122): time 0.01096/0.4297, allocations: 4.435 MB / 0.5942 GB, free: 67 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.894e-05/0.4298, allocations: 93.83 kB / 0.5943 GB, free: 66.9 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001057/0.4309, allocations: 0.7602 MB / 0.595 GB, free: 66.58 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001179/0.431, allocations: 47.58 kB / 0.5951 GB, free: 66.53 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002729/0.4313, allocations: 484.4 kB / 0.5955 GB, free: 66.15 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00027/0.4315, allocations: 422.2 kB / 0.596 GB, free: 65.82 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003199/0.4319, allocations: 198.5 kB / 0.5961 GB, free: 65.73 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 7.198e-05/0.432, allocations: 347.9 kB / 0.5965 GB, free: 65.41 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009107/0.4329, allocations: 415.9 kB / 0.5969 GB, free: 65.26 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001043/0.4339, allocations: 0.5643 MB / 0.5974 GB, free: 64.96 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001956/0.4359, allocations: 1.048 MB / 0.5984 GB, free: 64.41 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.4359, allocations: 1.094 kB / 0.5984 GB, free: 64.41 MB / 462.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003454/0.4394, allocations: 1.502 MB / 0.5999 GB, free: 63.76 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/0.4394, allocations: 5.25 kB / 0.5999 GB, free: 63.76 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.455e-05/0.4394, allocations: 5.359 kB / 0.5999 GB, free: 63.76 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001121/0.4406, allocations: 310.9 kB / 0.6002 GB, free: 63.64 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009464/0.4415, allocations: 231.4 kB / 0.6004 GB, free: 63.62 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006683/0.4482, allocations: 11.23 MB / 0.6114 GB, free: 52.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001016/0.4493, allocations: 69.56 kB / 0.6115 GB, free: 52.58 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001474/0.4494, allocations: 46.17 kB / 0.6115 GB, free: 52.57 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.000537/0.45, allocations: 266.8 kB / 0.6118 GB, free: 52.36 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003054/0.4503, allocations: 126.7 kB / 0.6119 GB, free: 52.29 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004052/0.4543, allocations: 1.865 MB / 0.6137 GB, free: 51.46 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.131e-05/0.4544, allocations: 14.97 kB / 0.6137 GB, free: 51.46 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.51e-05/0.4544, allocations: 4.781 kB / 0.6137 GB, free: 51.46 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.826e-05/0.4544, allocations: 5.906 kB / 0.6137 GB, free: 51.46 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005419/0.4598, allocations: 2.886 MB / 0.6166 GB, free: 50.06 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.784e-06/0.4599, allocations: 5.344 kB / 0.6166 GB, free: 50.05 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009567/0.4608, allocations: 215.9 kB / 0.6168 GB, free: 50.04 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001082/0.4619, allocations: 320.7 kB / 0.6171 GB, free: 49.91 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001223/0.4621, allocations: 39.7 kB / 0.6171 GB, free: 49.89 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006589/0.4687, allocations: 11.23 MB / 0.6281 GB, free: 38.85 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/0.4687, allocations: 5.312 kB / 0.6281 GB, free: 38.85 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00474/0.4734, allocations: 2.172 MB / 0.6302 GB, free: 37.79 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003153/0.4738, allocations: 183.9 kB / 0.6304 GB, free: 37.62 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002728/0.4741, allocations: 27.94 kB / 0.6304 GB, free: 37.61 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000957/0.475, allocations: 82.61 kB / 0.6305 GB, free: 37.58 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002559/0.4753, allocations: 108.6 kB / 0.6306 GB, free: 37.56 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001043/0.4754, allocations: 43.88 kB / 0.6306 GB, free: 37.55 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.000765/0.4762, allocations: 0.5623 MB / 0.6312 GB, free: 37.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 3e-07/0.4762, allocations: 1.281 kB / 0.6312 GB, free: 37.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001726/0.4779, allocations: 448 kB / 0.6316 GB, free: 37.23 MB / 462.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.0006774/0.4786, allocations: 422.2 kB / 0.632 GB, free: 37.05 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003534/0.4822, allocations: 2.075 MB / 0.634 GB, free: 35.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/0.4822, allocations: 0 / 0.634 GB, free: 35.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002448/0.4847, allocations: 1.607 MB / 0.6356 GB, free: 34.31 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002293/0.487, allocations: 325 kB / 0.6359 GB, free: 34.14 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005309/0.4923, allocations: 3.133 MB / 0.639 GB, free: 32.03 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006327/0.493, allocations: 1.097 MB / 0.64 GB, free: 31.16 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001108/0.4941, allocations: 242.2 kB / 0.6403 GB, free: 31.04 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004216/0.4945, allocations: 118 kB / 0.6404 GB, free: 31.01 MB / 462.1 MB Notification: Performance of SimCode: time 7.92e-07/0.4945, allocations: 0 / 0.6404 GB, free: 31.01 MB / 462.1 MB Notification: Performance of Templates: time 0.03315/0.5277, allocations: 23.47 MB / 0.6633 GB, free: 10.5 MB / 462.1 MB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.makefile (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches