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_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12") Notification: Performance of loadModel(ModelicaTest): time 2.323/2.323, allocations: 234.9 MB / 249.4 MB, free: 10.03 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.101e-05/3.08e-05, allocations: 4 kB / 308 MB, free: 15.35 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3734/0.3735, allocations: 54.86 MB / 362.9 MB, free: 12.11 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12): time 0.1461/0.5196, allocations: 75.55 MB / 438.4 MB, free: 1.922 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.07765/0.5973, allocations: 30.4 MB / 468.8 MB, free: 3.453 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00383/0.6012, allocations: 103.2 kB / 468.9 MB, free: 3.352 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005276/0.6066, allocations: 1.073 MB / 470 MB, free: 2.273 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02198/0.6286, allocations: 5.456 MB / 475.5 MB, free: 12.8 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02568/0.6543, allocations: 6.377 MB / 481.8 MB, free: 6.418 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.00844/0.6628, allocations: 3.044 MB / 484.9 MB, free: 3.371 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002532/0.6654, allocations: 1.055 MB / 485.9 MB, free: 2.316 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005614/0.6711, allocations: 1.753 MB / 487.7 MB, free: 0.5586 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.4101/1.081, allocations: 18.32 MB / 0.4941 GB, free: 25.96 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02689/1.108, allocations: 9.624 MB / 0.5035 GB, free: 25.96 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005026/1.113, allocations: 0.5891 MB / 0.5041 GB, free: 25.96 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001826/1.115, allocations: 0.7565 MB / 0.5049 GB, free: 25.96 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001486/1.117, allocations: 272.1 kB / 0.5051 GB, free: 25.96 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01681/1.134, allocations: 6.417 MB / 0.5114 GB, free: 25.54 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.962e-06/1.134, allocations: 7.094 kB / 0.5114 GB, free: 25.54 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.569e-06/1.134, allocations: 0 / 0.5114 GB, free: 25.54 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002176/1.134, allocations: 0 / 0.5114 GB, free: 25.54 MB / 426.7 MB 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.01701/1.151, allocations: 3.581 MB / 0.5149 GB, free: 23.91 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.857e-05/1.151, allocations: 8.219 kB / 0.5149 GB, free: 23.91 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008339/1.159, allocations: 0.8212 MB / 0.5157 GB, free: 23.76 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005067/1.164, allocations: 1.628 MB / 0.5173 GB, free: 23.34 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003255/1.165, allocations: 174.2 kB / 0.5175 GB, free: 23.34 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009613/1.166, allocations: 194.9 kB / 0.5176 GB, free: 23.34 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01433/1.18, allocations: 3.582 MB / 0.5211 GB, free: 22.9 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001706/1.18, allocations: 13.19 kB / 0.5212 GB, free: 22.9 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001119/1.182, allocations: 83.2 kB / 0.5212 GB, free: 22.9 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005199/1.182, allocations: 203.4 kB / 0.5214 GB, free: 22.89 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01431/1.196, allocations: 3.499 MB / 0.5248 GB, free: 22.86 MB / 426.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.03028/1.227, allocations: 14.67 MB / 0.5392 GB, free: 12.99 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008417/1.235, allocations: 2.182 MB / 0.5413 GB, free: 11.45 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06311/1.298, allocations: 19.11 MB / 0.56 GB, free: 6.457 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007206/1.306, allocations: 1.637 MB / 0.5616 GB, free: 5.18 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001807/1.308, allocations: 174.9 kB / 0.5617 GB, free: 5.035 MB / 442.7 MB Notification: Performance of pre-optimization done (n=162): time 9.437e-06/1.308, allocations: 0 / 0.5617 GB, free: 5.035 MB / 442.7 MB Notification: Performance of matching and sorting (n=174): time 0.04638/1.354, allocations: 9.119 MB / 0.5706 GB, free: 13.92 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002388/1.354, allocations: 333.1 kB / 0.5709 GB, free: 13.53 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003973/1.358, allocations: 1.458 MB / 0.5724 GB, free: 12.43 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005328/1.359, allocations: 58.77 kB / 0.5724 GB, free: 12.39 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001425/1.36, allocations: 1.019 MB / 0.5734 GB, free: 11.74 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001219/1.362, allocations: 0.5886 MB / 0.574 GB, free: 11.23 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003095/1.362, allocations: 39.88 kB / 0.574 GB, free: 11.23 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002914/1.362, allocations: 386.7 kB / 0.5744 GB, free: 10.88 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004223/1.366, allocations: 1.137 MB / 0.5755 GB, free: 10.1 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005246/1.372, allocations: 1.656 MB / 0.5771 GB, free: 8.648 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0049/1.377, allocations: 1.407 MB / 0.5785 GB, free: 7.734 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.989e-05/1.377, allocations: 7.953 kB / 0.5785 GB, free: 7.727 MB / 458.7 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.01241/1.389, allocations: 3.489 MB / 0.5819 GB, free: 5.281 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002633/1.392, allocations: 5.553 MB / 0.5873 GB, free: 15.35 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.115e-05/1.392, allocations: 16 kB / 0.5874 GB, free: 15.34 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008719/1.401, allocations: 0.9762 MB / 0.5883 GB, free: 14.47 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004398/1.405, allocations: 496.9 kB / 0.5888 GB, free: 14.04 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005347/1.411, allocations: 3.145 MB / 0.5919 GB, free: 11.18 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004165/1.415, allocations: 240.4 kB / 0.5921 GB, free: 10.98 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006543/1.416, allocations: 103.1 kB / 0.5922 GB, free: 10.89 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/1.416, allocations: 5.406 kB / 0.5922 GB, free: 10.89 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0115/1.427, allocations: 3.199 MB / 0.5953 GB, free: 8.707 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-05/1.427, allocations: 19.98 kB / 0.5953 GB, free: 8.688 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00215/1.429, allocations: 375.3 kB / 0.5957 GB, free: 8.383 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00427/1.434, allocations: 0.5005 MB / 0.5962 GB, free: 7.93 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006458/1.44, allocations: 4.141 MB / 0.6002 GB, free: 4.133 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003811/1.444, allocations: 233.9 kB / 0.6004 GB, free: 3.934 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006761/1.445, allocations: 109.6 kB / 0.6005 GB, free: 3.848 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,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_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (232): * Single equations (assignments): 222 * 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.002502/1.447, allocations: 0.6986 MB / 0.6012 GB, free: 3.363 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000794/1.448, allocations: 213.5 kB / 0.6014 GB, free: 3.152 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02058/1.469, allocations: 7.813 MB / 0.6091 GB, free: 13.9 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001274/1.469, allocations: 85.12 kB / 0.6091 GB, free: 13.84 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/1.469, allocations: 4 kB / 0.6091 GB, free: 13.84 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0155/1.485, allocations: 6.857 MB / 0.6158 GB, free: 9.141 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02555/1.51, allocations: 10.79 MB / 0.6264 GB, free: 2.105 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.268e-05/1.51, allocations: 0 / 0.6264 GB, free: 2.105 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003228/1.513, allocations: 346.6 kB / 0.6267 GB, free: 1.797 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008963/1.523, allocations: 2.149 MB / 0.6288 GB, free: 15.9 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004935/1.523, allocations: 68.59 kB / 0.6289 GB, free: 15.87 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005505/1.529, allocations: 4.079 MB / 0.6329 GB, free: 12.51 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/1.529, allocations: 0 / 0.6329 GB, free: 12.51 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01889/1.548, allocations: 7.882 MB / 0.6406 GB, free: 6.223 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002339/1.55, allocations: 0.73 MB / 0.6413 GB, free: 5.469 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009137/1.551, allocations: 47.98 kB / 0.6413 GB, free: 5.422 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003186/1.554, allocations: 191.5 kB / 0.6415 GB, free: 5.234 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006558/1.555, allocations: 140.8 kB / 0.6416 GB, free: 5.098 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00026/1.555, allocations: 67.97 kB / 0.6417 GB, free: 5.031 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003222/1.558, allocations: 1.213 MB / 0.6429 GB, free: 3.801 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.673e-06/1.558, allocations: 0 / 0.6429 GB, free: 3.801 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01113/1.569, allocations: 2.585 MB / 0.6454 GB, free: 1.215 MB / 0.4948 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,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,$cse23.region3boundary,$cse24.region3boundary,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse30.region3boundary,$cse31.region3boundary,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse35.phase,$cse35.region,$cse37.phase,$cse37.region,$cse42.phase,$cse42.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 (168): * Single equations (assignments): 143 * 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.01133/1.581, allocations: 2.12 MB / 0.6475 GB, free: 15.28 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01888/1.6, allocations: 5.66 MB / 0.653 GB, free: 9.617 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.082e-05/1.6, allocations: 0 / 0.653 GB, free: 9.617 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0073/1.607, allocations: 2.465 MB / 0.6554 GB, free: 7.16 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008079/1.615, allocations: 0.8943 MB / 0.6563 GB, free: 6.27 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02199/1.637, allocations: 8.784 MB / 0.6649 GB, free: 13.56 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005146/1.643, allocations: 2.295 MB / 0.6671 GB, free: 11.23 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01341/1.656, allocations: 2.396 MB / 0.6694 GB, free: 8.852 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001276/1.657, allocations: 151.4 kB / 0.6696 GB, free: 8.703 MB / 0.5261 GB Notification: Performance of SimCode: time 1.453e-06/1.657, allocations: 0 / 0.6696 GB, free: 8.703 MB / 0.5261 GB Notification: Performance of Templates: time 0.5262/2.184, allocations: 80.14 MB / 0.7479 GB, free: 199 MB / 0.5417 GB