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_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3") Notification: Performance of loadModel(ModelicaTest): time 2.417/2.417, allocations: 269 MB / 284.1 MB, free: 3.633 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.459e-05/3.464e-05, allocations: 4 kB / 349 MB, free: 10.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1343, allocations: 61.89 MB / 410.9 MB, free: 12.88 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3): time 0.4804/0.6147, allocations: 81.68 MB / 492.6 MB, free: 5.754 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.06367/0.6785, allocations: 29.19 MB / 0.5096 GB, free: 8.512 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003739/0.6822, allocations: 99.31 kB / 0.5097 GB, free: 8.414 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004827/0.6871, allocations: 1.1 MB / 0.5107 GB, free: 7.309 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02211/0.7093, allocations: 5.464 MB / 0.5161 GB, free: 1.828 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.024/0.7333, allocations: 6.254 MB / 0.5222 GB, free: 11.57 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.008015/0.7414, allocations: 2.939 MB / 0.525 GB, free: 8.625 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002385/0.7438, allocations: 1.021 MB / 0.526 GB, free: 7.602 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005351/0.7492, allocations: 1.722 MB / 0.5277 GB, free: 5.875 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04615/0.7954, allocations: 18.22 MB / 0.5455 GB, free: 3.645 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0268/0.8222, allocations: 8.998 MB / 0.5543 GB, free: 10.64 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004316/0.8266, allocations: 0.5742 MB / 0.5549 GB, free: 10.06 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001742/0.8284, allocations: 0.6894 MB / 0.5555 GB, free: 9.371 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001223/0.8296, allocations: 260 kB / 0.5558 GB, free: 9.117 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0159/0.8455, allocations: 5.948 MB / 0.5616 GB, free: 3.156 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.8456, allocations: 0 / 0.5616 GB, free: 3.156 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.8456, allocations: 0 / 0.5616 GB, free: 3.156 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001158/0.8457, allocations: 4 kB / 0.5616 GB, free: 3.152 MB / 474.7 MB 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.01205/0.8578, allocations: 3.21 MB / 0.5647 GB, free: 15.88 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/0.8578, allocations: 8.031 kB / 0.5647 GB, free: 15.87 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007556/0.8654, allocations: 0.7503 MB / 0.5655 GB, free: 15.11 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004563/0.87, allocations: 1.488 MB / 0.5669 GB, free: 13.57 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002834/0.8703, allocations: 159.5 kB / 0.5671 GB, free: 13.41 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006141/0.8709, allocations: 188 kB / 0.5673 GB, free: 13.23 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01148/0.8824, allocations: 3.182 MB / 0.5704 GB, free: 9.922 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.741e-05/0.8825, allocations: 7.938 kB / 0.5704 GB, free: 9.914 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003784/0.8829, allocations: 79.97 kB / 0.5704 GB, free: 9.836 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003941/0.8833, allocations: 167.2 kB / 0.5706 GB, free: 9.672 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01226/0.8956, allocations: 2.948 MB / 0.5735 GB, free: 6.719 MB / 490.7 MB 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.02965/0.9253, allocations: 14 MB / 0.5872 GB, free: 7.543 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008734/0.9341, allocations: 2.059 MB / 0.5892 GB, free: 5.477 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4342/1.368, allocations: 24.93 MB / 0.6135 GB, free: 167.6 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007171/1.376, allocations: 1.606 MB / 0.6151 GB, free: 167.5 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001508/1.377, allocations: 165.5 kB / 0.6152 GB, free: 167.5 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=155): time 5.33e-06/1.377, allocations: 2.844 kB / 0.6152 GB, free: 167.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=167): time 0.03845/1.416, allocations: 8.453 MB / 0.6235 GB, free: 165.1 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001158/1.416, allocations: 179.5 kB / 0.6237 GB, free: 164.9 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003019/1.419, allocations: 1.298 MB / 0.6249 GB, free: 164.4 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004741/1.419, allocations: 55.23 kB / 0.625 GB, free: 164.3 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008291/1.42, allocations: 0.8553 MB / 0.6258 GB, free: 163.6 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008554/1.421, allocations: 0.5577 MB / 0.6264 GB, free: 163.2 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000194/1.421, allocations: 35.78 kB / 0.6264 GB, free: 163.2 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001644/1.421, allocations: 390.4 kB / 0.6268 GB, free: 162.8 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003581/1.425, allocations: 1.025 MB / 0.6278 GB, free: 162.5 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004185/1.429, allocations: 1.464 MB / 0.6292 GB, free: 161.7 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004167/1.433, allocations: 1.263 MB / 0.6304 GB, free: 161.1 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.222e-05/1.434, allocations: 5.406 kB / 0.6304 GB, free: 161.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=239) (initialization): time 0.01328/1.447, allocations: 3.138 MB / 0.6335 GB, free: 160 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001272/1.448, allocations: 4.511 MB / 0.6379 GB, free: 155.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-05/1.448, allocations: 11.53 kB / 0.6379 GB, free: 155.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004781/1.453, allocations: 0.5157 MB / 0.6384 GB, free: 155.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00406/1.457, allocations: 468.3 kB / 0.6389 GB, free: 155.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0029/1.46, allocations: 2.691 MB / 0.6415 GB, free: 152.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004433/1.465, allocations: 276.5 kB / 0.6418 GB, free: 152.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006733/1.465, allocations: 95.94 kB / 0.6419 GB, free: 152.7 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/1.465, allocations: 7.969 kB / 0.6419 GB, free: 152.7 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009788/1.475, allocations: 2.834 MB / 0.6446 GB, free: 151.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.888e-05/1.475, allocations: 14.97 kB / 0.6446 GB, free: 151.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009214/1.476, allocations: 199.3 kB / 0.6448 GB, free: 151.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00391/1.48, allocations: 476.8 kB / 0.6453 GB, free: 151.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00139/1.482, allocations: 1.875 MB / 0.6471 GB, free: 149.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00322/1.485, allocations: 264.2 kB / 0.6474 GB, free: 149.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003306/1.485, allocations: 96.89 kB / 0.6475 GB, free: 149.8 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * 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,pipe2.state_a.phase,pipe1.state_a.phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (220): * Single equations (assignments): 214 * 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.001759/1.487, allocations: 0.646 MB / 0.6481 GB, free: 149.4 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005836/1.488, allocations: 195.3 kB / 0.6483 GB, free: 149.3 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01419/1.502, allocations: 7.523 MB / 0.6556 GB, free: 145.5 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.982e-05/1.502, allocations: 76.61 kB / 0.6557 GB, free: 145.4 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/1.502, allocations: 3.344 kB / 0.6557 GB, free: 145.4 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01298/1.515, allocations: 6.581 MB / 0.6621 GB, free: 139.8 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02344/1.538, allocations: 11.26 MB / 0.6731 GB, free: 128.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.747e-05/1.539, allocations: 8.5 kB / 0.6731 GB, free: 128.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002679/1.541, allocations: 367.5 kB / 0.6735 GB, free: 128 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003806/1.545, allocations: 1.151 MB / 0.6746 GB, free: 126.9 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003826/1.545, allocations: 63.97 kB / 0.6747 GB, free: 126.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002768/1.548, allocations: 3.183 MB / 0.6778 GB, free: 123.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.446e-06/1.548, allocations: 6.188 kB / 0.6778 GB, free: 123.5 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01426/1.563, allocations: 7.497 MB / 0.6851 GB, free: 115.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002034/1.565, allocations: 0.7107 MB / 0.6858 GB, free: 114.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007834/1.565, allocations: 51.98 kB / 0.6859 GB, free: 114.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003022/1.569, allocations: 191.5 kB / 0.686 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000453/1.569, allocations: 157.7 kB / 0.6862 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002245/1.569, allocations: 72.75 kB / 0.6863 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002357/1.572, allocations: 1.19 MB / 0.6874 GB, free: 113.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.052e-06/1.572, allocations: 0 / 0.6874 GB, free: 113.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009074/1.581, allocations: 2.422 MB / 0.6898 GB, free: 111 MB / 0.5105 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 ($cse6.phase,$cse6.region,$cse8.region3boundary,$cse9.region3boundary,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,$cse23.region3boundary,$cse24.region3boundary,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.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.009616/1.59, allocations: 2.022 MB / 0.6918 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01311/1.604, allocations: 4.963 MB / 0.6966 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.063e-05/1.604, allocations: 448 / 0.6966 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005099/1.609, allocations: 2.512 MB / 0.6991 GB, free: 101.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007685/1.616, allocations: 0.9835 MB / 0.7 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01499/1.632, allocations: 8.26 MB / 0.7081 GB, free: 92.48 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001976/1.634, allocations: 2.143 MB / 0.7102 GB, free: 90.3 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001185/1.635, allocations: 191.4 kB / 0.7104 GB, free: 90.12 MB / 0.5105 GB Notification: Performance of SimCode: time 1.062e-06/1.635, allocations: 4 kB / 0.7104 GB, free: 90.11 MB / 0.5105 GB Notification: Performance of Templates: time 0.5371/2.172, allocations: 108 MB / 0.8158 GB, free: 157.8 MB / 0.5105 GB