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.001261/0.001262, allocations: 91.3 kB / 15.36 MB, free: 0.7344 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.01046/0.01046, allocations: 171.9 kB / 16.26 MB, free: 6.68 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.431/1.431, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6784/0.6784, allocations: 91.32 MB / 382.8 MB, free: 9.668 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003616/0.0003615, allocations: 10.38 kB / 462.7 MB, free: 23.58 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/0.1305, allocations: 69.21 MB / 0.5195 GB, free: 9.105 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.04186/0.1724, allocations: 41.17 MB / 0.5597 GB, free: 15.79 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.008011/0.1804, allocations: 5.424 MB / 0.565 GB, free: 10.34 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001388/0.1818, allocations: 43.69 kB / 0.565 GB, free: 10.3 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00149/0.1833, allocations: 473.4 kB / 0.5655 GB, free: 9.836 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003699/0.187, allocations: 1.235 MB / 0.5667 GB, free: 8.594 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002354/0.1894, allocations: 0.7938 MB / 0.5674 GB, free: 7.801 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003329/0.1928, allocations: 2.674 MB / 0.5701 GB, free: 5.117 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005306/0.1933, allocations: 253.2 kB / 0.5703 GB, free: 4.859 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002786/0.1961, allocations: 1.159 MB / 0.5714 GB, free: 3.695 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001114/0.1972, allocations: 0.7232 MB / 0.5721 GB, free: 2.969 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002453/0.1975, allocations: 52 kB / 0.5722 GB, free: 2.918 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002159/0.1997, allocations: 0.6786 MB / 0.5728 GB, free: 2.238 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003007/0.2, allocations: 210.9 kB / 0.573 GB, free: 2.031 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008517/0.2008, allocations: 0.6154 MB / 0.5736 GB, free: 1.406 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2683/0.4692, allocations: 1.691 MB / 0.5753 GB, free: 13.14 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.4692, allocations: 0 / 0.5753 GB, free: 13.14 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.4692, allocations: 3.531 kB / 0.5753 GB, free: 13.14 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.643e-05/0.4693, allocations: 0 / 0.5753 GB, free: 13.14 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.004152/0.4735, allocations: 1.433 MB / 0.5767 GB, free: 12.48 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.4735, allocations: 9.25 kB / 0.5767 GB, free: 12.48 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007439/0.4743, allocations: 151.2 kB / 0.5769 GB, free: 12.41 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002048/0.4763, allocations: 0.7961 MB / 0.5776 GB, free: 12.08 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001093/0.4765, allocations: 69.34 kB / 0.5777 GB, free: 12.07 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003254/0.4768, allocations: 99.52 kB / 0.5778 GB, free: 12.07 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002615/0.4794, allocations: 1.096 MB / 0.5789 GB, free: 11.94 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.848e-05/0.4795, allocations: 3.281 kB / 0.5789 GB, free: 11.94 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000123/0.4796, allocations: 36.72 kB / 0.5789 GB, free: 11.94 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.949e-05/0.4796, allocations: 22.06 kB / 0.5789 GB, free: 11.94 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002045/0.4817, allocations: 1.033 MB / 0.5799 GB, free: 11.94 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006069/0.4878, allocations: 4.789 MB / 0.5846 GB, free: 9.098 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001961/0.4897, allocations: 0.9332 MB / 0.5855 GB, free: 9.043 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000946/0.4907, allocations: 0.5024 MB / 0.586 GB, free: 9.023 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005032/0.4958, allocations: 3.506 MB / 0.5894 GB, free: 22.56 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.266e-05/0.4958, allocations: 45.86 kB / 0.5895 GB, free: 22.52 MB / 462.1 MB Notification: Performance of pre-optimization done (n=108): time 2.856e-06/0.4958, allocations: 0 / 0.5895 GB, free: 22.52 MB / 462.1 MB Notification: Performance of matching and sorting (n=122): time 0.01058/0.5064, allocations: 4.584 MB / 0.594 GB, free: 21.16 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.585e-05/0.5065, allocations: 91.48 kB / 0.594 GB, free: 21.06 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001232/0.5077, allocations: 0.7481 MB / 0.5948 GB, free: 20.93 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001315/0.5079, allocations: 52.55 kB / 0.5948 GB, free: 20.9 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004709/0.5084, allocations: 481.3 kB / 0.5953 GB, free: 20.71 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004173/0.5088, allocations: 425.3 kB / 0.5957 GB, free: 20.45 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002255/0.509, allocations: 94.09 kB / 0.5958 GB, free: 20.43 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002155/0.5092, allocations: 348.3 kB / 0.5961 GB, free: 20.12 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001169/0.5104, allocations: 436 kB / 0.5965 GB, free: 20.12 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00123/0.5117, allocations: 0.5882 MB / 0.5971 GB, free: 19.98 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002195/0.5139, allocations: 1.096 MB / 0.5982 GB, free: 19.82 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.354e-06/0.5139, allocations: 1.094 kB / 0.5982 GB, free: 19.82 MB / 462.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003461/0.5174, allocations: 1.54 MB / 0.5997 GB, free: 19.61 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.146e-05/0.5174, allocations: 13.66 kB / 0.5997 GB, free: 19.61 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.5174, allocations: 3.188 kB / 0.5997 GB, free: 19.61 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001066/0.5185, allocations: 308.6 kB / 0.6 GB, free: 19.54 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009662/0.5195, allocations: 246.5 kB / 0.6002 GB, free: 19.54 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009175/0.5286, allocations: 11.25 MB / 0.6112 GB, free: 9.387 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001124/0.5298, allocations: 77.98 kB / 0.6113 GB, free: 9.383 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000188/0.53, allocations: 52.11 kB / 0.6113 GB, free: 9.383 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.0006273/0.5306, allocations: 258.5 kB / 0.6116 GB, free: 9.258 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003088/0.531, allocations: 117.1 kB / 0.6117 GB, free: 9.199 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004106/0.5351, allocations: 1.916 MB / 0.6136 GB, free: 8.91 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.431e-05/0.5351, allocations: 12.06 kB / 0.6136 GB, free: 8.91 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.828e-05/0.5351, allocations: 10.03 kB / 0.6136 GB, free: 8.906 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.707e-05/0.5352, allocations: 7.297 kB / 0.6136 GB, free: 8.906 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005696/0.5409, allocations: 2.94 MB / 0.6165 GB, free: 7.816 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.815e-06/0.5409, allocations: 1.531 kB / 0.6165 GB, free: 7.816 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000911/0.5418, allocations: 229.5 kB / 0.6167 GB, free: 7.801 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001084/0.5429, allocations: 321.8 kB / 0.617 GB, free: 7.672 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001079/0.543, allocations: 37.98 kB / 0.617 GB, free: 7.652 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008884/0.5519, allocations: 11.26 MB / 0.628 GB, free: 12.65 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.5519, allocations: 1.438 kB / 0.628 GB, free: 12.65 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004572/0.5565, allocations: 2.237 MB / 0.6302 GB, free: 11.59 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004869/0.557, allocations: 197.1 kB / 0.6304 GB, free: 11.42 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002855/0.5573, allocations: 33.84 kB / 0.6304 GB, free: 11.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001043/0.5584, allocations: 92.52 kB / 0.6305 GB, free: 11.37 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002998/0.5587, allocations: 106.8 kB / 0.6306 GB, free: 11.35 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001176/0.5588, allocations: 46.64 kB / 0.6307 GB, free: 11.34 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0008566/0.5597, allocations: 0.5614 MB / 0.6312 GB, free: 11.09 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5597, allocations: 0 / 0.6312 GB, free: 11.09 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001845/0.5616, allocations: 448.7 kB / 0.6316 GB, free: 11 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.0008424/0.5624, allocations: 423.3 kB / 0.632 GB, free: 10.82 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003503/0.5659, allocations: 2.131 MB / 0.6341 GB, free: 9.516 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/0.5659, allocations: 0 / 0.6341 GB, free: 9.516 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00252/0.5685, allocations: 1.624 MB / 0.6357 GB, free: 8.383 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002262/0.5708, allocations: 322.4 kB / 0.636 GB, free: 8.27 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005853/0.5766, allocations: 3.307 MB / 0.6392 GB, free: 6.145 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008307/0.5775, allocations: 1.1 MB / 0.6403 GB, free: 5.277 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001049/0.5785, allocations: 245.4 kB / 0.6405 GB, free: 5.16 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003464/0.5789, allocations: 112.8 kB / 0.6407 GB, free: 5.133 MB / 478.1 MB Notification: Performance of SimCode: time 2.184e-06/0.5789, allocations: 0 / 0.6407 GB, free: 5.133 MB / 478.1 MB Notification: Performance of Templates: time 0.04395/0.6229, allocations: 23.26 MB / 0.6634 GB, free: 1.641 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches