Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,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|valve1.filter.x.1.|valve1.filter.x.2.|valve2.filter.x.1.|valve2.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1") Notification: Performance of loadModel(ModelicaTest): time 1.963/1.963, allocations: 209.3 MB / 224.4 MB, free: 0.5195 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.328e-05/3.307e-05, allocations: 4 kB / 276.2 MB, free: 15.85 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3595/0.3596, allocations: 48.69 MB / 324.9 MB, free: 2.879 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1): time 0.1295/0.4892, allocations: 74.96 MB / 399.8 MB, free: 4.477 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.06567/0.5549, allocations: 29.57 MB / 429.4 MB, free: 6.852 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003665/0.5586, allocations: 95.19 kB / 429.5 MB, free: 6.758 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004693/0.5634, allocations: 1.077 MB / 430.5 MB, free: 5.676 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02285/0.5863, allocations: 5.141 MB / 435.7 MB, free: 0.5195 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02535/0.6116, allocations: 6.473 MB / 442.2 MB, free: 10.04 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.008457/0.6201, allocations: 2.99 MB / 445.2 MB, free: 7.043 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002641/0.6229, allocations: 1.04 MB / 446.2 MB, free: 6 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.04858/0.6715, allocations: 17.94 MB / 464.1 MB, free: 4.051 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04829/0.7198, allocations: 18.11 MB / 482.2 MB, free: 1.926 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3552/1.075, allocations: 9.27 MB / 491.5 MB, free: 44.64 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005581/1.081, allocations: 0.5724 MB / 492.1 MB, free: 44.64 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001975/1.083, allocations: 0.7441 MB / 492.8 MB, free: 44.64 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00165/1.084, allocations: 269.8 kB / 493.1 MB, free: 44.64 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01694/1.101, allocations: 6.203 MB / 499.3 MB, free: 44.23 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/1.101, allocations: 0 / 499.3 MB, free: 44.23 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.096e-06/1.101, allocations: 2.094 kB / 499.3 MB, free: 44.23 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000138/1.102, allocations: 0 / 499.3 MB, free: 44.23 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.01547/1.117, allocations: 3.437 MB / 0.491 GB, free: 42.67 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/1.117, allocations: 9.188 kB / 0.491 GB, free: 42.67 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00812/1.125, allocations: 0.7993 MB / 0.4917 GB, free: 42.53 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004462/1.13, allocations: 1.55 MB / 0.4933 GB, free: 42.13 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000245/1.13, allocations: 173.6 kB / 0.4934 GB, free: 42.13 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006755/1.131, allocations: 199.5 kB / 0.4936 GB, free: 42.12 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01177/1.143, allocations: 3.577 MB / 0.4971 GB, free: 41.71 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.557e-05/1.143, allocations: 6.875 kB / 0.4971 GB, free: 41.71 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003733/1.143, allocations: 82.7 kB / 0.4972 GB, free: 41.71 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000399/1.144, allocations: 201.8 kB / 0.4974 GB, free: 41.7 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01348/1.157, allocations: 3.49 MB / 0.5008 GB, free: 41.69 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.02992/1.187, allocations: 14.6 MB / 0.5151 GB, free: 33.01 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00847/1.195, allocations: 2.19 MB / 0.5172 GB, free: 32.56 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06111/1.257, allocations: 19.08 MB / 0.5358 GB, free: 12.03 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0089/1.266, allocations: 1.636 MB / 0.5374 GB, free: 10.76 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001528/1.267, allocations: 171.3 kB / 0.5376 GB, free: 10.62 MB / 410.7 MB Notification: Performance of pre-optimization done (n=158): time 6.712e-06/1.267, allocations: 0 / 0.5376 GB, free: 10.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=170): time 0.03996/1.307, allocations: 9.067 MB / 0.5464 GB, free: 3.543 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001218/1.307, allocations: 333.7 kB / 0.5468 GB, free: 3.145 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002863/1.31, allocations: 1.434 MB / 0.5482 GB, free: 2.066 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005273/1.311, allocations: 56.02 kB / 0.5482 GB, free: 2.027 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008701/1.312, allocations: 0.9589 MB / 0.5491 GB, free: 1.391 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009059/1.313, allocations: 0.5732 MB / 0.5497 GB, free: 0.8984 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002332/1.313, allocations: 42.31 kB / 0.5497 GB, free: 0.8906 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000152/1.313, allocations: 395.2 kB / 0.5501 GB, free: 0.5273 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003605/1.317, allocations: 1.127 MB / 0.5512 GB, free: 15.76 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004559/1.321, allocations: 1.639 MB / 0.5528 GB, free: 14.32 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004609/1.326, allocations: 1.396 MB / 0.5542 GB, free: 13.41 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.348e-05/1.326, allocations: 4 kB / 0.5542 GB, free: 13.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=268) (initialization): time 0.01146/1.338, allocations: 3.384 MB / 0.5575 GB, free: 11.06 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002339/1.34, allocations: 5.389 MB / 0.5628 GB, free: 5.359 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.475e-05/1.34, allocations: 16 kB / 0.5628 GB, free: 5.344 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008661/1.349, allocations: 0.9688 MB / 0.5637 GB, free: 4.484 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003989/1.353, allocations: 486.3 kB / 0.5642 GB, free: 4.055 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004592/1.357, allocations: 3.15 MB / 0.5673 GB, free: 1.195 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003806/1.361, allocations: 233 kB / 0.5675 GB, free: 1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005605/1.362, allocations: 103.8 kB / 0.5676 GB, free: 0.918 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/1.362, allocations: 4 kB / 0.5676 GB, free: 0.9141 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01215/1.374, allocations: 3.199 MB / 0.5707 GB, free: 14.73 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.891e-05/1.374, allocations: 16 kB / 0.5707 GB, free: 14.71 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003283/1.378, allocations: 363.6 kB / 0.5711 GB, free: 14.42 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006872/1.384, allocations: 0.499 MB / 0.5716 GB, free: 13.97 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006142/1.391, allocations: 4.145 MB / 0.5756 GB, free: 10.17 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003056/1.394, allocations: 223 kB / 0.5758 GB, free: 9.984 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000473/1.394, allocations: 102.8 kB / 0.5759 GB, free: 9.902 MB / 442.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,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,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.002174/1.396, allocations: 0.6893 MB / 0.5766 GB, free: 9.426 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006776/1.397, allocations: 209.5 kB / 0.5768 GB, free: 9.219 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01826/1.415, allocations: 7.817 MB / 0.5844 GB, free: 3.953 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000123/1.416, allocations: 80.44 kB / 0.5845 GB, free: 3.895 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.215e-06/1.416, allocations: 7.922 kB / 0.5845 GB, free: 3.887 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01488/1.431, allocations: 6.852 MB / 0.5912 GB, free: 15.19 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02788/1.458, allocations: 10.77 MB / 0.6017 GB, free: 8.156 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.266e-05/1.459, allocations: 3.938 kB / 0.6017 GB, free: 8.156 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003011/1.462, allocations: 340.9 kB / 0.602 GB, free: 7.848 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008219/1.47, allocations: 2.1 MB / 0.6041 GB, free: 6.012 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005011/1.47, allocations: 62.66 kB / 0.6042 GB, free: 5.98 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005304/1.476, allocations: 4.088 MB / 0.6082 GB, free: 2.617 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.907e-06/1.476, allocations: 3.953 kB / 0.6082 GB, free: 2.613 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01873/1.494, allocations: 7.871 MB / 0.6158 GB, free: 12.93 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002378/1.497, allocations: 0.7184 MB / 0.6165 GB, free: 12.18 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008739/1.498, allocations: 51.95 kB / 0.6166 GB, free: 12.13 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002915/1.501, allocations: 187.5 kB / 0.6168 GB, free: 11.95 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005147/1.501, allocations: 140.4 kB / 0.6169 GB, free: 11.81 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002406/1.502, allocations: 67.98 kB / 0.617 GB, free: 11.75 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002914/1.505, allocations: 1.197 MB / 0.6181 GB, free: 10.53 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.262e-06/1.505, allocations: 0 / 0.6181 GB, free: 10.53 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01128/1.516, allocations: 2.44 MB / 0.6205 GB, free: 8.09 MB / 474.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,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.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.01191/1.528, allocations: 1.968 MB / 0.6224 GB, free: 6.285 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01681/1.545, allocations: 5.478 MB / 0.6278 GB, free: 0.8047 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/1.545, allocations: 0 / 0.6278 GB, free: 0.8047 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00684/1.552, allocations: 2.4 MB / 0.6301 GB, free: 14.41 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007846/1.559, allocations: 0.8792 MB / 0.631 GB, free: 13.54 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01978/1.579, allocations: 8.739 MB / 0.6395 GB, free: 4.871 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002957/1.582, allocations: 2.248 MB / 0.6417 GB, free: 2.594 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001237/1.584, allocations: 187.4 kB / 0.6419 GB, free: 2.41 MB / 490.7 MB Notification: Performance of SimCode: time 1.133e-06/1.584, allocations: 0 / 0.6419 GB, free: 2.41 MB / 490.7 MB Notification: Performance of Templates: time 0.4717/2.055, allocations: 111.3 MB / 0.7506 GB, free: 144.5 MB / 0.4948 GB