Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|junctionVolume.medium.T|pipe1.mediums.1..T|pipe1.mediums.1..p|pipe2.mediums.1..T|pipe2.mediums.1..p|pipe3.mediums.1..T|pipe3.mediums.1..p|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.BranchingPipes17") Notification: Performance of loadModel(ModelicaTest): time 2.299/2.299, allocations: 234.9 MB / 250.1 MB, free: 9.941 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.482e-05/2.485e-05, allocations: 0 / 308 MB, free: 15.92 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3704/0.3705, allocations: 54.86 MB / 362.9 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17): time 0.6442/1.015, allocations: 180.7 MB / 0.5308 GB, free: 2.02 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.04324/1.058, allocations: 21.42 MB / 0.5518 GB, free: 1.383 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003992/1.062, allocations: 112.9 kB / 0.5519 GB, free: 1.383 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004117/1.066, allocations: 0.9608 MB / 0.5528 GB, free: 1.078 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01506/1.081, allocations: 3.485 MB / 0.5562 GB, free: 144 kB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01992/1.101, allocations: 4.866 MB / 0.561 GB, free: 14.59 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.008405/1.11, allocations: 3.054 MB / 0.5639 GB, free: 14.06 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002718/1.112, allocations: 1.107 MB / 0.565 GB, free: 13.61 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006067/1.119, allocations: 1.854 MB / 0.5668 GB, free: 13.35 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004747/1.123, allocations: 1.574 MB / 0.5684 GB, free: 12.99 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01135/1.135, allocations: 3.218 MB / 0.5715 GB, free: 12.35 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002488/1.137, allocations: 261 kB / 0.5718 GB, free: 12.35 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001948/1.139, allocations: 0.7547 MB / 0.5725 GB, free: 12.13 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001831/1.141, allocations: 258.9 kB / 0.5727 GB, free: 11.88 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0109/1.152, allocations: 3.927 MB / 0.5766 GB, free: 8.547 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/1.152, allocations: 3.938 kB / 0.5766 GB, free: 8.543 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.706e-06/1.152, allocations: 0 / 0.5766 GB, free: 8.543 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001318/1.152, allocations: 0 / 0.5766 GB, free: 8.543 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 452 * Number of variables: 452 Notification: Performance of Generate backend data structure: time 0.01054/1.163, allocations: 2.765 MB / 0.5793 GB, free: 5.906 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.244e-05/1.163, allocations: 8.031 kB / 0.5793 GB, free: 5.898 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004457/1.167, allocations: 441.6 kB / 0.5797 GB, free: 5.48 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004989/1.173, allocations: 1.484 MB / 0.5812 GB, free: 4.309 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002031/1.173, allocations: 136.4 kB / 0.5813 GB, free: 4.234 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007094/1.174, allocations: 176.8 kB / 0.5815 GB, free: 4.117 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008327/1.182, allocations: 2.638 MB / 0.584 GB, free: 2.152 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.42e-05/1.182, allocations: 7.469 kB / 0.584 GB, free: 2.148 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003926/1.182, allocations: 74.45 kB / 0.5841 GB, free: 2.129 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004688/1.183, allocations: 192 kB / 0.5843 GB, free: 1.965 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00775/1.191, allocations: 2.318 MB / 0.5866 GB, free: 424 kB / 442.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.02653/1.217, allocations: 11.28 MB / 0.5976 GB, free: 6.379 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005429/1.223, allocations: 1.841 MB / 0.5994 GB, free: 4.992 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001566/1.224, allocations: 458.7 kB / 0.5998 GB, free: 4.523 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003612/1.228, allocations: 1.206 MB / 0.601 GB, free: 3.625 MB / 458.7 MB Notification: Performance of pre-optimization done (n=172): time 8.927e-06/1.228, allocations: 3.984 kB / 0.601 GB, free: 3.621 MB / 458.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: pipe1.mediums[1].T 2: pipe2.mediums[1].T 3: pipe3.mediums[1].T 4: junctionIdeal.medium.T 5: junctionVolume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=200): time 0.05649/1.285, allocations: 12.04 MB / 0.6127 GB, free: 10.01 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001431/1.285, allocations: 182.9 kB / 0.6129 GB, free: 9.797 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002976/1.288, allocations: 1.367 MB / 0.6142 GB, free: 8.758 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006034/1.288, allocations: 64.83 kB / 0.6143 GB, free: 8.715 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001057/1.289, allocations: 0.8816 MB / 0.6152 GB, free: 8.148 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001274/1.291, allocations: 0.6794 MB / 0.6158 GB, free: 7.566 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002965/1.291, allocations: 44.81 kB / 0.6159 GB, free: 7.559 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002674/1.291, allocations: 401.1 kB / 0.6163 GB, free: 7.195 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003549/1.295, allocations: 1.069 MB / 0.6173 GB, free: 6.48 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004287/1.299, allocations: 1.608 MB / 0.6189 GB, free: 5.078 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004331/1.304, allocations: 1.364 MB / 0.6202 GB, free: 4.203 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.607e-05/1.304, allocations: 12 kB / 0.6202 GB, free: 4.191 MB / 474.7 MB Notification: Performance of matching and sorting (n=297) (initialization): time 0.01056/1.314, allocations: 3.224 MB / 0.6234 GB, free: 1.602 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002806/1.317, allocations: 5.648 MB / 0.6289 GB, free: 11.52 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-05/1.317, allocations: 15.94 kB / 0.6289 GB, free: 11.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001421/1.319, allocations: 304.1 kB / 0.6292 GB, free: 11.19 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005021/1.324, allocations: 0.5886 MB / 0.6298 GB, free: 10.63 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003287/1.327, allocations: 3.019 MB / 0.6327 GB, free: 7.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004147/1.331, allocations: 223.9 kB / 0.6329 GB, free: 7.281 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007247/1.332, allocations: 211.9 kB / 0.6331 GB, free: 7.074 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/1.332, allocations: 4 kB / 0.6331 GB, free: 7.07 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009668/1.342, allocations: 3.072 MB / 0.6361 GB, free: 4.062 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.336e-05/1.342, allocations: 16.12 kB / 0.6361 GB, free: 4.047 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001205/1.343, allocations: 306.5 kB / 0.6364 GB, free: 3.734 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004777/1.348, allocations: 0.5774 MB / 0.637 GB, free: 3.188 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0031/1.351, allocations: 3.016 MB / 0.6399 GB, free: 60 kB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003327/1.354, allocations: 211.8 kB / 0.6401 GB, free: 15.85 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006273/1.355, allocations: 208 kB / 0.6403 GB, free: 15.65 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (274): * Single equations (assignments): 267 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002275/1.357, allocations: 0.6467 MB / 0.641 GB, free: 15.01 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000753/1.358, allocations: 213.4 kB / 0.6412 GB, free: 14.8 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01433/1.373, allocations: 3.742 MB / 0.6448 GB, free: 11.02 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.323e-05/1.373, allocations: 23.98 kB / 0.6449 GB, free: 10.99 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.148e-05/1.373, allocations: 0 / 0.6449 GB, free: 10.99 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008478/1.381, allocations: 2.897 MB / 0.6477 GB, free: 7.992 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02137/1.403, allocations: 6.917 MB / 0.6544 GB, free: 0.9102 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.877e-05/1.403, allocations: 8 kB / 0.6544 GB, free: 0.9023 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003881/1.406, allocations: 460.3 kB / 0.6549 GB, free: 484 kB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001556/1.408, allocations: 330.9 kB / 0.6552 GB, free: 140 kB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005463/1.409, allocations: 107.9 kB / 0.6553 GB, free: 32 kB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004141/1.413, allocations: 3.75 MB / 0.659 GB, free: 12.07 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.257e-05/1.413, allocations: 10.94 kB / 0.659 GB, free: 12.06 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01332/1.426, allocations: 4.868 MB / 0.6637 GB, free: 6.941 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001993/1.428, allocations: 0.541 MB / 0.6643 GB, free: 6.379 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008279/1.429, allocations: 63.98 kB / 0.6643 GB, free: 6.316 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002796/1.432, allocations: 127.7 kB / 0.6644 GB, free: 6.191 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000639/1.433, allocations: 186.8 kB / 0.6646 GB, free: 6.012 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005097/1.433, allocations: 186.7 kB / 0.6648 GB, free: 5.832 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002437/1.436, allocations: 1.029 MB / 0.6658 GB, free: 4.812 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.41e-07/1.436, allocations: 0 / 0.6658 GB, free: 4.812 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007982/1.444, allocations: 1.8 MB / 0.6676 GB, free: 3.012 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 9 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T,junctionVolume.medium.T) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,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 (205): * Single equations (assignments): 198 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 4 {1 6,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.005462/1.449, allocations: 1.299 MB / 0.6688 GB, free: 1.812 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01478/1.464, allocations: 4.674 MB / 0.6734 GB, free: 13.22 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.762e-05/1.464, allocations: 5.938 kB / 0.6734 GB, free: 13.21 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005218/1.469, allocations: 1.638 MB / 0.675 GB, free: 11.59 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009078/1.478, allocations: 1.06 MB / 0.676 GB, free: 10.54 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01684/1.495, allocations: 6.049 MB / 0.6819 GB, free: 4.402 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002485/1.498, allocations: 1.74 MB / 0.6836 GB, free: 2.629 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002933/1.501, allocations: 387.3 kB / 0.684 GB, free: 2.25 MB / 0.5261 GB Notification: Performance of SimCode: time 1.653e-06/1.501, allocations: 0 / 0.684 GB, free: 2.25 MB / 0.5261 GB Notification: Performance of Templates: time 0.4823/1.983, allocations: 89.1 MB / 0.771 GB, free: 184.6 MB / 0.5417 GB