Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,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|splitter.medium.h|splitter.medium.p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4") Notification: Performance of loadModel(ModelicaTest): time 2.177/2.177, allocations: 235 MB / 247.2 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.4e-05/3.418e-05, allocations: 4 kB / 304.9 MB, free: 5.172 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3255/0.3255, allocations: 54.85 MB / 359.8 MB, free: 3.129 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.797/6.122, allocations: 2.66 GB / 3.011 GB, free: 13.29 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002193/6.123, allocations: 79.95 kB / 3.012 GB, free: 13.21 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.054/10.18, allocations: 0.8987 GB / 3.91 GB, free: 34.4 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.613e-06/10.18, allocations: 0 / 3.91 GB, free: 34.4 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002266/10.18, allocations: 69.19 kB / 3.91 GB, free: 34.39 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01415/10.19, allocations: 4.017 MB / 3.914 GB, free: 32.47 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/10.19, allocations: 14.97 kB / 3.914 GB, free: 32.46 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008002/10.2, allocations: 0.872 MB / 3.915 GB, free: 32.33 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006726/10.21, allocations: 2.081 MB / 3.917 GB, free: 31.84 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002332/10.21, allocations: 180.3 kB / 3.917 GB, free: 31.83 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006218/10.21, allocations: 199.2 kB / 3.917 GB, free: 31.83 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01052/10.22, allocations: 3.63 MB / 3.921 GB, free: 31.3 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.814e-05/10.22, allocations: 10.59 kB / 3.921 GB, free: 31.29 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003859/10.22, allocations: 93.58 kB / 3.921 GB, free: 31.29 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002414/10.22, allocations: 166.6 kB / 3.921 GB, free: 31.29 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01021/10.23, allocations: 3.256 MB / 3.924 GB, free: 31.25 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.02242/10.25, allocations: 15.42 MB / 3.939 GB, free: 21.83 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006384/10.26, allocations: 2.16 MB / 3.942 GB, free: 21.54 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001925/10.26, allocations: 1.028 MB / 3.943 GB, free: 21.14 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0423/10.3, allocations: 18.94 MB / 3.961 GB, free: 24.61 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005337/10.31, allocations: 1.681 MB / 3.963 GB, free: 24.05 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=163): time 6.818e-06/10.31, allocations: 0 / 3.963 GB, free: 24.05 MB / 0.5261 GB Notification: Performance of matching and sorting (n=179): time 0.02526/10.33, allocations: 7.497 MB / 3.97 GB, free: 21.27 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001877/10.33, allocations: 261.4 kB / 3.97 GB, free: 20.98 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002565/10.33, allocations: 1.433 MB / 3.972 GB, free: 20.43 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003419/10.34, allocations: 57.23 kB / 3.972 GB, free: 20.38 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008154/10.34, allocations: 0.995 MB / 3.973 GB, free: 19.61 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006017/10.34, allocations: 0.6099 MB / 3.973 GB, free: 19.14 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002/10.34, allocations: 39.03 kB / 3.973 GB, free: 19.11 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002405/10.34, allocations: 386.3 kB / 3.974 GB, free: 18.77 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00214/10.34, allocations: 1.018 MB / 3.975 GB, free: 18.4 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002375/10.34, allocations: 1.459 MB / 3.976 GB, free: 17.48 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002403/10.34, allocations: 1.271 MB / 3.977 GB, free: 16.96 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.154e-05/10.34, allocations: 4 kB / 3.977 GB, free: 16.96 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.006434/10.35, allocations: 3.013 MB / 3.98 GB, free: 14.26 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002781/10.35, allocations: 5.008 MB / 3.985 GB, free: 8.816 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.531e-05/10.35, allocations: 12 kB / 3.985 GB, free: 8.805 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001181/10.35, allocations: 234.6 kB / 3.985 GB, free: 8.605 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003143/10.36, allocations: 0.5191 MB / 3.986 GB, free: 8.164 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002288/10.36, allocations: 2.426 MB / 3.988 GB, free: 5.719 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003144/10.36, allocations: 268.7 kB / 3.989 GB, free: 5.512 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003409/10.36, allocations: 106.8 kB / 3.989 GB, free: 5.418 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/10.36, allocations: 4 kB / 3.989 GB, free: 5.414 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00668/10.37, allocations: 2.749 MB / 3.991 GB, free: 2.973 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.875e-05/10.37, allocations: 12 kB / 3.991 GB, free: 2.961 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001062/10.37, allocations: 232.1 kB / 3.992 GB, free: 2.766 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00282/10.37, allocations: 0.5142 MB / 3.992 GB, free: 2.328 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3509/10.73, allocations: 2.429 MB / 3.994 GB, free: 48.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003397/10.73, allocations: 260.8 kB / 3.995 GB, free: 48.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003923/10.73, allocations: 109.4 kB / 3.995 GB, free: 48.4 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 30 (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,splitter.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (247): * Single equations (assignments): 241 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0007383/10.73, allocations: 302.1 kB / 3.995 GB, free: 48.23 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005432/10.73, allocations: 209.4 kB / 3.995 GB, free: 48.23 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01425/10.74, allocations: 7.521 MB / 4.003 GB, free: 47.68 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.242e-05/10.74, allocations: 83.27 kB / 4.003 GB, free: 47.68 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.163e-05/10.74, allocations: 0 / 4.003 GB, free: 47.68 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01138/10.76, allocations: 6.554 MB / 4.009 GB, free: 46.76 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01854/10.77, allocations: 10.73 MB / 4.02 GB, free: 46.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.596e-05/10.77, allocations: 3.031 kB / 4.02 GB, free: 46.13 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002362/10.78, allocations: 409.3 kB / 4.02 GB, free: 46.13 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001785/10.78, allocations: 333 kB / 4.02 GB, free: 46.1 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003132/10.78, allocations: 70.22 kB / 4.02 GB, free: 46.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00149/10.78, allocations: 2.515 MB / 4.023 GB, free: 44.03 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/10.78, allocations: 4.969 kB / 4.023 GB, free: 44.03 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01116/10.79, allocations: 6.794 MB / 4.029 GB, free: 43.43 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0019/10.79, allocations: 0.7579 MB / 4.03 GB, free: 43.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004944/10.79, allocations: 46.94 kB / 4.03 GB, free: 43.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002132/10.8, allocations: 215.3 kB / 4.03 GB, free: 43.15 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003493/10.8, allocations: 143.8 kB / 4.031 GB, free: 43.15 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002289/10.8, allocations: 71.95 kB / 4.031 GB, free: 43.15 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002108/10.8, allocations: 1.206 MB / 4.032 GB, free: 42.99 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.18e-07/10.8, allocations: 0 / 4.032 GB, free: 42.99 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01017/10.81, allocations: 2.841 MB / 4.035 GB, free: 42.99 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse31.phase,$cse31.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.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,splitter.medium.phase) * 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 (200): * Single equations (assignments): 171 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01203/10.82, allocations: 2.981 MB / 4.038 GB, free: 42.75 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01021/10.83, allocations: 4.996 MB / 4.042 GB, free: 42.41 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.038e-06/10.83, allocations: 5.094 kB / 4.042 GB, free: 42.41 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004508/10.84, allocations: 2.37 MB / 4.045 GB, free: 42.28 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006205/10.84, allocations: 0.9707 MB / 4.046 GB, free: 42.25 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3756/11.22, allocations: 127.7 MB / 4.17 GB, free: 9.66 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003627/11.22, allocations: 2.284 MB / 4.173 GB, free: 7.875 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01111/11.23, allocations: 2.622 MB / 4.175 GB, free: 6.309 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008996/11.23, allocations: 174.9 kB / 4.175 GB, free: 6.152 MB / 0.5261 GB Notification: Performance of SimCode: time 2.301e-06/11.23, allocations: 0 / 4.175 GB, free: 6.152 MB / 0.5261 GB Notification: Performance of Templates: time 0.6393/11.87, allocations: 90.61 MB / 4.264 GB, free: 58.48 MB / 0.5417 GB