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.BranchingPipes14.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.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|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.BranchingPipes14") Notification: Performance of loadModel(ModelicaTest): time 2.193/2.193, allocations: 209.2 MB / 225.4 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004178/0.0004179, allocations: 12 kB / 283.1 MB, free: 9.703 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3375/0.338, allocations: 48.7 MB / 331.8 MB, free: 6.488 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.518/7.856, allocations: 2.566 GB / 2.89 GB, free: 99.2 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002815/7.857, allocations: 88.95 kB / 2.891 GB, free: 99.19 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.276/13.13, allocations: 0.8821 GB / 3.773 GB, free: 28.97 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.635e-06/13.13, allocations: 0 / 3.773 GB, free: 28.97 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003427/13.13, allocations: 65.84 kB / 3.773 GB, free: 28.96 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: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.01955/13.15, allocations: 4.111 MB / 3.777 GB, free: 27.03 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/13.15, allocations: 9.938 kB / 3.777 GB, free: 27.03 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009046/13.16, allocations: 0.8524 MB / 3.778 GB, free: 26.89 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009011/13.17, allocations: 2.104 MB / 3.78 GB, free: 26.43 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003573/13.17, allocations: 181.4 kB / 3.78 GB, free: 26.43 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001081/13.17, allocations: 203.9 kB / 3.78 GB, free: 26.43 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01348/13.19, allocations: 3.657 MB / 3.783 GB, free: 25.88 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.451e-05/13.19, allocations: 9.438 kB / 3.784 GB, free: 25.88 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004641/13.19, allocations: 95.39 kB / 3.784 GB, free: 25.87 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003117/13.19, allocations: 167.5 kB / 3.784 GB, free: 25.87 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0134/13.2, allocations: 3.332 MB / 3.787 GB, free: 25.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.03074/13.23, allocations: 15.43 MB / 3.802 GB, free: 16.4 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00956/13.24, allocations: 2.781 MB / 3.805 GB, free: 15.79 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05995/13.3, allocations: 18.7 MB / 3.823 GB, free: 19.87 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007052/13.31, allocations: 1.702 MB / 3.825 GB, free: 19.73 MB / 490.7 MB Notification: Performance of pre-optimization done (n=169): time 5.951e-06/13.31, allocations: 0 / 3.825 GB, free: 19.73 MB / 490.7 MB Notification: Performance of matching and sorting (n=185): time 0.04249/13.35, allocations: 9.18 MB / 3.834 GB, free: 18.4 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001758/13.35, allocations: 258.5 kB / 3.834 GB, free: 18.12 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003232/13.35, allocations: 1.546 MB / 3.835 GB, free: 17.92 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006688/13.35, allocations: 62.95 kB / 3.836 GB, free: 17.89 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009558/13.36, allocations: 0.9223 MB / 3.836 GB, free: 17.43 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001042/13.36, allocations: 0.6081 MB / 3.837 GB, free: 17.04 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000248/13.36, allocations: 39.28 kB / 3.837 GB, free: 17.04 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002361/13.36, allocations: 394.1 kB / 3.837 GB, free: 16.73 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003857/13.36, allocations: 1.126 MB / 3.839 GB, free: 16.71 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00452/13.37, allocations: 1.635 MB / 3.84 GB, free: 16.18 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004369/13.37, allocations: 1.376 MB / 3.841 GB, free: 16.07 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.971e-05/13.37, allocations: 2.719 kB / 3.841 GB, free: 16.07 MB / 490.7 MB Notification: Performance of matching and sorting (n=266) (initialization): time 0.01103/13.38, allocations: 3.211 MB / 3.845 GB, free: 14.96 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004048/13.38, allocations: 0.5227 MB / 3.845 GB, free: 14.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.396e-05/13.38, allocations: 11.66 kB / 3.845 GB, free: 14.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001461/13.38, allocations: 251.9 kB / 3.845 GB, free: 14.21 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004528/13.39, allocations: 0.5286 MB / 3.846 GB, free: 14.16 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002202/13.39, allocations: 2.427 MB / 3.848 GB, free: 11.93 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004794/13.39, allocations: 313 kB / 3.849 GB, free: 11.85 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00069/13.4, allocations: 108.3 kB / 3.849 GB, free: 11.83 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/13.4, allocations: 3.938 kB / 3.849 GB, free: 11.83 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01001/13.41, allocations: 3.067 MB / 3.852 GB, free: 10.67 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.709e-05/13.41, allocations: 11.44 kB / 3.852 GB, free: 10.67 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001334/13.41, allocations: 250.7 kB / 3.852 GB, free: 10.59 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004279/13.41, allocations: 0.5222 MB / 3.852 GB, free: 10.53 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002005/13.41, allocations: 2.431 MB / 3.855 GB, free: 8.297 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003837/13.42, allocations: 312.6 kB / 3.855 GB, free: 8.223 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005245/13.42, allocations: 104.2 kB / 3.855 GB, free: 8.199 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 28 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (254): * Single equations (assignments): 248 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * 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.002401/13.42, allocations: 0.759 MB / 3.856 GB, free: 7.699 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009974/13.42, allocations: 209.3 kB / 3.856 GB, free: 7.594 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02096/13.44, allocations: 7.564 MB / 3.863 GB, free: 2.785 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001096/13.44, allocations: 85.56 kB / 3.864 GB, free: 2.734 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.126e-05/13.44, allocations: 0 / 3.864 GB, free: 2.734 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01701/13.46, allocations: 6.599 MB / 3.87 GB, free: 12.63 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03229/13.49, allocations: 12.19 MB / 3.882 GB, free: 1.926 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.162e-05/13.49, allocations: 4 kB / 3.882 GB, free: 1.922 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003596/13.5, allocations: 428 kB / 3.882 GB, free: 1.57 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002467/13.5, allocations: 371.4 kB / 3.883 GB, free: 1.285 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006102/13.5, allocations: 74.41 kB / 3.883 GB, free: 1.223 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.396/13.89, allocations: 2.521 MB / 3.885 GB, free: 57.48 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-05/13.89, allocations: 7.812 kB / 3.885 GB, free: 57.48 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01947/13.91, allocations: 7.387 MB / 3.892 GB, free: 56.82 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002557/13.92, allocations: 0.7432 MB / 3.893 GB, free: 56.73 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001121/13.92, allocations: 65.83 kB / 3.893 GB, free: 56.73 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003789/13.92, allocations: 221 kB / 3.893 GB, free: 56.73 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007622/13.92, allocations: 169.3 kB / 3.894 GB, free: 56.73 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003372/13.92, allocations: 82.12 kB / 3.894 GB, free: 56.73 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003447/13.93, allocations: 1.14 MB / 3.895 GB, free: 56.58 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7.11e-07/13.93, allocations: 1.547 kB / 3.895 GB, free: 56.58 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.015/13.94, allocations: 2.716 MB / 3.897 GB, free: 56.58 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 54 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.region3boundary,$cse44.region3boundary,$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,junctionIdeal.medium.phase) * 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 (212): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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.03169/13.97, allocations: 2.84 MB / 3.9 GB, free: 56.41 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.04088/14.01, allocations: 5.249 MB / 3.905 GB, free: 56.07 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.695e-05/14.01, allocations: 1.312 kB / 3.905 GB, free: 56.07 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00978/14.02, allocations: 2.698 MB / 3.908 GB, free: 55.93 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01406/14.04, allocations: 0.9801 MB / 3.909 GB, free: 55.9 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4184/14.46, allocations: 128.6 MB / 4.034 GB, free: 30.3 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002371/14.46, allocations: 2.244 MB / 4.037 GB, free: 28.64 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001566/14.46, allocations: 215.9 kB / 4.037 GB, free: 28.45 MB / 0.4948 GB Notification: Performance of SimCode: time 1.683e-06/14.46, allocations: 0 / 4.037 GB, free: 28.45 MB / 0.4948 GB Notification: Performance of Templates: time 0.6265/15.09, allocations: 117.3 MB / 4.151 GB, free: 42.64 MB / 0.4948 GB