Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,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.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3") Notification: Performance of loadModel(ModelicaTest): time 2.294/2.294, allocations: 249.5 MB / 261.6 MB, free: 2.164 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 3.056e-05/3.066e-05, allocations: 7.984 kB / 323.4 MB, free: 4.309 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3177/0.3177, allocations: 58.82 MB / 382.2 MB, free: 10.34 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.546/6.864, allocations: 2.843 GB / 3.216 GB, free: 98.12 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002222/6.864, allocations: 79.02 kB / 3.216 GB, free: 98.08 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.714/10.58, allocations: 0.873 GB / 4.089 GB, free: 16.02 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.179e-06/10.58, allocations: 0 / 4.089 GB, free: 16.02 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001798/10.58, allocations: 59.69 kB / 4.089 GB, free: 15.97 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01231/10.59, allocations: 3.761 MB / 4.093 GB, free: 12.17 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/10.59, allocations: 12.03 kB / 4.093 GB, free: 12.16 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007369/10.6, allocations: 0.7827 MB / 4.093 GB, free: 11.38 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005886/10.6, allocations: 1.965 MB / 4.095 GB, free: 9.395 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002075/10.6, allocations: 169.1 kB / 4.096 GB, free: 9.242 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005231/10.61, allocations: 191 kB / 4.096 GB, free: 9.066 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008133/10.61, allocations: 3.241 MB / 4.099 GB, free: 5.68 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.362e-05/10.61, allocations: 7.938 kB / 4.099 GB, free: 5.672 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003159/10.61, allocations: 87.33 kB / 4.099 GB, free: 5.598 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002252/10.61, allocations: 151.2 kB / 4.099 GB, free: 5.449 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007561/10.62, allocations: 2.809 MB / 4.102 GB, free: 2.637 MB / 0.5261 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.02412/10.65, allocations: 14.07 MB / 4.116 GB, free: 3.52 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006176/10.65, allocations: 1.988 MB / 4.118 GB, free: 1.516 MB / 0.5418 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002279/10.65, allocations: 1.054 MB / 4.119 GB, free: 476 kB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4098/11.06, allocations: 24.66 MB / 4.143 GB, free: 28.75 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00533/11.07, allocations: 1.617 MB / 4.144 GB, free: 28.64 MB / 0.5418 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001488/11.07, allocations: 181.6 kB / 4.144 GB, free: 28.64 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=155): time 5.765e-06/11.07, allocations: 0 / 4.144 GB, free: 28.64 MB / 0.5418 GB Notification: Performance of matching and sorting (n=167): time 0.02535/11.1, allocations: 7.041 MB / 4.151 GB, free: 27.84 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.348e-05/11.1, allocations: 254.8 kB / 4.152 GB, free: 27.56 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002538/11.1, allocations: 1.32 MB / 4.153 GB, free: 27.39 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 0.0004346/11.1, allocations: 58.64 kB / 4.153 GB, free: 27.36 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008604/11.1, allocations: 0.8814 MB / 4.154 GB, free: 27.1 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007464/11.1, allocations: 0.5584 MB / 4.154 GB, free: 26.82 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001902/11.1, allocations: 33.47 kB / 4.154 GB, free: 26.82 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.0001375/11.1, allocations: 381.6 kB / 4.155 GB, free: 26.52 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002014/11.1, allocations: 0.9322 MB / 4.156 GB, free: 26.51 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002363/11.11, allocations: 1.322 MB / 4.157 GB, free: 26.12 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002395/11.11, allocations: 1.16 MB / 4.158 GB, free: 26.04 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.556e-06/11.11, allocations: 0 / 4.158 GB, free: 26.04 MB / 0.5418 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.007613/11.12, allocations: 2.962 MB / 4.161 GB, free: 25.77 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008072/11.12, allocations: 3.854 MB / 4.165 GB, free: 21.73 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.131e-05/11.12, allocations: 11.48 kB / 4.165 GB, free: 21.73 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003219/11.12, allocations: 0.5105 MB / 4.165 GB, free: 21.7 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00294/11.12, allocations: 453.9 kB / 4.166 GB, free: 21.7 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002234/11.13, allocations: 2.7 MB / 4.168 GB, free: 19.62 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003498/11.13, allocations: 267.3 kB / 4.168 GB, free: 19.61 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004212/11.13, allocations: 95.92 kB / 4.169 GB, free: 19.61 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/11.13, allocations: 4.938 kB / 4.169 GB, free: 19.61 MB / 0.5418 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006031/11.14, allocations: 2.588 MB / 4.171 GB, free: 19.48 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.351e-05/11.14, allocations: 12.94 kB / 4.171 GB, free: 19.48 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009022/11.14, allocations: 197.3 kB / 4.171 GB, free: 19.45 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002884/11.14, allocations: 459.3 kB / 4.172 GB, free: 19.45 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001195/11.14, allocations: 1.878 MB / 4.174 GB, free: 17.9 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003288/11.14, allocations: 263.1 kB / 4.174 GB, free: 17.89 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004402/11.14, allocations: 96.09 kB / 4.174 GB, free: 17.89 MB / 0.5418 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.000708/11.15, allocations: 285.8 kB / 4.174 GB, free: 17.71 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005342/11.15, allocations: 200.3 kB / 4.174 GB, free: 17.62 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01241/11.16, allocations: 7.458 MB / 4.182 GB, free: 16.92 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.877e-05/11.16, allocations: 82.44 kB / 4.182 GB, free: 16.92 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.067e-05/11.16, allocations: 0 / 4.182 GB, free: 16.92 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009867/11.17, allocations: 6.503 MB / 4.188 GB, free: 15.98 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01987/11.19, allocations: 11.25 MB / 4.199 GB, free: 14.9 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.891e-05/11.19, allocations: 7.297 kB / 4.199 GB, free: 14.9 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002202/11.19, allocations: 365.7 kB / 4.199 GB, free: 14.9 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003591/11.19, allocations: 1.312 MB / 4.201 GB, free: 14.83 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003599/11.19, allocations: 67.8 kB / 4.201 GB, free: 14.83 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002622/11.2, allocations: 3.198 MB / 4.204 GB, free: 12.74 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.275e-06/11.2, allocations: 6.219 kB / 4.204 GB, free: 12.74 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01159/11.21, allocations: 7.285 MB / 4.211 GB, free: 11.48 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001937/11.21, allocations: 0.7389 MB / 4.212 GB, free: 11.19 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006924/11.21, allocations: 55.09 kB / 4.212 GB, free: 11.19 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002463/11.21, allocations: 195.1 kB / 4.212 GB, free: 11.18 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003658/11.21, allocations: 157.1 kB / 4.212 GB, free: 11.17 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002368/11.21, allocations: 76.41 kB / 4.212 GB, free: 11.17 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.002278/11.22, allocations: 1.197 MB / 4.213 GB, free: 11.01 MB / 0.5418 GB Notification: Performance of sort global known variables: time 9.81e-07/11.22, allocations: 0.75 kB / 4.213 GB, free: 11.01 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.01062/11.23, allocations: 2.637 MB / 4.216 GB, free: 10.9 MB / 0.5418 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,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.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.01209/11.24, allocations: 2.82 MB / 4.219 GB, free: 10.59 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.009916/11.25, allocations: 4.567 MB / 4.223 GB, free: 26.27 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 1.143e-05/11.25, allocations: 7.594 kB / 4.223 GB, free: 26.27 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.004948/11.25, allocations: 2.438 MB / 4.226 GB, free: 26.14 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006709/11.26, allocations: 0.9735 MB / 4.227 GB, free: 26.11 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01138/11.27, allocations: 5.649 MB / 4.232 GB, free: 24.93 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002331/11.28, allocations: 2.193 MB / 4.234 GB, free: 24.16 MB / 0.5574 GB Notification: Performance of simCode: alias equations: time 0.006554/11.28, allocations: 2.487 MB / 4.237 GB, free: 24.11 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000777/11.28, allocations: 157.3 kB / 4.237 GB, free: 24.11 MB / 0.5574 GB Notification: Performance of SimCode: time 2.011e-06/11.28, allocations: 2.656 kB / 4.237 GB, free: 24.11 MB / 0.5574 GB Notification: Performance of Templates: time 0.1736/11.46, allocations: 88.76 MB / 4.323 GB, free: 7.547 MB / 0.573 GB