Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.866/1.866, allocations: 209.3 MB / 222.4 MB, free: 7.715 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.338e-05/3.356e-05, allocations: 11.98 kB / 277.8 MB, free: 15.29 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09086/0.09092, allocations: 48.69 MB / 326.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.108/6.199, allocations: 2.545 GB / 2.864 GB, free: 100.6 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002025/6.199, allocations: 80.19 kB / 2.864 GB, free: 100.5 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.341/9.54, allocations: 0.7821 GB / 3.646 GB, free: 9.195 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.632e-06/9.54, allocations: 0 / 3.646 GB, free: 9.195 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002859/9.54, allocations: 71.78 kB / 3.646 GB, free: 9.129 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.01611/9.556, allocations: 3.833 MB / 3.65 GB, free: 5.25 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/9.556, allocations: 8.031 kB / 3.65 GB, free: 5.242 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007971/9.564, allocations: 0.8099 MB / 3.651 GB, free: 4.434 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007684/9.572, allocations: 2.17 MB / 3.653 GB, free: 2.246 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003251/9.572, allocations: 170.5 kB / 3.653 GB, free: 2.086 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000913/9.573, allocations: 199.6 kB / 3.653 GB, free: 1.902 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3209/9.894, allocations: 3.677 MB / 3.657 GB, free: 28.01 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.841e-05/9.894, allocations: 7.75 kB / 3.657 GB, free: 28.01 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004311/9.895, allocations: 87.45 kB / 3.657 GB, free: 28.01 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003124/9.895, allocations: 166 kB / 3.657 GB, free: 28 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01022/9.905, allocations: 3.413 MB / 3.66 GB, free: 27.99 MB / 474.7 MB Warning: The model contains alias variables with conflicting start and/or 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.02496/9.93, allocations: 14.74 MB / 3.675 GB, free: 19.59 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008183/9.938, allocations: 2.117 MB / 3.677 GB, free: 19.56 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002192/9.941, allocations: 1.048 MB / 3.678 GB, free: 19.55 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04223/9.983, allocations: 18.93 MB / 3.696 GB, free: 23.73 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005279/9.988, allocations: 1.669 MB / 3.698 GB, free: 23.61 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001552/9.99, allocations: 191.1 kB / 3.698 GB, free: 23.56 MB / 490.7 MB Notification: Performance of pre-optimization done (n=158): time 5.858e-06/9.99, allocations: 0 / 3.698 GB, free: 23.56 MB / 490.7 MB Notification: Performance of matching and sorting (n=170): time 0.02469/10.01, allocations: 7.337 MB / 3.705 GB, free: 22.63 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002661/10.01, allocations: 416.9 kB / 3.706 GB, free: 22.16 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002763/10.02, allocations: 1.494 MB / 3.707 GB, free: 21.98 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004152/10.02, allocations: 56.39 kB / 3.707 GB, free: 21.95 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007798/10.02, allocations: 0.9221 MB / 3.708 GB, free: 21.59 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006065/10.02, allocations: 0.5762 MB / 3.709 GB, free: 21.3 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002054/10.02, allocations: 37.78 kB / 3.709 GB, free: 21.3 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002389/10.02, allocations: 394.3 kB / 3.709 GB, free: 20.98 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002242/10.02, allocations: 1.053 MB / 3.71 GB, free: 20.98 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002563/10.02, allocations: 1.514 MB / 3.712 GB, free: 20.47 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002668/10.03, allocations: 1.318 MB / 3.713 GB, free: 20.38 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.396e-05/10.03, allocations: 6.625 kB / 3.713 GB, free: 20.38 MB / 490.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.007427/10.04, allocations: 3.197 MB / 3.716 GB, free: 20.17 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002106/10.04, allocations: 4.425 MB / 3.72 GB, free: 15.57 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.192e-05/10.04, allocations: 17.47 kB / 3.72 GB, free: 15.57 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006753/10.04, allocations: 0.9542 MB / 3.721 GB, free: 15.54 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002578/10.05, allocations: 474.9 kB / 3.722 GB, free: 15.54 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003633/10.05, allocations: 3.161 MB / 3.725 GB, free: 13.45 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002966/10.05, allocations: 235.3 kB / 3.725 GB, free: 13.45 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003235/10.05, allocations: 112.1 kB / 3.725 GB, free: 13.45 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/10.05, allocations: 2.875 kB / 3.725 GB, free: 13.45 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00716/10.06, allocations: 2.996 MB / 3.728 GB, free: 13.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.652e-05/10.06, allocations: 14.19 kB / 3.728 GB, free: 13.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001471/10.06, allocations: 339 kB / 3.729 GB, free: 13.27 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002703/10.07, allocations: 0.4892 MB / 3.729 GB, free: 13.27 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004875/10.07, allocations: 4.053 MB / 3.733 GB, free: 10.45 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002348/10.07, allocations: 234.7 kB / 3.733 GB, free: 10.44 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002876/10.07, allocations: 102.4 kB / 3.733 GB, free: 10.44 MB / 490.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 () * 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.0007963/10.07, allocations: 293.4 kB / 3.734 GB, free: 10.27 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005407/10.07, allocations: 208.9 kB / 3.734 GB, free: 10.17 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01241/10.09, allocations: 7.765 MB / 3.741 GB, free: 9.484 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.753e-05/10.09, allocations: 81.31 kB / 3.741 GB, free: 9.484 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.203e-06/10.09, allocations: 3.75 kB / 3.741 GB, free: 9.484 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01022/10.1, allocations: 6.794 MB / 3.748 GB, free: 8.543 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01785/10.11, allocations: 10.77 MB / 3.759 GB, free: 7.793 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.587e-05/10.11, allocations: 1.875 kB / 3.759 GB, free: 7.793 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001902/10.12, allocations: 346.4 kB / 3.759 GB, free: 7.793 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006365/10.12, allocations: 2.496 MB / 3.761 GB, free: 7.695 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004413/10.12, allocations: 69.44 kB / 3.761 GB, free: 7.695 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004709/10.13, allocations: 4.102 MB / 3.765 GB, free: 21.59 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.66e-06/10.13, allocations: 0 / 3.765 GB, free: 21.59 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01255/10.14, allocations: 7.656 MB / 3.773 GB, free: 20.91 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001952/10.14, allocations: 0.7426 MB / 3.774 GB, free: 20.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000637/10.14, allocations: 54.62 kB / 3.774 GB, free: 20.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00225/10.15, allocations: 205.2 kB / 3.774 GB, free: 20.57 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003493/10.15, allocations: 135.9 kB / 3.774 GB, free: 20.57 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000211/10.15, allocations: 71.48 kB / 3.774 GB, free: 20.57 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002288/10.15, allocations: 1.229 MB / 3.775 GB, free: 20.41 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.63e-07/10.15, allocations: 0 / 3.775 GB, free: 20.41 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01027/10.16, allocations: 2.802 MB / 3.778 GB, free: 20.28 MB / 0.4948 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,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) * 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.01163/10.17, allocations: 2.832 MB / 3.781 GB, free: 19.98 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01027/10.18, allocations: 5.17 MB / 3.786 GB, free: 18.77 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.209e-06/10.18, allocations: 0 / 3.786 GB, free: 18.77 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004227/10.19, allocations: 2.301 MB / 3.788 GB, free: 17.74 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005697/10.19, allocations: 0.8795 MB / 3.789 GB, free: 17.56 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6091/10.8, allocations: 126.9 MB / 3.913 GB, free: 53.77 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002085/10.8, allocations: 2.247 MB / 3.915 GB, free: 52.99 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001056/10.8, allocations: 195.7 kB / 3.915 GB, free: 52.99 MB / 0.4948 GB Notification: Performance of SimCode: time 1.903e-06/10.8, allocations: 0 / 3.915 GB, free: 52.99 MB / 0.4948 GB Notification: Performance of Templates: time 0.465/11.27, allocations: 116.2 MB / 4.029 GB, free: 54.44 MB / 0.4948 GB