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.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12") Notification: Performance of loadModel(ModelicaTest): time 1.884/1.884, allocations: 209.3 MB / 223.8 MB, free: 440 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.753e-05/2.74e-05, allocations: 0 / 276.2 MB, free: 15.21 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3449/0.345, allocations: 48.7 MB / 324.9 MB, free: 3.379 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12): time 0.1193/0.4644, allocations: 74.95 MB / 399.8 MB, free: 4.406 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0616/0.526, allocations: 30.22 MB / 430.1 MB, free: 6.121 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003245/0.5293, allocations: 103.2 kB / 430.2 MB, free: 6.02 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004295/0.5336, allocations: 1.073 MB / 431.2 MB, free: 4.941 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02148/0.5552, allocations: 5.39 MB / 436.6 MB, free: 15.54 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02391/0.5791, allocations: 6.33 MB / 442.9 MB, free: 9.203 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.007856/0.587, allocations: 2.986 MB / 445.9 MB, free: 6.211 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002378/0.5894, allocations: 1.051 MB / 447 MB, free: 5.156 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005137/0.5946, allocations: 1.738 MB / 448.7 MB, free: 3.414 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04269/0.6373, allocations: 18.12 MB / 466.8 MB, free: 1.281 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02832/0.6657, allocations: 9.458 MB / 476.3 MB, free: 7.812 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004445/0.6702, allocations: 0.582 MB / 476.9 MB, free: 7.23 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00191/0.6722, allocations: 0.7518 MB / 477.6 MB, free: 6.477 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001105/0.6733, allocations: 268 kB / 477.9 MB, free: 6.215 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3395/1.013, allocations: 6.352 MB / 484.2 MB, free: 36.27 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/1.013, allocations: 0.8125 kB / 484.2 MB, free: 36.27 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.216e-06/1.013, allocations: 0 / 484.2 MB, free: 36.27 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001564/1.013, allocations: 0 / 484.2 MB, free: 36.27 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 514 * Number of variables: 514 Notification: Performance of Generate backend data structure: time 0.01508/1.028, allocations: 3.496 MB / 487.7 MB, free: 34.69 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/1.028, allocations: 10.06 kB / 487.8 MB, free: 34.69 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008295/1.037, allocations: 0.7974 MB / 488.6 MB, free: 34.55 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00535/1.042, allocations: 1.616 MB / 490.2 MB, free: 34.14 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002761/1.042, allocations: 175.3 kB / 490.3 MB, free: 34.13 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007023/1.043, allocations: 194.7 kB / 490.5 MB, free: 34.13 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01244/1.055, allocations: 3.571 MB / 494.1 MB, free: 33.71 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.901e-05/1.056, allocations: 8.875 kB / 494.1 MB, free: 33.71 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003726/1.056, allocations: 92.28 kB / 494.2 MB, free: 33.71 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004381/1.056, allocations: 203.3 kB / 494.4 MB, free: 33.71 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01448/1.071, allocations: 3.485 MB / 497.9 MB, free: 33.7 MB / 410.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.02846/1.099, allocations: 14.63 MB / 0.5005 GB, free: 25.1 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00769/1.107, allocations: 2.18 MB / 0.5026 GB, free: 25.05 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06932/1.177, allocations: 19.08 MB / 0.5213 GB, free: 12.58 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008479/1.185, allocations: 1.633 MB / 0.5229 GB, free: 12.46 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001796/1.187, allocations: 175 kB / 0.523 GB, free: 12.37 MB / 410.7 MB Notification: Performance of pre-optimization done (n=158): time 7.685e-06/1.187, allocations: 0 / 0.523 GB, free: 12.37 MB / 410.7 MB Notification: Performance of matching and sorting (n=170): time 0.04555/1.233, allocations: 9.06 MB / 0.5319 GB, free: 10.65 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001298/1.233, allocations: 335.5 kB / 0.5322 GB, free: 10.25 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002998/1.236, allocations: 1.448 MB / 0.5336 GB, free: 9.387 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005105/1.236, allocations: 57.64 kB / 0.5337 GB, free: 9.348 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001008/1.237, allocations: 1.014 MB / 0.5346 GB, free: 8.805 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009553/1.238, allocations: 0.5804 MB / 0.5352 GB, free: 8.359 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002212/1.238, allocations: 39.19 kB / 0.5353 GB, free: 8.352 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.00016/1.239, allocations: 393.6 kB / 0.5356 GB, free: 8.02 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00344/1.242, allocations: 1.13 MB / 0.5367 GB, free: 7.438 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003635/1.246, allocations: 1.64 MB / 0.5383 GB, free: 6.062 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003976/1.25, allocations: 1.395 MB / 0.5397 GB, free: 5.152 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.625e-05/1.25, allocations: 4 kB / 0.5397 GB, free: 5.148 MB / 410.7 MB Notification: Performance of matching and sorting (n=268) (initialization): time 0.009857/1.26, allocations: 3.501 MB / 0.5431 GB, free: 2.688 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001835/1.262, allocations: 5.556 MB / 0.5485 GB, free: 12.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.899e-05/1.262, allocations: 16 kB / 0.5486 GB, free: 12.74 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008339/1.27, allocations: 0.9713 MB / 0.5495 GB, free: 11.88 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003899/1.274, allocations: 490.6 kB / 0.55 GB, free: 11.45 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004291/1.278, allocations: 3.155 MB / 0.5531 GB, free: 8.582 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003806/1.282, allocations: 234.7 kB / 0.5533 GB, free: 8.383 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003178/1.282, allocations: 103.3 kB / 0.5534 GB, free: 8.301 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/1.282, allocations: 4 kB / 0.5534 GB, free: 8.297 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009887/1.292, allocations: 3.203 MB / 0.5565 GB, free: 6.102 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.176e-05/1.292, allocations: 12.78 kB / 0.5565 GB, free: 6.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002008/1.294, allocations: 380.4 kB / 0.5569 GB, free: 5.781 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003804/1.298, allocations: 0.5067 MB / 0.5574 GB, free: 5.324 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005784/1.304, allocations: 4.139 MB / 0.5614 GB, free: 1.531 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003449/1.308, allocations: 240.1 kB / 0.5617 GB, free: 1.332 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002917/1.308, allocations: 105 kB / 0.5618 GB, free: 1.246 MB / 426.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: 27 (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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,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.001779/1.31, allocations: 0.6879 MB / 0.5624 GB, free: 0.7656 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005048/1.31, allocations: 205.5 kB / 0.5626 GB, free: 0.5625 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01677/1.327, allocations: 7.823 MB / 0.5703 GB, free: 11.29 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001067/1.327, allocations: 85.44 kB / 0.5703 GB, free: 11.22 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/1.327, allocations: 0 / 0.5703 GB, free: 11.22 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01343/1.341, allocations: 6.844 MB / 0.577 GB, free: 6.535 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02746/1.368, allocations: 10.77 MB / 0.5875 GB, free: 15.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.508e-05/1.368, allocations: 4 kB / 0.5875 GB, free: 15.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002828/1.371, allocations: 346.7 kB / 0.5879 GB, free: 15.19 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007761/1.379, allocations: 2.099 MB / 0.5899 GB, free: 13.35 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003963/1.379, allocations: 73.31 kB / 0.59 GB, free: 13.31 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005238/1.384, allocations: 4.082 MB / 0.594 GB, free: 9.957 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.631e-06/1.385, allocations: 3.953 kB / 0.594 GB, free: 9.953 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01693/1.401, allocations: 7.859 MB / 0.6017 GB, free: 4.773 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002153/1.404, allocations: 0.726 MB / 0.6024 GB, free: 4.152 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006139/1.404, allocations: 59.44 kB / 0.6024 GB, free: 4.125 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002474/1.407, allocations: 185.1 kB / 0.6026 GB, free: 3.969 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003904/1.407, allocations: 136.3 kB / 0.6027 GB, free: 3.848 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002208/1.407, allocations: 66.47 kB / 0.6028 GB, free: 3.797 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002606/1.41, allocations: 1.208 MB / 0.604 GB, free: 2.887 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.01e-07/1.41, allocations: 0 / 0.604 GB, free: 2.887 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00972/1.42, allocations: 2.567 MB / 0.6065 GB, free: 0.4922 MB / 458.7 MB 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: 53 ($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,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,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.0101/1.43, allocations: 2.108 MB / 0.6085 GB, free: 14.63 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01577/1.446, allocations: 5.555 MB / 0.614 GB, free: 10.02 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/1.446, allocations: 0 / 0.614 GB, free: 10.02 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006471/1.452, allocations: 2.405 MB / 0.6163 GB, free: 7.625 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007749/1.46, allocations: 0.8785 MB / 0.6172 GB, free: 6.75 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01952/1.48, allocations: 8.754 MB / 0.6257 GB, free: 14.08 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002763/1.482, allocations: 2.295 MB / 0.628 GB, free: 11.75 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.008051/1.491, allocations: 2.381 MB / 0.6303 GB, free: 9.383 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008383/1.491, allocations: 159.4 kB / 0.6304 GB, free: 9.227 MB / 490.7 MB Notification: Performance of SimCode: time 3.526e-06/1.491, allocations: 0 / 0.6304 GB, free: 9.227 MB / 490.7 MB Notification: Performance of Templates: time 0.4669/1.958, allocations: 79.55 MB / 0.7081 GB, free: 184.4 MB / 0.4948 GB