Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,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|valveIncompressible.filter.x.1.|valveIncompressible.filter.x.2.|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12") Notification: Performance of loadModel(ModelicaTest): time 2.441/2.441, allocations: 234.9 MB / 250.1 MB, free: 9.941 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.611e-05/3.611e-05, allocations: 8 kB / 308 MB, free: 15.93 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3854/0.3855, allocations: 54.86 MB / 362.8 MB, free: 12.08 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12): time 0.1302/0.5157, allocations: 75.55 MB / 438.4 MB, free: 2.141 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.06396/0.5798, allocations: 30.4 MB / 468.8 MB, free: 3.668 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003476/0.5833, allocations: 103.2 kB / 468.9 MB, free: 3.566 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00447/0.5878, allocations: 1.073 MB / 470 MB, free: 2.488 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02195/0.6098, allocations: 5.46 MB / 475.4 MB, free: 13.01 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02433/0.6342, allocations: 6.37 MB / 481.8 MB, free: 6.637 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.008285/0.6425, allocations: 3.056 MB / 484.9 MB, free: 3.578 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002586/0.6451, allocations: 1.063 MB / 485.9 MB, free: 2.516 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005748/0.6509, allocations: 1.753 MB / 487.7 MB, free: 0.7578 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.4546/1.106, allocations: 18.31 MB / 0.4941 GB, free: 25.88 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02682/1.132, allocations: 9.621 MB / 0.5035 GB, free: 25.88 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005222/1.138, allocations: 0.5918 MB / 0.5041 GB, free: 25.88 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001944/1.14, allocations: 0.7544 MB / 0.5048 GB, free: 25.88 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00151/1.141, allocations: 274.1 kB / 0.5051 GB, free: 25.88 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01655/1.158, allocations: 6.418 MB / 0.5114 GB, free: 25.46 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/1.158, allocations: 0 / 0.5114 GB, free: 25.46 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.755e-06/1.158, allocations: 0 / 0.5114 GB, free: 25.46 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001555/1.158, allocations: 0 / 0.5114 GB, free: 25.46 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.01556/1.174, allocations: 3.583 MB / 0.5149 GB, free: 23.83 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/1.174, allocations: 9.406 kB / 0.5149 GB, free: 23.83 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008288/1.182, allocations: 0.8148 MB / 0.5157 GB, free: 23.69 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005028/1.187, allocations: 1.639 MB / 0.5173 GB, free: 23.27 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003057/1.188, allocations: 172.3 kB / 0.5174 GB, free: 23.27 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008816/1.188, allocations: 191.5 kB / 0.5176 GB, free: 23.27 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01265/1.201, allocations: 3.584 MB / 0.5211 GB, free: 22.83 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.23e-05/1.201, allocations: 9.344 kB / 0.5211 GB, free: 22.83 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003929/1.202, allocations: 86.14 kB / 0.5212 GB, free: 22.82 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004073/1.202, allocations: 198 kB / 0.5214 GB, free: 22.82 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01353/1.216, allocations: 3.498 MB / 0.5248 GB, free: 22.79 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.03038/1.246, allocations: 14.66 MB / 0.5391 GB, free: 13.05 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008601/1.255, allocations: 2.182 MB / 0.5413 GB, free: 11.71 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06155/1.316, allocations: 19.11 MB / 0.5599 GB, free: 6.715 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007048/1.323, allocations: 1.649 MB / 0.5615 GB, free: 5.434 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001627/1.325, allocations: 172.4 kB / 0.5617 GB, free: 5.289 MB / 442.7 MB Notification: Performance of pre-optimization done (n=162): time 8.075e-06/1.325, allocations: 0 / 0.5617 GB, free: 5.289 MB / 442.7 MB Notification: Performance of matching and sorting (n=174): time 0.04583/1.371, allocations: 9.109 MB / 0.5706 GB, free: 14.18 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002495/1.371, allocations: 348.4 kB / 0.5709 GB, free: 13.78 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003429/1.375, allocations: 1.456 MB / 0.5723 GB, free: 12.68 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005391/1.375, allocations: 61.81 kB / 0.5724 GB, free: 12.64 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001167/1.377, allocations: 0.9485 MB / 0.5733 GB, free: 12.01 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001191/1.378, allocations: 0.5895 MB / 0.5739 GB, free: 11.51 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002339/1.378, allocations: 42.28 kB / 0.5739 GB, free: 11.5 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002635/1.378, allocations: 397.2 kB / 0.5743 GB, free: 11.14 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003894/1.382, allocations: 1.134 MB / 0.5754 GB, free: 10.36 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004614/1.387, allocations: 1.653 MB / 0.577 GB, free: 8.914 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006117/1.393, allocations: 1.404 MB / 0.5784 GB, free: 8 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.715e-05/1.393, allocations: 7.953 kB / 0.5784 GB, free: 7.992 MB / 458.7 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.01527/1.408, allocations: 3.375 MB / 0.5817 GB, free: 5.664 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002685/1.411, allocations: 5.392 MB / 0.587 GB, free: 15.96 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.976e-05/1.411, allocations: 16 kB / 0.587 GB, free: 15.95 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008626/1.42, allocations: 0.9694 MB / 0.5879 GB, free: 15.09 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004059/1.424, allocations: 498 kB / 0.5884 GB, free: 14.65 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004752/1.429, allocations: 3.143 MB / 0.5915 GB, free: 11.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003901/1.433, allocations: 239.6 kB / 0.5917 GB, free: 11.59 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000584/1.433, allocations: 103.9 kB / 0.5918 GB, free: 11.51 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/1.433, allocations: 4 kB / 0.5918 GB, free: 11.51 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01135/1.445, allocations: 3.193 MB / 0.5949 GB, free: 9.324 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.511e-05/1.445, allocations: 16 kB / 0.595 GB, free: 9.309 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001964/1.447, allocations: 362.2 kB / 0.5953 GB, free: 9.02 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004199/1.451, allocations: 0.4979 MB / 0.5958 GB, free: 8.57 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006306/1.458, allocations: 4.137 MB / 0.5998 GB, free: 4.785 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003083/1.461, allocations: 233.8 kB / 0.6 GB, free: 4.59 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000472/1.461, allocations: 100.2 kB / 0.6001 GB, free: 4.512 MB / 474.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: 29 (pipe3.state_a.phase,pipe2.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,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_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.002218/1.463, allocations: 0.6969 MB / 0.6008 GB, free: 4.027 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007088/1.464, allocations: 213.4 kB / 0.601 GB, free: 3.816 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01881/1.483, allocations: 7.821 MB / 0.6087 GB, free: 14.55 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001163/1.483, allocations: 79.69 kB / 0.6087 GB, free: 14.5 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/1.483, allocations: 0 / 0.6087 GB, free: 14.5 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01488/1.498, allocations: 6.861 MB / 0.6154 GB, free: 9.797 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02393/1.522, allocations: 10.79 MB / 0.626 GB, free: 2.762 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.931e-05/1.522, allocations: 4 kB / 0.626 GB, free: 2.758 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002838/1.525, allocations: 338.3 kB / 0.6263 GB, free: 2.453 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008039/1.533, allocations: 2.143 MB / 0.6284 GB, free: 0.5625 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005163/1.534, allocations: 66.83 kB / 0.6285 GB, free: 0.5273 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005448/1.539, allocations: 4.079 MB / 0.6324 GB, free: 13.17 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.646e-06/1.539, allocations: 4.094 kB / 0.6325 GB, free: 13.17 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01808/1.557, allocations: 7.885 MB / 0.6402 GB, free: 6.965 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002372/1.56, allocations: 0.7262 MB / 0.6409 GB, free: 6.215 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008775/1.561, allocations: 55.97 kB / 0.6409 GB, free: 6.16 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003825/1.564, allocations: 187.6 kB / 0.6411 GB, free: 5.977 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007933/1.565, allocations: 137.8 kB / 0.6412 GB, free: 5.84 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003822/1.566, allocations: 67.97 kB / 0.6413 GB, free: 5.773 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004318/1.57, allocations: 1.209 MB / 0.6425 GB, free: 4.547 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.332e-06/1.57, allocations: 4 kB / 0.6425 GB, free: 4.543 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01657/1.587, allocations: 2.581 MB / 0.645 GB, free: 1.961 MB / 0.4948 GB 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,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],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,$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,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 (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.0176/1.604, allocations: 2.135 MB / 0.6471 GB, free: 16 kB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02604/1.63, allocations: 5.603 MB / 0.6525 GB, free: 10.42 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.091e-05/1.63, allocations: 0 / 0.6525 GB, free: 10.42 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01059/1.641, allocations: 2.453 MB / 0.6549 GB, free: 7.969 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0123/1.653, allocations: 0.8879 MB / 0.6558 GB, free: 7.09 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03223/1.686, allocations: 8.831 MB / 0.6644 GB, free: 14.32 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005489/1.691, allocations: 2.252 MB / 0.6666 GB, free: 12.04 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001873/1.693, allocations: 195.4 kB / 0.6668 GB, free: 11.85 MB / 0.5261 GB Notification: Performance of SimCode: time 2.184e-06/1.693, allocations: 0 / 0.6668 GB, free: 11.85 MB / 0.5261 GB Notification: Performance of Templates: time 0.5343/2.228, allocations: 113.6 MB / 0.7778 GB, free: 164.9 MB / 0.5417 GB