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_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2") Notification: Performance of loadModel(ModelicaTest): time 2.299/2.299, allocations: 270 MB / 283.6 MB, free: 1.895 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.456e-05/3.468e-05, allocations: 7.938 kB / 348.4 MB, free: 2.793 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3247/0.3248, allocations: 61.87 MB / 410.3 MB, free: 10.73 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.031/7.356, allocations: 2.847 GB / 3.248 GB, free: 73.71 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002061/7.356, allocations: 83.81 kB / 3.248 GB, free: 73.67 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.69/11.05, allocations: 0.8119 GB / 4.06 GB, free: 45.02 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.247e-06/11.05, allocations: 0 / 4.06 GB, free: 45.02 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002273/11.05, allocations: 63.81 kB / 4.06 GB, free: 45 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.01422/11.06, allocations: 3.661 MB / 4.063 GB, free: 43.21 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/11.06, allocations: 6.688 kB / 4.063 GB, free: 43.21 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007601/11.07, allocations: 0.7888 MB / 4.064 GB, free: 43.07 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006392/11.08, allocations: 1.983 MB / 4.066 GB, free: 42.63 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002535/11.08, allocations: 159.5 kB / 4.066 GB, free: 42.63 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007029/11.08, allocations: 182.4 kB / 4.066 GB, free: 42.63 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009642/11.09, allocations: 3.327 MB / 4.069 GB, free: 42.14 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.069e-05/11.09, allocations: 7.156 kB / 4.069 GB, free: 42.14 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003573/11.09, allocations: 83.69 kB / 4.07 GB, free: 42.14 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002243/11.09, allocations: 149.9 kB / 4.07 GB, free: 42.13 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009485/11.1, allocations: 3.04 MB / 4.073 GB, free: 42.12 MB / 0.5573 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.02246/11.12, allocations: 13.82 MB / 4.086 GB, free: 33.87 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006228/11.12, allocations: 1.986 MB / 4.088 GB, free: 33.83 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002124/11.13, allocations: 1.062 MB / 4.089 GB, free: 33.82 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05618/11.18, allocations: 24.68 MB / 4.113 GB, free: 18.4 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005513/11.19, allocations: 1.625 MB / 4.115 GB, free: 18.27 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001441/11.19, allocations: 178.3 kB / 4.115 GB, free: 18.19 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=155): time 6.92e-06/11.19, allocations: 0 / 4.115 GB, free: 18.19 MB / 0.5573 GB Notification: Performance of matching and sorting (n=167): time 0.02342/11.21, allocations: 7.045 MB / 4.122 GB, free: 17.2 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0007126/11.21, allocations: 254.1 kB / 4.122 GB, free: 32.91 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002456/11.22, allocations: 1.318 MB / 4.123 GB, free: 32.74 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004276/11.22, allocations: 62.98 kB / 4.123 GB, free: 32.7 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008005/11.22, allocations: 0.8813 MB / 4.124 GB, free: 32.37 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006684/11.22, allocations: 0.5472 MB / 4.125 GB, free: 32.02 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001861/11.22, allocations: 33.53 kB / 4.125 GB, free: 32.02 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002329/11.22, allocations: 380.5 kB / 4.125 GB, free: 31.71 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001994/11.22, allocations: 0.9305 MB / 4.126 GB, free: 31.71 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002338/11.22, allocations: 1.323 MB / 4.127 GB, free: 31.3 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002398/11.23, allocations: 1.163 MB / 4.129 GB, free: 30.84 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.33e-05/11.23, allocations: 7.141 kB / 4.129 GB, free: 30.84 MB / 0.573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.007389/11.23, allocations: 2.956 MB / 4.131 GB, free: 29.76 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001864/11.24, allocations: 3.854 MB / 4.135 GB, free: 25.61 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.416e-05/11.24, allocations: 7.812 kB / 4.135 GB, free: 25.61 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003593/11.24, allocations: 0.512 MB / 4.136 GB, free: 25.49 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002868/11.24, allocations: 454.6 kB / 4.136 GB, free: 25.44 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002801/11.24, allocations: 2.703 MB / 4.139 GB, free: 23.12 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003403/11.25, allocations: 253.8 kB / 4.139 GB, free: 23.06 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004133/11.25, allocations: 92.14 kB / 4.139 GB, free: 23.05 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/11.25, allocations: 3.938 kB / 4.139 GB, free: 23.05 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005939/11.25, allocations: 2.596 MB / 4.142 GB, free: 22.09 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.494e-05/11.25, allocations: 13.16 kB / 4.142 GB, free: 22.09 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008842/11.26, allocations: 193.6 kB / 4.142 GB, free: 22.02 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002655/11.26, allocations: 462.4 kB / 4.142 GB, free: 21.97 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001607/11.26, allocations: 1.873 MB / 4.144 GB, free: 20.29 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002949/11.26, allocations: 253.7 kB / 4.144 GB, free: 20.23 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004215/11.26, allocations: 94.95 kB / 4.144 GB, free: 20.21 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 29 (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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,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 (211): * Single equations (assignments): 205 * 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.000718/11.26, allocations: 291.2 kB / 4.145 GB, free: 19.95 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005266/11.26, allocations: 206.8 kB / 4.145 GB, free: 19.85 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01139/11.28, allocations: 7.456 MB / 4.152 GB, free: 14.17 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.503e-05/11.28, allocations: 82.73 kB / 4.152 GB, free: 14.12 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/11.28, allocations: 4 kB / 4.152 GB, free: 14.12 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008988/11.29, allocations: 6.511 MB / 4.159 GB, free: 8.02 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02355/11.31, allocations: 11.27 MB / 4.17 GB, free: 14.37 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.541e-05/11.31, allocations: 4 kB / 4.17 GB, free: 14.37 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002139/11.31, allocations: 366.9 kB / 4.17 GB, free: 14.07 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00357/11.31, allocations: 1.297 MB / 4.171 GB, free: 12.98 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004052/11.31, allocations: 70.61 kB / 4.171 GB, free: 12.92 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003542/11.32, allocations: 3.185 MB / 4.174 GB, free: 9.805 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.048e-05/11.32, allocations: 8 kB / 4.174 GB, free: 9.797 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01325/11.33, allocations: 7.278 MB / 4.182 GB, free: 2.84 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002055/11.33, allocations: 0.7321 MB / 4.182 GB, free: 2.188 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000601/11.33, allocations: 55.89 kB / 4.182 GB, free: 2.137 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002128/11.34, allocations: 189.8 kB / 4.183 GB, free: 1.988 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003836/11.34, allocations: 157.3 kB / 4.183 GB, free: 1.891 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002484/11.34, allocations: 82.41 kB / 4.183 GB, free: 1.82 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.002463/11.34, allocations: 1.195 MB / 4.184 GB, free: 0.707 MB / 0.5886 GB Notification: Performance of sort global known variables: time 9.34e-07/11.34, allocations: 4 kB / 4.184 GB, free: 0.7031 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.3866/11.73, allocations: 2.593 MB / 4.186 GB, free: 75.5 MB / 0.5886 GB 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: 55 ($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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * 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 (179): * Single equations (assignments): 153 * 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.01152/11.74, allocations: 2.715 MB / 4.189 GB, free: 75.36 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.009338/11.75, allocations: 4.614 MB / 4.194 GB, free: 75.04 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 9.951e-06/11.75, allocations: 3.781 kB / 4.194 GB, free: 75.04 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.004344/11.75, allocations: 2.427 MB / 4.196 GB, free: 74.91 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005984/11.76, allocations: 0.9126 MB / 4.197 GB, free: 74.88 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01041/11.77, allocations: 5.642 MB / 4.202 GB, free: 73.73 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001908/11.77, allocations: 2.185 MB / 4.205 GB, free: 72.97 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.006262/11.78, allocations: 2.476 MB / 4.207 GB, free: 72.92 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006731/11.78, allocations: 155.9 kB / 4.207 GB, free: 72.92 MB / 0.5886 GB Notification: Performance of SimCode: time 3.468e-06/11.78, allocations: 0 / 4.207 GB, free: 72.92 MB / 0.5886 GB Notification: Performance of Templates: time 0.1681/11.95, allocations: 86.54 MB / 4.292 GB, free: 69.14 MB / 0.5886 GB