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/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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.001365/0.001365, allocations: 105.5 kB / 16.27 MB, free: 6.414 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.001401/0.001401, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.411/1.411, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.7043/0.7043, allocations: 89.46 MB / 380.5 MB, free: 8.648 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002544/0.002544, allocations: 79.88 kB / 458.9 MB, free: 11.23 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.1261, allocations: 67.3 MB / 0.5138 GB, free: 7.844 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.2249/0.351, allocations: 40.91 MB / 0.5538 GB, free: 26.12 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.005964/0.357, allocations: 5.267 MB / 0.5589 GB, free: 23.11 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00102/0.358, allocations: 17.19 kB / 0.5589 GB, free: 23.1 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001277/0.3593, allocations: 0.5331 MB / 0.5595 GB, free: 22.79 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003233/0.3626, allocations: 1.301 MB / 0.5607 GB, free: 21.99 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002062/0.3647, allocations: 0.8759 MB / 0.5616 GB, free: 21.52 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002282/0.367, allocations: 2.012 MB / 0.5635 GB, free: 20.55 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004126/0.3674, allocations: 269.4 kB / 0.5638 GB, free: 20.46 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002555/0.3699, allocations: 1.247 MB / 0.565 GB, free: 19.88 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001049/0.371, allocations: 0.7485 MB / 0.5658 GB, free: 19.53 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001711/0.3712, allocations: 101.2 kB / 0.5659 GB, free: 19.53 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002229/0.3734, allocations: 0.7414 MB / 0.5666 GB, free: 19.32 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002394/0.3737, allocations: 261.9 kB / 0.5668 GB, free: 19.14 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006478/0.3743, allocations: 0.6187 MB / 0.5674 GB, free: 18.79 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002807/0.3771, allocations: 1.692 MB / 0.5691 GB, free: 18.12 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.3772, allocations: 0 / 0.5691 GB, free: 18.12 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3772, allocations: 1.031 kB / 0.5691 GB, free: 18.12 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.06e-05/0.3772, allocations: 0 / 0.5691 GB, free: 18.12 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.002992/0.3802, allocations: 1.535 MB / 0.5706 GB, free: 17.12 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.3802, allocations: 8.219 kB / 0.5706 GB, free: 17.12 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003851/0.3806, allocations: 132.1 kB / 0.5707 GB, free: 17.07 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008799/0.3815, allocations: 0.6463 MB / 0.5713 GB, free: 16.61 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.378e-05/0.3816, allocations: 68.22 kB / 0.5714 GB, free: 16.58 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001347/0.3817, allocations: 95.58 kB / 0.5715 GB, free: 16.55 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001734/0.3835, allocations: 1.08 MB / 0.5726 GB, free: 16.07 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.287e-05/0.3835, allocations: 1.281 kB / 0.5726 GB, free: 16.07 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.697e-05/0.3836, allocations: 36.75 kB / 0.5726 GB, free: 16.04 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.025e-05/0.3836, allocations: 22.28 kB / 0.5726 GB, free: 16.04 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001672/0.3853, allocations: 1.014 MB / 0.5736 GB, free: 15.68 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005177/0.3905, allocations: 4.742 MB / 0.5782 GB, free: 11.96 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001705/0.3922, allocations: 0.9334 MB / 0.5791 GB, free: 11.52 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007897/0.393, allocations: 0.4938 MB / 0.5796 GB, free: 11.32 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003997/0.397, allocations: 3.475 MB / 0.583 GB, free: 8.289 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.257e-05/0.3971, allocations: 43.31 kB / 0.5831 GB, free: 8.242 MB / 446.1 MB Notification: Performance of pre-optimization done (n=108): time 2.835e-06/0.3971, allocations: 0 / 0.5831 GB, free: 8.242 MB / 446.1 MB Notification: Performance of matching and sorting (n=122): time 0.00986/0.407, allocations: 4.381 MB / 0.5873 GB, free: 5.871 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.436e-05/0.407, allocations: 90.52 kB / 0.5874 GB, free: 5.777 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000786/0.4078, allocations: 0.6494 MB / 0.5881 GB, free: 5.488 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.158e-05/0.4079, allocations: 46.64 kB / 0.5881 GB, free: 5.441 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002112/0.4081, allocations: 411.2 kB / 0.5885 GB, free: 5.117 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002123/0.4083, allocations: 424.5 kB / 0.5889 GB, free: 4.781 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000289/0.4086, allocations: 200.3 kB / 0.5891 GB, free: 4.688 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.592e-05/0.4087, allocations: 354.2 kB / 0.5894 GB, free: 4.359 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008297/0.4096, allocations: 413.5 kB / 0.5898 GB, free: 4.211 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009331/0.4105, allocations: 0.5666 MB / 0.5904 GB, free: 3.906 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001829/0.4123, allocations: 1.043 MB / 0.5914 GB, free: 3.34 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.4124, allocations: 1.156 kB / 0.5914 GB, free: 3.34 MB / 446.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003241/0.4156, allocations: 1.482 MB / 0.5928 GB, free: 2.699 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.4157, allocations: 5.906 kB / 0.5929 GB, free: 2.699 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.4157, allocations: 15.2 kB / 0.5929 GB, free: 2.695 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001006/0.4167, allocations: 308 kB / 0.5932 GB, free: 2.562 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009178/0.4176, allocations: 233.9 kB / 0.5934 GB, free: 2.539 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009735/0.4274, allocations: 12.14 MB / 0.6052 GB, free: 6.293 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001266/0.4287, allocations: 60.08 kB / 0.6053 GB, free: 6.254 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002605/0.429, allocations: 47.02 kB / 0.6053 GB, free: 6.242 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.0007603/0.4297, allocations: 259 kB / 0.6056 GB, free: 6.023 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004096/0.4301, allocations: 99.59 kB / 0.6057 GB, free: 5.973 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004279/0.4344, allocations: 1.859 MB / 0.6075 GB, free: 4.828 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.384e-05/0.4345, allocations: 12.16 kB / 0.6075 GB, free: 4.828 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.726e-05/0.4345, allocations: 4.406 kB / 0.6075 GB, free: 4.828 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.731e-05/0.4345, allocations: 3.984 kB / 0.6075 GB, free: 4.824 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005884/0.4404, allocations: 2.848 MB / 0.6103 GB, free: 2.609 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.836e-06/0.4404, allocations: 4 kB / 0.6103 GB, free: 2.605 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009485/0.4414, allocations: 219.8 kB / 0.6105 GB, free: 2.391 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001113/0.4425, allocations: 326 kB / 0.6108 GB, free: 2.051 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001193/0.4427, allocations: 39.98 kB / 0.6109 GB, free: 2.012 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01079/0.4535, allocations: 12.15 MB / 0.6227 GB, free: 4.77 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.4535, allocations: 0 / 0.6227 GB, free: 4.77 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004952/0.4584, allocations: 2.164 MB / 0.6248 GB, free: 2.551 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004063/0.4589, allocations: 167.9 kB / 0.625 GB, free: 2.367 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002723/0.4592, allocations: 27.94 kB / 0.625 GB, free: 2.34 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000911/0.4601, allocations: 59.94 kB / 0.6251 GB, free: 2.281 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002773/0.4604, allocations: 104.8 kB / 0.6252 GB, free: 2.18 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001196/0.4605, allocations: 51.97 kB / 0.6252 GB, free: 2.129 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0007684/0.4613, allocations: 491 kB / 0.6257 GB, free: 1.656 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4613, allocations: 0 / 0.6257 GB, free: 1.656 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001791/0.4631, allocations: 443.9 kB / 0.6261 GB, free: 1.223 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.0008239/0.4639, allocations: 420 kB / 0.6265 GB, free: 0.8242 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004322/0.4682, allocations: 2.123 MB / 0.6286 GB, free: 14.61 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.4683, allocations: 4 kB / 0.6286 GB, free: 14.6 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00276/0.471, allocations: 1.609 MB / 0.6302 GB, free: 12.89 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002017/0.4731, allocations: 335.4 kB / 0.6305 GB, free: 12.6 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005393/0.4785, allocations: 2.571 MB / 0.633 GB, free: 10.03 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008123/0.4793, allocations: 1.058 MB / 0.634 GB, free: 8.941 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004501/0.4798, allocations: 119.4 kB / 0.6342 GB, free: 8.824 MB / 494.1 MB Notification: Performance of SimCode: time 7.41e-07/0.4798, allocations: 0 / 0.6342 GB, free: 8.824 MB / 494.1 MB Notification: Performance of Templates: time 0.0602/0.54, allocations: 50.49 MB / 0.6835 GB, free: 6.516 MB / 0.5294 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 -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