Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,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.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1") Notification: Performance of loadModel(ModelicaTest): time 2.202/2.202, allocations: 234.9 MB / 250.5 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004453/0.0004454, allocations: 19.98 kB / 314.4 MB, free: 9.547 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2766/0.2771, allocations: 54.85 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.379/6.656, allocations: 2.658 GB / 3.019 GB, free: 49.46 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000223/6.656, allocations: 83.33 kB / 3.019 GB, free: 49.42 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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 3.389/10.05, allocations: 0.7993 GB / 3.818 GB, free: 15.01 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.688e-06/10.05, allocations: 0 / 3.818 GB, free: 15.01 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002838/10.05, allocations: 63.92 kB / 3.818 GB, free: 14.95 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.01715/10.06, allocations: 4.125 MB / 3.822 GB, free: 10.75 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.624e-05/10.06, allocations: 16.02 kB / 3.822 GB, free: 10.74 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008249/10.07, allocations: 0.8364 MB / 3.823 GB, free: 9.898 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007875/10.08, allocations: 2.127 MB / 3.825 GB, free: 7.727 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003454/10.08, allocations: 171.7 kB / 3.825 GB, free: 7.559 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008804/10.08, allocations: 196 kB / 3.825 GB, free: 7.367 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01191/10.09, allocations: 3.588 MB / 3.829 GB, free: 3.574 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001003/10.09, allocations: 3.938 kB / 3.829 GB, free: 3.57 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004227/10.09, allocations: 91.95 kB / 3.829 GB, free: 3.48 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002933/10.09, allocations: 167.5 kB / 3.829 GB, free: 3.316 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01184/10.11, allocations: 3.289 MB / 3.832 GB, free: 24 kB / 0.5105 GB 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.3668/10.47, allocations: 15.05 MB / 3.847 GB, free: 26.09 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007448/10.48, allocations: 2.298 MB / 3.849 GB, free: 26.06 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03962/10.52, allocations: 18.82 MB / 3.868 GB, free: 30.34 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00553/10.53, allocations: 1.637 MB / 3.869 GB, free: 30.24 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=155): time 6.382e-06/10.53, allocations: 0 / 3.869 GB, free: 30.24 MB / 0.5261 GB Notification: Performance of matching and sorting (n=171): time 0.03202/10.56, allocations: 8.864 MB / 3.878 GB, free: 29.3 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002007/10.56, allocations: 277.1 kB / 3.878 GB, free: 28.99 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002813/10.56, allocations: 1.42 MB / 3.88 GB, free: 28.82 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004713/10.56, allocations: 62.67 kB / 3.88 GB, free: 28.79 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000876/10.56, allocations: 0.92 MB / 3.881 GB, free: 28.41 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007816/10.56, allocations: 0.584 MB / 3.881 GB, free: 28.12 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002172/10.56, allocations: 39.72 kB / 3.881 GB, free: 28.12 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002671/10.56, allocations: 397.5 kB / 3.882 GB, free: 27.81 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002847/10.57, allocations: 1.154 MB / 3.883 GB, free: 27.8 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003354/10.57, allocations: 1.647 MB / 3.884 GB, free: 27.25 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003384/10.57, allocations: 1.38 MB / 3.886 GB, free: 27.2 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.838e-05/10.57, allocations: 3.188 kB / 3.886 GB, free: 27.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.008561/10.58, allocations: 3.211 MB / 3.889 GB, free: 27.02 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002538/10.58, allocations: 5.182 MB / 3.894 GB, free: 21.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.646e-05/10.58, allocations: 18.8 kB / 3.894 GB, free: 21.63 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001309/10.59, allocations: 280.6 kB / 3.894 GB, free: 21.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003028/10.59, allocations: 0.5154 MB / 3.895 GB, free: 21.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00228/10.59, allocations: 2.495 MB / 3.897 GB, free: 19.53 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003256/10.59, allocations: 261.2 kB / 3.897 GB, free: 19.52 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005263/10.59, allocations: 97.75 kB / 3.897 GB, free: 19.52 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/10.59, allocations: 5.188 kB / 3.897 GB, free: 19.52 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008504/10.6, allocations: 3.065 MB / 3.9 GB, free: 19.41 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.358e-05/10.6, allocations: 18.34 kB / 3.9 GB, free: 19.41 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001179/10.6, allocations: 271.5 kB / 3.901 GB, free: 19.38 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002937/10.61, allocations: 0.5146 MB / 3.901 GB, free: 19.38 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002204/10.61, allocations: 2.496 MB / 3.904 GB, free: 17.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002488/10.61, allocations: 260.8 kB / 3.904 GB, free: 17.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000325/10.61, allocations: 102.5 kB / 3.904 GB, free: 17.3 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 23 (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,valveOpening1.nextEventScaled,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 (251): * Single equations (assignments): 244 * 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: 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 prepare postOptimizeDAE: time 0.002034/10.61, allocations: 0.7254 MB / 3.905 GB, free: 17.08 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005605/10.62, allocations: 203.5 kB / 3.905 GB, free: 16.98 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01347/10.63, allocations: 7.77 MB / 3.913 GB, free: 16.27 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.295e-05/10.63, allocations: 91.77 kB / 3.913 GB, free: 16.27 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.164e-05/10.63, allocations: 0 / 3.913 GB, free: 16.27 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01104/10.64, allocations: 6.671 MB / 3.919 GB, free: 15.44 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01954/10.66, allocations: 10.92 MB / 3.93 GB, free: 14.69 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.515e-05/10.66, allocations: 0 / 3.93 GB, free: 14.69 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002308/10.66, allocations: 400.9 kB / 3.93 GB, free: 14.69 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001897/10.66, allocations: 377.3 kB / 3.931 GB, free: 14.65 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00044/10.66, allocations: 70.48 kB / 3.931 GB, free: 14.65 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002196/10.67, allocations: 2.576 MB / 3.933 GB, free: 12.57 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.473e-06/10.67, allocations: 2.406 kB / 3.933 GB, free: 12.57 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01343/10.68, allocations: 7.219 MB / 3.94 GB, free: 11.94 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002057/10.68, allocations: 0.7549 MB / 3.941 GB, free: 11.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006929/10.68, allocations: 52.94 kB / 3.941 GB, free: 11.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002467/10.69, allocations: 198.3 kB / 3.941 GB, free: 11.59 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004625/10.69, allocations: 151.6 kB / 3.941 GB, free: 11.59 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002198/10.69, allocations: 68.42 kB / 3.941 GB, free: 11.59 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00243/10.69, allocations: 1.182 MB / 3.942 GB, free: 11.45 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.087e-06/10.69, allocations: 0 / 3.942 GB, free: 11.45 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01101/10.7, allocations: 2.769 MB / 3.945 GB, free: 11.32 MB / 0.5261 GB 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: 54 ($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,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,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.01231/10.71, allocations: 2.824 MB / 3.948 GB, free: 11.03 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01196/10.72, allocations: 5.287 MB / 3.953 GB, free: 26.75 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.475e-06/10.72, allocations: 0 / 3.953 GB, free: 26.75 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004483/10.73, allocations: 2.443 MB / 3.956 GB, free: 26.66 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005259/10.73, allocations: 0.8685 MB / 3.956 GB, free: 26.64 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6167/11.35, allocations: 130.9 MB / 4.084 GB, free: 60.84 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002244/11.35, allocations: 2.262 MB / 4.086 GB, free: 60.09 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001172/11.35, allocations: 208 kB / 4.087 GB, free: 60.09 MB / 0.5417 GB Notification: Performance of SimCode: time 1.805e-06/11.35, allocations: 0 / 4.087 GB, free: 60.09 MB / 0.5417 GB Notification: Performance of Templates: time 0.153/11.51, allocations: 117.6 MB / 4.201 GB, free: 21.08 MB / 0.5417 GB