Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,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|splitter.medium.h|splitter.medium.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.BranchingPipes4") Notification: Performance of loadModel(ModelicaTest): time 1.915/1.915, allocations: 209.3 MB / 224.4 MB, free: 0.5156 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.02e-05/3.015e-05, allocations: 0 / 276.1 MB, free: 15.87 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3508/0.3508, allocations: 48.71 MB / 324.8 MB, free: 2.883 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4): time 0.1269/0.4778, allocations: 82.98 MB / 407.8 MB, free: 12.43 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.06547/0.5433, allocations: 31.72 MB / 439.5 MB, free: 12.66 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003563/0.5469, allocations: 111.2 kB / 439.7 MB, free: 12.55 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004751/0.5517, allocations: 1.155 MB / 440.8 MB, free: 11.39 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02302/0.5748, allocations: 5.658 MB / 446.5 MB, free: 5.711 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02518/0.6, allocations: 6.654 MB / 453.1 MB, free: 15.05 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.008642/0.6087, allocations: 3.097 MB / 456.2 MB, free: 11.95 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002583/0.6113, allocations: 1.028 MB / 457.2 MB, free: 10.91 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005934/0.6173, allocations: 1.8 MB / 459 MB, free: 9.109 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04593/0.6633, allocations: 18.12 MB / 477.2 MB, free: 6.977 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3489/1.012, allocations: 9.482 MB / 486.6 MB, free: 31.95 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005005/1.017, allocations: 0.576 MB / 487.2 MB, free: 31.95 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001988/1.019, allocations: 0.7362 MB / 488 MB, free: 31.95 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00176/1.021, allocations: 280.5 kB / 488.2 MB, free: 31.95 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01775/1.039, allocations: 6.347 MB / 494.6 MB, free: 31.53 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/1.039, allocations: 0 / 494.6 MB, free: 31.53 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.885e-06/1.039, allocations: 1.906 kB / 494.6 MB, free: 31.53 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001469/1.039, allocations: 0 / 494.6 MB, free: 31.53 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.01559/1.055, allocations: 3.406 MB / 498 MB, free: 29.94 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/1.055, allocations: 13 kB / 498 MB, free: 29.94 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008835/1.064, allocations: 0.8286 MB / 498.8 MB, free: 29.8 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005177/1.069, allocations: 1.585 MB / 0.4887 GB, free: 29.39 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002678/1.069, allocations: 182 kB / 0.4889 GB, free: 29.39 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007252/1.07, allocations: 196.4 kB / 0.489 GB, free: 29.39 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01227/1.082, allocations: 3.565 MB / 0.4925 GB, free: 28.99 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.144e-05/1.082, allocations: 15.44 kB / 0.4925 GB, free: 28.99 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003843/1.083, allocations: 86.38 kB / 0.4926 GB, free: 28.99 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004005/1.083, allocations: 200 kB / 0.4928 GB, free: 28.99 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01321/1.096, allocations: 3.403 MB / 0.4961 GB, free: 28.97 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.02906/1.125, allocations: 15.27 MB / 0.5111 GB, free: 19.61 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008989/1.135, allocations: 2.249 MB / 0.5132 GB, free: 19.55 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05859/1.193, allocations: 19.09 MB / 0.5319 GB, free: 6.512 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007184/1.2, allocations: 1.655 MB / 0.5335 GB, free: 5.215 MB / 410.7 MB Notification: Performance of pre-optimization done (n=159): time 7.895e-06/1.2, allocations: 6.188 kB / 0.5335 GB, free: 5.211 MB / 410.7 MB Notification: Performance of matching and sorting (n=175): time 0.04156/1.242, allocations: 8.892 MB / 0.5422 GB, free: 14.31 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001405/1.242, allocations: 183.5 kB / 0.5424 GB, free: 14.1 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003163/1.245, allocations: 1.404 MB / 0.5437 GB, free: 13.04 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005623/1.246, allocations: 57.64 kB / 0.5438 GB, free: 13 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001076/1.247, allocations: 0.9633 MB / 0.5447 GB, free: 12.36 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001113/1.248, allocations: 0.5827 MB / 0.5453 GB, free: 11.86 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000244/1.249, allocations: 44.44 kB / 0.5453 GB, free: 11.85 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002354/1.249, allocations: 397.4 kB / 0.5457 GB, free: 11.49 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00399/1.253, allocations: 1.098 MB / 0.5468 GB, free: 10.74 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004606/1.257, allocations: 1.59 MB / 0.5484 GB, free: 9.336 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004567/1.262, allocations: 1.352 MB / 0.5497 GB, free: 8.457 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.208e-05/1.262, allocations: 4 kB / 0.5497 GB, free: 8.453 MB / 426.7 MB Notification: Performance of matching and sorting (n=268) (initialization): time 0.01135/1.273, allocations: 3.172 MB / 0.5528 GB, free: 6.254 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002622/1.276, allocations: 5.805 MB / 0.5584 GB, free: 100 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.938e-05/1.276, allocations: 16 kB / 0.5585 GB, free: 84 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001447/1.278, allocations: 236.1 kB / 0.5587 GB, free: 15.88 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004576/1.282, allocations: 0.5334 MB / 0.5592 GB, free: 15.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002368/1.285, allocations: 2.439 MB / 0.5616 GB, free: 13.02 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004306/1.289, allocations: 277.4 kB / 0.5618 GB, free: 12.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006316/1.29, allocations: 104.2 kB / 0.5619 GB, free: 12.7 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/1.29, allocations: 4 kB / 0.562 GB, free: 12.7 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01069/1.3, allocations: 3.025 MB / 0.5649 GB, free: 10.64 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-05/1.301, allocations: 15.98 kB / 0.5649 GB, free: 10.62 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001264/1.302, allocations: 239 kB / 0.5652 GB, free: 10.43 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004381/1.306, allocations: 0.5241 MB / 0.5657 GB, free: 9.957 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002229/1.309, allocations: 2.444 MB / 0.568 GB, free: 7.574 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003273/1.312, allocations: 270.3 kB / 0.5683 GB, free: 7.344 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003152/1.312, allocations: 99.53 kB / 0.5684 GB, free: 7.266 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 (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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,splitter.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (256): * Single equations (assignments): 250 * 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.001957/1.314, allocations: 0.6872 MB / 0.5691 GB, free: 6.789 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006708/1.315, allocations: 201.5 kB / 0.5693 GB, free: 6.59 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01727/1.332, allocations: 7.557 MB / 0.5766 GB, free: 1.434 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001068/1.332, allocations: 84.8 kB / 0.5767 GB, free: 1.371 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.141e-05/1.332, allocations: 0 / 0.5767 GB, free: 1.371 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01426/1.347, allocations: 6.595 MB / 0.5832 GB, free: 12.79 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02477/1.371, allocations: 10.71 MB / 0.5936 GB, free: 5.75 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.183e-05/1.371, allocations: 7.672 kB / 0.5936 GB, free: 5.746 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003471/1.375, allocations: 412 kB / 0.594 GB, free: 5.375 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002015/1.377, allocations: 335.8 kB / 0.5943 GB, free: 5.102 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005123/1.378, allocations: 56.66 kB / 0.5944 GB, free: 5.074 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002266/1.38, allocations: 2.524 MB / 0.5969 GB, free: 2.648 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/1.38, allocations: 4.062 kB / 0.5969 GB, free: 2.645 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01706/1.397, allocations: 7.023 MB / 0.6037 GB, free: 13.88 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003986/1.401, allocations: 0.7211 MB / 0.6044 GB, free: 13.26 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001778/1.403, allocations: 49.73 kB / 0.6045 GB, free: 13.24 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005578/1.408, allocations: 206.4 kB / 0.6047 GB, free: 13.07 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000943/1.409, allocations: 147.6 kB / 0.6048 GB, free: 12.94 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004432/1.41, allocations: 73.45 kB / 0.6049 GB, free: 12.89 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005328/1.415, allocations: 1.169 MB / 0.606 GB, free: 12 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.31e-07/1.415, allocations: 0 / 0.606 GB, free: 12 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01647/1.432, allocations: 2.575 MB / 0.6085 GB, free: 9.59 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 54 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse19.phase,$cse19.region,$cse21.region3boundary,$cse22.region3boundary,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$cse40.phase,$cse40.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,splitter.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 (200): * Single equations (assignments): 171 * 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.01365/1.446, allocations: 2.124 MB / 0.6106 GB, free: 7.715 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01527/1.461, allocations: 5.21 MB / 0.6157 GB, free: 4.055 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/1.461, allocations: 2.906 kB / 0.6157 GB, free: 4.055 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006273/1.467, allocations: 2.444 MB / 0.6181 GB, free: 2.52 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00894/1.476, allocations: 0.9565 MB / 0.619 GB, free: 1.73 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02095/1.497, allocations: 8.862 MB / 0.6277 GB, free: 10.04 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00328/1.501, allocations: 2.241 MB / 0.6299 GB, free: 7.855 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001578/1.502, allocations: 213.9 kB / 0.6301 GB, free: 7.66 MB / 490.7 MB Notification: Performance of SimCode: time 1.512e-06/1.502, allocations: 3.938 kB / 0.6301 GB, free: 7.656 MB / 490.7 MB Notification: Performance of Templates: time 0.4837/1.986, allocations: 113.6 MB / 0.741 GB, free: 145.6 MB / 0.4948 GB