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_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17") Notification: Performance of loadModel(ModelicaTest): time 2.305/2.305, allocations: 234.9 MB / 249.4 MB, free: 10.02 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.076e-05/3.093e-05, allocations: 4 kB / 308 MB, free: 15.34 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4089/0.409, allocations: 54.85 MB / 362.9 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17): time 0.7148/1.124, allocations: 180.7 MB / 0.5309 GB, free: 2.082 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.04376/1.168, allocations: 21.43 MB / 0.5518 GB, free: 1.453 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003932/1.172, allocations: 112.7 kB / 0.5519 GB, free: 1.453 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004098/1.176, allocations: 0.9587 MB / 0.5528 GB, free: 1.148 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01496/1.191, allocations: 3.487 MB / 0.5562 GB, free: 216 kB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01896/1.21, allocations: 4.841 MB / 0.561 GB, free: 14.59 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.007613/1.217, allocations: 3.055 MB / 0.5639 GB, free: 14.06 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002448/1.22, allocations: 1.108 MB / 0.565 GB, free: 13.61 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006624/1.227, allocations: 1.845 MB / 0.5668 GB, free: 13.35 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006717/1.233, allocations: 1.581 MB / 0.5684 GB, free: 12.99 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0112/1.245, allocations: 3.218 MB / 0.5715 GB, free: 12.35 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002297/1.247, allocations: 256 kB / 0.5718 GB, free: 12.35 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001847/1.249, allocations: 0.7586 MB / 0.5725 GB, free: 12.12 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001537/1.251, allocations: 260 kB / 0.5727 GB, free: 11.87 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01107/1.262, allocations: 3.931 MB / 0.5766 GB, free: 8.527 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/1.262, allocations: 0 / 0.5766 GB, free: 8.527 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.176e-06/1.262, allocations: 0 / 0.5766 GB, free: 8.527 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001383/1.262, allocations: 0 / 0.5766 GB, free: 8.527 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.01102/1.273, allocations: 2.762 MB / 0.5793 GB, free: 5.895 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.611e-05/1.273, allocations: 12.03 kB / 0.5793 GB, free: 5.883 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005243/1.278, allocations: 437.9 kB / 0.5797 GB, free: 5.473 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006283/1.285, allocations: 1.489 MB / 0.5812 GB, free: 4.297 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000231/1.285, allocations: 135.5 kB / 0.5813 GB, free: 4.219 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006914/1.286, allocations: 174.5 kB / 0.5815 GB, free: 4.105 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008238/1.294, allocations: 2.632 MB / 0.584 GB, free: 2.141 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.419e-05/1.294, allocations: 8.969 kB / 0.584 GB, free: 2.137 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003461/1.294, allocations: 76.17 kB / 0.5841 GB, free: 2.117 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004376/1.295, allocations: 190.7 kB / 0.5843 GB, free: 1.953 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007693/1.302, allocations: 2.313 MB / 0.5866 GB, free: 412 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.02839/1.331, allocations: 11.28 MB / 0.5976 GB, free: 6.375 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005856/1.337, allocations: 1.847 MB / 0.5994 GB, free: 4.98 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001657/1.339, allocations: 457.7 kB / 0.5998 GB, free: 4.512 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005676/1.344, allocations: 1.199 MB / 0.601 GB, free: 3.625 MB / 458.7 MB Notification: Performance of pre-optimization done (n=172): time 1.101e-05/1.344, allocations: 0 / 0.601 GB, free: 3.625 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.06254/1.407, allocations: 12.04 MB / 0.6127 GB, free: 10.01 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002157/1.407, allocations: 191.1 kB / 0.6129 GB, free: 9.789 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003396/1.411, allocations: 1.364 MB / 0.6142 GB, free: 8.75 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006152/1.411, allocations: 62.33 kB / 0.6143 GB, free: 8.711 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001342/1.413, allocations: 0.9479 MB / 0.6152 GB, free: 8.125 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001355/1.414, allocations: 0.6698 MB / 0.6159 GB, free: 7.551 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003484/1.414, allocations: 47.38 kB / 0.6159 GB, free: 7.539 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003005/1.415, allocations: 397.1 kB / 0.6163 GB, free: 7.184 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003828/1.419, allocations: 1.074 MB / 0.6174 GB, free: 6.465 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00495/1.424, allocations: 1.599 MB / 0.6189 GB, free: 5.07 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004337/1.428, allocations: 1.368 MB / 0.6203 GB, free: 4.191 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.536e-05/1.428, allocations: 4 kB / 0.6203 GB, free: 4.188 MB / 474.7 MB Notification: Performance of matching and sorting (n=297) (initialization): time 0.01134/1.439, allocations: 3.344 MB / 0.6235 GB, free: 1.406 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002899/1.442, allocations: 5.833 MB / 0.6292 GB, free: 11.06 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.633e-05/1.442, allocations: 16 kB / 0.6292 GB, free: 11.05 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001449/1.444, allocations: 304.1 kB / 0.6295 GB, free: 10.73 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005013/1.449, allocations: 0.587 MB / 0.6301 GB, free: 10.18 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003428/1.452, allocations: 3.016 MB / 0.633 GB, free: 7.051 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004849/1.457, allocations: 216 kB / 0.6332 GB, free: 6.84 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001181/1.459, allocations: 215.9 kB / 0.6335 GB, free: 6.629 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.202e-05/1.459, allocations: 8 kB / 0.6335 GB, free: 6.621 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01147/1.47, allocations: 3.073 MB / 0.6365 GB, free: 3.613 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.004e-05/1.47, allocations: 12.69 kB / 0.6365 GB, free: 3.602 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001256/1.472, allocations: 314.5 kB / 0.6368 GB, free: 3.281 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00485/1.476, allocations: 0.5773 MB / 0.6373 GB, free: 2.734 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003329/1.48, allocations: 3.019 MB / 0.6403 GB, free: 15.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004095/1.484, allocations: 215.9 kB / 0.6405 GB, free: 15.39 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009356/1.485, allocations: 208 kB / 0.6407 GB, free: 15.19 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.00241/1.487, allocations: 0.6406 MB / 0.6413 GB, free: 14.55 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008874/1.488, allocations: 213.4 kB / 0.6415 GB, free: 14.34 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01618/1.504, allocations: 3.748 MB / 0.6452 GB, free: 10.55 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.267e-05/1.505, allocations: 20 kB / 0.6452 GB, free: 10.54 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.168e-05/1.505, allocations: 0 / 0.6452 GB, free: 10.54 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01073/1.515, allocations: 2.903 MB / 0.648 GB, free: 7.531 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02287/1.538, allocations: 6.921 MB / 0.6548 GB, free: 452 kB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.155e-05/1.538, allocations: 4 kB / 0.6548 GB, free: 448 kB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004093/1.542, allocations: 460.6 kB / 0.6552 GB, free: 8 kB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001695/1.544, allocations: 326.5 kB / 0.6556 GB, free: 15.68 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006721/1.545, allocations: 103.9 kB / 0.6556 GB, free: 15.57 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004517/1.549, allocations: 3.753 MB / 0.6593 GB, free: 11.61 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.608e-06/1.55, allocations: 6.719 kB / 0.6593 GB, free: 11.6 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01545/1.565, allocations: 4.876 MB / 0.6641 GB, free: 6.48 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002573/1.568, allocations: 0.5449 MB / 0.6646 GB, free: 5.914 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0014/1.569, allocations: 59.98 kB / 0.6647 GB, free: 5.855 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003682/1.573, allocations: 127.8 kB / 0.6648 GB, free: 5.73 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000925/1.574, allocations: 184.7 kB / 0.665 GB, free: 5.551 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007425/1.575, allocations: 179.9 kB / 0.6651 GB, free: 5.375 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002941/1.578, allocations: 1.036 MB / 0.6662 GB, free: 4.352 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.092e-06/1.578, allocations: 0 / 0.6662 GB, free: 4.352 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009716/1.587, allocations: 1.8 MB / 0.6679 GB, free: 2.551 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.005787/1.593, allocations: 1.304 MB / 0.6692 GB, free: 1.352 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01625/1.61, allocations: 4.733 MB / 0.6738 GB, free: 12.69 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.598e-05/1.61, allocations: 0 / 0.6738 GB, free: 12.69 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005513/1.615, allocations: 1.649 MB / 0.6754 GB, free: 11.06 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009396/1.625, allocations: 1.056 MB / 0.6764 GB, free: 10.02 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01676/1.641, allocations: 5.99 MB / 0.6823 GB, free: 3.941 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002377/1.644, allocations: 1.762 MB / 0.684 GB, free: 2.148 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01243/1.656, allocations: 1.579 MB / 0.6856 GB, free: 0.5664 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002614/1.659, allocations: 303.3 kB / 0.6858 GB, free: 276 kB / 0.5261 GB Notification: Performance of SimCode: time 3.196e-06/1.659, allocations: 0 / 0.6858 GB, free: 276 kB / 0.5261 GB Notification: Performance of Templates: time 0.5449/2.204, allocations: 63.22 MB / 0.7476 GB, free: 211.5 MB / 0.5417 GB