Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,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|valveIncompressible.filter.x.1.|valveIncompressible.filter.x.2.|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12") Notification: Performance of loadModel(ModelicaTest): time 2.311/2.311, allocations: 270 MB / 283.6 MB, free: 1.746 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.03e-05/3.04e-05, allocations: 4 kB / 348.4 MB, free: 2.617 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3195/0.3195, allocations: 61.88 MB / 410.3 MB, free: 10.67 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.974/7.293, allocations: 2.83 GB / 3.231 GB, free: 89.24 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002217/7.293, allocations: 75.06 kB / 3.231 GB, free: 89.21 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.83/11.12, allocations: 0.8151 GB / 4.046 GB, free: 44.29 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.178e-06/11.12, allocations: 0 / 4.046 GB, free: 44.29 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0003001/11.12, allocations: 76.25 kB / 4.046 GB, free: 44.27 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.01599/11.14, allocations: 3.953 MB / 4.05 GB, free: 42.32 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/11.14, allocations: 13.72 kB / 4.05 GB, free: 42.32 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009033/11.15, allocations: 0.8372 MB / 4.051 GB, free: 42.18 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007109/11.16, allocations: 2.154 MB / 4.053 GB, free: 41.72 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002903/11.16, allocations: 172.7 kB / 4.053 GB, free: 41.71 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009122/11.16, allocations: 199.1 kB / 4.053 GB, free: 41.71 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0113/11.17, allocations: 3.696 MB / 4.057 GB, free: 41.16 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.687e-05/11.17, allocations: 6.031 kB / 4.057 GB, free: 41.16 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004359/11.17, allocations: 101.8 kB / 4.057 GB, free: 41.16 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002466/11.17, allocations: 163.8 kB / 4.057 GB, free: 41.15 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01098/11.18, allocations: 3.402 MB / 4.06 GB, free: 41.14 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.02621/11.21, allocations: 14.94 MB / 4.075 GB, free: 32.54 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006341/11.21, allocations: 2.145 MB / 4.077 GB, free: 32.51 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002251/11.21, allocations: 1.095 MB / 4.078 GB, free: 32.5 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05438/11.27, allocations: 24.62 MB / 4.102 GB, free: 17.19 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005257/11.27, allocations: 1.7 MB / 4.104 GB, free: 17.06 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001468/11.28, allocations: 195.8 kB / 4.104 GB, free: 16.97 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=162): time 6.595e-06/11.28, allocations: 0 / 4.104 GB, free: 16.97 MB / 0.5573 GB Notification: Performance of matching and sorting (n=174): time 0.02567/11.3, allocations: 7.501 MB / 4.111 GB, free: 15.95 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0007853/11.3, allocations: 413.3 kB / 4.112 GB, free: 31.48 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002953/11.31, allocations: 1.545 MB / 4.113 GB, free: 31.24 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004654/11.31, allocations: 64.8 kB / 4.113 GB, free: 31.21 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000912/11.31, allocations: 0.9793 MB / 4.114 GB, free: 30.84 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007407/11.31, allocations: 0.5883 MB / 4.115 GB, free: 30.46 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002078/11.31, allocations: 40.5 kB / 4.115 GB, free: 30.46 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002563/11.31, allocations: 389.5 kB / 4.115 GB, free: 30.16 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002148/11.31, allocations: 1.075 MB / 4.116 GB, free: 30.14 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002545/11.31, allocations: 1.5 MB / 4.118 GB, free: 29.68 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002714/11.32, allocations: 1.317 MB / 4.119 GB, free: 29.57 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.194e-05/11.32, allocations: 3.75 kB / 4.119 GB, free: 29.57 MB / 0.573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.008054/11.32, allocations: 3.35 MB / 4.122 GB, free: 29.04 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.00197/11.33, allocations: 4.062 MB / 4.126 GB, free: 24.7 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.807e-05/11.33, allocations: 14.34 kB / 4.126 GB, free: 24.7 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006788/11.33, allocations: 0.9572 MB / 4.127 GB, free: 24.52 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002657/11.34, allocations: 467 kB / 4.128 GB, free: 24.5 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003714/11.34, allocations: 3.166 MB / 4.131 GB, free: 22.02 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003161/11.34, allocations: 228.1 kB / 4.131 GB, free: 21.96 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000435/11.34, allocations: 106.1 kB / 4.131 GB, free: 21.95 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/11.34, allocations: 11.88 kB / 4.131 GB, free: 21.94 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007341/11.35, allocations: 3.019 MB / 4.134 GB, free: 20.85 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.675e-05/11.35, allocations: 13.47 kB / 4.134 GB, free: 20.85 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001774/11.35, allocations: 352.8 kB / 4.134 GB, free: 20.75 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002987/11.36, allocations: 492.8 kB / 4.135 GB, free: 20.7 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004964/11.36, allocations: 4.052 MB / 4.139 GB, free: 17.35 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003125/11.36, allocations: 237.7 kB / 4.139 GB, free: 17.29 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004432/11.36, allocations: 97.09 kB / 4.139 GB, free: 17.27 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.state_b.phase,pipe1.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_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (219): * Single equations (assignments): 209 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.000776/11.36, allocations: 295.2 kB / 4.139 GB, free: 17.02 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005517/11.37, allocations: 216.5 kB / 4.14 GB, free: 16.91 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01178/11.38, allocations: 7.849 MB / 4.147 GB, free: 10.04 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-05/11.38, allocations: 89.14 kB / 4.147 GB, free: 9.98 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.744e-06/11.38, allocations: 0 / 4.147 GB, free: 9.98 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01076/11.39, allocations: 6.866 MB / 4.154 GB, free: 3.574 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.021/11.41, allocations: 10.97 MB / 4.165 GB, free: 10.09 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.388e-05/11.41, allocations: 0 / 4.165 GB, free: 10.09 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002088/11.41, allocations: 353.1 kB / 4.165 GB, free: 9.812 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006993/11.42, allocations: 2.526 MB / 4.168 GB, free: 7.738 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004728/11.42, allocations: 76.2 kB / 4.168 GB, free: 7.676 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005143/11.42, allocations: 4.107 MB / 4.172 GB, free: 3.746 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.954e-06/11.42, allocations: 4.031 kB / 4.172 GB, free: 3.742 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3936/11.82, allocations: 7.913 MB / 4.179 GB, free: 73.58 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002152/11.82, allocations: 0.7758 MB / 4.18 GB, free: 73.48 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007486/11.82, allocations: 54.38 kB / 4.18 GB, free: 73.48 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002487/11.82, allocations: 198.4 kB / 4.18 GB, free: 73.48 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004067/11.82, allocations: 144.5 kB / 4.18 GB, free: 73.48 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002577/11.82, allocations: 75.61 kB / 4.181 GB, free: 73.48 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.002862/11.83, allocations: 1.366 MB / 4.182 GB, free: 73.32 MB / 0.5886 GB Notification: Performance of sort global known variables: time 9.44e-07/11.83, allocations: 0 / 4.182 GB, free: 73.32 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01178/11.84, allocations: 2.869 MB / 4.185 GB, free: 73.32 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],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,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$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) * 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 (170): * Single equations (assignments): 145 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.01301/11.85, allocations: 2.873 MB / 4.187 GB, free: 73.18 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01085/11.86, allocations: 5.289 MB / 4.193 GB, free: 72.62 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 9.47e-06/11.86, allocations: 1.406 kB / 4.193 GB, free: 72.62 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.004787/11.87, allocations: 2.35 MB / 4.195 GB, free: 72.48 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006017/11.87, allocations: 0.9645 MB / 4.196 GB, free: 72.46 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01194/11.89, allocations: 5.944 MB / 4.202 GB, free: 71.34 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002266/11.89, allocations: 2.297 MB / 4.204 GB, free: 70.57 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.00713/11.89, allocations: 2.443 MB / 4.206 GB, free: 70.53 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007796/11.9, allocations: 156.3 kB / 4.206 GB, free: 70.52 MB / 0.5886 GB Notification: Performance of SimCode: time 1.734e-06/11.9, allocations: 0 / 4.206 GB, free: 70.52 MB / 0.5886 GB Notification: Performance of Templates: time 0.2211/12.12, allocations: 94.12 MB / 4.298 GB, free: 66.14 MB / 0.5886 GB