Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,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|valveIncompressible.filter.x.1.|valveIncompressible.filter.x.2.|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12") Notification: Performance of loadModel(ModelicaTest): time 1.858/1.858, allocations: 209.3 MB / 224.4 MB, free: 0.5195 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.021e-05/3.015e-05, allocations: 0 / 276.1 MB, free: 15.87 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3591/0.3592, allocations: 48.7 MB / 324.8 MB, free: 2.891 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12): time 0.1278/0.487, allocations: 74.96 MB / 399.8 MB, free: 4.48 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.07295/0.56, allocations: 30.22 MB / 430 MB, free: 6.199 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003462/0.5635, allocations: 103.2 kB / 430.1 MB, free: 6.098 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004428/0.568, allocations: 1.069 MB / 431.2 MB, free: 5.023 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02258/0.5906, allocations: 5.401 MB / 436.6 MB, free: 15.61 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02455/0.6152, allocations: 6.315 MB / 442.9 MB, free: 9.285 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.008191/0.6234, allocations: 2.986 MB / 445.9 MB, free: 6.293 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002522/0.626, allocations: 1.055 MB / 447 MB, free: 5.234 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005469/0.6315, allocations: 1.734 MB / 448.7 MB, free: 3.496 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04342/0.675, allocations: 18.12 MB / 466.8 MB, free: 1.367 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02835/0.7034, allocations: 9.458 MB / 476.3 MB, free: 7.898 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004667/0.7081, allocations: 0.5781 MB / 476.8 MB, free: 7.32 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002053/0.7102, allocations: 0.7557 MB / 477.6 MB, free: 6.562 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001534/0.7118, allocations: 272 kB / 477.9 MB, free: 6.297 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3666/1.078, allocations: 6.354 MB / 484.2 MB, free: 36.3 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.471e-06/1.079, allocations: 0 / 484.2 MB, free: 36.3 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.785e-06/1.079, allocations: 0 / 484.2 MB, free: 36.3 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001535/1.079, allocations: 0.625 kB / 484.2 MB, free: 36.3 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 514 * Number of variables: 514 Notification: Performance of Generate backend data structure: time 0.01543/1.094, allocations: 3.495 MB / 487.7 MB, free: 34.72 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.192e-05/1.094, allocations: 10.06 kB / 487.7 MB, free: 34.72 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008898/1.103, allocations: 0.7969 MB / 488.5 MB, free: 34.58 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006121/1.109, allocations: 1.613 MB / 490.1 MB, free: 34.17 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004011/1.11, allocations: 175.7 kB / 490.3 MB, free: 34.16 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001033/1.111, allocations: 191.4 kB / 490.5 MB, free: 34.16 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01367/1.125, allocations: 3.581 MB / 494.1 MB, free: 33.75 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001014/1.125, allocations: 6.656 kB / 494.1 MB, free: 33.75 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004497/1.125, allocations: 84.56 kB / 494.2 MB, free: 33.75 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004587/1.126, allocations: 201.6 kB / 494.4 MB, free: 33.74 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01443/1.14, allocations: 3.491 MB / 497.9 MB, free: 33.73 MB / 410.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.02842/1.169, allocations: 14.63 MB / 0.5005 GB, free: 25.13 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008051/1.177, allocations: 2.184 MB / 0.5026 GB, free: 25.08 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05725/1.234, allocations: 19.08 MB / 0.5212 GB, free: 12.61 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006034/1.24, allocations: 1.637 MB / 0.5228 GB, free: 12.49 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001435/1.242, allocations: 174.7 kB / 0.523 GB, free: 12.4 MB / 410.7 MB Notification: Performance of pre-optimization done (n=158): time 5.04e-06/1.242, allocations: 0 / 0.523 GB, free: 12.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=170): time 0.03952/1.281, allocations: 9.055 MB / 0.5318 GB, free: 10.68 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001148/1.281, allocations: 337.4 kB / 0.5322 GB, free: 10.28 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002874/1.284, allocations: 1.449 MB / 0.5336 GB, free: 9.414 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004965/1.285, allocations: 55.7 kB / 0.5336 GB, free: 9.375 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008548/1.286, allocations: 0.9539 MB / 0.5346 GB, free: 8.809 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000847/1.286, allocations: 0.5775 MB / 0.5351 GB, free: 8.367 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002443/1.287, allocations: 44.25 kB / 0.5352 GB, free: 8.355 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001466/1.287, allocations: 394 kB / 0.5355 GB, free: 8.02 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003402/1.29, allocations: 1.136 MB / 0.5367 GB, free: 7.43 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00389/1.294, allocations: 1.636 MB / 0.5382 GB, free: 6.105 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004037/1.298, allocations: 1.402 MB / 0.5396 GB, free: 5.191 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.799e-05/1.298, allocations: 4 kB / 0.5396 GB, free: 5.188 MB / 410.7 MB Notification: Performance of matching and sorting (n=268) (initialization): time 0.01054/1.309, allocations: 3.39 MB / 0.5429 GB, free: 2.844 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001877/1.311, allocations: 5.38 MB / 0.5482 GB, free: 13.15 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.443e-05/1.311, allocations: 16 kB / 0.5482 GB, free: 13.13 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008522/1.319, allocations: 0.968 MB / 0.5491 GB, free: 12.28 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00397/1.323, allocations: 488.6 kB / 0.5496 GB, free: 11.84 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004558/1.328, allocations: 3.151 MB / 0.5527 GB, free: 8.984 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003947/1.332, allocations: 240.4 kB / 0.5529 GB, free: 8.781 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005704/1.333, allocations: 104.5 kB / 0.553 GB, free: 8.699 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/1.333, allocations: 4 kB / 0.553 GB, free: 8.695 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01109/1.344, allocations: 3.199 MB / 0.5561 GB, free: 6.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.017e-05/1.344, allocations: 16 kB / 0.5562 GB, free: 6.484 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001941/1.346, allocations: 359.5 kB / 0.5565 GB, free: 6.195 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004213/1.35, allocations: 0.501 MB / 0.557 GB, free: 5.746 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006124/1.356, allocations: 4.132 MB / 0.561 GB, free: 1.965 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003006/1.359, allocations: 229.5 kB / 0.5612 GB, free: 1.77 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000438/1.36, allocations: 108.4 kB / 0.5614 GB, free: 1.684 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 27 (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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (232): * Single equations (assignments): 222 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.001944/1.362, allocations: 0.6972 MB / 0.562 GB, free: 1.195 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006964/1.363, allocations: 205.5 kB / 0.5622 GB, free: 0.9922 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01808/1.381, allocations: 7.808 MB / 0.5699 GB, free: 11.73 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001275/1.381, allocations: 81.69 kB / 0.5699 GB, free: 11.67 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.585e-06/1.381, allocations: 0 / 0.5699 GB, free: 11.67 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0149/1.396, allocations: 6.85 MB / 0.5766 GB, free: 6.977 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02457/1.42, allocations: 10.78 MB / 0.5871 GB, free: 15.94 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.645e-05/1.42, allocations: 0 / 0.5871 GB, free: 15.94 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003029/1.424, allocations: 338.2 kB / 0.5875 GB, free: 15.64 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008136/1.432, allocations: 2.104 MB / 0.5895 GB, free: 13.79 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004688/1.432, allocations: 66.39 kB / 0.5896 GB, free: 13.76 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005254/1.437, allocations: 4.081 MB / 0.5936 GB, free: 10.41 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.107e-06/1.438, allocations: 7.984 kB / 0.5936 GB, free: 10.4 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01772/1.455, allocations: 7.865 MB / 0.6013 GB, free: 5.215 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002275/1.458, allocations: 0.7257 MB / 0.602 GB, free: 4.594 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008582/1.458, allocations: 50.7 kB / 0.602 GB, free: 4.574 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002969/1.461, allocations: 190.7 kB / 0.6022 GB, free: 4.414 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000539/1.462, allocations: 141.8 kB / 0.6023 GB, free: 4.293 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002334/1.462, allocations: 66.66 kB / 0.6024 GB, free: 4.242 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002782/1.465, allocations: 1.207 MB / 0.6036 GB, free: 3.332 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.72e-07/1.465, allocations: 192 / 0.6036 GB, free: 3.332 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01052/1.476, allocations: 2.556 MB / 0.6061 GB, free: 0.9414 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 53 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.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,$cse29.phase,$cse29.region,$cse30.region3boundary,$cse31.region3boundary,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse35.phase,$cse35.region,$cse37.phase,$cse37.region,$cse42.phase,$cse42.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,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (168): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.01134/1.487, allocations: 2.123 MB / 0.6082 GB, free: 15.07 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01675/1.504, allocations: 5.48 MB / 0.6135 GB, free: 10.57 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.201e-05/1.504, allocations: 7.094 kB / 0.6135 GB, free: 10.57 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006788/1.511, allocations: 2.394 MB / 0.6158 GB, free: 8.18 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008136/1.519, allocations: 0.8829 MB / 0.6167 GB, free: 7.301 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02029/1.539, allocations: 8.808 MB / 0.6253 GB, free: 14.57 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003155/1.542, allocations: 2.245 MB / 0.6275 GB, free: 12.3 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001278/1.544, allocations: 191.4 kB / 0.6277 GB, free: 12.11 MB / 490.7 MB Notification: Performance of SimCode: time 1.402e-06/1.544, allocations: 0 / 0.6277 GB, free: 12.11 MB / 490.7 MB Notification: Performance of Templates: time 0.5405/2.084, allocations: 113.1 MB / 0.7381 GB, free: 149.7 MB / 0.4948 GB