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.BranchingPipes2.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.BranchingPipes2,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|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.BranchingPipes2") Notification: Performance of loadModel(ModelicaTest): time 1.823/1.823, allocations: 209.3 MB / 224.9 MB, free: 1.203 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004319/0.000432, allocations: 12 kB / 282.6 MB, free: 9.719 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08741/0.08786, allocations: 48.71 MB / 331.3 MB, free: 8.922 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.18/6.268, allocations: 2.562 GB / 2.886 GB, free: 37.05 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003241/6.268, allocations: 82.03 kB / 2.886 GB, free: 36.98 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.792/10.06, allocations: 0.7809 GB / 3.667 GB, free: 25.84 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.008e-06/10.06, allocations: 1.688 kB / 3.667 GB, free: 25.84 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000249/10.06, allocations: 63.14 kB / 3.667 GB, free: 25.82 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 463 * Number of variables: 463 Notification: Performance of Generate backend data structure: time 0.01541/10.08, allocations: 3.796 MB / 3.67 GB, free: 23.91 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/10.08, allocations: 10.34 kB / 3.67 GB, free: 23.91 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007291/10.08, allocations: 0.77 MB / 3.671 GB, free: 23.78 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006426/10.09, allocations: 1.997 MB / 3.673 GB, free: 23.34 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002757/10.09, allocations: 160.2 kB / 3.673 GB, free: 23.33 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008041/10.09, allocations: 184.6 kB / 3.673 GB, free: 23.33 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01079/10.1, allocations: 3.324 MB / 3.677 GB, free: 22.84 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.532e-05/10.1, allocations: 6.562 kB / 3.677 GB, free: 22.84 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006371/10.1, allocations: 77.89 kB / 3.677 GB, free: 22.84 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002374/10.1, allocations: 146.3 kB / 3.677 GB, free: 22.84 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01062/10.11, allocations: 3.165 MB / 3.68 GB, free: 22.82 MB / 458.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.02105/10.13, allocations: 13.63 MB / 3.693 GB, free: 14.57 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006314/10.14, allocations: 2.038 MB / 3.695 GB, free: 14.53 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04242/10.18, allocations: 18.8 MB / 3.714 GB, free: 18.68 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005576/10.19, allocations: 1.585 MB / 3.715 GB, free: 18.55 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001438/10.19, allocations: 164.6 kB / 3.715 GB, free: 18.48 MB / 474.7 MB Notification: Performance of pre-optimization done (n=151): time 5.778e-06/10.19, allocations: 0 / 3.715 GB, free: 18.48 MB / 474.7 MB Notification: Performance of matching and sorting (n=163): time 0.03/10.22, allocations: 8.305 MB / 3.723 GB, free: 17.19 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001894/10.22, allocations: 259.4 kB / 3.724 GB, free: 16.9 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002484/10.22, allocations: 1.264 MB / 3.725 GB, free: 16.73 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004721/10.22, allocations: 57.95 kB / 3.725 GB, free: 16.7 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007629/10.22, allocations: 0.8237 MB / 3.726 GB, free: 16.28 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00068/10.23, allocations: 0.5478 MB / 3.726 GB, free: 15.93 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001814/10.23, allocations: 35.44 kB / 3.726 GB, free: 15.93 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002452/10.23, allocations: 390.8 kB / 3.727 GB, free: 15.62 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002625/10.23, allocations: 1.011 MB / 3.728 GB, free: 15.61 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003192/10.23, allocations: 1.446 MB / 3.729 GB, free: 15.15 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003067/10.23, allocations: 1.246 MB / 3.73 GB, free: 15.05 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.489e-05/10.24, allocations: 3 kB / 3.73 GB, free: 15.05 MB / 474.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.009131/10.24, allocations: 3.024 MB / 3.733 GB, free: 14.82 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002178/10.25, allocations: 4.251 MB / 3.737 GB, free: 10.37 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.501e-05/10.25, allocations: 11.75 kB / 3.737 GB, free: 10.37 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003227/10.25, allocations: 0.5338 MB / 3.738 GB, free: 10.32 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002556/10.25, allocations: 455 kB / 3.738 GB, free: 10.32 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002828/10.26, allocations: 2.709 MB / 3.741 GB, free: 8.238 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003387/10.26, allocations: 257.8 kB / 3.741 GB, free: 8.207 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005894/10.26, allocations: 98.84 kB / 3.741 GB, free: 8.203 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/10.26, allocations: 2.688 kB / 3.741 GB, free: 8.203 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007963/10.27, allocations: 2.765 MB / 3.744 GB, free: 8.055 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.335e-05/10.27, allocations: 14.62 kB / 3.744 GB, free: 8.051 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008778/10.27, allocations: 203.5 kB / 3.744 GB, free: 8.027 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00257/10.27, allocations: 473.5 kB / 3.745 GB, free: 8.012 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001944/10.27, allocations: 1.872 MB / 3.747 GB, free: 22.45 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002456/10.28, allocations: 257.1 kB / 3.747 GB, free: 22.41 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004219/10.28, allocations: 100.6 kB / 3.747 GB, free: 22.41 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 27 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.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 (215): * Single equations (assignments): 209 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.001941/10.28, allocations: 0.7131 MB / 3.748 GB, free: 22.12 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005574/10.28, allocations: 186.2 kB / 3.748 GB, free: 22.02 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01316/10.29, allocations: 7.444 MB / 3.755 GB, free: 19.5 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.732e-05/10.29, allocations: 89.86 kB / 3.755 GB, free: 19.47 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.094e-05/10.29, allocations: 0 / 3.755 GB, free: 19.47 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01084/10.3, allocations: 6.526 MB / 3.762 GB, free: 16.36 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02352/10.33, allocations: 11.17 MB / 3.772 GB, free: 6.906 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.69e-05/10.33, allocations: 8.062 kB / 3.772 GB, free: 6.898 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002088/10.33, allocations: 361.9 kB / 3.773 GB, free: 6.602 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003819/10.33, allocations: 1.168 MB / 3.774 GB, free: 5.609 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004497/10.33, allocations: 69.41 kB / 3.774 GB, free: 5.555 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003708/10.34, allocations: 3.199 MB / 3.777 GB, free: 2.426 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-05/10.34, allocations: 7.953 kB / 3.777 GB, free: 2.418 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3322/10.67, allocations: 7.5 MB / 3.784 GB, free: 54.49 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002016/10.67, allocations: 0.699 MB / 3.785 GB, free: 54.39 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007678/10.67, allocations: 55.95 kB / 3.785 GB, free: 54.39 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0025/10.67, allocations: 179.3 kB / 3.785 GB, free: 54.39 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00055/10.67, allocations: 154.6 kB / 3.786 GB, free: 54.39 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002624/10.67, allocations: 70.17 kB / 3.786 GB, free: 54.39 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002386/10.68, allocations: 1.082 MB / 3.787 GB, free: 54.25 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.82e-07/10.68, allocations: 0 / 3.787 GB, free: 54.25 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0115/10.69, allocations: 2.534 MB / 3.789 GB, free: 54.25 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,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,$cse9.phase,$cse9.region,$cse10.phase,$cse10.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.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.phase,$cse44.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 (177): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0124/10.7, allocations: 2.67 MB / 3.792 GB, free: 54.11 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01169/10.71, allocations: 4.746 MB / 3.796 GB, free: 53.79 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.293e-05/10.71, allocations: 4.219 kB / 3.796 GB, free: 53.79 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005163/10.72, allocations: 2.455 MB / 3.799 GB, free: 53.64 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005349/10.72, allocations: 0.8374 MB / 3.8 GB, free: 53.62 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2743/11, allocations: 127.8 MB / 3.924 GB, free: 27.93 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001992/11, allocations: 2.13 MB / 3.926 GB, free: 26.34 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009754/11, allocations: 183.4 kB / 3.927 GB, free: 26.18 MB / 490.7 MB Notification: Performance of SimCode: time 3.35e-06/11, allocations: 0 / 3.927 GB, free: 26.18 MB / 490.7 MB Notification: Performance of Templates: time 0.4786/11.48, allocations: 109 MB / 4.033 GB, free: 34.32 MB / 490.7 MB