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_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4") Notification: Performance of loadModel(ModelicaTest): time 2.546/2.546, allocations: 234.9 MB / 250.1 MB, free: 10.92 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.152e-05/3.158e-05, allocations: 4 kB / 308 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.368/0.3681, allocations: 54.87 MB / 362.8 MB, free: 11.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4): time 0.1445/0.5126, allocations: 83.65 MB / 446.5 MB, free: 8.055 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.06957/0.5823, allocations: 31.92 MB / 478.4 MB, free: 8.066 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003864/0.5862, allocations: 111.2 kB / 478.5 MB, free: 7.957 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00485/0.5911, allocations: 1.159 MB / 479.7 MB, free: 6.793 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02327/0.6144, allocations: 5.732 MB / 485.4 MB, free: 1.043 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.3877/1.002, allocations: 6.69 MB / 492.1 MB, free: 8.668 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.008017/1.01, allocations: 3.154 MB / 495.3 MB, free: 8.668 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002515/1.013, allocations: 1.029 MB / 496.3 MB, free: 8.66 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005797/1.019, allocations: 1.821 MB / 498.1 MB, free: 8.656 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04251/1.061, allocations: 18.32 MB / 0.5043 GB, free: 8.371 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02708/1.088, allocations: 9.657 MB / 0.5138 GB, free: 4.52 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005813/1.094, allocations: 0.5938 MB / 0.5143 GB, free: 3.926 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00209/1.096, allocations: 0.7343 MB / 0.5151 GB, free: 3.641 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001981/1.098, allocations: 280.8 kB / 0.5153 GB, free: 3.367 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01696/1.115, allocations: 6.416 MB / 0.5216 GB, free: 14.67 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/1.115, allocations: 0 / 0.5216 GB, free: 14.67 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.587e-06/1.115, allocations: 0 / 0.5216 GB, free: 14.67 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.00013/1.116, allocations: 0 / 0.5216 GB, free: 14.67 MB / 426.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.0143/1.13, allocations: 3.504 MB / 0.525 GB, free: 11.32 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.274e-05/1.13, allocations: 12.03 kB / 0.525 GB, free: 11.31 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008984/1.139, allocations: 0.8582 MB / 0.5259 GB, free: 10.53 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005349/1.144, allocations: 1.583 MB / 0.5274 GB, free: 9.312 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000303/1.145, allocations: 184.4 kB / 0.5276 GB, free: 9.207 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007712/1.145, allocations: 209.9 kB / 0.5278 GB, free: 9.074 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01292/1.158, allocations: 3.574 MB / 0.5313 GB, free: 6.328 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-05/1.159, allocations: 6.719 kB / 0.5313 GB, free: 6.324 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003719/1.159, allocations: 84.09 kB / 0.5314 GB, free: 6.305 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004555/1.159, allocations: 204.5 kB / 0.5316 GB, free: 6.129 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01402/1.173, allocations: 3.414 MB / 0.5349 GB, free: 3.695 MB / 426.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.0329/1.206, allocations: 15.3 MB / 0.5498 GB, free: 5.52 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009627/1.216, allocations: 2.257 MB / 0.552 GB, free: 3.891 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06682/1.283, allocations: 19.11 MB / 0.5707 GB, free: 14.9 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007246/1.29, allocations: 1.669 MB / 0.5723 GB, free: 13.6 MB / 474.7 MB Notification: Performance of pre-optimization done (n=163): time 6.262e-06/1.29, allocations: 0 / 0.5723 GB, free: 13.6 MB / 474.7 MB Notification: Performance of matching and sorting (n=179): time 0.04394/1.334, allocations: 8.911 MB / 0.581 GB, free: 6.68 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001441/1.334, allocations: 178.7 kB / 0.5812 GB, free: 6.473 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003231/1.338, allocations: 1.402 MB / 0.5826 GB, free: 5.414 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004839/1.338, allocations: 66.19 kB / 0.5826 GB, free: 5.367 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001068/1.339, allocations: 0.9632 MB / 0.5836 GB, free: 4.715 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001086/1.34, allocations: 0.603 MB / 0.5842 GB, free: 4.199 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002339/1.341, allocations: 41.31 kB / 0.5842 GB, free: 4.191 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002868/1.341, allocations: 399.8 kB / 0.5846 GB, free: 3.824 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003973/1.345, allocations: 1.104 MB / 0.5857 GB, free: 3.074 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004847/1.35, allocations: 1.606 MB / 0.5872 GB, free: 1.664 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005046/1.355, allocations: 1.357 MB / 0.5886 GB, free: 0.7852 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-05/1.355, allocations: 8 kB / 0.5886 GB, free: 0.7773 MB / 474.7 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.01095/1.366, allocations: 3.155 MB / 0.5916 GB, free: 14.6 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002773/1.369, allocations: 5.816 MB / 0.5973 GB, free: 8.434 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.279e-05/1.369, allocations: 16 kB / 0.5973 GB, free: 8.418 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00142/1.37, allocations: 244.4 kB / 0.5976 GB, free: 8.219 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00451/1.375, allocations: 0.5299 MB / 0.5981 GB, free: 7.742 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002398/1.377, allocations: 2.433 MB / 0.6005 GB, free: 5.363 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003999/1.381, allocations: 268.9 kB / 0.6007 GB, free: 5.133 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004419/1.382, allocations: 107.7 kB / 0.6008 GB, free: 5.047 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/1.382, allocations: 5.25 kB / 0.6008 GB, free: 5.043 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009948/1.392, allocations: 3.018 MB / 0.6038 GB, free: 3.004 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.924e-05/1.392, allocations: 23.88 kB / 0.6038 GB, free: 2.984 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001252/1.393, allocations: 244.2 kB / 0.604 GB, free: 2.785 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004315/1.398, allocations: 0.5278 MB / 0.6045 GB, free: 2.309 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002239/1.4, allocations: 2.431 MB / 0.6069 GB, free: 15.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003214/1.403, allocations: 278 kB / 0.6072 GB, free: 15.7 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000325/1.404, allocations: 104.3 kB / 0.6073 GB, free: 15.61 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * 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 (256): * Single equations (assignments): 250 * 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.001937/1.405, allocations: 0.688 MB / 0.608 GB, free: 15.14 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000668/1.406, allocations: 205.5 kB / 0.6082 GB, free: 14.93 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01759/1.424, allocations: 7.545 MB / 0.6155 GB, free: 9.785 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001257/1.424, allocations: 88.55 kB / 0.6156 GB, free: 9.719 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-05/1.424, allocations: 0 / 0.6156 GB, free: 9.719 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01523/1.439, allocations: 6.589 MB / 0.622 GB, free: 5.16 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02523/1.464, allocations: 10.72 MB / 0.6325 GB, free: 14.13 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.802e-05/1.465, allocations: 0 / 0.6325 GB, free: 14.13 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003492/1.468, allocations: 409.9 kB / 0.6329 GB, free: 13.76 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002091/1.47, allocations: 334.9 kB / 0.6332 GB, free: 13.44 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004889/1.471, allocations: 65.83 kB / 0.6333 GB, free: 13.38 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002379/1.473, allocations: 2.519 MB / 0.6357 GB, free: 10.76 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/1.473, allocations: 0 / 0.6357 GB, free: 10.76 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01839/1.492, allocations: 7.047 MB / 0.6426 GB, free: 3.578 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002395/1.494, allocations: 0.7379 MB / 0.6433 GB, free: 2.816 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009017/1.495, allocations: 47.94 kB / 0.6434 GB, free: 2.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003333/1.498, allocations: 203.6 kB / 0.6436 GB, free: 2.57 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00068/1.499, allocations: 148.8 kB / 0.6437 GB, free: 2.43 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002886/1.499, allocations: 70.47 kB / 0.6438 GB, free: 2.363 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002851/1.502, allocations: 1.172 MB / 0.6449 GB, free: 1.172 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.11e-07/1.502, allocations: 0 / 0.6449 GB, free: 1.172 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.011/1.513, allocations: 2.604 MB / 0.6475 GB, free: 14.57 MB / 0.5261 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 (200): * Single equations (assignments): 171 * 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.01161/1.525, allocations: 2.149 MB / 0.6496 GB, free: 12.6 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0173/1.542, allocations: 5.326 MB / 0.6548 GB, free: 7.32 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.102e-05/1.542, allocations: 5.938 kB / 0.6548 GB, free: 7.316 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006538/1.549, allocations: 2.484 MB / 0.6572 GB, free: 4.84 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008744/1.558, allocations: 0.9603 MB / 0.6581 GB, free: 3.883 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02009/1.578, allocations: 8.892 MB / 0.6668 GB, free: 11.07 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002659/1.581, allocations: 2.237 MB / 0.669 GB, free: 8.801 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001446/1.582, allocations: 218.1 kB / 0.6692 GB, free: 8.59 MB / 0.5417 GB Notification: Performance of SimCode: time 1.012e-06/1.582, allocations: 4 kB / 0.6692 GB, free: 8.586 MB / 0.5417 GB Notification: Performance of Templates: time 0.5275/2.11, allocations: 114.2 MB / 0.7808 GB, free: 145.9 MB / 0.5417 GB