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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.125/2.125, allocations: 234.9 MB / 250.5 MB, free: 9.457 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004282/0.0004282, allocations: 8 kB / 314.4 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2719/0.2724, allocations: 54.86 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.147/6.42, allocations: 2.677 GB / 3.038 GB, free: 103.3 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003272/6.42, allocations: 86.59 kB / 3.038 GB, free: 103.2 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.097/10.52, allocations: 0.9046 GB / 3.942 GB, free: 29.98 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.388e-06/10.52, allocations: 0 / 3.942 GB, free: 29.98 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002327/10.52, allocations: 62.38 kB / 3.942 GB, free: 29.97 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.01531/10.53, allocations: 4.242 MB / 3.947 GB, free: 28.1 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/10.53, allocations: 9.219 kB / 3.947 GB, free: 28.1 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008216/10.54, allocations: 0.8748 MB / 3.947 GB, free: 27.96 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006859/10.55, allocations: 2.119 MB / 3.949 GB, free: 27.52 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002527/10.55, allocations: 185.5 kB / 3.95 GB, free: 27.51 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006464/10.55, allocations: 208.1 kB / 3.95 GB, free: 27.51 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01041/10.56, allocations: 3.656 MB / 3.953 GB, free: 26.96 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.432e-05/10.56, allocations: 6.875 kB / 3.953 GB, free: 26.96 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003741/10.56, allocations: 86.58 kB / 3.953 GB, free: 26.96 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002412/10.56, allocations: 168.7 kB / 3.954 GB, free: 26.95 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01127/10.57, allocations: 3.346 MB / 3.957 GB, free: 26.94 MB / 0.5105 GB 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.02274/10.59, allocations: 15.45 MB / 3.972 GB, free: 17.51 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008618/10.6, allocations: 2.785 MB / 3.975 GB, free: 16.91 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04192/10.65, allocations: 18.7 MB / 3.993 GB, free: 21.17 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006123/10.65, allocations: 1.716 MB / 3.995 GB, free: 21.04 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=173): time 6.946e-06/10.65, allocations: 3.172 kB / 3.995 GB, free: 21.04 MB / 0.5261 GB Notification: Performance of matching and sorting (n=189): time 0.03331/10.68, allocations: 9.184 MB / 4.004 GB, free: 19.79 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000185/10.68, allocations: 260.6 kB / 4.004 GB, free: 19.5 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002528/10.69, allocations: 1.353 MB / 4.005 GB, free: 19.33 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.00048/10.69, allocations: 62.3 kB / 4.005 GB, free: 19.3 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008057/10.69, allocations: 0.9237 MB / 4.006 GB, free: 18.84 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007745/10.69, allocations: 0.6332 MB / 4.007 GB, free: 18.44 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002104/10.69, allocations: 43.34 kB / 4.007 GB, free: 18.44 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002502/10.69, allocations: 398.5 kB / 4.007 GB, free: 18.12 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002687/10.69, allocations: 1.14 MB / 4.008 GB, free: 18.11 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00341/10.7, allocations: 1.628 MB / 4.01 GB, free: 17.61 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003571/10.7, allocations: 1.398 MB / 4.011 GB, free: 17.52 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.356e-05/10.7, allocations: 5.344 kB / 4.011 GB, free: 17.52 MB / 0.5261 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.008598/10.71, allocations: 3.187 MB / 4.014 GB, free: 17.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002357/10.71, allocations: 4.859 MB / 4.019 GB, free: 12.26 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.993e-05/10.71, allocations: 14.61 kB / 4.019 GB, free: 12.26 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001255/10.71, allocations: 247.1 kB / 4.019 GB, free: 12.23 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003131/10.72, allocations: 0.5306 MB / 4.02 GB, free: 12.23 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00215/10.72, allocations: 2.438 MB / 4.022 GB, free: 10.15 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003826/10.72, allocations: 301 kB / 4.023 GB, free: 10.14 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004963/10.72, allocations: 107.2 kB / 4.023 GB, free: 10.14 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/10.72, allocations: 8.344 kB / 4.023 GB, free: 10.14 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008116/10.73, allocations: 3.038 MB / 4.026 GB, free: 10 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.497e-05/10.73, allocations: 14.31 kB / 4.026 GB, free: 10 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001237/10.73, allocations: 253.4 kB / 4.026 GB, free: 9.969 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003053/10.73, allocations: 0.5148 MB / 4.026 GB, free: 9.969 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002091/10.74, allocations: 2.438 MB / 4.029 GB, free: 7.895 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003014/10.74, allocations: 309.3 kB / 4.029 GB, free: 7.875 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003777/10.74, allocations: 103.8 kB / 4.029 GB, free: 7.875 MB / 0.5261 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,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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,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.001932/10.74, allocations: 0.7631 MB / 4.03 GB, free: 7.613 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005389/10.74, allocations: 212.6 kB / 4.03 GB, free: 7.508 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01421/10.76, allocations: 7.542 MB / 4.038 GB, free: 22.76 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.756e-05/10.76, allocations: 91.77 kB / 4.038 GB, free: 22.76 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.256e-05/10.76, allocations: 6.891 kB / 4.038 GB, free: 22.75 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01097/10.77, allocations: 6.567 MB / 4.044 GB, free: 21.83 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02176/10.79, allocations: 12.18 MB / 4.056 GB, free: 20.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.85e-05/10.79, allocations: 3.719 kB / 4.056 GB, free: 20.18 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002106/10.79, allocations: 440.2 kB / 4.056 GB, free: 20.16 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001752/10.79, allocations: 369.7 kB / 4.057 GB, free: 20.05 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002772/10.79, allocations: 69.69 kB / 4.057 GB, free: 20.02 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002066/10.8, allocations: 2.536 MB / 4.059 GB, free: 17.75 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.7e-06/10.8, allocations: 12.27 kB / 4.059 GB, free: 17.75 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01317/10.81, allocations: 7.762 MB / 4.067 GB, free: 13.83 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001918/10.81, allocations: 0.7571 MB / 4.068 GB, free: 13.37 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005049/10.81, allocations: 62.64 kB / 4.068 GB, free: 13.33 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002278/10.81, allocations: 221.7 kB / 4.068 GB, free: 13.28 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003862/10.81, allocations: 175.1 kB / 4.068 GB, free: 13.25 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002279/10.81, allocations: 83.16 kB / 4.068 GB, free: 13.23 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002032/10.82, allocations: 1.142 MB / 4.069 GB, free: 12.79 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8.73e-07/10.82, allocations: 0 / 4.069 GB, free: 12.79 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.009918/10.83, allocations: 2.742 MB / 4.072 GB, free: 12.25 MB / 0.5417 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: 56 ($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,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) * 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.01141/10.84, allocations: 2.859 MB / 4.075 GB, free: 11.47 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0116/10.85, allocations: 5.366 MB / 4.08 GB, free: 9.477 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.821e-06/10.85, allocations: 8.062 kB / 4.08 GB, free: 9.469 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005321/10.85, allocations: 2.754 MB / 4.083 GB, free: 7.871 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005764/10.86, allocations: 0.9807 MB / 4.084 GB, free: 7.16 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6481/11.51, allocations: 132 MB / 4.212 GB, free: 61.15 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002105/11.51, allocations: 2.259 MB / 4.215 GB, free: 60.37 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001198/11.51, allocations: 210.6 kB / 4.215 GB, free: 60.37 MB / 0.5573 GB Notification: Performance of SimCode: time 1.816e-06/11.51, allocations: 0 / 4.215 GB, free: 60.37 MB / 0.5573 GB Notification: Performance of Templates: time 0.5047/12.02, allocations: 117.8 MB / 4.33 GB, free: 66.63 MB / 0.5573 GB