Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe2.mediums.2..h|pipe2.mediums.2..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valve.filter.x.1.|valve.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") Notification: Performance of loadModel(ModelicaTest): time 1.959/1.959, allocations: 209.2 MB / 225.4 MB, free: 0.5391 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006314/0.0006317, allocations: 8 kB / 283.1 MB, free: 9.688 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4604/0.461, allocations: 48.7 MB / 331.8 MB, free: 6.496 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.759/8.22, allocations: 2.548 GB / 2.872 GB, free: 92.02 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003816/8.22, allocations: 87.03 kB / 2.872 GB, free: 92.02 MB / 442.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Interfaces.mo:327:3-329:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Performance of FrontEnd - DAE generated: time 4.123/12.34, allocations: 0.7812 GB / 3.653 GB, free: 20.79 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.726e-06/12.34, allocations: 0 / 3.653 GB, free: 20.79 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003327/12.34, allocations: 71.5 kB / 3.653 GB, free: 20.78 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 510 * Number of variables: 510 Notification: Performance of Generate backend data structure: time 0.01874/12.36, allocations: 4.008 MB / 3.657 GB, free: 18.56 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/12.36, allocations: 11.53 kB / 3.657 GB, free: 18.56 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00872/12.37, allocations: 0.8309 MB / 3.658 GB, free: 18.35 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008742/12.38, allocations: 2.094 MB / 3.66 GB, free: 17.41 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000325/12.38, allocations: 184.3 kB / 3.66 GB, free: 17.33 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001009/12.38, allocations: 205 kB / 3.66 GB, free: 17.27 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01242/12.39, allocations: 3.598 MB / 3.664 GB, free: 15.79 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.146e-05/12.39, allocations: 7.469 kB / 3.664 GB, free: 15.79 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004359/12.39, allocations: 88.06 kB / 3.664 GB, free: 15.73 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003078/12.39, allocations: 159 kB / 3.664 GB, free: 15.71 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01273/12.41, allocations: 3.284 MB / 3.667 GB, free: 14.75 MB / 458.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03008/12.44, allocations: 15.02 MB / 3.682 GB, free: 18.78 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008823/12.45, allocations: 2.307 MB / 3.684 GB, free: 16.89 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4348/12.88, allocations: 18.78 MB / 3.702 GB, free: 35.88 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007208/12.89, allocations: 1.634 MB / 3.704 GB, free: 35.79 MB / 474.7 MB Notification: Performance of pre-optimization done (n=153): time 6.332e-06/12.89, allocations: 0 / 3.704 GB, free: 35.79 MB / 474.7 MB Notification: Performance of matching and sorting (n=169): time 0.03638/12.93, allocations: 8.169 MB / 3.712 GB, free: 35.06 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001315/12.93, allocations: 288.4 kB / 3.712 GB, free: 34.74 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004055/12.93, allocations: 1.6 MB / 3.714 GB, free: 34.56 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006082/12.93, allocations: 57.08 kB / 3.714 GB, free: 34.53 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001099/12.93, allocations: 0.9301 MB / 3.715 GB, free: 34.15 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001177/12.93, allocations: 0.5779 MB / 3.715 GB, free: 33.86 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002749/12.93, allocations: 38.12 kB / 3.715 GB, free: 33.86 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001864/12.93, allocations: 394.3 kB / 3.716 GB, free: 33.55 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004014/12.94, allocations: 1.143 MB / 3.717 GB, free: 33.54 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004424/12.94, allocations: 1.653 MB / 3.718 GB, free: 32.99 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004397/12.95, allocations: 1.375 MB / 3.72 GB, free: 32.94 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.349e-05/12.95, allocations: 4.438 kB / 3.72 GB, free: 32.94 MB / 474.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.01269/12.96, allocations: 3.836 MB / 3.723 GB, free: 32.78 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003802/12.96, allocations: 0.5055 MB / 3.724 GB, free: 32.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.525e-05/12.96, allocations: 13.84 kB / 3.724 GB, free: 32.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02504/12.98, allocations: 2.929 MB / 3.727 GB, free: 32.18 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002291/12.99, allocations: 319.3 kB / 3.727 GB, free: 32.18 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009752/13, allocations: 3.494 MB / 3.731 GB, free: 31.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004216/13, allocations: 260 kB / 3.731 GB, free: 31.59 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006784/13, allocations: 106.1 kB / 3.731 GB, free: 31.59 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/13, allocations: 3.344 kB / 3.731 GB, free: 31.59 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01216/13.01, allocations: 3.538 MB / 3.734 GB, free: 31.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.521e-05/13.01, allocations: 17.08 kB / 3.734 GB, free: 31.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01176/13.03, allocations: 1.721 MB / 3.736 GB, free: 31.48 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002635/13.03, allocations: 361 kB / 3.736 GB, free: 31.48 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006893/13.04, allocations: 2.741 MB / 3.739 GB, free: 30.93 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003248/13.04, allocations: 255.5 kB / 3.739 GB, free: 30.92 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004517/13.04, allocations: 101 kB / 3.739 GB, free: 30.92 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 22 (pipe3.state_a.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,valve.state_b.phase,valve.state_a.phase,pipe1.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,pipe3.statesFM[2].phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (162): * Single equations (assignments): 158 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 86} Notification: Performance of prepare postOptimizeDAE: time 0.002475/13.04, allocations: 0.7214 MB / 3.74 GB, free: 30.69 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007428/13.04, allocations: 199.2 kB / 3.74 GB, free: 30.59 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01735/13.06, allocations: 7.77 MB / 3.748 GB, free: 29.91 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001107/13.06, allocations: 93.12 kB / 3.748 GB, free: 29.91 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.458e-05/13.06, allocations: 9.984 kB / 3.748 GB, free: 29.91 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01396/13.07, allocations: 6.674 MB / 3.754 GB, free: 29.09 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02406/13.1, allocations: 10.91 MB / 3.765 GB, free: 28.33 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-05/13.1, allocations: 0 / 3.765 GB, free: 28.33 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003306/13.1, allocations: 402.7 kB / 3.766 GB, free: 28.33 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002375/13.1, allocations: 383.8 kB / 3.766 GB, free: 28.29 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005251/13.1, allocations: 65.23 kB / 3.766 GB, free: 28.29 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001751/13.11, allocations: 2.577 MB / 3.768 GB, free: 26.21 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/13.11, allocations: 2.812 kB / 3.768 GB, free: 26.21 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01688/13.12, allocations: 7.216 MB / 3.776 GB, free: 25.58 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002459/13.13, allocations: 0.7452 MB / 3.776 GB, free: 25.25 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009681/13.13, allocations: 52.11 kB / 3.776 GB, free: 25.25 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003382/13.13, allocations: 201.5 kB / 3.777 GB, free: 25.23 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006557/13.13, allocations: 148.8 kB / 3.777 GB, free: 25.23 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002679/13.13, allocations: 62.97 kB / 3.777 GB, free: 25.23 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002725/13.13, allocations: 1.187 MB / 3.778 GB, free: 25.09 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.41e-07/13.13, allocations: 0 / 3.778 GB, free: 25.09 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01333/13.15, allocations: 2.753 MB / 3.781 GB, free: 24.96 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve.filter.x[1],valve.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe2.mediums[2].p,pipe2.mediums[2].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 53 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse22.phase,$cse22.region,$cse24.region3boundary,$cse25.region3boundary,$cse26.phase,$cse26.region,$cse27.region3boundary,$cse28.region3boundary,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse39.region3boundary,$cse40.region3boundary,$cse41.phase,$cse41.region,$cse43.phase,$cse43.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,pipe3.statesFM[2].phase) * Number of discrete states: 5 (valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (197): * Single equations (assignments): 167 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 25 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01537/13.16, allocations: 2.815 MB / 3.783 GB, free: 24.66 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01563/13.18, allocations: 5.318 MB / 3.788 GB, free: 24.34 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.899e-06/13.18, allocations: 2.469 kB / 3.788 GB, free: 24.34 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005836/13.18, allocations: 2.414 MB / 3.791 GB, free: 24.27 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008179/13.19, allocations: 0.8641 MB / 3.792 GB, free: 24.24 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7632/13.96, allocations: 128.7 MB / 3.917 GB, free: 61.62 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002784/13.96, allocations: 2.254 MB / 3.92 GB, free: 60.88 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001229/13.96, allocations: 188 kB / 3.92 GB, free: 60.87 MB / 0.4948 GB Notification: Performance of SimCode: time 1.173e-06/13.96, allocations: 0 / 3.92 GB, free: 60.87 MB / 0.4948 GB Notification: Performance of Templates: time 0.1932/14.15, allocations: 97.47 MB / 4.015 GB, free: 44.98 MB / 0.4948 GB