Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,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|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3") Notification: Performance of loadModel(ModelicaTest): time 2.166/2.166, allocations: 235 MB / 247.2 MB, free: 14.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.314e-05/3.33e-05, allocations: 4 kB / 304.9 MB, free: 5.387 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3222/0.3222, allocations: 54.86 MB / 359.8 MB, free: 3.035 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.284/6.606, allocations: 2.673 GB / 3.025 GB, free: 103 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002153/6.607, allocations: 75.53 kB / 3.025 GB, free: 102.9 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.638/10.24, allocations: 0.8677 GB / 3.892 GB, free: 5.047 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.238e-06/10.24, allocations: 4 kB / 3.892 GB, free: 5.043 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002287/10.24, allocations: 59.83 kB / 3.892 GB, free: 4.988 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01515/10.26, allocations: 3.75 MB / 3.896 GB, free: 1.199 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/10.26, allocations: 8.031 kB / 3.896 GB, free: 1.191 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007778/10.27, allocations: 0.7853 MB / 3.897 GB, free: 416 kB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3419/10.61, allocations: 1.965 MB / 3.899 GB, free: 30.72 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002616/10.61, allocations: 168.7 kB / 3.899 GB, free: 30.71 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006003/10.61, allocations: 183.2 kB / 3.899 GB, free: 30.71 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009838/10.62, allocations: 3.228 MB / 3.902 GB, free: 30.24 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.996e-05/10.62, allocations: 6.531 kB / 3.902 GB, free: 30.24 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003606/10.62, allocations: 82.08 kB / 3.902 GB, free: 30.24 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002786/10.62, allocations: 152.5 kB / 3.903 GB, free: 30.23 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00912/10.63, allocations: 2.794 MB / 3.905 GB, free: 30.23 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.02588/10.66, allocations: 13.9 MB / 3.919 GB, free: 21.86 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005758/10.66, allocations: 1.949 MB / 3.921 GB, free: 21.83 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002137/10.66, allocations: 1.029 MB / 3.922 GB, free: 21.82 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04506/10.71, allocations: 18.88 MB / 3.94 GB, free: 26 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004848/10.71, allocations: 1.588 MB / 3.942 GB, free: 25.88 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001481/10.72, allocations: 173.2 kB / 3.942 GB, free: 25.84 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=155): time 5.96e-06/10.72, allocations: 0 / 3.942 GB, free: 25.84 MB / 0.5261 GB Notification: Performance of matching and sorting (n=167): time 0.02287/10.74, allocations: 6.873 MB / 3.949 GB, free: 24.93 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001862/10.74, allocations: 263.4 kB / 3.949 GB, free: 24.65 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002372/10.74, allocations: 1.261 MB / 3.95 GB, free: 24.48 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000434/10.74, allocations: 59.14 kB / 3.95 GB, free: 24.45 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008267/10.74, allocations: 0.8955 MB / 3.951 GB, free: 24.16 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.000583/10.74, allocations: 0.5575 MB / 3.952 GB, free: 23.81 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001816/10.74, allocations: 33.59 kB / 3.952 GB, free: 23.81 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002382/10.74, allocations: 384.3 kB / 3.952 GB, free: 23.5 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001914/10.75, allocations: 0.9157 MB / 3.953 GB, free: 23.5 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002208/10.75, allocations: 1.342 MB / 3.954 GB, free: 23.06 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002333/10.75, allocations: 1.166 MB / 3.955 GB, free: 22.98 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.101e-05/10.75, allocations: 2.875 kB / 3.955 GB, free: 22.98 MB / 0.5261 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.007154/10.76, allocations: 2.88 MB / 3.958 GB, free: 22.7 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.00214/10.76, allocations: 4.361 MB / 3.962 GB, free: 18.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.838e-05/10.76, allocations: 8.875 kB / 3.962 GB, free: 18.11 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003247/10.76, allocations: 0.5204 MB / 3.963 GB, free: 18.07 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002679/10.77, allocations: 462.5 kB / 3.963 GB, free: 18.07 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002799/10.77, allocations: 2.701 MB / 3.966 GB, free: 16 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003477/10.77, allocations: 262.2 kB / 3.966 GB, free: 15.98 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003734/10.77, allocations: 94.08 kB / 3.966 GB, free: 15.98 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/10.77, allocations: 7.344 kB / 3.966 GB, free: 15.98 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005781/10.78, allocations: 2.516 MB / 3.969 GB, free: 15.85 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.729e-05/10.78, allocations: 11.25 kB / 3.969 GB, free: 15.85 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008461/10.78, allocations: 195.9 kB / 3.969 GB, free: 15.82 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002655/10.78, allocations: 475.5 kB / 3.969 GB, free: 15.82 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001697/10.78, allocations: 1.873 MB / 3.971 GB, free: 14.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003356/10.79, allocations: 264.4 kB / 3.971 GB, free: 14.25 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003284/10.79, allocations: 95.08 kB / 3.972 GB, free: 14.25 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 209 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.0007557/10.79, allocations: 294.2 kB / 3.972 GB, free: 14.08 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004937/10.79, allocations: 194.5 kB / 3.972 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01158/10.8, allocations: 7.342 MB / 3.979 GB, free: 13.21 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.59e-05/10.8, allocations: 86.95 kB / 3.979 GB, free: 13.21 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.071e-05/10.8, allocations: 0 / 3.979 GB, free: 13.21 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009566/10.81, allocations: 6.418 MB / 3.986 GB, free: 12.27 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01909/10.83, allocations: 11.08 MB / 3.996 GB, free: 11.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.775e-05/10.83, allocations: 3.719 kB / 3.996 GB, free: 11.13 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001961/10.83, allocations: 359.1 kB / 3.997 GB, free: 11.13 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003228/10.83, allocations: 1.296 MB / 3.998 GB, free: 11.06 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003551/10.83, allocations: 62.33 kB / 3.998 GB, free: 11.06 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003449/10.84, allocations: 3.207 MB / 4.001 GB, free: 24.95 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.648e-06/10.84, allocations: 8.938 kB / 4.001 GB, free: 24.95 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01088/10.85, allocations: 7.151 MB / 4.008 GB, free: 23.71 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001821/10.85, allocations: 0.7119 MB / 4.009 GB, free: 23.38 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004509/10.85, allocations: 49.45 kB / 4.009 GB, free: 23.38 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001952/10.85, allocations: 186 kB / 4.009 GB, free: 23.38 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000338/10.85, allocations: 148.7 kB / 4.009 GB, free: 23.37 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002155/10.85, allocations: 77.44 kB / 4.009 GB, free: 23.37 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001971/10.86, allocations: 1.072 MB / 4.01 GB, free: 23.21 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8.88e-07/10.86, allocations: 4.031 kB / 4.01 GB, free: 23.21 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.009697/10.87, allocations: 2.598 MB / 4.013 GB, free: 23.11 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,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,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.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 (177): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01114/10.88, allocations: 2.792 MB / 4.016 GB, free: 22.8 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.008861/10.89, allocations: 4.566 MB / 4.02 GB, free: 22.48 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.863e-06/10.89, allocations: 0 / 4.02 GB, free: 22.48 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004441/10.89, allocations: 2.43 MB / 4.022 GB, free: 22.34 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005771/10.9, allocations: 0.907 MB / 4.023 GB, free: 22.31 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6313/11.53, allocations: 127.4 MB / 4.148 GB, free: 74.08 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003319/11.53, allocations: 2.191 MB / 4.15 GB, free: 73.32 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01127/11.54, allocations: 2.418 MB / 4.152 GB, free: 73.29 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00128/11.54, allocations: 154.6 kB / 4.152 GB, free: 73.29 MB / 0.5573 GB Notification: Performance of SimCode: time 2.428e-06/11.54, allocations: 3.969 kB / 4.152 GB, free: 73.29 MB / 0.5573 GB Notification: Performance of Templates: time 0.2174/11.76, allocations: 86.42 MB / 4.237 GB, free: 68.31 MB / 0.5573 GB