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.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2") Notification: Performance of loadModel(ModelicaTest): time 1.941/1.941, allocations: 209.3 MB / 223.8 MB, free: 432 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.117e-05/4.13e-05, allocations: 4 kB / 276.2 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4036/0.4037, allocations: 48.7 MB / 324.9 MB, free: 3.352 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2): time 0.1192/0.523, allocations: 74.96 MB / 399.8 MB, free: 4.383 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.06001/0.5831, allocations: 28.86 MB / 428.7 MB, free: 7.469 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003303/0.5864, allocations: 107.2 kB / 428.8 MB, free: 7.363 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00428/0.5907, allocations: 1.077 MB / 429.9 MB, free: 6.281 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02127/0.612, allocations: 5.344 MB / 435.2 MB, free: 0.9219 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02261/0.6347, allocations: 6.159 MB / 441.4 MB, free: 10.76 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.007521/0.6422, allocations: 2.849 MB / 444.2 MB, free: 7.906 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002236/0.6445, allocations: 0.9921 MB / 445.2 MB, free: 6.91 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005434/0.65, allocations: 1.675 MB / 446.9 MB, free: 5.23 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0449/0.6949, allocations: 18.04 MB / 464.9 MB, free: 3.176 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02661/0.7216, allocations: 8.819 MB / 473.8 MB, free: 10.35 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00449/0.7262, allocations: 0.5663 MB / 474.3 MB, free: 9.781 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001915/0.7281, allocations: 0.6817 MB / 475 MB, free: 9.098 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001141/0.7293, allocations: 252 kB / 475.3 MB, free: 8.852 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01643/0.7457, allocations: 5.815 MB / 481.1 MB, free: 3.023 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.7458, allocations: 0 / 481.1 MB, free: 3.023 MB / 410.7 MB Notification: Performance of FrontEnd: time 7.374e-06/0.7458, allocations: 4 kB / 481.1 MB, free: 3.02 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.739e-05/0.7459, allocations: 3.938 kB / 481.1 MB, free: 3.016 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: 463 * Number of variables: 463 Notification: Performance of Generate backend data structure: time 0.2851/1.031, allocations: 3.169 MB / 484.2 MB, free: 133.2 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/1.031, allocations: 9.656 kB / 484.3 MB, free: 133.2 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00756/1.039, allocations: 0.7137 MB / 485 MB, free: 133.1 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005197/1.044, allocations: 1.5 MB / 486.5 MB, free: 132.3 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002572/1.044, allocations: 161.3 kB / 486.6 MB, free: 132.3 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005608/1.045, allocations: 175.1 kB / 486.8 MB, free: 132.2 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01163/1.056, allocations: 3.213 MB / 490 MB, free: 131 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.282e-05/1.057, allocations: 8.219 kB / 490 MB, free: 131 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003261/1.057, allocations: 77.22 kB / 490.1 MB, free: 131 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000401/1.057, allocations: 166.6 kB / 490.3 MB, free: 131 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01263/1.07, allocations: 3.124 MB / 493.4 MB, free: 130 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.02373/1.094, allocations: 13.55 MB / 0.4951 GB, free: 119.2 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007807/1.102, allocations: 2.023 MB / 0.497 GB, free: 118.2 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05689/1.159, allocations: 19.02 MB / 0.5156 GB, free: 102.9 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005848/1.164, allocations: 1.558 MB / 0.5171 GB, free: 101.6 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00127/1.166, allocations: 158.4 kB / 0.5173 GB, free: 101.5 MB / 410.7 MB Notification: Performance of pre-optimization done (n=151): time 4.549e-06/1.166, allocations: 0 / 0.5173 GB, free: 101.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=163): time 0.03171/1.198, allocations: 8.22 MB / 0.5253 GB, free: 93.11 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.804e-05/1.198, allocations: 171.5 kB / 0.5255 GB, free: 92.91 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002184/1.2, allocations: 1.233 MB / 0.5267 GB, free: 91.67 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003018/1.2, allocations: 57.7 kB / 0.5267 GB, free: 91.61 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007595/1.201, allocations: 0.8969 MB / 0.5276 GB, free: 90.71 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005911/1.202, allocations: 0.5478 MB / 0.5281 GB, free: 90.16 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001874/1.202, allocations: 36 kB / 0.5282 GB, free: 90.13 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001554/1.202, allocations: 385.8 kB / 0.5285 GB, free: 89.75 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002846/1.205, allocations: 0.9954 MB / 0.5295 GB, free: 88.75 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003126/1.208, allocations: 1.471 MB / 0.5309 GB, free: 87.1 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003174/1.211, allocations: 1.251 MB / 0.5322 GB, free: 85.84 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-05/1.211, allocations: 4 kB / 0.5322 GB, free: 85.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.009351/1.22, allocations: 3.126 MB / 0.5352 GB, free: 82.68 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001211/1.222, allocations: 5.138 MB / 0.5402 GB, free: 77.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.01e-05/1.222, allocations: 12 kB / 0.5403 GB, free: 77.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004293/1.226, allocations: 0.5184 MB / 0.5408 GB, free: 76.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003658/1.23, allocations: 481.2 kB / 0.5412 GB, free: 76.24 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002187/1.232, allocations: 2.691 MB / 0.5438 GB, free: 73.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003743/1.236, allocations: 255.6 kB / 0.5441 GB, free: 73.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002841/1.236, allocations: 99.97 kB / 0.5442 GB, free: 73.1 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/1.236, allocations: 6.188 kB / 0.5442 GB, free: 73.09 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007508/1.244, allocations: 2.776 MB / 0.5469 GB, free: 70.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.569e-05/1.244, allocations: 15.95 kB / 0.5469 GB, free: 70.28 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008887/1.245, allocations: 207.2 kB / 0.5471 GB, free: 70.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003457/1.248, allocations: 479.3 kB / 0.5476 GB, free: 69.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001243/1.249, allocations: 1.881 MB / 0.5494 GB, free: 67.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003536/1.253, allocations: 259.6 kB / 0.5497 GB, free: 67.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002673/1.253, allocations: 95.97 kB / 0.5497 GB, free: 67.3 MB / 410.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: 27 (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_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.001458/1.255, allocations: 0.6298 MB / 0.5504 GB, free: 66.64 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004157/1.255, allocations: 185.8 kB / 0.5505 GB, free: 66.46 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01423/1.269, allocations: 7.47 MB / 0.5578 GB, free: 58.88 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.637e-05/1.269, allocations: 79.88 kB / 0.5579 GB, free: 58.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/1.269, allocations: 0 / 0.5579 GB, free: 58.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01175/1.281, allocations: 6.528 MB / 0.5643 GB, free: 52.09 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02068/1.302, allocations: 11.05 MB / 0.5751 GB, free: 40.87 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-05/1.302, allocations: 4 kB / 0.5751 GB, free: 40.86 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002525/1.305, allocations: 356.1 kB / 0.5754 GB, free: 40.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003743/1.308, allocations: 1.189 MB / 0.5766 GB, free: 39.32 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002674/1.309, allocations: 59.98 kB / 0.5766 GB, free: 39.26 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002718/1.311, allocations: 3.179 MB / 0.5797 GB, free: 35.97 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/1.311, allocations: 4.344 kB / 0.5797 GB, free: 35.97 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01319/1.325, allocations: 7.365 MB / 0.5869 GB, free: 28.25 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001693/1.326, allocations: 0.6758 MB / 0.5876 GB, free: 27.55 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005175/1.327, allocations: 51.98 kB / 0.5876 GB, free: 27.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002314/1.329, allocations: 183.6 kB / 0.5878 GB, free: 27.32 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003531/1.33, allocations: 145.7 kB / 0.588 GB, free: 27.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002043/1.33, allocations: 74 kB / 0.588 GB, free: 27.11 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001873/1.332, allocations: 1.043 MB / 0.5891 GB, free: 26.05 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.21e-07/1.332, allocations: 0 / 0.5891 GB, free: 26.05 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00758/1.339, allocations: 2.335 MB / 0.5913 GB, free: 23.88 MB / 410.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: 53 ($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,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 (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.00861/1.348, allocations: 1.99 MB / 0.5933 GB, free: 22.22 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01174/1.36, allocations: 4.831 MB / 0.598 GB, free: 17.34 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.175e-05/1.36, allocations: 0 / 0.598 GB, free: 17.34 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005224/1.365, allocations: 2.445 MB / 0.6004 GB, free: 14.87 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006961/1.372, allocations: 0.8486 MB / 0.6012 GB, free: 14.02 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01431/1.386, allocations: 8.306 MB / 0.6093 GB, free: 5.719 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001838/1.388, allocations: 2.172 MB / 0.6114 GB, free: 3.516 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.006973/1.395, allocations: 2.418 MB / 0.6138 GB, free: 1.09 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007119/1.396, allocations: 151.4 kB / 0.6139 GB, free: 0.9414 MB / 410.7 MB Notification: Performance of SimCode: time 1.273e-06/1.396, allocations: 4 kB / 0.614 GB, free: 0.9375 MB / 410.7 MB Notification: Performance of Templates: time 0.4409/1.837, allocations: 72.2 MB / 0.6845 GB, free: 103.9 MB / 426.7 MB