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_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2") Notification: Performance of loadModel(ModelicaTest): time 1.92/1.92, allocations: 209.3 MB / 224.4 MB, free: 0.668 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.976e-05/2.966e-05, allocations: 0 / 276.1 MB, free: 15.89 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3565/0.3566, allocations: 48.7 MB / 324.8 MB, free: 2.879 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2): time 0.1284/0.4851, allocations: 74.97 MB / 399.8 MB, free: 4.473 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.06211/0.5472, allocations: 28.84 MB / 428.7 MB, free: 7.574 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003731/0.551, allocations: 103.2 kB / 428.8 MB, free: 7.473 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004594/0.5557, allocations: 1.077 MB / 429.8 MB, free: 6.391 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02264/0.5783, allocations: 5.347 MB / 435.2 MB, free: 1.027 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02372/0.6021, allocations: 6.171 MB / 441.4 MB, free: 10.86 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.008065/0.6102, allocations: 2.845 MB / 444.2 MB, free: 8.004 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00241/0.6127, allocations: 0.9999 MB / 445.2 MB, free: 7 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00545/0.6181, allocations: 1.675 MB / 446.9 MB, free: 5.32 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04431/0.6625, allocations: 18.04 MB / 464.9 MB, free: 3.273 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02659/0.6892, allocations: 8.823 MB / 473.7 MB, free: 10.44 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004491/0.6937, allocations: 0.5586 MB / 474.3 MB, free: 9.883 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001758/0.6955, allocations: 0.6856 MB / 475 MB, free: 9.195 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001202/0.6967, allocations: 252 kB / 475.2 MB, free: 8.949 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01597/0.7127, allocations: 5.819 MB / 481 MB, free: 3.117 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.7128, allocations: 0 / 481 MB, free: 3.117 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.7128, allocations: 7.938 kB / 481 MB, free: 3.109 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001094/0.7129, allocations: 0 / 481 MB, free: 3.109 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.2792/0.992, allocations: 3.165 MB / 484.2 MB, free: 132.7 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.99e-05/0.9921, allocations: 8.938 kB / 484.2 MB, free: 132.7 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00764/0.9998, allocations: 0.7158 MB / 484.9 MB, free: 132.6 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004866/1.005, allocations: 1.499 MB / 486.4 MB, free: 132 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002732/1.005, allocations: 160.6 kB / 486.6 MB, free: 131.9 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006622/1.006, allocations: 175.9 kB / 486.8 MB, free: 131.9 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01186/1.018, allocations: 3.213 MB / 490 MB, free: 130.7 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.887e-05/1.018, allocations: 8.484 kB / 490 MB, free: 130.7 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003387/1.018, allocations: 75.66 kB / 490.1 MB, free: 130.6 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004249/1.018, allocations: 166.9 kB / 490.2 MB, free: 130.6 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0129/1.031, allocations: 3.124 MB / 493.3 MB, free: 129.7 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.02465/1.056, allocations: 13.56 MB / 0.495 GB, free: 118.9 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007933/1.064, allocations: 2.025 MB / 0.497 GB, free: 118 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06134/1.125, allocations: 19.02 MB / 0.5156 GB, free: 102.6 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006249/1.132, allocations: 1.553 MB / 0.5171 GB, free: 101.7 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001323/1.133, allocations: 159.7 kB / 0.5172 GB, free: 101.5 MB / 410.7 MB Notification: Performance of pre-optimization done (n=151): time 7.484e-06/1.133, allocations: 3.797 kB / 0.5172 GB, free: 101.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=163): time 0.0343/1.167, allocations: 8.219 MB / 0.5253 GB, free: 93.19 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.957e-05/1.168, allocations: 175.5 kB / 0.5254 GB, free: 92.98 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002462/1.17, allocations: 1.229 MB / 0.5266 GB, free: 91.75 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005315/1.171, allocations: 61.7 kB / 0.5267 GB, free: 91.68 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000755/1.171, allocations: 0.8506 MB / 0.5275 GB, free: 90.82 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007819/1.172, allocations: 0.5447 MB / 0.5281 GB, free: 90.29 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001908/1.172, allocations: 40 kB / 0.5281 GB, free: 90.25 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001345/1.173, allocations: 386.7 kB / 0.5285 GB, free: 89.86 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00313/1.176, allocations: 0.9972 MB / 0.5294 GB, free: 88.86 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003647/1.179, allocations: 1.471 MB / 0.5309 GB, free: 87.21 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003729/1.183, allocations: 1.251 MB / 0.5321 GB, free: 85.95 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.802e-05/1.183, allocations: 4 kB / 0.5321 GB, free: 85.95 MB / 410.7 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.0102/1.194, allocations: 3.022 MB / 0.5351 GB, free: 82.89 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00108/1.195, allocations: 5.027 MB / 0.54 GB, free: 77.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.025e-05/1.195, allocations: 16 kB / 0.54 GB, free: 77.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004257/1.199, allocations: 0.5079 MB / 0.5405 GB, free: 76.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003689/1.203, allocations: 479.2 kB / 0.5409 GB, free: 76.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002484/1.205, allocations: 2.697 MB / 0.5436 GB, free: 73.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003978/1.209, allocations: 259.6 kB / 0.5438 GB, free: 73.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004998/1.21, allocations: 95.97 kB / 0.5439 GB, free: 73.32 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/1.21, allocations: 4 kB / 0.5439 GB, free: 73.31 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008225/1.218, allocations: 2.776 MB / 0.5466 GB, free: 70.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.673e-05/1.218, allocations: 19.95 kB / 0.5466 GB, free: 70.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008899/1.219, allocations: 199.1 kB / 0.5468 GB, free: 70.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003655/1.223, allocations: 483.3 kB / 0.5473 GB, free: 69.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001296/1.224, allocations: 1.885 MB / 0.5491 GB, free: 67.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003092/1.227, allocations: 255.8 kB / 0.5494 GB, free: 67.61 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004043/1.228, allocations: 95.97 kB / 0.5495 GB, free: 67.52 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.001582/1.229, allocations: 0.6306 MB / 0.5501 GB, free: 66.86 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005514/1.23, allocations: 189.4 kB / 0.5503 GB, free: 66.68 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0151/1.245, allocations: 7.453 MB / 0.5575 GB, free: 59.11 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.688e-05/1.245, allocations: 83.2 kB / 0.5576 GB, free: 59.03 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.116e-05/1.245, allocations: 0 / 0.5576 GB, free: 59.03 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01235/1.257, allocations: 6.53 MB / 0.564 GB, free: 52.32 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02213/1.28, allocations: 11.05 MB / 0.5748 GB, free: 41.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-05/1.28, allocations: 4 kB / 0.5748 GB, free: 41.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002634/1.282, allocations: 363.9 kB / 0.5751 GB, free: 40.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003783/1.286, allocations: 1.181 MB / 0.5763 GB, free: 39.54 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004046/1.287, allocations: 59.97 kB / 0.5763 GB, free: 39.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002765/1.289, allocations: 3.175 MB / 0.5794 GB, free: 36.2 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.723e-06/1.289, allocations: 4 kB / 0.5795 GB, free: 36.2 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01373/1.303, allocations: 7.366 MB / 0.5866 GB, free: 28.48 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001765/1.305, allocations: 0.6758 MB / 0.5873 GB, free: 27.78 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006277/1.306, allocations: 55.92 kB / 0.5874 GB, free: 27.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002409/1.308, allocations: 183.6 kB / 0.5875 GB, free: 27.55 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003497/1.308, allocations: 145.7 kB / 0.5877 GB, free: 27.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001978/1.309, allocations: 71.97 kB / 0.5877 GB, free: 27.34 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00191/1.311, allocations: 1.047 MB / 0.5888 GB, free: 26.27 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.2e-07/1.311, allocations: 0 / 0.5888 GB, free: 26.27 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.008357/1.319, allocations: 2.331 MB / 0.591 GB, free: 24.11 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.009282/1.328, allocations: 1.989 MB / 0.593 GB, free: 22.45 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01227/1.341, allocations: 4.776 MB / 0.5976 GB, free: 17.62 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.251e-05/1.341, allocations: 5.688 kB / 0.5977 GB, free: 17.62 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005321/1.346, allocations: 2.445 MB / 0.6 GB, free: 15.15 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007105/1.353, allocations: 0.8404 MB / 0.6009 GB, free: 14.31 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0153/1.369, allocations: 8.337 MB / 0.609 GB, free: 5.973 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001827/1.37, allocations: 2.13 MB / 0.6111 GB, free: 3.812 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001177/1.372, allocations: 183.4 kB / 0.6113 GB, free: 3.633 MB / 410.7 MB Notification: Performance of SimCode: time 1.844e-06/1.372, allocations: 3.938 kB / 0.6113 GB, free: 3.629 MB / 410.7 MB Notification: Performance of Templates: time 0.4478/1.819, allocations: 105.6 MB / 0.7143 GB, free: 71.93 MB / 426.7 MB