Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|junctionVolume.medium.h|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.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18") Notification: Performance of loadModel(ModelicaTest): time 1.905/1.905, allocations: 209.3 MB / 223.8 MB, free: 440 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.497e-05/3.506e-05, allocations: 4 kB / 276.2 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3598/0.3598, allocations: 48.69 MB / 324.9 MB, free: 3.379 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18): time 0.1442/0.5041, allocations: 91.07 MB / 415.9 MB, free: 4.262 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.06619/0.5704, allocations: 31.56 MB / 447.5 MB, free: 4.637 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00425/0.5747, allocations: 111.2 kB / 447.6 MB, free: 4.527 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004971/0.5797, allocations: 1.248 MB / 448.9 MB, free: 3.273 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02289/0.6026, allocations: 5.83 MB / 454.7 MB, free: 13.43 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02625/0.6289, allocations: 6.858 MB / 461.6 MB, free: 6.562 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.008813/0.6378, allocations: 3.387 MB / 464.9 MB, free: 3.168 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00264/0.6404, allocations: 1.138 MB / 466.1 MB, free: 2.027 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006159/0.6466, allocations: 1.979 MB / 468.1 MB, free: 44 kB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3726/1.019, allocations: 18.25 MB / 486.3 MB, free: 27.21 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02855/1.048, allocations: 9.108 MB / 495.4 MB, free: 27.21 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005534/1.054, allocations: 0.5833 MB / 496 MB, free: 27.21 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002038/1.056, allocations: 0.792 MB / 496.8 MB, free: 27.21 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001846/1.057, allocations: 305.6 kB / 497.1 MB, free: 27.21 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01871/1.076, allocations: 6.447 MB / 0.4917 GB, free: 26.79 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/1.076, allocations: 0 / 0.4917 GB, free: 26.79 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.166e-06/1.076, allocations: 0 / 0.4917 GB, free: 26.79 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001428/1.076, allocations: 0 / 0.4917 GB, free: 26.79 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: 571 * Number of variables: 571 Notification: Performance of Generate backend data structure: time 0.01344/1.09, allocations: 3.56 MB / 0.4952 GB, free: 25.16 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/1.09, allocations: 8.875 kB / 0.4952 GB, free: 25.16 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008896/1.099, allocations: 0.8541 MB / 0.4961 GB, free: 25 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005079/1.104, allocations: 1.684 MB / 0.4977 GB, free: 24.57 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002666/1.104, allocations: 193.8 kB / 0.4979 GB, free: 24.56 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006113/1.105, allocations: 217.5 kB / 0.4981 GB, free: 24.56 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01314/1.118, allocations: 3.781 MB / 0.5018 GB, free: 24.06 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.504e-05/1.118, allocations: 9.219 kB / 0.5018 GB, free: 24.06 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003971/1.119, allocations: 95.81 kB / 0.5019 GB, free: 24.05 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004315/1.119, allocations: 207.5 kB / 0.5021 GB, free: 24.05 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01358/1.133, allocations: 3.577 MB / 0.5056 GB, free: 23.99 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.02929/1.162, allocations: 16.62 MB / 0.5218 GB, free: 13.38 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01096/1.173, allocations: 3.147 MB / 0.5249 GB, free: 11.78 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05949/1.233, allocations: 18.75 MB / 0.5432 GB, free: 7.195 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007781/1.24, allocations: 1.825 MB / 0.545 GB, free: 5.781 MB / 426.7 MB Notification: Performance of pre-optimization done (n=188): time 6.623e-06/1.24, allocations: 0 / 0.545 GB, free: 5.781 MB / 426.7 MB Notification: Performance of matching and sorting (n=208): time 0.0477/1.288, allocations: 10.16 MB / 0.5549 GB, free: 13.91 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00015/1.288, allocations: 183.5 kB / 0.5551 GB, free: 13.7 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003207/1.292, allocations: 1.411 MB / 0.5565 GB, free: 12.63 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006749/1.292, allocations: 66.77 kB / 0.5565 GB, free: 12.59 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001269/1.294, allocations: 1.067 MB / 0.5576 GB, free: 11.89 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001329/1.295, allocations: 0.6962 MB / 0.5582 GB, free: 11.3 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002511/1.295, allocations: 48.69 kB / 0.5583 GB, free: 11.29 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002494/1.296, allocations: 412.6 kB / 0.5587 GB, free: 10.92 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004305/1.3, allocations: 1.245 MB / 0.5599 GB, free: 10.07 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005068/1.305, allocations: 1.835 MB / 0.5617 GB, free: 8.473 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004921/1.31, allocations: 1.522 MB / 0.5632 GB, free: 7.484 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.055e-05/1.31, allocations: 4 kB / 0.5632 GB, free: 7.48 MB / 442.7 MB Notification: Performance of matching and sorting (n=314) (initialization): time 0.01289/1.323, allocations: 3.753 MB / 0.5668 GB, free: 4.82 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00335/1.326, allocations: 6.623 MB / 0.5733 GB, free: 13.73 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.166e-05/1.326, allocations: 16 kB / 0.5733 GB, free: 13.71 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001998/1.328, allocations: 342.4 kB / 0.5737 GB, free: 13.44 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00527/1.334, allocations: 0.6184 MB / 0.5743 GB, free: 12.88 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003311/1.337, allocations: 3.101 MB / 0.5773 GB, free: 9.875 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005508/1.343, allocations: 337.5 kB / 0.5776 GB, free: 9.582 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008773/1.344, allocations: 123.2 kB / 0.5777 GB, free: 9.488 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/1.344, allocations: 8 kB / 0.5777 GB, free: 9.48 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01251/1.356, allocations: 3.48 MB / 0.5811 GB, free: 7.113 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.067e-05/1.356, allocations: 16 kB / 0.5811 GB, free: 7.098 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001762/1.358, allocations: 338.3 kB / 0.5815 GB, free: 6.824 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005145/1.363, allocations: 0.6137 MB / 0.5821 GB, free: 6.273 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00308/1.366, allocations: 3.094 MB / 0.5851 GB, free: 3.27 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004891/1.371, allocations: 340.9 kB / 0.5854 GB, free: 2.977 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006747/1.372, allocations: 118.7 kB / 0.5855 GB, free: 2.883 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 29 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,junctionVolume.medium.phase,pipe3.state_a.phase,pipe2.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (296): * Single equations (assignments): 289 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 6,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002282/1.374, allocations: 0.7093 MB / 0.5862 GB, free: 2.406 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007561/1.375, allocations: 217.4 kB / 0.5864 GB, free: 2.191 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01998/1.395, allocations: 8.185 MB / 0.5944 GB, free: 12.61 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001191/1.395, allocations: 92.62 kB / 0.5945 GB, free: 12.54 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.393e-05/1.395, allocations: 3.984 kB / 0.5945 GB, free: 12.53 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01624/1.411, allocations: 7.085 MB / 0.6014 GB, free: 7.621 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03141/1.443, allocations: 12.98 MB / 0.6141 GB, free: 14.59 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.08e-05/1.443, allocations: 4.688 kB / 0.6141 GB, free: 14.59 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003784/1.447, allocations: 486.2 kB / 0.6146 GB, free: 14.15 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002611/1.449, allocations: 458.1 kB / 0.615 GB, free: 13.78 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004785/1.45, allocations: 75.91 kB / 0.6151 GB, free: 13.74 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003134/1.453, allocations: 3.234 MB / 0.6182 GB, free: 10.65 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.087e-06/1.453, allocations: 6.812 kB / 0.6183 GB, free: 10.64 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01948/1.473, allocations: 8.368 MB / 0.6264 GB, free: 4.594 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002502/1.475, allocations: 0.7728 MB / 0.6272 GB, free: 3.938 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008814/1.476, allocations: 60.12 kB / 0.6272 GB, free: 3.914 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003262/1.479, allocations: 233.1 kB / 0.6275 GB, free: 3.715 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000531/1.48, allocations: 188.5 kB / 0.6276 GB, free: 3.559 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000293/1.48, allocations: 88.62 kB / 0.6277 GB, free: 3.492 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002617/1.483, allocations: 1.172 MB / 0.6289 GB, free: 2.598 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.22e-07/1.483, allocations: 0 / 0.6289 GB, free: 2.598 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01149/1.494, allocations: 2.656 MB / 0.6315 GB, free: 128 kB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 9 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,junctionIdeal.medium.p,junctionIdeal.medium.h,junctionVolume.medium.h) * Number of discrete variables: 57 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse21.phase,$cse21.region,$cse24.phase,$cse24.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,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse40.phase,$cse40.region,$cse44.phase,$cse44.region,$cse49.phase,$cse49.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,junctionIdeal.medium.phase,junctionVolume.medium.phase) * 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 (237): * Single equations (assignments): 206 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 24 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,2 4,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01164/1.506, allocations: 2.12 MB / 0.6335 GB, free: 14.26 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01961/1.526, allocations: 5.952 MB / 0.6393 GB, free: 10.08 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.445e-05/1.526, allocations: 0.5625 kB / 0.6393 GB, free: 10.08 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008297/1.534, allocations: 2.992 MB / 0.6423 GB, free: 7.484 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01001/1.544, allocations: 1.122 MB / 0.6434 GB, free: 6.375 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2984/1.843, allocations: 9.676 MB / 0.6528 GB, free: 209.5 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004002/1.847, allocations: 2.383 MB / 0.6551 GB, free: 208.7 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01087/1.858, allocations: 2.71 MB / 0.6578 GB, free: 208.7 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001452/1.859, allocations: 202.3 kB / 0.658 GB, free: 208.7 MB / 0.4948 GB Notification: Performance of SimCode: time 2.014e-06/1.859, allocations: 3.375 kB / 0.658 GB, free: 208.7 MB / 0.4948 GB Notification: Performance of Templates: time 0.1812/2.04, allocations: 82.68 MB / 0.7387 GB, free: 148.3 MB / 0.4948 GB