Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14") Notification: Performance of loadModel(ModelicaTest): time 2.111/2.111, allocations: 235.1 MB / 243 MB, free: 9.5 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.741e-05/1.751e-05, allocations: 0 / 303.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2935/0.2936, allocations: 54.86 MB / 358 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.457/6.751, allocations: 2.676 GB / 3.026 GB, free: 126.4 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002179/6.751, allocations: 73.66 kB / 3.026 GB, free: 126.3 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.095/10.85, allocations: 0.8944 GB / 3.92 GB, free: 36.83 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.339e-06/10.85, allocations: 0 / 3.92 GB, free: 36.83 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002487/10.85, allocations: 63.39 kB / 3.92 GB, free: 36.82 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01484/10.86, allocations: 3.959 MB / 3.924 GB, free: 35.11 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/10.86, allocations: 13.39 kB / 3.924 GB, free: 35.11 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00804/10.87, allocations: 0.8767 MB / 3.925 GB, free: 34.96 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006661/10.88, allocations: 2.091 MB / 3.927 GB, free: 34.52 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002184/10.88, allocations: 98.23 kB / 3.927 GB, free: 34.52 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007782/10.88, allocations: 123.9 kB / 3.927 GB, free: 34.52 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006315/10.88, allocations: 2.612 MB / 3.93 GB, free: 34.5 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007082/10.89, allocations: 2.84 MB / 3.933 GB, free: 33.96 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-05/10.89, allocations: 7.828 kB / 3.933 GB, free: 33.96 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003477/10.89, allocations: 7.594 kB / 3.933 GB, free: 33.96 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002346/10.89, allocations: 159 kB / 3.933 GB, free: 33.96 MB / 0.5105 GB 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.2639/11.16, allocations: 109.6 MB / 4.04 GB, free: 8.621 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004122/11.16, allocations: 2.098 MB / 4.042 GB, free: 24.02 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002094/11.16, allocations: 1.061 MB / 4.043 GB, free: 24 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03752/11.2, allocations: 17.35 MB / 4.06 GB, free: 12.54 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002464/11.2, allocations: 1.221 MB / 4.061 GB, free: 12.38 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=163): time 6.04e-06/11.2, allocations: 3.875 kB / 4.061 GB, free: 12.38 MB / 0.5573 GB Notification: Performance of matching and sorting (n=179): time 0.04677/11.25, allocations: 9.439 MB / 4.07 GB, free: 10.2 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002454/11.25, allocations: 366.7 kB / 4.071 GB, free: 9.77 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002029/11.25, allocations: 1.078 MB / 4.072 GB, free: 9.074 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.000475/11.25, allocations: 29.7 kB / 4.072 GB, free: 9.039 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009211/11.25, allocations: 0.9861 MB / 4.073 GB, free: 8.402 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008492/11.25, allocations: 0.5793 MB / 4.073 GB, free: 7.941 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000217/11.25, allocations: 4 kB / 4.073 GB, free: 7.938 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002774/11.25, allocations: 397.1 kB / 4.074 GB, free: 7.602 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002078/11.26, allocations: 0.9973 MB / 4.075 GB, free: 7.082 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002545/11.26, allocations: 1.473 MB / 4.076 GB, free: 5.988 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01082/11.27, allocations: 1.952 MB / 4.078 GB, free: 4.945 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-05/11.27, allocations: 4 kB / 4.078 GB, free: 4.941 MB / 0.5573 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01631/11.29, allocations: 3.507 MB / 4.082 GB, free: 2.914 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.3559/11.64, allocations: 4.86 MB / 4.086 GB, free: 80.28 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.588e-05/11.64, allocations: 12.95 kB / 4.086 GB, free: 80.28 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009605/11.64, allocations: 217.9 kB / 4.086 GB, free: 80.25 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003406/11.65, allocations: 0.5331 MB / 4.087 GB, free: 80.25 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00196/11.65, allocations: 2.452 MB / 4.089 GB, free: 78.18 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003824/11.65, allocations: 301.1 kB / 4.09 GB, free: 78.18 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006714/11.65, allocations: 107.5 kB / 4.09 GB, free: 78.18 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/11.65, allocations: 3.875 kB / 4.09 GB, free: 78.18 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01526/11.67, allocations: 3.174 MB / 4.093 GB, free: 78.11 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.9e-05/11.67, allocations: 11.78 kB / 4.093 GB, free: 78.11 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006994/11.67, allocations: 218.2 kB / 4.093 GB, free: 78.08 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002814/11.67, allocations: 0.5286 MB / 4.094 GB, free: 78.08 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001625/11.67, allocations: 2.453 MB / 4.096 GB, free: 76.02 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002866/11.68, allocations: 282.9 kB / 4.096 GB, free: 76.01 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000471/11.68, allocations: 102.8 kB / 4.096 GB, free: 76.01 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 30 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,junctionIdeal.medium.phase,source.medium.phase,sink.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 () * 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.0007824/11.68, allocations: 239.2 kB / 4.097 GB, free: 75.84 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000568/11.68, allocations: 196.2 kB / 4.097 GB, free: 75.84 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02193/11.7, allocations: 6.947 MB / 4.104 GB, free: 75.48 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.146e-05/11.7, allocations: 77.36 kB / 4.104 GB, free: 75.48 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.484e-05/11.7, allocations: 10.44 kB / 4.104 GB, free: 75.48 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01924/11.72, allocations: 6.04 MB / 4.11 GB, free: 74.74 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0294/11.75, allocations: 11.04 MB / 4.12 GB, free: 73.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.572e-05/11.75, allocations: 6.312 kB / 4.12 GB, free: 73.5 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002377/11.75, allocations: 392.7 kB / 4.121 GB, free: 73.5 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001316/11.75, allocations: 324.6 kB / 4.121 GB, free: 73.47 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005968/11.75, allocations: 51.02 kB / 4.121 GB, free: 73.47 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00182/11.75, allocations: 2.636 MB / 4.124 GB, free: 71.4 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.129e-05/11.75, allocations: 9.438 kB / 4.124 GB, free: 71.4 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02159/11.78, allocations: 7.506 MB / 4.131 GB, free: 70.2 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002032/11.78, allocations: 0.7002 MB / 4.132 GB, free: 69.95 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007088/11.78, allocations: 30.3 kB / 4.132 GB, free: 69.95 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002883/11.78, allocations: 173.5 kB / 4.132 GB, free: 69.94 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004806/11.78, allocations: 161.4 kB / 4.132 GB, free: 69.93 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002744/11.78, allocations: 80.19 kB / 4.132 GB, free: 69.93 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002153/11.79, allocations: 0.9939 MB / 4.133 GB, free: 69.82 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.011e-06/11.79, allocations: 2.781 kB / 4.133 GB, free: 69.82 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01181/11.8, allocations: 2.604 MB / 4.136 GB, free: 69.82 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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: 46 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.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.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled,junctionIdeal.medium.phase) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (196): * Single equations (assignments): 171 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01275/11.81, allocations: 3.038 MB / 4.139 GB, free: 69.57 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0103/11.82, allocations: 4.715 MB / 4.143 GB, free: 69.27 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.364e-05/11.82, allocations: 5.062 kB / 4.143 GB, free: 69.27 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.004969/11.83, allocations: 2.377 MB / 4.146 GB, free: 69.14 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00617/11.83, allocations: 0.8533 MB / 4.146 GB, free: 69.11 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01279/11.84, allocations: 5.658 MB / 4.152 GB, free: 67.85 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002681/11.85, allocations: 2.158 MB / 4.154 GB, free: 67.11 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00126/11.85, allocations: 200.7 kB / 4.154 GB, free: 67.1 MB / 0.5573 GB Notification: Performance of SimCode: time 1.98e-06/11.85, allocations: 0 / 4.154 GB, free: 67.1 MB / 0.5573 GB Notification: Performance of Templates: time 0.1512/12, allocations: 113.2 MB / 4.265 GB, free: 31.25 MB / 0.5573 GB