Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,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|valve1.filter.x.1.|valve1.filter.x.2.|valve2.filter.x.1.|valve2.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.BranchingPipes1") Notification: Performance of loadModel(ModelicaTest): time 1.819/1.819, allocations: 209.3 MB / 221.9 MB, free: 7.723 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.038e-05/3.091e-05, allocations: 4 kB / 273.1 MB, free: 3.656 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08668/0.08673, allocations: 48.69 MB / 321.8 MB, free: 2.871 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.368/6.455, allocations: 2.545 GB / 2.859 GB, free: 103 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002269/6.455, allocations: 77.14 kB / 2.86 GB, free: 102.9 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.296/9.752, allocations: 0.7754 GB / 3.635 GB, free: 3.656 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.383e-06/9.752, allocations: 0 / 3.635 GB, free: 3.656 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002389/9.752, allocations: 67.84 kB / 3.635 GB, free: 3.594 MB / 458.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.01463/9.767, allocations: 3.834 MB / 3.639 GB, free: 15.71 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/9.767, allocations: 11.97 kB / 3.639 GB, free: 15.7 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008171/9.775, allocations: 0.8088 MB / 3.64 GB, free: 14.89 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007508/9.783, allocations: 2.071 MB / 3.642 GB, free: 12.8 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003261/9.783, allocations: 179.4 kB / 3.642 GB, free: 12.63 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008907/9.784, allocations: 195.8 kB / 3.642 GB, free: 12.45 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01163/9.795, allocations: 3.663 MB / 3.646 GB, free: 8.605 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-05/9.796, allocations: 11.92 kB / 3.646 GB, free: 8.594 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004568/9.796, allocations: 87.81 kB / 3.646 GB, free: 8.516 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000307/9.796, allocations: 167.6 kB / 3.646 GB, free: 8.352 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01116/9.808, allocations: 3.376 MB / 3.649 GB, free: 4.973 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.3376/10.15, allocations: 14.74 MB / 3.663 GB, free: 24.31 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006293/10.15, allocations: 2.107 MB / 3.666 GB, free: 24.28 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002302/10.15, allocations: 1.045 MB / 3.667 GB, free: 24.27 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0421/10.2, allocations: 18.91 MB / 3.685 GB, free: 28.46 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005277/10.2, allocations: 1.658 MB / 3.687 GB, free: 28.34 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001457/10.2, allocations: 192.7 kB / 3.687 GB, free: 28.29 MB / 490.7 MB Notification: Performance of pre-optimization done (n=158): time 5.923e-06/10.2, allocations: 0 / 3.687 GB, free: 28.29 MB / 490.7 MB Notification: Performance of matching and sorting (n=170): time 0.02465/10.23, allocations: 7.344 MB / 3.694 GB, free: 27.36 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002988/10.23, allocations: 419.1 kB / 3.694 GB, free: 26.89 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002836/10.23, allocations: 1.483 MB / 3.696 GB, free: 26.71 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000473/10.23, allocations: 59.05 kB / 3.696 GB, free: 26.68 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000836/10.23, allocations: 0.9233 MB / 3.697 GB, free: 26.32 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006961/10.23, allocations: 0.5736 MB / 3.697 GB, free: 26.03 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002175/10.23, allocations: 40.5 kB / 3.697 GB, free: 26.03 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002486/10.23, allocations: 398.5 kB / 3.698 GB, free: 25.71 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002112/10.24, allocations: 1.051 MB / 3.699 GB, free: 25.7 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002528/10.24, allocations: 1.509 MB / 3.7 GB, free: 25.2 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002677/10.24, allocations: 1.316 MB / 3.702 GB, free: 25.11 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-05/10.24, allocations: 5.688 kB / 3.702 GB, free: 25.11 MB / 490.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.007305/10.25, allocations: 3.17 MB / 3.705 GB, free: 24.9 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00219/10.25, allocations: 4.425 MB / 3.709 GB, free: 20.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.407e-05/10.25, allocations: 15.72 kB / 3.709 GB, free: 20.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006168/10.26, allocations: 0.9577 MB / 3.71 GB, free: 20.27 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002839/10.26, allocations: 471.1 kB / 3.71 GB, free: 20.27 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003792/10.26, allocations: 3.163 MB / 3.713 GB, free: 18.18 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003115/10.27, allocations: 233.7 kB / 3.714 GB, free: 18.17 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003661/10.27, allocations: 105.7 kB / 3.714 GB, free: 18.17 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/10.27, allocations: 3.688 kB / 3.714 GB, free: 18.17 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006983/10.27, allocations: 2.967 MB / 3.717 GB, free: 18.03 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.563e-05/10.27, allocations: 20.03 kB / 3.717 GB, free: 18.03 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001685/10.28, allocations: 335.8 kB / 3.717 GB, free: 18 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003127/10.28, allocations: 497 kB / 3.718 GB, free: 18 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004957/10.28, allocations: 4.047 MB / 3.721 GB, free: 15.18 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002386/10.29, allocations: 236.6 kB / 3.722 GB, free: 15.17 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002978/10.29, allocations: 100.9 kB / 3.722 GB, free: 15.17 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,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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.0007539/10.29, allocations: 296.6 kB / 3.722 GB, free: 15 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005877/10.29, allocations: 208.3 kB / 3.722 GB, free: 14.89 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01246/10.3, allocations: 7.771 MB / 3.73 GB, free: 14.2 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.565e-05/10.3, allocations: 76.39 kB / 3.73 GB, free: 14.2 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/10.3, allocations: 0 / 3.73 GB, free: 14.2 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01027/10.31, allocations: 6.792 MB / 3.737 GB, free: 13.27 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01809/10.33, allocations: 10.77 MB / 3.747 GB, free: 12.52 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.475e-05/10.33, allocations: 3.25 kB / 3.747 GB, free: 12.52 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002089/10.33, allocations: 341.9 kB / 3.747 GB, free: 12.52 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007051/10.34, allocations: 2.497 MB / 3.75 GB, free: 12.42 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004621/10.34, allocations: 69.73 kB / 3.75 GB, free: 12.42 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004519/10.34, allocations: 4.104 MB / 3.754 GB, free: 10.31 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.461e-06/10.34, allocations: 3.828 kB / 3.754 GB, free: 10.31 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01274/10.36, allocations: 7.652 MB / 3.761 GB, free: 9.637 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001966/10.36, allocations: 0.7517 MB / 3.762 GB, free: 9.309 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005158/10.36, allocations: 53.3 kB / 3.762 GB, free: 9.309 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002501/10.36, allocations: 195.3 kB / 3.762 GB, free: 9.297 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005313/10.36, allocations: 137.8 kB / 3.763 GB, free: 9.297 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002565/10.36, allocations: 68.98 kB / 3.763 GB, free: 9.297 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002686/10.36, allocations: 1.233 MB / 3.764 GB, free: 9.137 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.442e-06/10.36, allocations: 0 / 3.764 GB, free: 9.137 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.011/10.38, allocations: 2.803 MB / 3.767 GB, free: 9.012 MB / 490.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,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.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.0123/10.39, allocations: 2.854 MB / 3.769 GB, free: 8.695 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01081/10.4, allocations: 5.108 MB / 3.774 GB, free: 8.145 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.634e-06/10.4, allocations: 2.875 kB / 3.774 GB, free: 8.145 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004364/10.4, allocations: 2.29 MB / 3.777 GB, free: 7.992 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005605/10.41, allocations: 0.8725 MB / 3.777 GB, free: 7.969 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6375/11.05, allocations: 125.4 MB / 3.9 GB, free: 57.92 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002075/11.05, allocations: 2.244 MB / 3.902 GB, free: 57.14 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001038/11.05, allocations: 189.8 kB / 3.902 GB, free: 57.14 MB / 0.4948 GB Notification: Performance of SimCode: time 2.32e-06/11.05, allocations: 1.594 kB / 3.902 GB, free: 57.14 MB / 0.4948 GB Notification: Performance of Templates: time 0.1934/11.24, allocations: 116 MB / 4.016 GB, free: 184 kB / 0.4948 GB