Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16,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_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16") Notification: Performance of loadModel(ModelicaTest): time 2.273/2.273, allocations: 234.9 MB / 249.5 MB, free: 10.02 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.208e-05/3.184e-05, allocations: 3.984 kB / 308 MB, free: 15.36 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3696/0.3696, allocations: 54.85 MB / 362.9 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16): time 0.6381/1.008, allocations: 175 MB / 0.5252 GB, free: 2.172 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.04115/1.049, allocations: 20.37 MB / 0.5451 GB, free: 1.809 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003681/1.053, allocations: 107.5 kB / 0.5452 GB, free: 1.809 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003776/1.057, allocations: 0.903 MB / 0.5461 GB, free: 1.801 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01291/1.069, allocations: 3.136 MB / 0.5492 GB, free: 1.094 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01769/1.087, allocations: 4.72 MB / 0.5538 GB, free: 15.48 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.007269/1.095, allocations: 2.888 MB / 0.5566 GB, free: 14.97 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002503/1.097, allocations: 1.051 MB / 0.5576 GB, free: 14.54 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00601/1.103, allocations: 1.718 MB / 0.5593 GB, free: 14.3 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004894/1.108, allocations: 1.498 MB / 0.5608 GB, free: 13.96 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01486/1.123, allocations: 3.148 MB / 0.5638 GB, free: 13.32 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003082/1.126, allocations: 256.8 kB / 0.5641 GB, free: 13.32 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002561/1.129, allocations: 0.723 MB / 0.5648 GB, free: 13.11 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002373/1.131, allocations: 242.9 kB / 0.565 GB, free: 13.11 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.04745/1.179, allocations: 3.771 MB / 0.5687 GB, free: 11.39 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/1.179, allocations: 0 / 0.5687 GB, free: 11.39 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.885e-06/1.179, allocations: 0 / 0.5687 GB, free: 11.39 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001274/1.179, allocations: 0 / 0.5687 GB, free: 11.39 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: 427 * Number of variables: 427 Notification: Performance of Generate backend data structure: time 0.01296/1.192, allocations: 2.669 MB / 0.5713 GB, free: 8.875 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.589e-05/1.192, allocations: 11.97 kB / 0.5713 GB, free: 8.863 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006005/1.198, allocations: 426.3 kB / 0.5717 GB, free: 8.465 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00583/1.204, allocations: 1.435 MB / 0.5731 GB, free: 7.324 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001895/1.204, allocations: 127.2 kB / 0.5733 GB, free: 7.254 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006061/1.205, allocations: 168.1 kB / 0.5734 GB, free: 7.145 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007724/1.213, allocations: 2.515 MB / 0.5759 GB, free: 5.266 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.942e-05/1.213, allocations: 2.531 kB / 0.5759 GB, free: 5.266 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003459/1.213, allocations: 72.89 kB / 0.5759 GB, free: 5.246 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004504/1.213, allocations: 179.7 kB / 0.5761 GB, free: 5.09 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007425/1.221, allocations: 2.227 MB / 0.5783 GB, free: 3.598 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.02517/1.246, allocations: 10.72 MB / 0.5888 GB, free: 10.04 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005376/1.252, allocations: 1.768 MB / 0.5905 GB, free: 8.703 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001664/1.253, allocations: 458.6 kB / 0.5909 GB, free: 8.234 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003547/1.257, allocations: 1.149 MB / 0.592 GB, free: 7.375 MB / 458.7 MB Notification: Performance of pre-optimization done (n=162): time 5.921e-06/1.257, allocations: 0 / 0.592 GB, free: 7.375 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.04692/1.304, allocations: 10.83 MB / 0.6026 GB, free: 14.77 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000138/1.304, allocations: 187.5 kB / 0.6028 GB, free: 14.56 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002903/1.307, allocations: 1.307 MB / 0.6041 GB, free: 13.56 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005866/1.308, allocations: 66.27 kB / 0.6041 GB, free: 13.52 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00109/1.309, allocations: 0.8985 MB / 0.605 GB, free: 12.96 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001194/1.31, allocations: 0.6286 MB / 0.6056 GB, free: 12.43 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002497/1.31, allocations: 39.69 kB / 0.6057 GB, free: 12.42 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002414/1.31, allocations: 388.7 kB / 0.606 GB, free: 12.07 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003548/1.314, allocations: 1.013 MB / 0.607 GB, free: 11.39 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005167/1.319, allocations: 1.514 MB / 0.6085 GB, free: 10.07 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005553/1.325, allocations: 1.297 MB / 0.6098 GB, free: 9.238 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-05/1.325, allocations: 4 kB / 0.6098 GB, free: 9.234 MB / 474.7 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.01268/1.338, allocations: 3.112 MB / 0.6128 GB, free: 7.02 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002838/1.34, allocations: 5.26 MB / 0.6179 GB, free: 1.367 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.754e-05/1.341, allocations: 12 kB / 0.618 GB, free: 1.355 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001043/1.342, allocations: 194.6 kB / 0.6181 GB, free: 1.18 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006489/1.348, allocations: 0.5608 MB / 0.6187 GB, free: 0.6641 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002839/1.351, allocations: 2.331 MB / 0.621 GB, free: 14.32 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005365/1.356, allocations: 217.6 kB / 0.6212 GB, free: 14.14 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007155/1.357, allocations: 186.2 kB / 0.6214 GB, free: 13.98 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/1.357, allocations: 11.89 kB / 0.6214 GB, free: 13.97 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.011/1.368, allocations: 2.85 MB / 0.6242 GB, free: 12.03 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.986e-05/1.368, allocations: 12 kB / 0.6242 GB, free: 12.02 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008627/1.369, allocations: 192.5 kB / 0.6243 GB, free: 11.84 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0058/1.375, allocations: 0.5564 MB / 0.6249 GB, free: 11.34 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002682/1.378, allocations: 2.332 MB / 0.6272 GB, free: 8.992 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004766/1.383, allocations: 210.3 kB / 0.6274 GB, free: 8.82 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006724/1.383, allocations: 193.6 kB / 0.6276 GB, free: 8.648 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.002321/1.386, allocations: 0.6259 MB / 0.6282 GB, free: 8.215 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007885/1.386, allocations: 205.5 kB / 0.6284 GB, free: 8.012 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01301/1.399, allocations: 3.485 MB / 0.6318 GB, free: 5.492 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-05/1.4, allocations: 19.95 kB / 0.6318 GB, free: 5.473 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.306e-05/1.4, allocations: 4 kB / 0.6318 GB, free: 5.469 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006967/1.407, allocations: 2.715 MB / 0.6344 GB, free: 3.375 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01971/1.426, allocations: 6.788 MB / 0.6411 GB, free: 12.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.949e-05/1.426, allocations: 8 kB / 0.6411 GB, free: 12.51 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003561/1.43, allocations: 440.5 kB / 0.6415 GB, free: 12.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006953/1.431, allocations: 199.2 kB / 0.6417 GB, free: 11.89 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002922/1.431, allocations: 95.95 kB / 0.6418 GB, free: 11.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002833/1.434, allocations: 3.082 MB / 0.6448 GB, free: 8.523 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.12e-05/1.434, allocations: 10.53 kB / 0.6448 GB, free: 8.516 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01114/1.445, allocations: 4.643 MB / 0.6493 GB, free: 3.598 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001714/1.447, allocations: 0.51 MB / 0.6498 GB, free: 3.066 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006485/1.447, allocations: 59.98 kB / 0.6499 GB, free: 3.008 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002275/1.45, allocations: 123.7 kB / 0.65 GB, free: 2.887 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004466/1.45, allocations: 179 kB / 0.6502 GB, free: 2.715 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004136/1.451, allocations: 171.1 kB / 0.6503 GB, free: 2.551 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00217/1.453, allocations: 0.992 MB / 0.6513 GB, free: 1.566 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.01e-07/1.453, allocations: 0 / 0.6513 GB, free: 1.566 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006801/1.46, allocations: 1.699 MB / 0.653 GB, free: 15.86 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.004768/1.464, allocations: 1.277 MB / 0.6542 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01659/1.481, allocations: 4.468 MB / 0.6586 GB, free: 10.29 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.586e-05/1.481, allocations: 4 kB / 0.6586 GB, free: 10.29 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006373/1.488, allocations: 1.564 MB / 0.6601 GB, free: 8.742 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01082/1.498, allocations: 0.9048 MB / 0.661 GB, free: 7.84 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01408/1.513, allocations: 5.678 MB / 0.6665 GB, free: 2.074 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001963/1.515, allocations: 1.722 MB / 0.6682 GB, free: 328 kB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01015/1.525, allocations: 1.539 MB / 0.6697 GB, free: 14.78 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002029/1.527, allocations: 291.3 kB / 0.67 GB, free: 14.49 MB / 0.5261 GB Notification: Performance of SimCode: time 1.403e-06/1.527, allocations: 0 / 0.67 GB, free: 14.49 MB / 0.5261 GB Notification: Performance of Templates: time 0.4838/2.011, allocations: 58.15 MB / 0.7268 GB, free: 231.3 MB / 0.5417 GB