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.299/2.299, allocations: 234.9 MB / 249.4 MB, free: 9.797 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.226e-05/3.228e-05, allocations: 4 kB / 308 MB, free: 15.14 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3862/0.3862, allocations: 54.87 MB / 362.9 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4): time 0.1368/0.5231, allocations: 83.64 MB / 446.5 MB, free: 7.883 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.06965/0.5928, allocations: 31.92 MB / 478.4 MB, free: 7.898 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003654/0.5965, allocations: 107.2 kB / 478.5 MB, free: 7.793 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004839/0.6014, allocations: 1.155 MB / 479.7 MB, free: 6.633 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02342/0.6249, allocations: 5.744 MB / 485.4 MB, free: 0.8711 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.3791/1.004, allocations: 6.691 MB / 492.1 MB, free: 8.695 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.007947/1.012, allocations: 3.16 MB / 495.3 MB, free: 8.691 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00233/1.014, allocations: 1.034 MB / 496.3 MB, free: 8.68 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005827/1.02, allocations: 1.824 MB / 498.2 MB, free: 8.676 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0407/1.061, allocations: 18.31 MB / 0.5044 GB, free: 8.395 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0274/1.089, allocations: 9.662 MB / 0.5138 GB, free: 4.613 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004614/1.093, allocations: 0.5898 MB / 0.5144 GB, free: 4.023 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001853/1.095, allocations: 0.7396 MB / 0.5151 GB, free: 3.738 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001642/1.097, allocations: 280 kB / 0.5154 GB, free: 3.465 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01611/1.113, allocations: 6.419 MB / 0.5216 GB, free: 14.75 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/1.113, allocations: 0 / 0.5216 GB, free: 14.75 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.715e-06/1.113, allocations: 0 / 0.5216 GB, free: 14.75 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000127/1.113, allocations: 4 kB / 0.5216 GB, free: 14.75 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01406/1.127, allocations: 3.494 MB / 0.525 GB, free: 11.41 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.574e-05/1.127, allocations: 12.03 kB / 0.5251 GB, free: 11.4 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009175/1.136, allocations: 0.8623 MB / 0.5259 GB, free: 10.61 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005114/1.142, allocations: 1.574 MB / 0.5274 GB, free: 9.398 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003038/1.142, allocations: 190.9 kB / 0.5276 GB, free: 9.289 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006994/1.143, allocations: 198.3 kB / 0.5278 GB, free: 9.16 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01265/1.155, allocations: 3.581 MB / 0.5313 GB, free: 6.414 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.379e-05/1.155, allocations: 6.438 kB / 0.5313 GB, free: 6.41 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003542/1.156, allocations: 89.05 kB / 0.5314 GB, free: 6.387 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004583/1.156, allocations: 204.5 kB / 0.5316 GB, free: 6.211 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01383/1.17, allocations: 3.412 MB / 0.5349 GB, free: 3.777 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.03108/1.201, allocations: 15.29 MB / 0.5499 GB, free: 5.605 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009098/1.21, allocations: 2.263 MB / 0.5521 GB, free: 3.977 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06461/1.275, allocations: 19.11 MB / 0.5707 GB, free: 14.99 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007259/1.282, allocations: 1.658 MB / 0.5723 GB, free: 13.69 MB / 474.7 MB Notification: Performance of pre-optimization done (n=163): time 5.992e-06/1.282, allocations: 3.562 kB / 0.5723 GB, free: 13.69 MB / 474.7 MB Notification: Performance of matching and sorting (n=179): time 0.04006/1.323, allocations: 8.911 MB / 0.5811 GB, free: 6.77 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001452/1.323, allocations: 186.1 kB / 0.5812 GB, free: 6.559 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003031/1.326, allocations: 1.399 MB / 0.5826 GB, free: 5.5 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003855/1.326, allocations: 63.77 kB / 0.5827 GB, free: 5.457 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001169/1.327, allocations: 1.017 MB / 0.5836 GB, free: 4.793 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000929/1.328, allocations: 0.6078 MB / 0.5842 GB, free: 4.273 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002023/1.329, allocations: 38.94 kB / 0.5843 GB, free: 4.266 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002191/1.329, allocations: 392.2 kB / 0.5847 GB, free: 3.91 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003662/1.332, allocations: 1.108 MB / 0.5857 GB, free: 3.156 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004085/1.337, allocations: 1.602 MB / 0.5873 GB, free: 1.746 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004344/1.341, allocations: 1.364 MB / 0.5886 GB, free: 0.8633 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.38e-05/1.341, allocations: 4 kB / 0.5886 GB, free: 0.8594 MB / 474.7 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.01026/1.351, allocations: 3.271 MB / 0.5918 GB, free: 14.57 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002549/1.354, allocations: 5.978 MB / 0.5977 GB, free: 8.152 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-05/1.354, allocations: 23.67 kB / 0.5977 GB, free: 8.133 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001397/1.355, allocations: 243.8 kB / 0.5979 GB, free: 7.934 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004356/1.36, allocations: 0.5267 MB / 0.5984 GB, free: 7.457 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002227/1.362, allocations: 2.437 MB / 0.6008 GB, free: 5.078 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003848/1.366, allocations: 266.5 kB / 0.6011 GB, free: 4.848 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000341/1.366, allocations: 108.2 kB / 0.6012 GB, free: 4.762 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/1.366, allocations: 6.5 kB / 0.6012 GB, free: 4.758 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009884/1.376, allocations: 3.024 MB / 0.6041 GB, free: 2.715 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.669e-05/1.376, allocations: 16 kB / 0.6041 GB, free: 2.699 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001291/1.378, allocations: 242.6 kB / 0.6044 GB, free: 2.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004414/1.382, allocations: 0.5299 MB / 0.6049 GB, free: 2.02 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00238/1.384, allocations: 2.433 MB / 0.6073 GB, free: 15.64 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003754/1.388, allocations: 272.6 kB / 0.6075 GB, free: 15.41 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005326/1.389, allocations: 106.5 kB / 0.6076 GB, free: 15.33 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 30 (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,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 (256): * Single equations (assignments): 250 * 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.002108/1.391, allocations: 0.6962 MB / 0.6083 GB, free: 14.84 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006665/1.392, allocations: 205.5 kB / 0.6085 GB, free: 14.64 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01763/1.409, allocations: 7.536 MB / 0.6159 GB, free: 9.504 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001126/1.409, allocations: 81.25 kB / 0.6159 GB, free: 9.445 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.274e-05/1.409, allocations: 4 kB / 0.616 GB, free: 9.441 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0145/1.424, allocations: 6.59 MB / 0.6224 GB, free: 4.879 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02382/1.448, allocations: 10.71 MB / 0.6329 GB, free: 13.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.48e-05/1.448, allocations: 0 / 0.6329 GB, free: 13.79 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003274/1.451, allocations: 412 kB / 0.6332 GB, free: 13.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002005/1.453, allocations: 342.2 kB / 0.6336 GB, free: 13.05 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003629/1.454, allocations: 63.95 kB / 0.6336 GB, free: 12.99 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002278/1.456, allocations: 2.519 MB / 0.6361 GB, free: 10.38 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.307e-06/1.456, allocations: 4.062 kB / 0.6361 GB, free: 10.37 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01704/1.473, allocations: 7.046 MB / 0.643 GB, free: 3.191 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002188/1.475, allocations: 0.7339 MB / 0.6437 GB, free: 2.434 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006986/1.476, allocations: 48 kB / 0.6437 GB, free: 2.387 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002733/1.479, allocations: 207.5 kB / 0.6439 GB, free: 2.184 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004567/1.479, allocations: 141.8 kB / 0.6441 GB, free: 2.047 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002336/1.479, allocations: 67.97 kB / 0.6441 GB, free: 1.98 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002703/1.482, allocations: 1.179 MB / 0.6453 GB, free: 0.7812 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.01e-07/1.482, allocations: 0 / 0.6453 GB, free: 0.7812 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01152/1.494, allocations: 2.6 MB / 0.6478 GB, free: 14.18 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,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse19.phase,$cse19.region,$cse21.region3boundary,$cse22.region3boundary,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$cse40.phase,$cse40.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.01126/1.505, allocations: 2.15 MB / 0.6499 GB, free: 12.21 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01661/1.522, allocations: 5.39 MB / 0.6552 GB, free: 6.867 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.515e-06/1.522, allocations: 0 / 0.6552 GB, free: 6.867 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006216/1.528, allocations: 2.489 MB / 0.6576 GB, free: 4.387 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008156/1.536, allocations: 0.9616 MB / 0.6586 GB, free: 3.426 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0194/1.556, allocations: 8.866 MB / 0.6672 GB, free: 10.65 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002802/1.558, allocations: 2.288 MB / 0.6695 GB, free: 8.324 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.009028/1.568, allocations: 2.615 MB / 0.672 GB, free: 5.727 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009667/1.569, allocations: 179.4 kB / 0.6722 GB, free: 5.551 MB / 0.5417 GB Notification: Performance of SimCode: time 3.446e-06/1.569, allocations: 4 kB / 0.6722 GB, free: 5.547 MB / 0.5417 GB Notification: Performance of Templates: time 0.4952/2.064, allocations: 76.96 MB / 0.7473 GB, free: 182.8 MB / 0.5417 GB