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.BranchingPipes12.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.BranchingPipes12,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|pipe3.mediums.1..h|pipe3.mediums.1..p|valveIncompressible.filter.x.1.|valveIncompressible.filter.x.2.|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12") Notification: Performance of loadModel(ModelicaTest): time 1.847/1.847, allocations: 209.3 MB / 225.4 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004249/0.000425, allocations: 12 kB / 283.1 MB, free: 9.699 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.345/0.3455, allocations: 48.7 MB / 331.8 MB, free: 6.492 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.326/7.672, allocations: 2.545 GB / 2.869 GB, free: 91.19 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002698/7.672, allocations: 79.27 kB / 2.869 GB, free: 91.19 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.032/11.7, allocations: 0.7842 GB / 3.654 GB, free: 36.08 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.096e-06/11.7, allocations: 0 / 3.654 GB, free: 36.08 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003832/11.71, allocations: 73.61 kB / 3.654 GB, free: 36.05 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 514 * Number of variables: 514 Notification: Performance of Generate backend data structure: time 0.02065/11.73, allocations: 4.12 MB / 3.658 GB, free: 33.89 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/11.73, allocations: 7.25 kB / 3.658 GB, free: 33.89 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008427/11.73, allocations: 0.8138 MB / 3.658 GB, free: 33.67 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008907/11.74, allocations: 2.177 MB / 3.661 GB, free: 32.7 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003999/11.74, allocations: 175.6 kB / 3.661 GB, free: 32.62 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00136/11.75, allocations: 201.5 kB / 3.661 GB, free: 32.57 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01387/11.76, allocations: 3.716 MB / 3.665 GB, free: 31.02 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.784e-05/11.76, allocations: 11.69 kB / 3.665 GB, free: 31.02 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000442/11.76, allocations: 87.84 kB / 3.665 GB, free: 30.96 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003096/11.76, allocations: 161.7 kB / 3.665 GB, free: 30.94 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01408/11.77, allocations: 3.534 MB / 3.668 GB, free: 29.85 MB / 474.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.03851/11.81, allocations: 14.76 MB / 3.683 GB, free: 18.69 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01082/11.82, allocations: 2.198 MB / 3.685 GB, free: 16.89 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4469/12.27, allocations: 18.86 MB / 3.703 GB, free: 35.46 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006837/12.28, allocations: 1.668 MB / 3.705 GB, free: 35.34 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001846/12.28, allocations: 186.5 kB / 3.705 GB, free: 35.34 MB / 474.7 MB Notification: Performance of pre-optimization done (n=158): time 7.664e-06/12.28, allocations: 1.281 kB / 3.705 GB, free: 35.34 MB / 474.7 MB Notification: Performance of matching and sorting (n=170): time 0.04406/12.32, allocations: 9.22 MB / 3.714 GB, free: 34.27 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000152/12.32, allocations: 416.6 kB / 3.714 GB, free: 33.8 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003809/12.33, allocations: 1.707 MB / 3.716 GB, free: 33.62 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006026/12.33, allocations: 58.27 kB / 3.716 GB, free: 33.59 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009821/12.33, allocations: 0.9232 MB / 3.717 GB, free: 33.23 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009882/12.33, allocations: 0.5728 MB / 3.718 GB, free: 32.95 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002431/12.33, allocations: 41.59 kB / 3.718 GB, free: 32.95 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001689/12.33, allocations: 397.5 kB / 3.718 GB, free: 32.63 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003649/12.33, allocations: 1.148 MB / 3.719 GB, free: 32.63 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004096/12.34, allocations: 1.628 MB / 3.721 GB, free: 32.12 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004161/12.34, allocations: 1.408 MB / 3.722 GB, free: 32.04 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.717e-05/12.34, allocations: 6.719 kB / 3.722 GB, free: 32.04 MB / 474.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.01063/12.35, allocations: 3.419 MB / 3.725 GB, free: 31.82 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003156/12.35, allocations: 489.3 kB / 3.726 GB, free: 31.28 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.278e-05/12.35, allocations: 17.22 kB / 3.726 GB, free: 31.28 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008528/12.36, allocations: 0.987 MB / 3.727 GB, free: 31.25 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003795/12.37, allocations: 474.5 kB / 3.727 GB, free: 31.25 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003749/12.37, allocations: 3.162 MB / 3.73 GB, free: 29.16 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004086/12.37, allocations: 231.7 kB / 3.731 GB, free: 29.15 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004516/12.37, allocations: 105.8 kB / 3.731 GB, free: 29.15 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/12.37, allocations: 5.656 kB / 3.731 GB, free: 29.15 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01032/12.38, allocations: 3.206 MB / 3.734 GB, free: 29.01 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.862e-05/12.38, allocations: 18.56 kB / 3.734 GB, free: 29.01 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002045/12.39, allocations: 356.2 kB / 3.734 GB, free: 28.97 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003987/12.39, allocations: 496.1 kB / 3.735 GB, free: 28.97 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005254/12.4, allocations: 4.105 MB / 3.739 GB, free: 26.16 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003354/12.4, allocations: 236.1 kB / 3.739 GB, free: 26.15 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004259/12.4, allocations: 101.2 kB / 3.739 GB, free: 26.15 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 27 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (223): * Single equations (assignments): 213 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.002581/12.4, allocations: 0.7643 MB / 3.74 GB, free: 25.89 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007752/12.4, allocations: 212.5 kB / 3.74 GB, free: 25.79 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01703/12.42, allocations: 7.853 MB / 3.748 GB, free: 25.13 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001147/12.42, allocations: 81.61 kB / 3.748 GB, free: 25.13 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/12.42, allocations: 0 / 3.748 GB, free: 25.13 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01369/12.43, allocations: 6.896 MB / 3.755 GB, free: 24.22 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02311/12.46, allocations: 10.89 MB / 3.765 GB, free: 23.48 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.319e-05/12.46, allocations: 2.438 kB / 3.765 GB, free: 23.48 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002833/12.46, allocations: 348.7 kB / 3.765 GB, free: 23.48 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00792/12.47, allocations: 2.142 MB / 3.768 GB, free: 23.39 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005948/12.47, allocations: 68.61 kB / 3.768 GB, free: 23.39 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004526/12.47, allocations: 4.099 MB / 3.772 GB, free: 21.29 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/12.47, allocations: 3.516 kB / 3.772 GB, free: 21.29 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0177/12.49, allocations: 7.955 MB / 3.779 GB, free: 20.61 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002465/12.49, allocations: 0.7559 MB / 3.78 GB, free: 20.29 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008305/12.49, allocations: 56 kB / 3.78 GB, free: 20.29 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002951/12.5, allocations: 193.8 kB / 3.78 GB, free: 20.27 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004555/12.5, allocations: 144.8 kB / 3.781 GB, free: 20.27 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002435/12.5, allocations: 67.17 kB / 3.781 GB, free: 20.27 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002791/12.5, allocations: 1.253 MB / 3.782 GB, free: 20.12 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.52e-07/12.5, allocations: 3.281 kB / 3.782 GB, free: 20.12 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01277/12.51, allocations: 2.806 MB / 3.785 GB, free: 20 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,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].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,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$cse45.phase,$cse45.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (168): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.01501/12.53, allocations: 2.825 MB / 3.787 GB, free: 19.7 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0152/12.54, allocations: 5.469 MB / 3.793 GB, free: 19.12 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.057e-06/12.54, allocations: 3.719 kB / 3.793 GB, free: 19.12 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005973/12.55, allocations: 2.374 MB / 3.795 GB, free: 18.96 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00836/12.56, allocations: 0.8878 MB / 3.796 GB, free: 18.94 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.763/13.32, allocations: 128.3 MB / 3.921 GB, free: 61.47 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002305/13.32, allocations: 2.244 MB / 3.923 GB, free: 60.73 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001361/13.33, allocations: 192.6 kB / 3.924 GB, free: 60.73 MB / 0.4948 GB Notification: Performance of SimCode: time 2.775e-06/13.33, allocations: 0 / 3.924 GB, free: 60.73 MB / 0.4948 GB Notification: Performance of Templates: time 0.1903/13.52, allocations: 116.5 MB / 4.037 GB, free: 27.23 MB / 0.4948 GB