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.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4") Notification: Performance of loadModel(ModelicaTest): time 2.219/2.219, allocations: 249.5 MB / 261.6 MB, free: 2.16 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 3.455e-05/3.465e-05, allocations: 8 kB / 323.4 MB, free: 4.312 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3151/0.3151, allocations: 58.83 MB / 382.2 MB, free: 10.34 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.389/6.704, allocations: 2.829 GB / 3.203 GB, free: 156.4 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002089/6.704, allocations: 79.55 kB / 3.203 GB, free: 156.4 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.856/10.56, allocations: 0.9043 GB / 4.107 GB, free: 39.46 MB / 0.5418 GB Notification: Performance of FrontEnd: time 2.208e-06/10.56, allocations: 0 / 4.107 GB, free: 39.46 MB / 0.5418 GB Notification: Performance of Transformations before backend: time 0.0002158/10.56, allocations: 68.67 kB / 4.107 GB, free: 39.45 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.01358/10.57, allocations: 4.039 MB / 4.111 GB, free: 37.67 MB / 0.5418 GB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/10.57, allocations: 14.19 kB / 4.111 GB, free: 37.66 MB / 0.5418 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007948/10.58, allocations: 0.879 MB / 4.112 GB, free: 37.52 MB / 0.5418 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006223/10.59, allocations: 2.07 MB / 4.114 GB, free: 37.07 MB / 0.5418 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001998/10.59, allocations: 177.4 kB / 4.114 GB, free: 37.07 MB / 0.5418 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004489/10.59, allocations: 201 kB / 4.114 GB, free: 37.07 MB / 0.5418 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009843/10.6, allocations: 3.657 MB / 4.118 GB, free: 36.55 MB / 0.5418 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.639e-05/10.6, allocations: 5.75 kB / 4.118 GB, free: 36.55 MB / 0.5418 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003572/10.6, allocations: 91.45 kB / 4.118 GB, free: 36.55 MB / 0.5418 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002381/10.6, allocations: 168.5 kB / 4.118 GB, free: 36.55 MB / 0.5418 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009731/10.61, allocations: 3.268 MB / 4.121 GB, free: 36.54 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.0228/10.63, allocations: 15.56 MB / 4.137 GB, free: 27.23 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006478/10.64, allocations: 2.195 MB / 4.139 GB, free: 27.18 MB / 0.5418 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001987/10.64, allocations: 1.059 MB / 4.14 GB, free: 27.16 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05672/10.7, allocations: 24.62 MB / 4.164 GB, free: 27.88 MB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005454/10.7, allocations: 1.714 MB / 4.165 GB, free: 27.75 MB / 0.5574 GB Notification: Performance of pre-optimization done (n=163): time 6.607e-06/10.7, allocations: 0 / 4.165 GB, free: 27.75 MB / 0.5574 GB Notification: Performance of matching and sorting (n=179): time 0.02597/10.73, allocations: 7.667 MB / 4.173 GB, free: 26.66 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002015/10.73, allocations: 254.9 kB / 4.173 GB, free: 26.38 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002759/10.73, allocations: 1.5 MB / 4.175 GB, free: 26.19 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 0.0003542/10.73, allocations: 57.95 kB / 4.175 GB, free: 26.16 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008622/10.73, allocations: 0.9819 MB / 4.176 GB, free: 25.77 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006/10.73, allocations: 0.5904 MB / 4.176 GB, free: 25.4 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001915/10.73, allocations: 46.12 kB / 4.176 GB, free: 25.4 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.0002383/10.73, allocations: 386 kB / 4.177 GB, free: 25.09 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002212/10.74, allocations: 1.028 MB / 4.178 GB, free: 25.09 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002416/10.74, allocations: 1.441 MB / 4.179 GB, free: 24.62 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002405/10.74, allocations: 1.269 MB / 4.18 GB, free: 24.52 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.028e-05/10.74, allocations: 4 kB / 4.18 GB, free: 24.51 MB / 0.5574 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.006981/10.75, allocations: 3.093 MB / 4.183 GB, free: 24.22 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 0.002147/10.75, allocations: 4.491 MB / 4.188 GB, free: 19.49 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.424e-05/10.75, allocations: 11.09 kB / 4.188 GB, free: 19.49 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001101/10.75, allocations: 234 kB / 4.188 GB, free: 19.45 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003111/10.76, allocations: 0.509 MB / 4.188 GB, free: 19.45 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002141/10.76, allocations: 2.425 MB / 4.191 GB, free: 17.37 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0034/10.76, allocations: 273.3 kB / 4.191 GB, free: 17.33 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003742/10.76, allocations: 108.9 kB / 4.191 GB, free: 17.33 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 1.238e-05/10.76, allocations: 2.25 kB / 4.191 GB, free: 17.33 MB / 0.5574 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006112/10.77, allocations: 2.822 MB / 4.194 GB, free: 16.53 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.147e-05/10.77, allocations: 10.56 kB / 4.194 GB, free: 16.53 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001124/10.77, allocations: 241.2 kB / 4.194 GB, free: 16.44 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002744/10.77, allocations: 0.5023 MB / 4.195 GB, free: 16.39 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002071/10.77, allocations: 2.429 MB / 4.197 GB, free: 14.15 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002834/10.78, allocations: 276.4 kB / 4.197 GB, free: 14.09 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002872/10.78, allocations: 97.64 kB / 4.197 GB, free: 14.07 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 (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 (243): * Single equations (assignments): 237 * 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.0007123/10.78, allocations: 295.3 kB / 4.198 GB, free: 13.81 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004155/10.78, allocations: 213.9 kB / 4.198 GB, free: 13.7 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01146/10.79, allocations: 7.635 MB / 4.205 GB, free: 10.29 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.609e-05/10.79, allocations: 82.23 kB / 4.205 GB, free: 10.27 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.12e-05/10.79, allocations: 3.656 kB / 4.205 GB, free: 10.27 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009216/10.8, allocations: 6.645 MB / 4.212 GB, free: 4.055 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02366/10.82, allocations: 10.97 MB / 4.223 GB, free: 10.84 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.51e-05/10.82, allocations: 4 kB / 4.223 GB, free: 10.83 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004033/10.83, allocations: 414.1 kB / 4.223 GB, free: 10.5 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002601/10.83, allocations: 343.7 kB / 4.223 GB, free: 10.23 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000363/10.83, allocations: 69.97 kB / 4.223 GB, free: 10.17 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00235/10.83, allocations: 2.512 MB / 4.226 GB, free: 7.645 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/10.83, allocations: 4.031 kB / 4.226 GB, free: 7.641 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01314/10.85, allocations: 6.922 MB / 4.233 GB, free: 1.254 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00218/10.85, allocations: 0.7791 MB / 4.233 GB, free: 0.5625 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005106/10.85, allocations: 54.95 kB / 4.233 GB, free: 0.5117 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002164/10.85, allocations: 206.9 kB / 4.234 GB, free: 364 kB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004063/10.85, allocations: 159.3 kB / 4.234 GB, free: 264 kB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002563/10.85, allocations: 73.42 kB / 4.234 GB, free: 200 kB / 0.573 GB Notification: Performance of sorting global known variables: time 0.3786/11.23, allocations: 1.615 MB / 4.235 GB, free: 69.76 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.078e-06/11.23, allocations: 0.6562 kB / 4.235 GB, free: 69.76 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01093/11.24, allocations: 2.878 MB / 4.238 GB, free: 69.76 MB / 0.573 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 (202): * Single equations (assignments): 173 * 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.01216/11.25, allocations: 2.986 MB / 4.241 GB, free: 69.6 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01048/11.26, allocations: 5.063 MB / 4.246 GB, free: 69.26 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 7.321e-06/11.26, allocations: 1.312 kB / 4.246 GB, free: 69.26 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.004131/11.27, allocations: 2.37 MB / 4.248 GB, free: 69.12 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006809/11.27, allocations: 1.034 MB / 4.249 GB, free: 69.11 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01172/11.29, allocations: 5.986 MB / 4.255 GB, free: 68 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002161/11.29, allocations: 2.29 MB / 4.257 GB, free: 67.23 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.007104/11.3, allocations: 2.673 MB / 4.26 GB, free: 67.2 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00084/11.3, allocations: 176.2 kB / 4.26 GB, free: 67.19 MB / 0.573 GB Notification: Performance of SimCode: time 1.623e-06/11.3, allocations: 6.562 kB / 4.26 GB, free: 67.19 MB / 0.573 GB Notification: Performance of Templates: time 0.1745/11.47, allocations: 92.9 MB / 4.351 GB, free: 62.24 MB / 0.573 GB