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.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1") Notification: Performance of loadModel(ModelicaTest): time 2.171/2.171, allocations: 235 MB / 247.6 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.889e-05/5.916e-05, allocations: 4 kB / 304.9 MB, free: 5.656 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3217/0.3218, allocations: 54.85 MB / 359.8 MB, free: 2.672 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.789/6.111, allocations: 2.656 GB / 3.007 GB, free: 18.07 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001919/6.111, allocations: 75.95 kB / 3.007 GB, free: 18 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.738/9.849, allocations: 0.7946 GB / 3.802 GB, free: 36.77 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.894e-06/9.849, allocations: 0 / 3.802 GB, free: 36.77 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003075/9.85, allocations: 67.38 kB / 3.802 GB, free: 36.77 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.01608/9.866, allocations: 3.953 MB / 3.806 GB, free: 35.22 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/9.866, allocations: 9.938 kB / 3.806 GB, free: 35.22 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007947/9.874, allocations: 0.8347 MB / 3.807 GB, free: 35.08 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007162/9.881, allocations: 2.088 MB / 3.809 GB, free: 34.63 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003106/9.881, allocations: 174.9 kB / 3.809 GB, free: 34.63 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008178/9.882, allocations: 198.7 kB / 3.809 GB, free: 34.63 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01084/9.893, allocations: 3.671 MB / 3.813 GB, free: 34.09 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.562e-05/9.893, allocations: 14.42 kB / 3.813 GB, free: 34.09 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004217/9.893, allocations: 86.73 kB / 3.813 GB, free: 34.09 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002788/9.894, allocations: 162.1 kB / 3.813 GB, free: 34.08 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01059/9.904, allocations: 3.394 MB / 3.816 GB, free: 34.07 MB / 0.5105 GB 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.02495/9.929, allocations: 14.78 MB / 3.831 GB, free: 25.49 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005603/9.935, allocations: 2.112 MB / 3.833 GB, free: 25.46 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001949/9.937, allocations: 1.056 MB / 3.834 GB, free: 25.45 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03748/9.974, allocations: 18.93 MB / 3.852 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004985/9.98, allocations: 1.676 MB / 3.854 GB, free: 13.5 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001431/9.981, allocations: 190.3 kB / 3.854 GB, free: 13.42 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=162): time 5.748e-06/9.981, allocations: 0 / 3.854 GB, free: 13.42 MB / 0.5105 GB Notification: Performance of matching and sorting (n=174): time 0.02295/10, allocations: 7.333 MB / 3.861 GB, free: 28.43 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002652/10, allocations: 418.6 kB / 3.862 GB, free: 27.96 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002668/10.01, allocations: 1.489 MB / 3.863 GB, free: 27.77 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003274/10.01, allocations: 58.25 kB / 3.863 GB, free: 27.74 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007517/10.01, allocations: 0.923 MB / 3.864 GB, free: 27.29 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005981/10.01, allocations: 0.591 MB / 3.865 GB, free: 26.91 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001959/10.01, allocations: 40.81 kB / 3.865 GB, free: 26.91 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002464/10.01, allocations: 391.5 kB / 3.865 GB, free: 26.6 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002108/10.01, allocations: 1.06 MB / 3.866 GB, free: 26.59 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002372/10.01, allocations: 1.522 MB / 3.867 GB, free: 26.09 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002489/10.02, allocations: 1.326 MB / 3.869 GB, free: 26 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.058e-05/10.02, allocations: 2.438 kB / 3.869 GB, free: 26 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.006726/10.02, allocations: 3.151 MB / 3.872 GB, free: 25.79 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002128/10.03, allocations: 4.432 MB / 3.876 GB, free: 21.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.66e-05/10.03, allocations: 15.77 kB / 3.876 GB, free: 21.18 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006105/10.03, allocations: 0.951 MB / 3.877 GB, free: 21.14 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00261/10.03, allocations: 473.7 kB / 3.878 GB, free: 21.14 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003611/10.04, allocations: 3.163 MB / 3.881 GB, free: 19.06 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003009/10.04, allocations: 241.5 kB / 3.881 GB, free: 19.04 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003621/10.04, allocations: 110 kB / 3.881 GB, free: 19.04 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/10.04, allocations: 7.094 kB / 3.881 GB, free: 19.04 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006561/10.05, allocations: 2.94 MB / 3.884 GB, free: 18.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.101e-05/10.05, allocations: 14.94 kB / 3.884 GB, free: 18.89 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001466/10.05, allocations: 339.2 kB / 3.884 GB, free: 18.86 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002503/10.05, allocations: 0.4886 MB / 3.885 GB, free: 18.86 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00486/10.06, allocations: 4.034 MB / 3.889 GB, free: 16.05 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002548/10.06, allocations: 239.1 kB / 3.889 GB, free: 16.03 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005166/10.06, allocations: 105.2 kB / 3.889 GB, free: 16.03 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 29 (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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,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.0008762/10.06, allocations: 302 kB / 3.889 GB, free: 15.85 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006312/10.06, allocations: 214 kB / 3.889 GB, free: 15.74 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01197/10.07, allocations: 7.745 MB / 3.897 GB, free: 14.96 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.891e-05/10.07, allocations: 84.45 kB / 3.897 GB, free: 14.96 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.496e-06/10.07, allocations: 0 / 3.897 GB, free: 14.96 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01002/10.08, allocations: 6.775 MB / 3.904 GB, free: 14.03 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01709/10.1, allocations: 10.79 MB / 3.914 GB, free: 13.22 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.366e-05/10.1, allocations: 0 / 3.914 GB, free: 13.22 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001939/10.1, allocations: 340.8 kB / 3.915 GB, free: 13.22 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006726/10.11, allocations: 2.501 MB / 3.917 GB, free: 13.13 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004404/10.11, allocations: 70.19 kB / 3.917 GB, free: 13.13 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004458/10.11, allocations: 4.092 MB / 3.921 GB, free: 11.02 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.284e-06/10.11, allocations: 1 kB / 3.921 GB, free: 11.02 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0122/10.13, allocations: 7.675 MB / 3.929 GB, free: 10.32 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002023/10.13, allocations: 0.7496 MB / 3.929 GB, free: 10 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006738/10.13, allocations: 56.28 kB / 3.929 GB, free: 10 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00219/10.13, allocations: 199.1 kB / 3.93 GB, free: 9.98 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003443/10.13, allocations: 140 kB / 3.93 GB, free: 9.98 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002279/10.13, allocations: 74.2 kB / 3.93 GB, free: 9.98 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002309/10.13, allocations: 1.235 MB / 3.931 GB, free: 9.82 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.1e-07/10.13, allocations: 0 / 3.931 GB, free: 9.82 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01146/10.15, allocations: 2.827 MB / 3.934 GB, free: 9.418 MB / 0.5261 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,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: 55 ($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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * 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 (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.01287/10.16, allocations: 2.863 MB / 3.937 GB, free: 8.824 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01048/10.17, allocations: 5.23 MB / 3.942 GB, free: 7.797 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.112e-06/10.17, allocations: 0 / 3.942 GB, free: 7.797 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004236/10.17, allocations: 2.353 MB / 3.944 GB, free: 6.73 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005392/10.18, allocations: 0.8918 MB / 3.945 GB, free: 6.547 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6242/10.8, allocations: 128.6 MB / 4.07 GB, free: 59.05 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002014/10.81, allocations: 2.253 MB / 4.073 GB, free: 58.27 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001042/10.81, allocations: 194.1 kB / 4.073 GB, free: 58.26 MB / 0.5417 GB Notification: Performance of SimCode: time 1.674e-06/10.81, allocations: 0 / 4.073 GB, free: 58.26 MB / 0.5417 GB Notification: Performance of Templates: time 0.1484/10.95, allocations: 116.6 MB / 4.187 GB, free: 10.05 MB / 0.5417 GB