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_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2") Notification: Performance of loadModel(ModelicaTest): time 1.825/1.825, allocations: 209.3 MB / 221.9 MB, free: 7.73 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.323e-05/3.338e-05, allocations: 4 kB / 273.1 MB, free: 3.656 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08561/0.08567, allocations: 48.7 MB / 321.8 MB, free: 2.863 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.14/6.225, allocations: 2.562 GB / 2.876 GB, free: 67.49 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002014/6.226, allocations: 75.94 kB / 2.876 GB, free: 67.45 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.795/10.02, allocations: 0.7788 GB / 3.655 GB, free: 35.56 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.101e-06/10.02, allocations: 1.422 kB / 3.655 GB, free: 35.56 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002688/10.02, allocations: 67.22 kB / 3.655 GB, free: 35.55 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: 463 * Number of variables: 463 Notification: Performance of Generate backend data structure: time 0.01425/10.03, allocations: 3.528 MB / 3.659 GB, free: 33.99 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/10.03, allocations: 11.81 kB / 3.659 GB, free: 33.99 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008177/10.04, allocations: 0.754 MB / 3.659 GB, free: 33.86 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006694/10.05, allocations: 1.981 MB / 3.661 GB, free: 33.43 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002729/10.05, allocations: 163.7 kB / 3.661 GB, free: 33.43 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007523/10.05, allocations: 180.1 kB / 3.662 GB, free: 33.43 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00991/10.06, allocations: 3.299 MB / 3.665 GB, free: 32.94 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.327e-05/10.06, allocations: 10.31 kB / 3.665 GB, free: 32.94 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003967/10.06, allocations: 75.41 kB / 3.665 GB, free: 32.94 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002356/10.06, allocations: 146.9 kB / 3.665 GB, free: 32.94 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009939/10.07, allocations: 3.011 MB / 3.668 GB, free: 32.93 MB / 474.7 MB Warning: The model contains alias variables with conflicting start and/or 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.02188/10.09, allocations: 13.64 MB / 3.681 GB, free: 24.69 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005793/10.1, allocations: 1.944 MB / 3.683 GB, free: 24.65 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002134/10.1, allocations: 1.023 MB / 3.684 GB, free: 24.64 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0422/10.14, allocations: 18.85 MB / 3.703 GB, free: 12.81 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005536/10.15, allocations: 1.582 MB / 3.704 GB, free: 12.69 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00155/10.15, allocations: 174.3 kB / 3.704 GB, free: 12.61 MB / 474.7 MB Notification: Performance of pre-optimization done (n=151): time 6.775e-06/10.15, allocations: 0 / 3.704 GB, free: 12.61 MB / 474.7 MB Notification: Performance of matching and sorting (n=163): time 0.02534/10.18, allocations: 6.864 MB / 3.711 GB, free: 11.68 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.348e-05/10.18, allocations: 253.3 kB / 3.711 GB, free: 11.39 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002458/10.18, allocations: 1.255 MB / 3.713 GB, free: 11.21 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004551/10.18, allocations: 59.3 kB / 3.713 GB, free: 11.18 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007092/10.18, allocations: 0.831 MB / 3.713 GB, free: 10.77 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007671/10.18, allocations: 0.5396 MB / 3.714 GB, free: 10.42 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001864/10.18, allocations: 37.22 kB / 3.714 GB, free: 10.42 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006197/10.18, allocations: 389.3 kB / 3.714 GB, free: 26.1 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002/10.18, allocations: 0.9155 MB / 3.715 GB, free: 26.1 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002332/10.19, allocations: 1.328 MB / 3.717 GB, free: 25.66 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002612/10.19, allocations: 1.154 MB / 3.718 GB, free: 25.57 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.079e-05/10.19, allocations: 2.906 kB / 3.718 GB, free: 25.57 MB / 490.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.007503/10.2, allocations: 2.799 MB / 3.72 GB, free: 25.36 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002151/10.2, allocations: 4.254 MB / 3.725 GB, free: 20.94 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.22e-05/10.2, allocations: 7.75 kB / 3.725 GB, free: 20.94 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003192/10.2, allocations: 0.5206 MB / 3.725 GB, free: 20.91 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002858/10.2, allocations: 454.5 kB / 3.725 GB, free: 20.91 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002749/10.21, allocations: 2.696 MB / 3.728 GB, free: 18.84 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003195/10.21, allocations: 259.4 kB / 3.728 GB, free: 18.82 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005311/10.21, allocations: 95.48 kB / 3.728 GB, free: 18.82 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.435e-05/10.21, allocations: 3.906 kB / 3.728 GB, free: 18.82 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006024/10.22, allocations: 2.534 MB / 3.731 GB, free: 18.69 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.095e-05/10.22, allocations: 11.22 kB / 3.731 GB, free: 18.69 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007906/10.22, allocations: 197 kB / 3.731 GB, free: 18.66 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002833/10.22, allocations: 471.8 kB / 3.732 GB, free: 18.66 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001661/10.22, allocations: 1.87 MB / 3.733 GB, free: 17.11 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002473/10.23, allocations: 254.5 kB / 3.734 GB, free: 17.09 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004345/10.23, allocations: 95.7 kB / 3.734 GB, free: 17.09 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 27 (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_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 209 * 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.0007484/10.23, allocations: 299.2 kB / 3.734 GB, free: 16.91 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005221/10.23, allocations: 189.8 kB / 3.734 GB, free: 16.81 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01247/10.24, allocations: 7.359 MB / 3.741 GB, free: 16.05 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.069e-05/10.24, allocations: 83.06 kB / 3.741 GB, free: 16.05 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.241e-05/10.24, allocations: 3.953 kB / 3.741 GB, free: 16.05 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009843/10.25, allocations: 6.426 MB / 3.748 GB, free: 15.11 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01957/10.27, allocations: 11.05 MB / 3.759 GB, free: 13.96 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.949e-05/10.27, allocations: 3.094 kB / 3.759 GB, free: 13.96 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001931/10.27, allocations: 361.3 kB / 3.759 GB, free: 13.96 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003607/10.27, allocations: 1.273 MB / 3.76 GB, free: 13.9 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004234/10.28, allocations: 69.97 kB / 3.76 GB, free: 13.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003252/10.28, allocations: 3.176 MB / 3.763 GB, free: 11.81 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.043e-05/10.28, allocations: 8.75 kB / 3.763 GB, free: 11.81 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0114/10.29, allocations: 7.166 MB / 3.77 GB, free: 9.469 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001825/10.29, allocations: 0.7008 MB / 3.771 GB, free: 9.031 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006271/10.29, allocations: 56.14 kB / 3.771 GB, free: 9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002277/10.29, allocations: 188.6 kB / 3.771 GB, free: 8.961 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004861/10.3, allocations: 149.5 kB / 3.771 GB, free: 8.938 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002381/10.3, allocations: 77.58 kB / 3.771 GB, free: 8.922 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002164/10.3, allocations: 1.059 MB / 3.772 GB, free: 8.488 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.52e-07/10.3, allocations: 0 / 3.772 GB, free: 8.488 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01016/10.31, allocations: 2.536 MB / 3.775 GB, free: 7.977 MB / 490.7 MB 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: 53 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.phase,$cse44.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 (177): * Single equations (assignments): 151 * 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.01186/10.32, allocations: 2.686 MB / 3.778 GB, free: 7.379 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009242/10.33, allocations: 4.408 MB / 3.782 GB, free: 5.699 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.092e-05/10.33, allocations: 0 / 3.782 GB, free: 5.699 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004461/10.33, allocations: 2.363 MB / 3.784 GB, free: 4.668 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005184/10.34, allocations: 0.844 MB / 3.785 GB, free: 4.48 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6222/10.96, allocations: 126.3 MB / 3.908 GB, free: 54 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002086/10.96, allocations: 2.122 MB / 3.91 GB, free: 53.23 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001083/10.96, allocations: 187.6 kB / 3.911 GB, free: 53.22 MB / 0.4948 GB Notification: Performance of SimCode: time 2.065e-06/10.96, allocations: 4 kB / 3.911 GB, free: 53.22 MB / 0.4948 GB Notification: Performance of Templates: time 0.4673/11.43, allocations: 108.6 MB / 4.017 GB, free: 58.58 MB / 0.4948 GB