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.0009684/0.0009684, allocations: 97.78 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001067/0.001067, allocations: 187.3 kB / 16.92 MB, free: 6.75 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.304/1.304, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.5945/0.5945, allocations: 89.63 MB / 381.7 MB, free: 11.34 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003671/0.0003672, allocations: 9.062 kB / 461.3 MB, free: 24.26 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1074, allocations: 68.84 MB / 0.5177 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.04057/0.148, allocations: 40.93 MB / 0.5577 GB, free: 2.332 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00748/0.1556, allocations: 5.341 MB / 0.5629 GB, free: 12.97 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001014/0.1566, allocations: 15.94 kB / 0.5629 GB, free: 12.95 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001424/0.1581, allocations: 477.4 kB / 0.5634 GB, free: 12.48 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003344/0.1614, allocations: 1.208 MB / 0.5645 GB, free: 11.27 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002202/0.1636, allocations: 0.7863 MB / 0.5653 GB, free: 10.48 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002943/0.1666, allocations: 2.577 MB / 0.5678 GB, free: 7.898 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004604/0.1671, allocations: 240.5 kB / 0.5681 GB, free: 7.652 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002378/0.1695, allocations: 1.101 MB / 0.5691 GB, free: 6.547 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00105/0.1705, allocations: 0.7194 MB / 0.5698 GB, free: 5.824 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002112/0.1708, allocations: 48 kB / 0.5699 GB, free: 5.777 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001942/0.1727, allocations: 0.6709 MB / 0.5705 GB, free: 5.105 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002857/0.173, allocations: 206.9 kB / 0.5707 GB, free: 4.902 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007494/0.1738, allocations: 0.5768 MB / 0.5713 GB, free: 4.316 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001575/0.1753, allocations: 1.224 MB / 0.5725 GB, free: 3.09 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1754, allocations: 0 / 0.5725 GB, free: 3.09 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.327e-06/0.1754, allocations: 0 / 0.5725 GB, free: 3.09 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.855e-05/0.1754, allocations: 3.938 kB / 0.5725 GB, free: 3.086 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.002862/0.1783, allocations: 1.328 MB / 0.5738 GB, free: 1.707 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.1783, allocations: 8.031 kB / 0.5738 GB, free: 1.699 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000408/0.1787, allocations: 135.4 kB / 0.5739 GB, free: 1.566 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001041/0.1798, allocations: 0.6414 MB / 0.5746 GB, free: 0.8828 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.143e-05/0.1799, allocations: 74.38 kB / 0.5746 GB, free: 0.8125 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001696/0.18, allocations: 96.28 kB / 0.5747 GB, free: 0.7188 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2149/0.3949, allocations: 1.09 MB / 0.5758 GB, free: 59.47 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.202e-05/0.395, allocations: 1.359 kB / 0.5758 GB, free: 59.47 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001238/0.3951, allocations: 43.75 kB / 0.5758 GB, free: 59.47 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.808e-05/0.3952, allocations: 22.25 kB / 0.5759 GB, free: 59.47 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002129/0.3973, allocations: 1.032 MB / 0.5769 GB, free: 59.46 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00554/0.4029, allocations: 4.754 MB / 0.5815 GB, free: 56.32 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001667/0.4045, allocations: 0.9428 MB / 0.5824 GB, free: 55.9 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007936/0.4054, allocations: 0.5074 MB / 0.5829 GB, free: 55.7 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003676/0.409, allocations: 3.507 MB / 0.5863 GB, free: 52.71 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.817e-05/0.4091, allocations: 45.31 kB / 0.5864 GB, free: 52.67 MB / 446.1 MB Notification: Performance of pre-optimization done (n=108): time 2.574e-06/0.4091, allocations: 1.312 kB / 0.5864 GB, free: 52.67 MB / 446.1 MB Notification: Performance of matching and sorting (n=122): time 0.009267/0.4184, allocations: 4.528 MB / 0.5908 GB, free: 50.34 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.265e-05/0.4184, allocations: 92.11 kB / 0.5909 GB, free: 50.25 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007229/0.4192, allocations: 0.6426 MB / 0.5915 GB, free: 49.96 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.565e-05/0.4192, allocations: 48.67 kB / 0.5916 GB, free: 49.92 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002157/0.4195, allocations: 414.8 kB / 0.592 GB, free: 49.59 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000248/0.4197, allocations: 425.9 kB / 0.5924 GB, free: 49.27 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001225/0.4199, allocations: 91.61 kB / 0.5925 GB, free: 49.21 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.293e-05/0.4199, allocations: 356.1 kB / 0.5928 GB, free: 48.89 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008565/0.4208, allocations: 436.8 kB / 0.5932 GB, free: 48.74 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009238/0.4217, allocations: 0.5898 MB / 0.5938 GB, free: 48.44 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001771/0.4235, allocations: 1.08 MB / 0.5948 GB, free: 47.89 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.4235, allocations: 1.062 kB / 0.5948 GB, free: 47.89 MB / 446.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.00304/0.4266, allocations: 1.532 MB / 0.5963 GB, free: 47.24 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.4266, allocations: 6.312 kB / 0.5964 GB, free: 47.24 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.4266, allocations: 3.156 kB / 0.5964 GB, free: 47.24 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001081/0.4277, allocations: 316 kB / 0.5967 GB, free: 47.11 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009211/0.4286, allocations: 248 kB / 0.5969 GB, free: 47.08 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006754/0.4354, allocations: 11.25 MB / 0.6079 GB, free: 36.04 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009406/0.4364, allocations: 89.7 kB / 0.608 GB, free: 36.01 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001469/0.4365, allocations: 55.02 kB / 0.608 GB, free: 36 MB / 446.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.0004697/0.437, allocations: 241.8 kB / 0.6082 GB, free: 35.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002384/0.4373, allocations: 103.2 kB / 0.6083 GB, free: 35.75 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004105/0.4414, allocations: 1.899 MB / 0.6102 GB, free: 34.88 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.143e-05/0.4414, allocations: 16.53 kB / 0.6102 GB, free: 34.88 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.863e-05/0.4414, allocations: 3.875 kB / 0.6102 GB, free: 34.88 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.479e-05/0.4414, allocations: 7.391 kB / 0.6102 GB, free: 34.88 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004972/0.4464, allocations: 2.903 MB / 0.6131 GB, free: 33.06 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.4464, allocations: 1.062 kB / 0.6131 GB, free: 33.06 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008771/0.4473, allocations: 219.8 kB / 0.6133 GB, free: 33.01 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001019/0.4484, allocations: 332.7 kB / 0.6136 GB, free: 32.79 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.18e-05/0.4485, allocations: 41.19 kB / 0.6136 GB, free: 32.77 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00624/0.4547, allocations: 11.27 MB / 0.6246 GB, free: 21.36 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.4547, allocations: 1.75 kB / 0.6246 GB, free: 21.36 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004175/0.4589, allocations: 2.219 MB / 0.6268 GB, free: 20.08 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003293/0.4593, allocations: 181.2 kB / 0.627 GB, free: 19.91 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001974/0.4595, allocations: 27.91 kB / 0.627 GB, free: 19.89 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008826/0.4604, allocations: 102.8 kB / 0.6271 GB, free: 19.84 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002179/0.4606, allocations: 100.2 kB / 0.6272 GB, free: 19.79 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.91e-05/0.4607, allocations: 43.59 kB / 0.6272 GB, free: 19.78 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005236/0.4612, allocations: 0.4886 MB / 0.6277 GB, free: 19.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.41e-07/0.4612, allocations: 0 / 0.6277 GB, free: 19.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001493/0.4627, allocations: 451.5 kB / 0.6281 GB, free: 19.41 MB / 446.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.0005547/0.4633, allocations: 424.8 kB / 0.6285 GB, free: 19.21 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002919/0.4662, allocations: 2.121 MB / 0.6306 GB, free: 17.72 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.4662, allocations: 0 / 0.6306 GB, free: 17.72 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001973/0.4682, allocations: 1.636 MB / 0.6322 GB, free: 16.43 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001837/0.4701, allocations: 316.2 kB / 0.6325 GB, free: 16.27 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004081/0.4742, allocations: 3.159 MB / 0.6356 GB, free: 13.78 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003962/0.4746, allocations: 1.06 MB / 0.6366 GB, free: 12.69 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003684/0.4749, allocations: 119.4 kB / 0.6367 GB, free: 12.57 MB / 446.1 MB Notification: Performance of SimCode: time 6.31e-07/0.475, allocations: 0 / 0.6367 GB, free: 12.57 MB / 446.1 MB Notification: Performance of Templates: time 0.04794/0.5229, allocations: 50.35 MB / 0.6859 GB, free: 10.23 MB / 494.1 MB 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 -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