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_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12") Notification: Performance of loadModel(ModelicaTest): time 2.297/2.297, allocations: 270 MB / 283.6 MB, free: 1.891 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.399e-05/3.397e-05, allocations: 8 kB / 348.4 MB, free: 2.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.325/0.3251, allocations: 61.87 MB / 410.3 MB, free: 10.74 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.034/7.359, allocations: 2.83 GB / 3.231 GB, free: 89.76 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002154/7.36, allocations: 80.11 kB / 3.231 GB, free: 89.72 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.754/11.11, allocations: 0.8151 GB / 4.046 GB, free: 44.73 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.255e-06/11.11, allocations: 1.031 kB / 4.046 GB, free: 44.73 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002806/11.11, allocations: 68.47 kB / 4.046 GB, free: 44.72 MB / 0.5573 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.01583/11.13, allocations: 3.957 MB / 4.05 GB, free: 42.77 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/11.13, allocations: 10.69 kB / 4.05 GB, free: 42.77 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008053/11.14, allocations: 0.8348 MB / 4.051 GB, free: 42.63 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006882/11.14, allocations: 2.163 MB / 4.053 GB, free: 42.17 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002741/11.15, allocations: 176.9 kB / 4.053 GB, free: 42.16 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008283/11.15, allocations: 202.7 kB / 4.053 GB, free: 42.16 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01105/11.16, allocations: 3.697 MB / 4.057 GB, free: 41.61 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.472e-05/11.16, allocations: 5.125 kB / 4.057 GB, free: 41.61 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004134/11.16, allocations: 95.42 kB / 4.057 GB, free: 41.61 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002349/11.16, allocations: 164.3 kB / 4.057 GB, free: 41.61 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01072/11.17, allocations: 3.404 MB / 4.06 GB, free: 41.6 MB / 0.5573 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.025/11.19, allocations: 14.93 MB / 4.075 GB, free: 32.99 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006175/11.2, allocations: 2.147 MB / 4.077 GB, free: 32.95 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002216/11.2, allocations: 1.089 MB / 4.078 GB, free: 32.94 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05586/11.26, allocations: 24.62 MB / 4.102 GB, free: 17.61 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005757/11.26, allocations: 1.701 MB / 4.104 GB, free: 17.48 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001606/11.27, allocations: 203.3 kB / 4.104 GB, free: 17.38 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=162): time 6.353e-06/11.27, allocations: 0 / 4.104 GB, free: 17.38 MB / 0.5573 GB Notification: Performance of matching and sorting (n=174): time 0.0257/11.29, allocations: 7.497 MB / 4.111 GB, free: 16.36 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/11.29, allocations: 415 kB / 4.112 GB, free: 15.89 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003002/11.29, allocations: 1.549 MB / 4.113 GB, free: 15.65 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004747/11.29, allocations: 60.3 kB / 4.113 GB, free: 15.62 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009599/11.3, allocations: 0.9812 MB / 4.114 GB, free: 15.26 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.000815/11.3, allocations: 0.5843 MB / 4.115 GB, free: 14.88 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000222/11.3, allocations: 43.09 kB / 4.115 GB, free: 14.88 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001474/11.3, allocations: 387.9 kB / 4.115 GB, free: 14.57 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002226/11.3, allocations: 1.07 MB / 4.116 GB, free: 14.57 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002518/11.3, allocations: 1.503 MB / 4.118 GB, free: 14.1 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002788/11.3, allocations: 1.318 MB / 4.119 GB, free: 14 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.589e-05/11.3, allocations: 4.094 kB / 4.119 GB, free: 14 MB / 0.5573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.008318/11.31, allocations: 3.349 MB / 4.122 GB, free: 13.71 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.00236/11.32, allocations: 4.063 MB / 4.126 GB, free: 25.44 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.648e-05/11.32, allocations: 13.59 kB / 4.126 GB, free: 25.44 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006929/11.32, allocations: 0.9554 MB / 4.127 GB, free: 25.38 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002887/11.33, allocations: 467.8 kB / 4.128 GB, free: 25.38 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00388/11.33, allocations: 3.161 MB / 4.131 GB, free: 23.16 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003307/11.33, allocations: 234.1 kB / 4.131 GB, free: 23.1 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006026/11.33, allocations: 106.8 kB / 4.131 GB, free: 23.08 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/11.33, allocations: 7.438 kB / 4.131 GB, free: 23.08 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00728/11.34, allocations: 3.017 MB / 4.134 GB, free: 22.02 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.224e-05/11.34, allocations: 14.64 kB / 4.134 GB, free: 22.02 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00154/11.34, allocations: 352.3 kB / 4.134 GB, free: 21.91 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002858/11.35, allocations: 489.8 kB / 4.135 GB, free: 21.87 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005023/11.35, allocations: 4.063 MB / 4.139 GB, free: 18.52 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003063/11.35, allocations: 225.8 kB / 4.139 GB, free: 18.47 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005512/11.35, allocations: 97.23 kB / 4.139 GB, free: 18.45 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 29 (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,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 (219): * Single equations (assignments): 209 * 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.0008137/11.35, allocations: 299 kB / 4.139 GB, free: 18.18 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006009/11.36, allocations: 216.7 kB / 4.14 GB, free: 18.07 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01267/11.37, allocations: 7.859 MB / 4.147 GB, free: 12.32 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.997e-05/11.37, allocations: 88.25 kB / 4.147 GB, free: 12.27 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.914e-06/11.37, allocations: 0 / 4.147 GB, free: 12.27 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01072/11.38, allocations: 6.869 MB / 4.154 GB, free: 5.863 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02149/11.4, allocations: 10.96 MB / 4.165 GB, free: 12.38 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.595e-05/11.4, allocations: 0 / 4.165 GB, free: 12.38 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002176/11.4, allocations: 356.7 kB / 4.165 GB, free: 12.09 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006966/11.41, allocations: 2.53 MB / 4.168 GB, free: 10.01 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004858/11.41, allocations: 69.84 kB / 4.168 GB, free: 9.953 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00512/11.42, allocations: 4.108 MB / 4.172 GB, free: 6.027 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.42e-06/11.42, allocations: 3.75 kB / 4.172 GB, free: 6.027 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4046/11.82, allocations: 8.204 MB / 4.18 GB, free: 73.36 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002451/11.82, allocations: 0.7772 MB / 4.18 GB, free: 73.27 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008325/11.82, allocations: 55.3 kB / 4.18 GB, free: 73.27 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002759/11.83, allocations: 204.7 kB / 4.181 GB, free: 73.27 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005332/11.83, allocations: 142.2 kB / 4.181 GB, free: 73.27 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003243/11.83, allocations: 75.7 kB / 4.181 GB, free: 73.27 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.003123/11.83, allocations: 1.372 MB / 4.182 GB, free: 73.11 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.832e-06/11.83, allocations: 0 / 4.182 GB, free: 73.11 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01142/11.84, allocations: 2.862 MB / 4.185 GB, free: 73.11 MB / 0.5886 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: 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 (170): * Single equations (assignments): 145 * 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.01246/11.85, allocations: 2.872 MB / 4.188 GB, free: 72.96 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01056/11.86, allocations: 5.288 MB / 4.193 GB, free: 72.4 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 8.001e-06/11.86, allocations: 0 / 4.193 GB, free: 72.4 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.004407/11.87, allocations: 2.353 MB / 4.195 GB, free: 72.26 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006543/11.88, allocations: 0.9585 MB / 4.196 GB, free: 72.23 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01136/11.89, allocations: 5.938 MB / 4.202 GB, free: 71.12 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002121/11.89, allocations: 2.297 MB / 4.204 GB, free: 70.35 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.006744/11.9, allocations: 2.441 MB / 4.207 GB, free: 70.31 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007277/11.9, allocations: 162.1 kB / 4.207 GB, free: 70.3 MB / 0.5886 GB Notification: Performance of SimCode: time 1.752e-06/11.9, allocations: 0 / 4.207 GB, free: 70.3 MB / 0.5886 GB Notification: Performance of Templates: time 0.1821/12.08, allocations: 94.13 MB / 4.299 GB, free: 65.88 MB / 0.5886 GB