Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|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.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14") Notification: Performance of loadModel(ModelicaTest): time 2.277/2.277, allocations: 249.5 MB / 261.6 MB, free: 2.168 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 2.974e-05/2.994e-05, allocations: 4 kB / 323.4 MB, free: 4.32 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3218/0.3219, allocations: 58.83 MB / 382.2 MB, free: 10.33 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.482/6.804, allocations: 2.846 GB / 3.22 GB, free: 162.8 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002242/6.804, allocations: 73.09 kB / 3.22 GB, free: 162.8 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.819/10.62, allocations: 0.9077 GB / 4.127 GB, free: 42.26 MB / 0.5418 GB Notification: Performance of FrontEnd: time 2.119e-06/10.62, allocations: 5.625 kB / 4.127 GB, free: 42.25 MB / 0.5418 GB Notification: Performance of Transformations before backend: time 0.0002106/10.62, allocations: 62.94 kB / 4.127 GB, free: 42.25 MB / 0.5418 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.01376/10.64, allocations: 3.966 MB / 4.131 GB, free: 40.41 MB / 0.5418 GB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/10.64, allocations: 13.91 kB / 4.131 GB, free: 40.41 MB / 0.5418 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009419/10.65, allocations: 0.875 MB / 4.132 GB, free: 40.27 MB / 0.5418 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006801/10.65, allocations: 2.095 MB / 4.134 GB, free: 39.81 MB / 0.5418 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002712/10.65, allocations: 188.2 kB / 4.134 GB, free: 39.81 MB / 0.5418 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007181/10.65, allocations: 209 kB / 4.135 GB, free: 39.8 MB / 0.5418 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01009/10.66, allocations: 3.622 MB / 4.138 GB, free: 39.25 MB / 0.5418 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.8e-05/10.66, allocations: 8.469 kB / 4.138 GB, free: 39.25 MB / 0.5418 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003681/10.67, allocations: 93.73 kB / 4.138 GB, free: 39.25 MB / 0.5418 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000233/10.67, allocations: 166.5 kB / 4.138 GB, free: 39.25 MB / 0.5418 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009525/10.68, allocations: 3.18 MB / 4.141 GB, free: 39.24 MB / 0.5418 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.0229/10.7, allocations: 15.63 MB / 4.157 GB, free: 29.66 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006953/10.71, allocations: 2.71 MB / 4.159 GB, free: 29.05 MB / 0.5418 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00228/10.71, allocations: 1.164 MB / 4.16 GB, free: 29.04 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0556/10.76, allocations: 24.56 MB / 4.184 GB, free: 13.59 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005693/10.77, allocations: 1.731 MB / 4.186 GB, free: 13.01 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=173): time 6.484e-06/10.77, allocations: 0 / 4.186 GB, free: 13.01 MB / 0.5418 GB Notification: Performance of matching and sorting (n=189): time 0.02731/10.8, allocations: 7.868 MB / 4.194 GB, free: 10.11 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.741e-05/10.8, allocations: 262.3 kB / 4.194 GB, free: 9.82 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002475/10.8, allocations: 1.403 MB / 4.195 GB, free: 9.293 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 0.0003108/10.8, allocations: 58.45 kB / 4.196 GB, free: 9.238 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008165/10.8, allocations: 0.9739 MB / 4.196 GB, free: 8.484 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005904/10.8, allocations: 0.6358 MB / 4.197 GB, free: 7.996 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002076/10.8, allocations: 39.66 kB / 4.197 GB, free: 7.965 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.0001363/10.8, allocations: 386.5 kB / 4.197 GB, free: 7.629 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002172/10.8, allocations: 1.033 MB / 4.198 GB, free: 7.09 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002472/10.81, allocations: 1.486 MB / 4.2 GB, free: 5.574 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002479/10.81, allocations: 1.271 MB / 4.201 GB, free: 4.469 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.009e-05/10.81, allocations: 8 kB / 4.201 GB, free: 4.461 MB / 0.5418 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.006667/10.81, allocations: 3.115 MB / 4.204 GB, free: 1.668 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 0.001945/10.82, allocations: 4.487 MB / 4.209 GB, free: 12.81 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.621e-05/10.82, allocations: 8 kB / 4.209 GB, free: 12.8 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001159/10.82, allocations: 235.5 kB / 4.209 GB, free: 12.61 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003266/10.82, allocations: 0.5266 MB / 4.209 GB, free: 12.16 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002291/10.82, allocations: 2.432 MB / 4.212 GB, free: 9.711 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003508/10.83, allocations: 300.6 kB / 4.212 GB, free: 9.48 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003592/10.83, allocations: 108.3 kB / 4.212 GB, free: 9.387 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/10.83, allocations: 4.781 kB / 4.212 GB, free: 9.383 MB / 0.5574 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006922/10.83, allocations: 2.848 MB / 4.215 GB, free: 6.852 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.26e-05/10.83, allocations: 15.94 kB / 4.215 GB, free: 6.836 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001052/10.84, allocations: 224.6 kB / 4.215 GB, free: 6.645 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003016/10.84, allocations: 0.5201 MB / 4.216 GB, free: 6.203 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002248/10.84, allocations: 2.435 MB / 4.218 GB, free: 3.75 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003304/10.84, allocations: 309.5 kB / 4.218 GB, free: 3.512 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003421/10.84, allocations: 98.66 kB / 4.218 GB, free: 3.422 MB / 0.5574 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 30 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (250): * Single equations (assignments): 244 * 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.0008634/10.85, allocations: 313.6 kB / 4.219 GB, free: 3.102 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000534/10.85, allocations: 213.5 kB / 4.219 GB, free: 2.891 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3706/11.22, allocations: 7.574 MB / 4.226 GB, free: 55.82 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.847e-05/11.22, allocations: 83.41 kB / 4.226 GB, free: 55.82 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.436e-05/11.22, allocations: 3.75 kB / 4.226 GB, free: 55.82 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01008/11.23, allocations: 6.571 MB / 4.233 GB, free: 54.9 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02118/11.25, allocations: 12.23 MB / 4.245 GB, free: 53.46 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.839e-05/11.25, allocations: 5.219 kB / 4.245 GB, free: 53.46 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002515/11.25, allocations: 444 kB / 4.245 GB, free: 53.46 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001785/11.25, allocations: 343 kB / 4.246 GB, free: 53.43 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002528/11.25, allocations: 72.91 kB / 4.246 GB, free: 53.43 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001477/11.25, allocations: 2.528 MB / 4.248 GB, free: 51.36 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.751e-06/11.25, allocations: 7.672 kB / 4.248 GB, free: 51.36 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01165/11.27, allocations: 7.569 MB / 4.255 GB, free: 50.13 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001934/11.27, allocations: 0.7798 MB / 4.256 GB, free: 49.94 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005354/11.27, allocations: 59.97 kB / 4.256 GB, free: 49.94 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002356/11.27, allocations: 224 kB / 4.256 GB, free: 49.93 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003934/11.27, allocations: 180.1 kB / 4.257 GB, free: 49.92 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002521/11.27, allocations: 86.8 kB / 4.257 GB, free: 49.92 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.00228/11.27, allocations: 1.255 MB / 4.258 GB, free: 49.76 MB / 0.5574 GB Notification: Performance of sort global known variables: time 8.86e-07/11.27, allocations: 6.047 kB / 4.258 GB, free: 49.76 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.01001/11.28, allocations: 2.774 MB / 4.261 GB, free: 49.76 MB / 0.5574 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.region3boundary,$cse44.region3boundary,$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,junctionIdeal.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 (214): * Single equations (assignments): 185 * 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.01059/11.29, allocations: 2.89 MB / 4.263 GB, free: 49.58 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.01051/11.3, allocations: 5.102 MB / 4.268 GB, free: 49.24 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 9.706e-06/11.31, allocations: 5.609 kB / 4.268 GB, free: 49.24 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.004803/11.31, allocations: 2.648 MB / 4.271 GB, free: 49.11 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006533/11.32, allocations: 1.066 MB / 4.272 GB, free: 49.07 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01136/11.33, allocations: 6.182 MB / 4.278 GB, free: 47.78 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00213/11.33, allocations: 2.296 MB / 4.28 GB, free: 47.01 MB / 0.5574 GB Notification: Performance of simCode: alias equations: time 0.006655/11.34, allocations: 2.598 MB / 4.283 GB, free: 46.96 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008293/11.34, allocations: 191.9 kB / 4.283 GB, free: 46.95 MB / 0.5574 GB Notification: Performance of SimCode: time 1.716e-06/11.34, allocations: 0 / 4.283 GB, free: 46.95 MB / 0.5574 GB Notification: Performance of Templates: time 0.1705/11.51, allocations: 92.7 MB / 4.374 GB, free: 37.7 MB / 0.5574 GB