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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.933/1.933, allocations: 209.4 MB / 217.3 MB, free: 4.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.559e-05/1.565e-05, allocations: 0 / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2829/0.2829, allocations: 48.7 MB / 320 MB, free: 14.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.175/6.458, allocations: 2.561 GB / 2.874 GB, free: 91.18 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002136/6.458, allocations: 73.56 kB / 2.874 GB, free: 91.18 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.686/10.14, allocations: 0.7724 GB / 3.646 GB, free: 24.07 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.223e-06/10.14, allocations: 0 / 3.646 GB, free: 24.07 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002363/10.14, allocations: 58.62 kB / 3.646 GB, free: 24.07 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.01379/10.16, allocations: 3.528 MB / 3.65 GB, free: 22.59 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/10.16, allocations: 12.78 kB / 3.65 GB, free: 22.59 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007494/10.17, allocations: 0.7556 MB / 3.651 GB, free: 22.47 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006183/10.17, allocations: 1.981 MB / 3.653 GB, free: 22.04 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001797/10.17, allocations: 79.89 kB / 3.653 GB, free: 22.04 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005758/10.17, allocations: 106.1 kB / 3.653 GB, free: 22.04 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006215/10.18, allocations: 2.537 MB / 3.655 GB, free: 22.03 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006298/10.19, allocations: 2.511 MB / 3.658 GB, free: 21.55 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-05/10.19, allocations: 6.891 kB / 3.658 GB, free: 21.55 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003132/10.19, allocations: 8.312 kB / 3.658 GB, free: 21.55 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002348/10.19, allocations: 147.8 kB / 3.658 GB, free: 21.55 MB / 458.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.2838/10.47, allocations: 107.8 MB / 3.763 GB, free: 13.54 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003004/10.47, allocations: 1.431 MB / 3.764 GB, free: 13.5 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001884/10.48, allocations: 0.9429 MB / 3.765 GB, free: 13.49 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04006/10.52, allocations: 17.46 MB / 3.782 GB, free: 17.94 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002288/10.52, allocations: 1.137 MB / 3.784 GB, free: 17.78 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00136/10.52, allocations: 145.3 kB / 3.784 GB, free: 17.73 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=141): time 8.506e-06/10.52, allocations: 0 / 3.784 GB, free: 17.73 MB / 0.5105 GB Notification: Performance of matching and sorting (n=153): time 0.04333/10.56, allocations: 8.749 MB / 3.792 GB, free: 16.09 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002517/10.56, allocations: 361.9 kB / 3.793 GB, free: 15.69 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001952/10.56, allocations: 1.014 MB / 3.794 GB, free: 15.52 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004405/10.57, allocations: 29.64 kB / 3.794 GB, free: 15.48 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008088/10.57, allocations: 0.8826 MB / 3.794 GB, free: 15.01 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006693/10.57, allocations: 0.4956 MB / 3.795 GB, free: 14.68 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001654/10.57, allocations: 3.656 kB / 3.795 GB, free: 14.68 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002327/10.57, allocations: 382.6 kB / 3.795 GB, free: 14.37 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001706/10.57, allocations: 0.8872 MB / 3.796 GB, free: 14.36 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002185/10.57, allocations: 1.315 MB / 3.797 GB, free: 13.91 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01041/10.58, allocations: 1.816 MB / 3.799 GB, free: 13.87 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.226e-05/10.58, allocations: 3.219 kB / 3.799 GB, free: 13.87 MB / 0.5105 GB Notification: Performance of matching and sorting (n=232) (initialization): time 0.01484/10.6, allocations: 3.391 MB / 3.803 GB, free: 13.69 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.002147/10.6, allocations: 4.247 MB / 3.807 GB, free: 9.238 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.115e-05/10.6, allocations: 12.16 kB / 3.807 GB, free: 9.238 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002533/10.6, allocations: 0.4891 MB / 3.807 GB, free: 9.195 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002483/10.6, allocations: 458.7 kB / 3.808 GB, free: 9.191 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003236/10.61, allocations: 2.815 MB / 3.81 GB, free: 7.102 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003307/10.61, allocations: 264.6 kB / 3.811 GB, free: 6.926 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004731/10.61, allocations: 97.47 kB / 3.811 GB, free: 6.859 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/10.61, allocations: 4 kB / 3.811 GB, free: 6.855 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01266/10.62, allocations: 2.965 MB / 3.814 GB, free: 5.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.271e-05/10.62, allocations: 14.19 kB / 3.814 GB, free: 5.168 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005476/10.62, allocations: 189.3 kB / 3.814 GB, free: 5.051 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00262/10.63, allocations: 468.8 kB / 3.814 GB, free: 4.707 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001952/10.63, allocations: 1.892 MB / 3.816 GB, free: 2.949 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002641/10.63, allocations: 229.7 kB / 3.816 GB, free: 2.781 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005167/10.63, allocations: 94.97 kB / 3.816 GB, free: 2.719 MB / 0.5105 GB 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,pipe1.statesFM[2].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,source.medium.phase,sink.medium.phase,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 () * 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.0008041/10.63, allocations: 225.5 kB / 3.817 GB, free: 2.512 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006049/10.63, allocations: 177.2 kB / 3.817 GB, free: 2.34 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3285/10.96, allocations: 6.701 MB / 3.823 GB, free: 83.47 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.981e-05/10.96, allocations: 69.03 kB / 3.823 GB, free: 83.47 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.365e-05/10.96, allocations: 2.594 kB / 3.823 GB, free: 83.47 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0151/10.98, allocations: 5.84 MB / 3.829 GB, free: 82.75 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02827/11.01, allocations: 9.898 MB / 3.839 GB, free: 81.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.375e-05/11.01, allocations: 6.375 kB / 3.839 GB, free: 81.88 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003335/11.01, allocations: 313 kB / 3.839 GB, free: 81.88 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004672/11.01, allocations: 1.268 MB / 3.84 GB, free: 81.82 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005465/11.01, allocations: 41.69 kB / 3.84 GB, free: 81.82 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005117/11.02, allocations: 3.407 MB / 3.844 GB, free: 79.74 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.728e-05/11.02, allocations: 7.188 kB / 3.844 GB, free: 79.74 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02853/11.05, allocations: 7.086 MB / 3.851 GB, free: 78.77 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002668/11.05, allocations: 0.6463 MB / 3.851 GB, free: 78.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009741/11.05, allocations: 21.84 kB / 3.851 GB, free: 78.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003898/11.06, allocations: 145.6 kB / 3.851 GB, free: 78.62 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000698/11.06, allocations: 135.7 kB / 3.852 GB, free: 78.61 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003646/11.06, allocations: 68.41 kB / 3.852 GB, free: 78.61 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003086/11.06, allocations: 0.951 MB / 3.853 GB, free: 78.5 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.545e-06/11.06, allocations: 0 / 3.853 GB, free: 78.5 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01126/11.07, allocations: 2.414 MB / 3.855 GB, free: 78.5 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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: 43 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.region3boundary,$cse29.region3boundary,$cse30.phase,$cse30.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.phase,$cse38.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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 (161): * Single equations (assignments): 139 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 16 * 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.01188/11.08, allocations: 2.83 MB / 3.858 GB, free: 78.32 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.008394/11.09, allocations: 4.147 MB / 3.862 GB, free: 78.02 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.077e-05/11.09, allocations: 0 / 3.862 GB, free: 78.02 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003965/11.1, allocations: 2.086 MB / 3.864 GB, free: 77.88 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004993/11.1, allocations: 0.7031 MB / 3.864 GB, free: 77.87 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01035/11.11, allocations: 5.1 MB / 3.869 GB, free: 76.73 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001879/11.11, allocations: 2.039 MB / 3.871 GB, free: 75.99 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001006/11.11, allocations: 181 kB / 3.872 GB, free: 75.98 MB / 0.5105 GB Notification: Performance of SimCode: time 1.959e-06/11.11, allocations: 0 / 3.872 GB, free: 75.98 MB / 0.5105 GB Notification: Performance of Templates: time 0.176/11.29, allocations: 104.5 MB / 3.974 GB, free: 48.57 MB / 0.5105 GB