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.SeriesPipes2.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.SeriesPipes2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") Notification: Performance of loadModel(ModelicaTest): time 2.149/2.149, allocations: 234.9 MB / 250.5 MB, free: 9.539 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004506/0.0004506, allocations: 12 kB / 314.4 MB, free: 9.551 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3257/0.3262, allocations: 54.87 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.159/6.485, allocations: 2.656 GB / 3.016 GB, free: 51.97 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002155/6.486, allocations: 81.64 kB / 3.016 GB, free: 51.93 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.579/9.064, allocations: 0.5749 GB / 3.591 GB, free: 29.81 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.605e-06/9.065, allocations: 0 / 3.591 GB, free: 29.81 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001494/9.065, allocations: 45.17 kB / 3.591 GB, free: 29.77 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 0.0107/9.075, allocations: 3.039 MB / 3.594 GB, free: 27.02 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/9.075, allocations: 8.031 kB / 3.594 GB, free: 27.02 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005042/9.081, allocations: 0.5416 MB / 3.595 GB, free: 26.58 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004302/9.085, allocations: 1.453 MB / 3.596 GB, free: 25.32 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001523/9.085, allocations: 120.5 kB / 3.596 GB, free: 25.21 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003475/9.085, allocations: 121.3 kB / 3.596 GB, free: 25.09 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00609/9.092, allocations: 2.278 MB / 3.599 GB, free: 22.69 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.325e-05/9.092, allocations: 7.844 kB / 3.599 GB, free: 22.68 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002399/9.092, allocations: 64.86 kB / 3.599 GB, free: 22.62 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001565/9.092, allocations: 98.27 kB / 3.599 GB, free: 22.52 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006234/9.098, allocations: 2.058 MB / 3.601 GB, free: 20.46 MB / 490.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.01728/9.116, allocations: 9.65 MB / 3.61 GB, free: 10.07 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005064/9.121, allocations: 1.389 MB / 3.612 GB, free: 8.672 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05025/9.171, allocations: 18.79 MB / 3.63 GB, free: 3.582 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003754/9.175, allocations: 1.032 MB / 3.631 GB, free: 2.531 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=96): time 5.472e-06/9.175, allocations: 0 / 3.631 GB, free: 2.531 MB / 0.4948 GB Notification: Performance of matching and sorting (n=104): time 0.3797/9.555, allocations: 5.162 MB / 3.636 GB, free: 52.02 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.546e-05/9.555, allocations: 276.9 kB / 3.636 GB, free: 51.71 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002044/9.557, allocations: 0.9859 MB / 3.637 GB, free: 51.56 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002749/9.557, allocations: 47.27 kB / 3.637 GB, free: 51.53 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005447/9.558, allocations: 0.6378 MB / 3.638 GB, free: 51.24 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004007/9.558, allocations: 357.7 kB / 3.638 GB, free: 51.06 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001122/9.558, allocations: 24.19 kB / 3.638 GB, free: 51.06 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001184/9.558, allocations: 362.3 kB / 3.639 GB, free: 50.75 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001781/9.56, allocations: 0.6848 MB / 3.639 GB, free: 50.75 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001889/9.562, allocations: 1.008 MB / 3.64 GB, free: 50.39 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001958/9.564, allocations: 0.8343 MB / 3.641 GB, free: 50.36 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.106e-05/9.564, allocations: 2.719 kB / 3.641 GB, free: 50.36 MB / 0.4948 GB Notification: Performance of matching and sorting (n=162) (initialization): time 0.004636/9.569, allocations: 1.93 MB / 3.643 GB, free: 50.23 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006802/9.569, allocations: 3.253 MB / 3.646 GB, free: 46.86 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.291e-05/9.569, allocations: 14.98 kB / 3.646 GB, free: 46.86 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006662/9.57, allocations: 147.1 kB / 3.646 GB, free: 46.84 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001732/9.572, allocations: 320.3 kB / 3.646 GB, free: 46.84 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00087/9.573, allocations: 1.254 MB / 3.648 GB, free: 45.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001902/9.575, allocations: 160.5 kB / 3.648 GB, free: 45.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002199/9.575, allocations: 67.27 kB / 3.648 GB, free: 45.79 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/9.575, allocations: 4.156 kB / 3.648 GB, free: 45.79 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004722/9.58, allocations: 1.827 MB / 3.65 GB, free: 45.72 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.766e-05/9.58, allocations: 12.3 kB / 3.65 GB, free: 45.72 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005992/9.58, allocations: 140.5 kB / 3.65 GB, free: 45.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001602/9.582, allocations: 322.4 kB / 3.65 GB, free: 45.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007817/9.583, allocations: 1.254 MB / 3.651 GB, free: 44.67 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001397/9.584, allocations: 157.6 kB / 3.652 GB, free: 44.66 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001745/9.584, allocations: 68.25 kB / 3.652 GB, free: 44.66 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 17 (pipe3.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,pipe1.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.state_b.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 (152): * Single equations (assignments): 147 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001221/9.586, allocations: 0.5309 MB / 3.652 GB, free: 44.44 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003639/9.586, allocations: 140.2 kB / 3.652 GB, free: 44.37 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008141/9.594, allocations: 4.744 MB / 3.657 GB, free: 43.93 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.158e-05/9.594, allocations: 54.56 kB / 3.657 GB, free: 43.93 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.497e-06/9.594, allocations: 0 / 3.657 GB, free: 43.93 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006755/9.601, allocations: 3.991 MB / 3.661 GB, free: 43.49 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0118/9.613, allocations: 6.742 MB / 3.667 GB, free: 42.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-05/9.613, allocations: 0 / 3.667 GB, free: 42.96 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001445/9.614, allocations: 244.8 kB / 3.668 GB, free: 42.96 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001055/9.615, allocations: 189.4 kB / 3.668 GB, free: 42.94 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001812/9.616, allocations: 40.34 kB / 3.668 GB, free: 42.94 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008279/9.617, allocations: 1.289 MB / 3.669 GB, free: 41.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.693e-06/9.617, allocations: 3.938 kB / 3.669 GB, free: 41.9 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007974/9.625, allocations: 4.356 MB / 3.673 GB, free: 41.48 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001254/9.626, allocations: 0.5382 MB / 3.674 GB, free: 41.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003315/9.626, allocations: 32.53 kB / 3.674 GB, free: 41.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001313/9.627, allocations: 120.9 kB / 3.674 GB, free: 41.26 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002318/9.628, allocations: 83.3 kB / 3.674 GB, free: 41.26 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001298/9.628, allocations: 47.22 kB / 3.674 GB, free: 41.26 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001577/9.629, allocations: 0.8698 MB / 3.675 GB, free: 41.15 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.47e-07/9.63, allocations: 0 / 3.675 GB, free: 41.15 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008071/9.638, allocations: 2.184 MB / 3.677 GB, free: 41.1 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 36 ($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,$cse28.phase,$cse28.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled) * 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 (118): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 15 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01082/9.648, allocations: 2.382 MB / 3.68 GB, free: 40.86 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006958/9.655, allocations: 3.24 MB / 3.683 GB, free: 40.63 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.19e-06/9.655, allocations: 6.188 kB / 3.683 GB, free: 40.63 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002673/9.658, allocations: 1.478 MB / 3.684 GB, free: 40.57 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003755/9.662, allocations: 0.5725 MB / 3.685 GB, free: 40.56 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2718/9.934, allocations: 127.5 MB / 3.809 GB, free: 15.63 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001895/9.936, allocations: 1.7 MB / 3.811 GB, free: 14.25 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007534/9.937, allocations: 135 kB / 3.811 GB, free: 14.12 MB / 0.5105 GB Notification: Performance of SimCode: time 1.714e-06/9.937, allocations: 0 / 3.811 GB, free: 14.12 MB / 0.5105 GB Notification: Performance of Templates: time 0.4312/10.37, allocations: 68.86 MB / 3.878 GB, free: 60.2 MB / 0.5105 GB