Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,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|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2") Notification: Performance of loadModel(ModelicaTest): time 2.259/2.259, allocations: 234.9 MB / 249.4 MB, free: 10.02 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.44e-05/3.419e-05, allocations: 8 kB / 308 MB, free: 15.34 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3793/0.3793, allocations: 54.85 MB / 362.9 MB, free: 12.24 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2): time 0.1284/0.5078, allocations: 75.57 MB / 438.4 MB, free: 2.031 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.06117/0.569, allocations: 29.02 MB / 467.5 MB, free: 4.945 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00338/0.5724, allocations: 107.2 kB / 467.6 MB, free: 4.84 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00433/0.5768, allocations: 1.081 MB / 468.7 MB, free: 3.754 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02148/0.5983, allocations: 5.417 MB / 474.1 MB, free: 14.32 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02491/0.6233, allocations: 6.202 MB / 480.3 MB, free: 8.113 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.007573/0.6309, allocations: 2.892 MB / 483.2 MB, free: 5.219 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002343/0.6333, allocations: 1.004 MB / 484.2 MB, free: 4.215 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005267/0.6386, allocations: 1.687 MB / 485.9 MB, free: 2.523 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04422/0.6829, allocations: 18.22 MB / 0.4923 GB, free: 300 kB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3741/1.057, allocations: 8.971 MB / 0.501 GB, free: 28.21 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004771/1.062, allocations: 0.5745 MB / 0.5016 GB, free: 28.21 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001544/1.063, allocations: 0.6846 MB / 0.5023 GB, free: 28.21 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001134/1.065, allocations: 253.1 kB / 0.5025 GB, free: 28.21 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01507/1.08, allocations: 5.895 MB / 0.5083 GB, free: 27.84 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/1.08, allocations: 0 / 0.5083 GB, free: 27.84 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.846e-06/1.08, allocations: 1 kB / 0.5083 GB, free: 27.84 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001183/1.08, allocations: 0 / 0.5083 GB, free: 27.84 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: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.01502/1.095, allocations: 3.26 MB / 0.5114 GB, free: 26.36 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/1.095, allocations: 9.562 kB / 0.5114 GB, free: 26.36 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007521/1.103, allocations: 0.7427 MB / 0.5122 GB, free: 26.23 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004328/1.107, allocations: 1.499 MB / 0.5136 GB, free: 25.83 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000217/1.107, allocations: 163.8 kB / 0.5138 GB, free: 25.83 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005341/1.108, allocations: 183.3 kB / 0.514 GB, free: 25.83 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01087/1.119, allocations: 3.22 MB / 0.5171 GB, free: 25.44 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.724e-05/1.119, allocations: 13.95 kB / 0.5171 GB, free: 25.44 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003585/1.119, allocations: 75.61 kB / 0.5172 GB, free: 25.44 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003846/1.12, allocations: 176.4 kB / 0.5174 GB, free: 25.43 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01183/1.131, allocations: 3.128 MB / 0.5204 GB, free: 25.4 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.02372/1.155, allocations: 13.57 MB / 0.5337 GB, free: 17.11 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008081/1.163, allocations: 2.033 MB / 0.5357 GB, free: 16.84 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05993/1.223, allocations: 19.04 MB / 0.5543 GB, free: 13.14 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006394/1.23, allocations: 1.566 MB / 0.5558 GB, free: 11.92 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001291/1.231, allocations: 159.2 kB / 0.5559 GB, free: 11.79 MB / 442.7 MB Notification: Performance of pre-optimization done (n=155): time 5.15e-06/1.231, allocations: 0 / 0.5559 GB, free: 11.79 MB / 442.7 MB Notification: Performance of matching and sorting (n=167): time 0.03699/1.268, allocations: 8.302 MB / 0.564 GB, free: 5.332 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001371/1.268, allocations: 178.2 kB / 0.5642 GB, free: 5.125 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002669/1.271, allocations: 1.23 MB / 0.5654 GB, free: 4.18 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00042/1.271, allocations: 60.77 kB / 0.5655 GB, free: 4.137 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001041/1.272, allocations: 0.9031 MB / 0.5663 GB, free: 3.555 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008519/1.273, allocations: 0.5548 MB / 0.5669 GB, free: 3.078 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001869/1.273, allocations: 38 kB / 0.5669 GB, free: 3.07 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002244/1.274, allocations: 380.9 kB / 0.5673 GB, free: 2.723 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003339/1.277, allocations: 1.001 MB / 0.5683 GB, free: 2.051 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003984/1.281, allocations: 1.485 MB / 0.5697 GB, free: 0.7812 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00434/1.285, allocations: 1.262 MB / 0.571 GB, free: 15.95 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-05/1.286, allocations: 7.281 kB / 0.571 GB, free: 15.95 MB / 458.7 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.01128/1.297, allocations: 3.117 MB / 0.574 GB, free: 13.73 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002293/1.299, allocations: 5.148 MB / 0.579 GB, free: 8.395 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-05/1.299, allocations: 15.98 kB / 0.579 GB, free: 8.379 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004548/1.304, allocations: 0.517 MB / 0.5796 GB, free: 7.922 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003951/1.308, allocations: 475.1 kB / 0.58 GB, free: 7.504 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003371/1.311, allocations: 2.707 MB / 0.5826 GB, free: 4.941 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003997/1.315, allocations: 256.8 kB / 0.5829 GB, free: 4.719 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004797/1.316, allocations: 93.16 kB / 0.583 GB, free: 4.645 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/1.316, allocations: 4 kB / 0.583 GB, free: 4.641 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009267/1.325, allocations: 2.777 MB / 0.5857 GB, free: 2.758 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.258e-05/1.325, allocations: 16 kB / 0.5857 GB, free: 2.742 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001004/1.326, allocations: 202.9 kB / 0.5859 GB, free: 2.578 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004071/1.33, allocations: 478.9 kB / 0.5864 GB, free: 2.156 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001806/1.332, allocations: 1.881 MB / 0.5882 GB, free: 340 kB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003818/1.336, allocations: 262.1 kB / 0.5884 GB, free: 108 kB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004568/1.336, allocations: 99.91 kB / 0.5885 GB, free: 28 kB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 29 (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_a.phase,pipe2.state_a.phase,pipe1.state_a.phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (224): * Single equations (assignments): 218 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.001874/1.338, allocations: 0.6436 MB / 0.5892 GB, free: 15.57 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006464/1.339, allocations: 185.8 kB / 0.5893 GB, free: 15.39 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01702/1.356, allocations: 7.407 MB / 0.5966 GB, free: 10.37 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001164/1.356, allocations: 85.58 kB / 0.5967 GB, free: 10.31 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.217e-05/1.356, allocations: 4 kB / 0.5967 GB, free: 10.3 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01474/1.371, allocations: 6.478 MB / 0.603 GB, free: 5.828 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02584/1.397, allocations: 11.06 MB / 0.6138 GB, free: 14.36 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-05/1.397, allocations: 4 kB / 0.6138 GB, free: 14.35 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002819/1.4, allocations: 357.2 kB / 0.6141 GB, free: 14.03 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004228/1.404, allocations: 1.175 MB / 0.6153 GB, free: 12.99 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003537/1.404, allocations: 70.14 kB / 0.6154 GB, free: 12.95 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003643/1.408, allocations: 3.189 MB / 0.6185 GB, free: 10.11 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.13e-05/1.408, allocations: 11.66 kB / 0.6185 GB, free: 10.11 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01571/1.424, allocations: 7.358 MB / 0.6257 GB, free: 4.82 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001986/1.426, allocations: 0.6841 MB / 0.6263 GB, free: 4.23 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005701/1.426, allocations: 54.73 kB / 0.6264 GB, free: 4.207 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002331/1.429, allocations: 174.8 kB / 0.6266 GB, free: 4.059 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004019/1.429, allocations: 146.7 kB / 0.6267 GB, free: 3.934 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002184/1.429, allocations: 73.22 kB / 0.6268 GB, free: 3.875 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002261/1.432, allocations: 1.049 MB / 0.6278 GB, free: 3.066 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.01e-07/1.432, allocations: 6.562 kB / 0.6278 GB, free: 3.062 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01007/1.442, allocations: 2.358 MB / 0.6301 GB, free: 0.8555 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,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,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse20.phase,$cse20.region,$cse22.region3boundary,$cse23.region3boundary,$cse24.phase,$cse24.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse41.phase,$cse41.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 (177): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01042/1.452, allocations: 1.988 MB / 0.632 GB, free: 15.09 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01377/1.466, allocations: 4.968 MB / 0.6369 GB, free: 11.65 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.588e-06/1.466, allocations: 4.062 kB / 0.6369 GB, free: 11.64 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006375/1.473, allocations: 2.512 MB / 0.6394 GB, free: 9.281 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007533/1.48, allocations: 0.8422 MB / 0.6402 GB, free: 8.441 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01797/1.498, allocations: 8.335 MB / 0.6483 GB, free: 164 kB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002666/1.501, allocations: 2.184 MB / 0.6504 GB, free: 13.94 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.00847/1.509, allocations: 2.425 MB / 0.6528 GB, free: 11.53 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008664/1.51, allocations: 155.4 kB / 0.653 GB, free: 11.38 MB / 0.5105 GB Notification: Performance of SimCode: time 1.032e-06/1.51, allocations: 0 / 0.653 GB, free: 11.38 MB / 0.5105 GB Notification: Performance of Templates: time 0.4809/1.991, allocations: 72.7 MB / 0.724 GB, free: 226.6 MB / 0.5417 GB