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_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2") Notification: Performance of loadModel(ModelicaTest): time 2.376/2.376, allocations: 269 MB / 284.1 MB, free: 3.629 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.032e-05/3.024e-05, allocations: 8 kB / 349 MB, free: 10.76 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.1368, allocations: 61.89 MB / 410.9 MB, free: 12.87 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2): time 0.4579/0.5948, allocations: 75.97 MB / 486.9 MB, free: 11.45 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.06147/0.6564, allocations: 29.16 MB / 0.504 GB, free: 14.41 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003745/0.6602, allocations: 103.2 kB / 0.5041 GB, free: 14.31 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004699/0.6649, allocations: 1.077 MB / 0.5051 GB, free: 13.23 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02158/0.6866, allocations: 5.436 MB / 0.5104 GB, free: 7.773 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02499/0.7116, allocations: 6.258 MB / 0.5165 GB, free: 1.512 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.008296/0.7199, allocations: 2.9 MB / 0.5194 GB, free: 14.61 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002521/0.7225, allocations: 0.996 MB / 0.5203 GB, free: 13.61 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005828/0.7284, allocations: 1.722 MB / 0.522 GB, free: 11.88 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04667/0.7751, allocations: 18.22 MB / 0.5398 GB, free: 9.645 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02837/0.8035, allocations: 9.002 MB / 0.5486 GB, free: 0.6367 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004593/0.8082, allocations: 0.5742 MB / 0.5492 GB, free: 64 kB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001852/0.8101, allocations: 0.6933 MB / 0.5498 GB, free: 15.37 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001478/0.8116, allocations: 256 kB / 0.5501 GB, free: 15.12 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01734/0.829, allocations: 5.932 MB / 0.5559 GB, free: 9.172 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.829, allocations: 0 / 0.5559 GB, free: 9.172 MB / 474.7 MB Notification: Performance of FrontEnd: time 6.853e-06/0.8291, allocations: 4 kB / 0.5559 GB, free: 9.168 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.000153/0.8292, allocations: 3.938 kB / 0.5559 GB, free: 9.164 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: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.015/0.8442, allocations: 3.26 MB / 0.5591 GB, free: 5.836 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.421e-05/0.8443, allocations: 8.031 kB / 0.5591 GB, free: 5.828 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008038/0.8523, allocations: 0.7464 MB / 0.5598 GB, free: 5.078 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005291/0.8577, allocations: 1.496 MB / 0.5613 GB, free: 3.527 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003621/0.8581, allocations: 163.4 kB / 0.5614 GB, free: 3.367 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008763/0.859, allocations: 183.9 kB / 0.5616 GB, free: 3.188 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01314/0.8722, allocations: 3.24 MB / 0.5648 GB, free: 15.82 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.286e-05/0.8723, allocations: 15.94 kB / 0.5648 GB, free: 15.8 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004243/0.8728, allocations: 75.97 kB / 0.5648 GB, free: 15.73 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004122/0.8732, allocations: 171.1 kB / 0.565 GB, free: 15.56 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01377/0.887, allocations: 3.151 MB / 0.5681 GB, free: 12.41 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.03038/0.9174, allocations: 13.75 MB / 0.5815 GB, free: 13.53 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00897/0.9265, allocations: 2.079 MB / 0.5835 GB, free: 11.44 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4311/1.358, allocations: 24.91 MB / 0.6079 GB, free: 173.6 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007596/1.365, allocations: 1.604 MB / 0.6094 GB, free: 173.4 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001416/1.367, allocations: 165.1 kB / 0.6096 GB, free: 173.4 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=155): time 7.805e-06/1.367, allocations: 0 / 0.6096 GB, free: 173.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=167): time 0.04028/1.407, allocations: 8.507 MB / 0.6179 GB, free: 170.8 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001019/1.407, allocations: 184.7 kB / 0.6181 GB, free: 170.6 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003155/1.41, allocations: 1.295 MB / 0.6193 GB, free: 170.1 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0005021/1.411, allocations: 59.14 kB / 0.6194 GB, free: 170.1 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008985/1.412, allocations: 0.8346 MB / 0.6202 GB, free: 169.3 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.000968/1.413, allocations: 0.5528 MB / 0.6208 GB, free: 168.9 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002101/1.413, allocations: 40.97 kB / 0.6208 GB, free: 168.9 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001667/1.413, allocations: 383.4 kB / 0.6212 GB, free: 168.6 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003836/1.417, allocations: 1.025 MB / 0.6222 GB, free: 168.2 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004323/1.421, allocations: 1.465 MB / 0.6236 GB, free: 167.4 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004323/1.426, allocations: 1.258 MB / 0.6248 GB, free: 166.9 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.316e-05/1.426, allocations: 3.688 kB / 0.6248 GB, free: 166.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=239) (initialization): time 0.01201/1.438, allocations: 3.081 MB / 0.6278 GB, free: 165.7 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001025/1.439, allocations: 4.508 MB / 0.6322 GB, free: 161 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.367e-05/1.439, allocations: 12.88 kB / 0.6322 GB, free: 161 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004589/1.444, allocations: 0.5248 MB / 0.6328 GB, free: 160.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003858/1.448, allocations: 461.3 kB / 0.6332 GB, free: 160.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002693/1.45, allocations: 2.696 MB / 0.6358 GB, free: 158.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004064/1.454, allocations: 272.4 kB / 0.6361 GB, free: 158.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005393/1.455, allocations: 95.48 kB / 0.6362 GB, free: 158.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/1.455, allocations: 4.344 kB / 0.6362 GB, free: 158.4 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009403/1.465, allocations: 2.845 MB / 0.639 GB, free: 157.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.988e-05/1.465, allocations: 14.81 kB / 0.639 GB, free: 157.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009172/1.466, allocations: 196.4 kB / 0.6392 GB, free: 157.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003715/1.469, allocations: 472.5 kB / 0.6396 GB, free: 157.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001334/1.471, allocations: 1.881 MB / 0.6415 GB, free: 155.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003061/1.474, allocations: 251.9 kB / 0.6417 GB, free: 155.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003078/1.474, allocations: 92.38 kB / 0.6418 GB, free: 155.5 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.001795/1.476, allocations: 0.6422 MB / 0.6424 GB, free: 155.1 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006477/1.477, allocations: 198.4 kB / 0.6426 GB, free: 155 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01558/1.492, allocations: 7.532 MB / 0.65 GB, free: 151.5 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.711e-05/1.492, allocations: 82.91 kB / 0.65 GB, free: 151.4 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/1.492, allocations: 0 / 0.65 GB, free: 151.4 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01254/1.505, allocations: 6.601 MB / 0.6565 GB, free: 146.3 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02284/1.528, allocations: 11.24 MB / 0.6675 GB, free: 134.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.98e-05/1.528, allocations: 11.89 kB / 0.6675 GB, free: 134.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002721/1.531, allocations: 368.1 kB / 0.6678 GB, free: 134.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003829/1.534, allocations: 1.17 MB / 0.669 GB, free: 133.4 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004216/1.535, allocations: 63.97 kB / 0.669 GB, free: 133.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002804/1.538, allocations: 3.178 MB / 0.6721 GB, free: 130 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.495e-06/1.538, allocations: 7.391 kB / 0.6721 GB, free: 130 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01455/1.552, allocations: 7.512 MB / 0.6795 GB, free: 122.2 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001949/1.554, allocations: 0.7108 MB / 0.6802 GB, free: 121.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007972/1.555, allocations: 51.98 kB / 0.6802 GB, free: 121.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002804/1.558, allocations: 179.6 kB / 0.6804 GB, free: 121.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004629/1.558, allocations: 157.7 kB / 0.6805 GB, free: 121.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002478/1.559, allocations: 79.97 kB / 0.6806 GB, free: 121 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002263/1.561, allocations: 1.177 MB / 0.6818 GB, free: 119.8 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.32e-07/1.561, allocations: 0 / 0.6818 GB, free: 119.8 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008634/1.57, allocations: 2.395 MB / 0.6841 GB, free: 117.6 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 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse20.phase,$cse20.region,$cse22.region3boundary,$cse23.region3boundary,$cse24.phase,$cse24.region,$cse26.phase,$cse26.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.009494/1.579, allocations: 2.019 MB / 0.6861 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01306/1.592, allocations: 4.926 MB / 0.6909 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.322e-05/1.592, allocations: 0 / 0.6909 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005478/1.598, allocations: 2.508 MB / 0.6933 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008078/1.606, allocations: 0.9066 MB / 0.6942 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01576/1.622, allocations: 8.212 MB / 0.7022 GB, free: 99.2 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002121/1.624, allocations: 2.134 MB / 0.7043 GB, free: 97.04 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001148/1.625, allocations: 191.4 kB / 0.7045 GB, free: 96.85 MB / 0.5105 GB Notification: Performance of SimCode: time 1.343e-06/1.625, allocations: 0 / 0.7045 GB, free: 96.85 MB / 0.5105 GB Notification: Performance of Templates: time 0.5187/2.144, allocations: 107.3 MB / 0.8093 GB, free: 160.8 MB / 0.5105 GB