Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|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.BranchingPipes15") Notification: Performance of loadModel(ModelicaTest): time 2.333/2.333, allocations: 234.9 MB / 250.1 MB, free: 9.711 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.224e-05/3.22e-05, allocations: 4 kB / 308 MB, free: 15.71 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4072/0.4073, allocations: 54.87 MB / 362.9 MB, free: 11.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15): time 0.627/1.034, allocations: 175 MB / 0.5252 GB, free: 0.7266 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.04311/1.078, allocations: 20.37 MB / 0.5451 GB, free: 14.75 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004019/1.082, allocations: 106.7 kB / 0.5452 GB, free: 14.75 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004101/1.086, allocations: 0.9044 MB / 0.5461 GB, free: 14.47 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01364/1.099, allocations: 3.137 MB / 0.5492 GB, free: 13.63 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01826/1.118, allocations: 4.728 MB / 0.5538 GB, free: 12.01 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.008062/1.126, allocations: 2.877 MB / 0.5566 GB, free: 11.51 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002549/1.128, allocations: 1.047 MB / 0.5576 GB, free: 11.09 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005869/1.134, allocations: 1.724 MB / 0.5593 GB, free: 10.8 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005481/1.14, allocations: 1.499 MB / 0.5608 GB, free: 9.742 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01139/1.151, allocations: 3.154 MB / 0.5638 GB, free: 7.328 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002315/1.154, allocations: 248 kB / 0.5641 GB, free: 7.086 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001844/1.156, allocations: 0.7239 MB / 0.5648 GB, free: 6.598 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00137/1.157, allocations: 244 kB / 0.565 GB, free: 6.359 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01029/1.167, allocations: 3.78 MB / 0.5687 GB, free: 3.02 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/1.167, allocations: 0 / 0.5687 GB, free: 3.02 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.126e-06/1.167, allocations: 0 / 0.5687 GB, free: 3.02 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001119/1.167, allocations: 0 / 0.5687 GB, free: 3.02 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: 427 * Number of variables: 427 Notification: Performance of Generate backend data structure: time 0.01056/1.178, allocations: 2.662 MB / 0.5713 GB, free: 464 kB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.749e-05/1.178, allocations: 12.03 kB / 0.5713 GB, free: 452 kB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004392/1.183, allocations: 425 kB / 0.5717 GB, free: 48 kB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004891/1.187, allocations: 1.432 MB / 0.5731 GB, free: 14.88 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002103/1.188, allocations: 132.8 kB / 0.5732 GB, free: 14.79 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006804/1.188, allocations: 163.9 kB / 0.5734 GB, free: 14.68 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007863/1.196, allocations: 2.506 MB / 0.5758 GB, free: 12.78 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.327e-05/1.196, allocations: 7.75 kB / 0.5759 GB, free: 12.77 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003714/1.197, allocations: 72.58 kB / 0.5759 GB, free: 12.74 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004363/1.197, allocations: 191 kB / 0.5761 GB, free: 12.58 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007304/1.205, allocations: 2.223 MB / 0.5783 GB, free: 10.45 MB / 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.02588/1.231, allocations: 10.71 MB / 0.5887 GB, free: 15.06 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005417/1.236, allocations: 1.77 MB / 0.5905 GB, free: 13.23 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001526/1.238, allocations: 460.3 kB / 0.5909 GB, free: 12.73 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003461/1.241, allocations: 1.154 MB / 0.592 GB, free: 11.55 MB / 458.7 MB Notification: Performance of pre-optimization done (n=162): time 5.911e-06/1.241, allocations: 0 / 0.592 GB, free: 11.55 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 Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=185): time 0.06013/1.301, allocations: 10.84 MB / 0.6026 GB, free: 460 kB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001716/1.301, allocations: 176.2 kB / 0.6028 GB, free: 248 kB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003947/1.305, allocations: 1.32 MB / 0.6041 GB, free: 14.93 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006865/1.306, allocations: 57.7 kB / 0.6041 GB, free: 14.86 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001307/1.308, allocations: 0.8454 MB / 0.605 GB, free: 14.01 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001441/1.309, allocations: 0.62 MB / 0.6056 GB, free: 13.38 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003463/1.309, allocations: 44 kB / 0.6056 GB, free: 13.34 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003075/1.31, allocations: 407 kB / 0.606 GB, free: 12.93 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004363/1.314, allocations: 1.011 MB / 0.607 GB, free: 11.91 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005311/1.319, allocations: 1.502 MB / 0.6084 GB, free: 10.22 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005048/1.325, allocations: 1.308 MB / 0.6097 GB, free: 8.918 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.866e-05/1.325, allocations: 4 kB / 0.6097 GB, free: 8.914 MB / 474.7 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.01241/1.337, allocations: 2.991 MB / 0.6126 GB, free: 5.969 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002818/1.34, allocations: 5.118 MB / 0.6176 GB, free: 460 kB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.094e-05/1.34, allocations: 19.94 kB / 0.6177 GB, free: 440 kB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001003/1.341, allocations: 193.8 kB / 0.6178 GB, free: 236 kB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00524/1.346, allocations: 0.5623 MB / 0.6184 GB, free: 15.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002231/1.349, allocations: 2.339 MB / 0.6207 GB, free: 13.27 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003874/1.352, allocations: 207.7 kB / 0.6209 GB, free: 13.06 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006337/1.353, allocations: 199.9 kB / 0.6211 GB, free: 12.87 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/1.353, allocations: 4 kB / 0.6211 GB, free: 12.86 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008718/1.362, allocations: 2.842 MB / 0.6239 GB, free: 10.08 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-05/1.362, allocations: 12.62 kB / 0.6239 GB, free: 10.07 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006536/1.363, allocations: 202 kB / 0.6241 GB, free: 9.859 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004424/1.367, allocations: 0.5465 MB / 0.6246 GB, free: 9.34 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002119/1.369, allocations: 2.332 MB / 0.6269 GB, free: 6.918 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003149/1.372, allocations: 199.8 kB / 0.6271 GB, free: 6.723 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007228/1.373, allocations: 191.9 kB / 0.6272 GB, free: 6.535 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * 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 (259): * Single equations (assignments): 253 * 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.002075/1.375, allocations: 0.6231 MB / 0.6278 GB, free: 5.922 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007252/1.376, allocations: 205.5 kB / 0.628 GB, free: 5.719 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01294/1.389, allocations: 3.49 MB / 0.6315 GB, free: 2.191 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-05/1.389, allocations: 19.95 kB / 0.6315 GB, free: 2.172 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.397e-05/1.389, allocations: 4 kB / 0.6315 GB, free: 2.168 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007587/1.397, allocations: 2.699 MB / 0.6341 GB, free: 15.36 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0194/1.416, allocations: 6.8 MB / 0.6408 GB, free: 8.301 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-05/1.416, allocations: 8 kB / 0.6408 GB, free: 8.293 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003582/1.42, allocations: 440.9 kB / 0.6412 GB, free: 7.883 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007139/1.421, allocations: 197.8 kB / 0.6414 GB, free: 7.68 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003136/1.421, allocations: 95.94 kB / 0.6415 GB, free: 7.586 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00284/1.424, allocations: 3.081 MB / 0.6445 GB, free: 4.309 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.237e-05/1.424, allocations: 10.62 kB / 0.6445 GB, free: 4.301 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0113/1.435, allocations: 4.643 MB / 0.649 GB, free: 15.38 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001813/1.437, allocations: 0.5139 MB / 0.6495 GB, free: 14.85 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006618/1.438, allocations: 59.94 kB / 0.6496 GB, free: 14.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002275/1.44, allocations: 131.7 kB / 0.6497 GB, free: 14.66 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004462/1.44, allocations: 174.8 kB / 0.6499 GB, free: 14.49 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004166/1.441, allocations: 171.9 kB / 0.65 GB, free: 14.32 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002107/1.443, allocations: 0.988 MB / 0.651 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.81e-07/1.443, allocations: 0 / 0.651 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006764/1.45, allocations: 1.706 MB / 0.6527 GB, free: 11.64 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 8 (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) * 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 (196): * Single equations (assignments): 190 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.004763/1.455, allocations: 1.265 MB / 0.6539 GB, free: 10.39 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0126/1.467, allocations: 4.41 MB / 0.6582 GB, free: 6.051 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.015e-05/1.467, allocations: 4 kB / 0.6582 GB, free: 6.047 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004484/1.472, allocations: 1.562 MB / 0.6597 GB, free: 4.504 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007887/1.48, allocations: 0.9089 MB / 0.6606 GB, free: 3.598 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01469/1.494, allocations: 5.737 MB / 0.6662 GB, free: 13.77 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002053/1.497, allocations: 1.703 MB / 0.6679 GB, free: 12.03 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002666/1.499, allocations: 367.3 kB / 0.6682 GB, free: 11.67 MB / 0.5261 GB Notification: Performance of SimCode: time 1.593e-06/1.499, allocations: 0 / 0.6682 GB, free: 11.67 MB / 0.5261 GB Notification: Performance of Templates: time 0.436/1.935, allocations: 77.28 MB / 0.7437 GB, free: 176.1 MB / 0.5261 GB