Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|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.BranchingPipes14") Notification: Performance of loadModel(ModelicaTest): time 1.962/1.962, allocations: 209.3 MB / 223.8 MB, free: 432 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.387e-05/3.367e-05, allocations: 0 / 276.2 MB, free: 15.21 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3705/0.3706, allocations: 48.7 MB / 324.9 MB, free: 3.371 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14): time 0.1442/0.5149, allocations: 82.98 MB / 407.9 MB, free: 12.34 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.06471/0.5797, allocations: 29.96 MB / 437.8 MB, free: 14.32 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003744/0.5835, allocations: 107.2 kB / 437.9 MB, free: 14.21 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004881/0.5884, allocations: 1.163 MB / 439.1 MB, free: 13.05 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02515/0.6136, allocations: 5.549 MB / 444.6 MB, free: 7.48 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02507/0.6387, allocations: 6.501 MB / 451.1 MB, free: 0.9727 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.008477/0.6472, allocations: 3.135 MB / 454.3 MB, free: 13.83 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002669/0.6499, allocations: 1.043 MB / 455.3 MB, free: 12.78 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00594/0.6559, allocations: 1.831 MB / 457.1 MB, free: 10.95 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0494/0.7054, allocations: 18.13 MB / 475.3 MB, free: 8.809 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3638/1.069, allocations: 8.949 MB / 484.2 MB, free: 32.57 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00466/1.074, allocations: 0.5683 MB / 484.8 MB, free: 32.57 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002069/1.076, allocations: 0.7429 MB / 485.5 MB, free: 32.57 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001995/1.078, allocations: 282.6 kB / 485.8 MB, free: 32.57 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01713/1.095, allocations: 6.163 MB / 492 MB, free: 32.17 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/1.095, allocations: 2.734 kB / 492 MB, free: 32.17 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.046e-06/1.095, allocations: 2.438 kB / 492 MB, free: 32.17 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001698/1.095, allocations: 0 / 492 MB, free: 32.17 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: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.01618/1.112, allocations: 3.349 MB / 495.3 MB, free: 30.62 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/1.112, allocations: 8.969 kB / 495.3 MB, free: 30.62 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008994/1.121, allocations: 0.8011 MB / 496.1 MB, free: 30.48 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005953/1.127, allocations: 1.575 MB / 497.7 MB, free: 30.08 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005042/1.127, allocations: 183.1 kB / 497.9 MB, free: 30.07 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001384/1.129, allocations: 203.3 kB / 498.1 MB, free: 30.07 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01374/1.143, allocations: 3.54 MB / 0.4899 GB, free: 29.64 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.404e-05/1.143, allocations: 10.66 kB / 0.4899 GB, free: 29.64 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000394/1.143, allocations: 85.33 kB / 0.49 GB, free: 29.64 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004083/1.144, allocations: 205.9 kB / 0.4902 GB, free: 29.64 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01298/1.157, allocations: 3.31 MB / 0.4934 GB, free: 29.62 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.02943/1.186, allocations: 15.35 MB / 0.5084 GB, free: 20.12 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009354/1.195, allocations: 2.774 MB / 0.5111 GB, free: 19.5 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06139/1.257, allocations: 18.92 MB / 0.5296 GB, free: 23.12 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007603/1.265, allocations: 1.667 MB / 0.5312 GB, free: 22.99 MB / 426.7 MB Notification: Performance of pre-optimization done (n=169): time 6.191e-06/1.265, allocations: 0 / 0.5312 GB, free: 22.99 MB / 426.7 MB Notification: Performance of matching and sorting (n=185): time 0.04103/1.306, allocations: 9.062 MB / 0.54 GB, free: 17.05 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001573/1.306, allocations: 182.9 kB / 0.5402 GB, free: 16.84 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002911/1.309, allocations: 1.326 MB / 0.5415 GB, free: 15.83 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006179/1.309, allocations: 59.83 kB / 0.5416 GB, free: 15.79 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001107/1.311, allocations: 1.004 MB / 0.5426 GB, free: 15.14 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001148/1.312, allocations: 0.6227 MB / 0.5432 GB, free: 14.61 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002722/1.312, allocations: 39.81 kB / 0.5432 GB, free: 14.6 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.00027/1.312, allocations: 393.2 kB / 0.5436 GB, free: 14.25 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004302/1.317, allocations: 1.112 MB / 0.5447 GB, free: 13.49 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005038/1.322, allocations: 1.641 MB / 0.5463 GB, free: 12.05 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004859/1.327, allocations: 1.381 MB / 0.5476 GB, free: 11.15 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.301e-05/1.327, allocations: 8 kB / 0.5476 GB, free: 11.14 MB / 426.7 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.01255/1.339, allocations: 3.316 MB / 0.5509 GB, free: 8.797 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003308/1.343, allocations: 5.972 MB / 0.5567 GB, free: 2.379 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.382e-05/1.343, allocations: 12.88 kB / 0.5567 GB, free: 2.367 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001632/1.344, allocations: 235.9 kB / 0.5569 GB, free: 2.172 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005239/1.35, allocations: 0.5484 MB / 0.5575 GB, free: 1.676 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002725/1.353, allocations: 2.435 MB / 0.5598 GB, free: 15.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004916/1.358, allocations: 308.9 kB / 0.5601 GB, free: 15.03 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006332/1.358, allocations: 106.3 kB / 0.5602 GB, free: 14.95 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/1.358, allocations: 4 kB / 0.5602 GB, free: 14.95 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01025/1.368, allocations: 3.072 MB / 0.5632 GB, free: 12.86 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.404e-05/1.369, allocations: 20 kB / 0.5633 GB, free: 12.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001242/1.37, allocations: 238.9 kB / 0.5635 GB, free: 12.65 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004546/1.374, allocations: 0.5422 MB / 0.564 GB, free: 12.16 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002412/1.377, allocations: 2.43 MB / 0.5664 GB, free: 9.789 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004733/1.382, allocations: 308.2 kB / 0.5667 GB, free: 9.52 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007373/1.382, allocations: 106.8 kB / 0.5668 GB, free: 9.438 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 28 (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,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 (263): * Single equations (assignments): 257 * 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.002494/1.385, allocations: 0.688 MB / 0.5675 GB, free: 8.961 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007322/1.386, allocations: 205.5 kB / 0.5677 GB, free: 8.758 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01938/1.405, allocations: 7.495 MB / 0.575 GB, free: 3.641 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001251/1.405, allocations: 85.12 kB / 0.5751 GB, free: 3.578 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.275e-05/1.405, allocations: 0 / 0.5751 GB, free: 3.578 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01496/1.42, allocations: 6.511 MB / 0.5814 GB, free: 15.04 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03123/1.452, allocations: 12.01 MB / 0.5931 GB, free: 6.621 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.396e-05/1.452, allocations: 7.953 kB / 0.5932 GB, free: 6.613 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003582/1.455, allocations: 428.5 kB / 0.5936 GB, free: 6.227 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002105/1.457, allocations: 344 kB / 0.5939 GB, free: 5.945 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005433/1.458, allocations: 70.53 kB / 0.594 GB, free: 5.906 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00246/1.46, allocations: 2.534 MB / 0.5964 GB, free: 3.477 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-05/1.461, allocations: 10.81 kB / 0.5964 GB, free: 3.469 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0207/1.481, allocations: 7.65 MB / 0.6039 GB, free: 13.87 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002537/1.484, allocations: 0.7262 MB / 0.6046 GB, free: 13.25 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000816/1.485, allocations: 54.11 kB / 0.6047 GB, free: 13.23 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00312/1.488, allocations: 217.4 kB / 0.6049 GB, free: 13.04 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005046/1.488, allocations: 174 kB / 0.605 GB, free: 12.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002647/1.489, allocations: 82.14 kB / 0.6051 GB, free: 12.83 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00253/1.491, allocations: 1.107 MB / 0.6062 GB, free: 11.98 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.82e-07/1.491, allocations: 0 / 0.6062 GB, free: 11.98 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01304/1.504, allocations: 2.504 MB / 0.6087 GB, free: 9.648 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 54 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse18.phase,$cse18.region,$cse20.region3boundary,$cse21.region3boundary,$cse22.phase,$cse22.region,$cse24.phase,$cse24.region,$cse25.region3boundary,$cse26.region3boundary,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.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,junctionIdeal.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 (212): * Single equations (assignments): 183 * 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.0152/1.519, allocations: 2.043 MB / 0.6106 GB, free: 7.863 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01686/1.536, allocations: 5.359 MB / 0.6159 GB, free: 4.102 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.75e-05/1.536, allocations: 4 kB / 0.6159 GB, free: 4.098 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007024/1.544, allocations: 2.697 MB / 0.6185 GB, free: 2.414 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009296/1.553, allocations: 0.9763 MB / 0.6195 GB, free: 1.609 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02359/1.577, allocations: 9.042 MB / 0.6283 GB, free: 9.719 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002975/1.58, allocations: 2.292 MB / 0.6305 GB, free: 7.484 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.009321/1.589, allocations: 2.548 MB / 0.633 GB, free: 4.953 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001183/1.59, allocations: 178.5 kB / 0.6332 GB, free: 4.789 MB / 490.7 MB Notification: Performance of SimCode: time 1.603e-06/1.59, allocations: 0 / 0.6332 GB, free: 4.789 MB / 490.7 MB Notification: Performance of Templates: time 0.4877/2.078, allocations: 76.35 MB / 0.7078 GB, free: 182.5 MB / 0.4948 GB