Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,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|splitter.medium.h|splitter.medium.p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4") Notification: Performance of loadModel(ModelicaTest): time 2.341/2.341, allocations: 269 MB / 284.1 MB, free: 3.641 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.808e-05/2.805e-05, allocations: 4 kB / 349 MB, free: 10.76 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1356/0.1356, allocations: 61.9 MB / 410.9 MB, free: 12.86 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4): time 0.4759/0.6116, allocations: 84.1 MB / 495 MB, free: 3.441 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.06768/0.6793, allocations: 32.06 MB / 0.5147 GB, free: 3.316 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004345/0.6837, allocations: 111.2 kB / 0.5148 GB, free: 3.207 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005291/0.6891, allocations: 1.159 MB / 0.516 GB, free: 2.043 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02308/0.7122, allocations: 5.759 MB / 0.5216 GB, free: 12.27 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0258/0.7381, allocations: 6.745 MB / 0.5282 GB, free: 5.516 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.008742/0.7468, allocations: 3.178 MB / 0.5313 GB, free: 2.332 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002561/0.7494, allocations: 1.035 MB / 0.5323 GB, free: 1.297 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005869/0.7554, allocations: 1.851 MB / 0.5341 GB, free: 15.44 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04578/0.8012, allocations: 18.32 MB / 0.552 GB, free: 13.11 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02932/0.8306, allocations: 9.693 MB / 0.5615 GB, free: 3.406 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004757/0.8354, allocations: 0.5976 MB / 0.562 GB, free: 2.809 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001886/0.8373, allocations: 0.744 MB / 0.5628 GB, free: 2.062 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001529/0.8389, allocations: 284 kB / 0.563 GB, free: 1.785 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01816/0.8571, allocations: 6.455 MB / 0.5693 GB, free: 11.32 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.8571, allocations: 0 / 0.5693 GB, free: 11.32 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.8572, allocations: 0 / 0.5693 GB, free: 11.32 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001355/0.8573, allocations: 0 / 0.5693 GB, free: 11.32 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01403/0.8713, allocations: 3.511 MB / 0.5728 GB, free: 7.734 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/0.8714, allocations: 12.03 kB / 0.5728 GB, free: 7.723 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009245/0.8807, allocations: 0.8554 MB / 0.5736 GB, free: 6.863 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005372/0.8861, allocations: 1.583 MB / 0.5752 GB, free: 5.227 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003337/0.8865, allocations: 183.8 kB / 0.5753 GB, free: 5.047 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007845/0.8873, allocations: 203.9 kB / 0.5755 GB, free: 4.848 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01314/0.9004, allocations: 3.606 MB / 0.5791 GB, free: 1.098 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.461e-05/0.9006, allocations: 7.938 kB / 0.5791 GB, free: 1.09 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004155/0.901, allocations: 79.97 kB / 0.5791 GB, free: 1.012 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004775/0.9015, allocations: 199.8 kB / 0.5793 GB, free: 0.8164 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01881/0.9203, allocations: 3.426 MB / 0.5827 GB, free: 13.38 MB / 0.4948 GB 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.04403/0.9644, allocations: 15.48 MB / 0.5978 GB, free: 12.57 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01359/0.9781, allocations: 2.295 MB / 0.6 GB, free: 10.26 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4216/1.4, allocations: 24.87 MB / 0.6243 GB, free: 162.8 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007668/1.407, allocations: 1.703 MB / 0.626 GB, free: 162.6 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=163): time 8.025e-06/1.408, allocations: 4 kB / 0.626 GB, free: 162.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=179): time 0.0417/1.449, allocations: 9.102 MB / 0.6349 GB, free: 159.6 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/1.449, allocations: 186.7 kB / 0.6351 GB, free: 159.4 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003134/1.453, allocations: 1.464 MB / 0.6365 GB, free: 158.9 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004433/1.453, allocations: 59.33 kB / 0.6365 GB, free: 158.8 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.000843/1.454, allocations: 0.9404 MB / 0.6375 GB, free: 158 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008374/1.455, allocations: 0.6048 MB / 0.6381 GB, free: 157.6 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002203/1.455, allocations: 45.62 kB / 0.6381 GB, free: 157.5 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001475/1.455, allocations: 390.1 kB / 0.6385 GB, free: 157.2 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003583/1.459, allocations: 1.119 MB / 0.6396 GB, free: 156.8 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00396/1.463, allocations: 1.596 MB / 0.6411 GB, free: 155.9 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004084/1.467, allocations: 1.362 MB / 0.6425 GB, free: 155.3 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.846e-05/1.467, allocations: 5.75 kB / 0.6425 GB, free: 155.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=266) (initialization): time 0.01005/1.477, allocations: 3.218 MB / 0.6456 GB, free: 153.6 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001078/1.478, allocations: 5.294 MB / 0.6508 GB, free: 148 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.018e-05/1.478, allocations: 15.83 kB / 0.6508 GB, free: 148 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001312/1.479, allocations: 240.8 kB / 0.651 GB, free: 147.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004235/1.484, allocations: 0.5192 MB / 0.6515 GB, free: 147.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001704/1.485, allocations: 2.44 MB / 0.6539 GB, free: 145.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003982/1.49, allocations: 273.2 kB / 0.6542 GB, free: 145.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004945/1.49, allocations: 103.6 kB / 0.6543 GB, free: 145.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/1.49, allocations: 3.781 kB / 0.6543 GB, free: 145.2 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009524/1.5, allocations: 3.085 MB / 0.6573 GB, free: 143.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.372e-05/1.5, allocations: 12.78 kB / 0.6573 GB, free: 143.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001162/1.501, allocations: 239.7 kB / 0.6575 GB, free: 143.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00402/1.505, allocations: 0.5194 MB / 0.658 GB, free: 143.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001623/1.507, allocations: 2.437 MB / 0.6604 GB, free: 141.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003077/1.51, allocations: 267.5 kB / 0.6607 GB, free: 141 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003157/1.51, allocations: 102.3 kB / 0.6608 GB, free: 140.9 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 30 (pipe3.state_a.phase,pipe2.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,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,splitter.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (252): * Single equations (assignments): 246 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001815/1.512, allocations: 0.6868 MB / 0.6614 GB, free: 140.4 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006563/1.513, allocations: 207.6 kB / 0.6616 GB, free: 140.3 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01523/1.528, allocations: 7.682 MB / 0.6691 GB, free: 132.5 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.442e-05/1.528, allocations: 87.88 kB / 0.6692 GB, free: 132.4 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/1.528, allocations: 0 / 0.6692 GB, free: 132.4 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01254/1.54, allocations: 6.684 MB / 0.6757 GB, free: 125.5 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02101/1.562, allocations: 10.91 MB / 0.6864 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.518e-05/1.562, allocations: 7.938 kB / 0.6864 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003204/1.565, allocations: 407.5 kB / 0.6868 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001894/1.567, allocations: 339.9 kB / 0.6871 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000401/1.567, allocations: 67.95 kB / 0.6872 GB, free: 113.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001576/1.569, allocations: 2.518 MB / 0.6896 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/1.569, allocations: 3.953 kB / 0.6896 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01493/1.584, allocations: 7.174 MB / 0.6967 GB, free: 103.8 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002069/1.586, allocations: 0.7573 MB / 0.6974 GB, free: 103 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008024/1.587, allocations: 55.94 kB / 0.6974 GB, free: 102.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002931/1.59, allocations: 207.5 kB / 0.6976 GB, free: 102.7 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004306/1.59, allocations: 152.4 kB / 0.6978 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002231/1.59, allocations: 71.97 kB / 0.6979 GB, free: 102.5 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002428/1.593, allocations: 1.306 MB / 0.6991 GB, free: 101.2 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.51e-07/1.593, allocations: 0 / 0.6991 GB, free: 101.2 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008863/1.602, allocations: 2.638 MB / 0.7017 GB, free: 98.76 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse19.phase,$cse19.region,$cse21.region3boundary,$cse22.region3boundary,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$cse40.phase,$cse40.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,splitter.medium.phase) * 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 (202): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.00982/1.612, allocations: 2.167 MB / 0.7038 GB, free: 97 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01428/1.626, allocations: 5.348 MB / 0.709 GB, free: 91.58 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.278e-06/1.626, allocations: 4 kB / 0.709 GB, free: 91.57 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005573/1.632, allocations: 2.501 MB / 0.7115 GB, free: 89.05 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008658/1.64, allocations: 1.033 MB / 0.7125 GB, free: 88.04 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01636/1.657, allocations: 8.725 MB / 0.721 GB, free: 79.29 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002073/1.659, allocations: 2.249 MB / 0.7232 GB, free: 77.02 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001372/1.66, allocations: 219.4 kB / 0.7234 GB, free: 76.8 MB / 0.5105 GB Notification: Performance of SimCode: time 1.492e-06/1.66, allocations: 0 / 0.7234 GB, free: 76.8 MB / 0.5105 GB Notification: Performance of Templates: time 0.5368/2.197, allocations: 115.3 MB / 0.8361 GB, free: 170.1 MB / 0.5261 GB