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.811/1.811, allocations: 209.3 MB / 221.9 MB, free: 1.852 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.767e-05/3.776e-05, allocations: 4 kB / 273.1 MB, free: 0.7227 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08818/0.08824, allocations: 48.7 MB / 321.8 MB, free: 15.91 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.097/6.185, allocations: 2.545 GB / 2.859 GB, free: 32.01 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001907/6.185, allocations: 74.84 kB / 2.859 GB, free: 31.98 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.766/9.951, allocations: 0.782 GB / 3.641 GB, free: 34.34 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.298e-06/9.951, allocations: 2.219 kB / 3.641 GB, free: 34.34 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002562/9.952, allocations: 72.31 kB / 3.642 GB, free: 34.32 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: 514 * Number of variables: 514 Notification: Performance of Generate backend data structure: time 0.01492/9.967, allocations: 3.827 MB / 3.645 GB, free: 32.42 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/9.967, allocations: 10.78 kB / 3.645 GB, free: 32.42 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008305/9.975, allocations: 0.8133 MB / 3.646 GB, free: 32.28 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006925/9.982, allocations: 2.156 MB / 3.648 GB, free: 31.82 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002423/9.982, allocations: 176.7 kB / 3.648 GB, free: 31.81 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007102/9.983, allocations: 197.7 kB / 3.649 GB, free: 31.8 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0109/9.994, allocations: 3.671 MB / 3.652 GB, free: 31.26 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.155e-05/9.994, allocations: 6.469 kB / 3.652 GB, free: 31.26 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003951/9.994, allocations: 88.98 kB / 3.652 GB, free: 31.26 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002491/9.995, allocations: 168.9 kB / 3.652 GB, free: 31.26 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01067/10.01, allocations: 3.377 MB / 3.656 GB, free: 31.25 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.02506/10.03, allocations: 14.73 MB / 3.67 GB, free: 22.66 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006049/10.04, allocations: 2.11 MB / 3.672 GB, free: 22.62 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002085/10.04, allocations: 1.044 MB / 3.673 GB, free: 22.62 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04159/10.08, allocations: 18.93 MB / 3.692 GB, free: 26.78 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004923/10.09, allocations: 1.667 MB / 3.693 GB, free: 26.65 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00145/10.09, allocations: 187.1 kB / 3.693 GB, free: 26.57 MB / 490.7 MB Notification: Performance of pre-optimization done (n=158): time 5.897e-06/10.09, allocations: 0 / 3.693 GB, free: 26.57 MB / 490.7 MB Notification: Performance of matching and sorting (n=170): time 0.02411/10.11, allocations: 7.345 MB / 3.701 GB, free: 25.59 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002768/10.11, allocations: 419.8 kB / 3.701 GB, free: 25.11 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002858/10.11, allocations: 1.476 MB / 3.702 GB, free: 24.93 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004574/10.11, allocations: 65.66 kB / 3.703 GB, free: 24.89 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008127/10.12, allocations: 0.9217 MB / 3.703 GB, free: 24.44 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006587/10.12, allocations: 0.5766 MB / 3.704 GB, free: 24.07 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002057/10.12, allocations: 43.97 kB / 3.704 GB, free: 24.07 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002491/10.12, allocations: 388.9 kB / 3.704 GB, free: 23.76 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002297/10.12, allocations: 1.055 MB / 3.705 GB, free: 23.75 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00272/10.12, allocations: 1.513 MB / 3.707 GB, free: 23.23 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002815/10.12, allocations: 1.307 MB / 3.708 GB, free: 23.13 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.635e-05/10.12, allocations: 3.781 kB / 3.708 GB, free: 23.13 MB / 490.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.007444/10.13, allocations: 3.177 MB / 3.711 GB, free: 22.91 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00219/10.13, allocations: 4.427 MB / 3.716 GB, free: 18.26 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.603e-05/10.13, allocations: 13.56 kB / 3.716 GB, free: 18.26 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006194/10.14, allocations: 0.9518 MB / 3.717 GB, free: 18.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002889/10.14, allocations: 477.3 kB / 3.717 GB, free: 18.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003664/10.15, allocations: 3.166 MB / 3.72 GB, free: 16.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003001/10.15, allocations: 229.5 kB / 3.72 GB, free: 16.07 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003292/10.15, allocations: 104.5 kB / 3.72 GB, free: 16.07 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.24e-05/10.15, allocations: 7.844 kB / 3.72 GB, free: 16.07 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006914/10.16, allocations: 2.966 MB / 3.723 GB, free: 15.91 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.674e-05/10.16, allocations: 10.94 kB / 3.723 GB, free: 15.91 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001666/10.16, allocations: 347.9 kB / 3.724 GB, free: 15.88 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002918/10.16, allocations: 498.7 kB / 3.724 GB, free: 15.87 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004886/10.17, allocations: 4.037 MB / 3.728 GB, free: 13.05 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002418/10.17, allocations: 236.2 kB / 3.728 GB, free: 13.02 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002822/10.17, allocations: 98.73 kB / 3.728 GB, free: 13.02 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 27 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.state_b.phase,pipe1.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 (223): * Single equations (assignments): 213 * 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.0007352/10.17, allocations: 309.4 kB / 3.729 GB, free: 12.84 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000529/10.17, allocations: 206.9 kB / 3.729 GB, free: 12.73 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01231/10.18, allocations: 7.757 MB / 3.736 GB, free: 11.43 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.46e-05/10.18, allocations: 80.05 kB / 3.737 GB, free: 11.41 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.618e-06/10.18, allocations: 0 / 3.737 GB, free: 11.41 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009941/10.19, allocations: 6.788 MB / 3.743 GB, free: 8.109 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01767/10.21, allocations: 10.77 MB / 3.754 GB, free: 2.258 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.325e-05/10.21, allocations: 0 / 3.754 GB, free: 2.258 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002137/10.21, allocations: 355.7 kB / 3.754 GB, free: 1.984 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007406/10.22, allocations: 2.505 MB / 3.756 GB, free: 0 / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007729/10.22, allocations: 85.08 kB / 3.757 GB, free: 0 / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005241/10.23, allocations: 4.12 MB / 3.761 GB, free: 12.08 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.392e-06/10.23, allocations: 0 / 3.761 GB, free: 12.08 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01435/10.24, allocations: 7.658 MB / 3.768 GB, free: 5.039 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002155/10.24, allocations: 0.7473 MB / 3.769 GB, free: 4.367 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005123/10.24, allocations: 55 kB / 3.769 GB, free: 4.316 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002061/10.25, allocations: 189.6 kB / 3.769 GB, free: 4.172 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003592/10.25, allocations: 137.7 kB / 3.769 GB, free: 4.094 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000244/10.25, allocations: 71.31 kB / 3.769 GB, free: 4.031 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002594/10.25, allocations: 1.234 MB / 3.77 GB, free: 2.895 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.97e-07/10.25, allocations: 0 / 3.77 GB, free: 2.895 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0108/10.26, allocations: 2.799 MB / 3.773 GB, free: 160 kB / 0.4948 GB 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,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$cse45.phase,$cse45.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.3163/10.58, allocations: 2.987 MB / 3.776 GB, free: 65.28 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01137/10.59, allocations: 5.108 MB / 3.781 GB, free: 64.73 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.253e-05/10.59, allocations: 1.25 kB / 3.781 GB, free: 64.73 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004567/10.59, allocations: 2.288 MB / 3.783 GB, free: 64.59 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005944/10.6, allocations: 0.8791 MB / 3.784 GB, free: 64.57 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2755/10.87, allocations: 125.4 MB / 3.907 GB, free: 49.4 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002024/10.88, allocations: 2.239 MB / 3.909 GB, free: 47.75 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001031/10.88, allocations: 196.4 kB / 3.909 GB, free: 47.59 MB / 0.4948 GB Notification: Performance of SimCode: time 2.573e-06/10.88, allocations: 0 / 3.909 GB, free: 47.59 MB / 0.4948 GB Notification: Performance of Templates: time 0.4755/11.35, allocations: 116.1 MB / 4.022 GB, free: 56.12 MB / 0.4948 GB