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_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15") Notification: Performance of loadModel(ModelicaTest): time 2.424/2.424, allocations: 234.9 MB / 249.4 MB, free: 10.02 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.859e-05/2.856e-05, allocations: 4 kB / 308 MB, free: 15.35 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3727/0.3728, allocations: 54.85 MB / 362.9 MB, free: 12.24 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15): time 0.6541/1.027, allocations: 175 MB / 0.5252 GB, free: 2.125 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.04161/1.069, allocations: 20.35 MB / 0.5451 GB, free: 1.773 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00369/1.072, allocations: 110.6 kB / 0.5452 GB, free: 1.773 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003815/1.076, allocations: 0.9045 MB / 0.5461 GB, free: 1.762 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01435/1.091, allocations: 3.141 MB / 0.5492 GB, free: 1.047 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01731/1.108, allocations: 4.734 MB / 0.5538 GB, free: 15.46 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.007291/1.115, allocations: 2.882 MB / 0.5566 GB, free: 14.95 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002372/1.118, allocations: 1.049 MB / 0.5576 GB, free: 14.53 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005462/1.123, allocations: 1.721 MB / 0.5593 GB, free: 14.29 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004508/1.128, allocations: 1.497 MB / 0.5608 GB, free: 13.94 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01048/1.138, allocations: 3.152 MB / 0.5639 GB, free: 13.3 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00229/1.141, allocations: 248.7 kB / 0.5641 GB, free: 13.3 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001991/1.143, allocations: 0.7291 MB / 0.5648 GB, free: 13.1 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001438/1.144, allocations: 244.1 kB / 0.565 GB, free: 13.1 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01027/1.154, allocations: 3.772 MB / 0.5687 GB, free: 11.38 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/1.154, allocations: 4 kB / 0.5687 GB, free: 11.37 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.346e-06/1.154, allocations: 0 / 0.5687 GB, free: 11.37 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001098/1.155, allocations: 2.688 kB / 0.5687 GB, free: 11.37 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.01065/1.165, allocations: 2.66 MB / 0.5713 GB, free: 8.883 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.41e-05/1.165, allocations: 12.03 kB / 0.5713 GB, free: 8.871 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005568/1.171, allocations: 426.5 kB / 0.5717 GB, free: 8.473 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006175/1.177, allocations: 1.432 MB / 0.5731 GB, free: 7.336 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002859/1.177, allocations: 131.1 kB / 0.5733 GB, free: 7.262 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008905/1.178, allocations: 160.5 kB / 0.5734 GB, free: 7.156 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009175/1.188, allocations: 2.518 MB / 0.5759 GB, free: 5.273 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.816e-05/1.188, allocations: 6.625 kB / 0.5759 GB, free: 5.27 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004365/1.188, allocations: 66.86 kB / 0.5759 GB, free: 5.254 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000582/1.189, allocations: 195.6 kB / 0.5761 GB, free: 5.086 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009279/1.198, allocations: 2.216 MB / 0.5783 GB, free: 3.602 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.03176/1.23, allocations: 10.72 MB / 0.5888 GB, free: 10.04 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00696/1.237, allocations: 1.764 MB / 0.5905 GB, free: 8.711 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001948/1.239, allocations: 462.2 kB / 0.5909 GB, free: 8.238 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004785/1.244, allocations: 1.152 MB / 0.5921 GB, free: 7.379 MB / 458.7 MB Notification: Performance of pre-optimization done (n=162): time 7.865e-06/1.244, allocations: 0 / 0.5921 GB, free: 7.379 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.0503/1.294, allocations: 10.82 MB / 0.6026 GB, free: 14.78 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001616/1.294, allocations: 183.1 kB / 0.6028 GB, free: 14.57 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003133/1.297, allocations: 1.314 MB / 0.6041 GB, free: 13.56 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006753/1.298, allocations: 62.27 kB / 0.6041 GB, free: 13.52 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001242/1.299, allocations: 0.8939 MB / 0.605 GB, free: 12.97 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00127/1.301, allocations: 0.6251 MB / 0.6056 GB, free: 12.44 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000263/1.301, allocations: 41.62 kB / 0.6057 GB, free: 12.43 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002587/1.301, allocations: 392.7 kB / 0.606 GB, free: 12.07 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003197/1.304, allocations: 1.016 MB / 0.607 GB, free: 11.39 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004042/1.309, allocations: 1.506 MB / 0.6085 GB, free: 10.08 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004189/1.313, allocations: 1.309 MB / 0.6098 GB, free: 9.238 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.291e-05/1.313, allocations: 4 kB / 0.6098 GB, free: 9.234 MB / 474.7 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.009675/1.323, allocations: 3.098 MB / 0.6128 GB, free: 7.031 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00253/1.325, allocations: 5.26 MB / 0.618 GB, free: 1.379 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-05/1.325, allocations: 20 kB / 0.618 GB, free: 1.359 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008125/1.326, allocations: 195.2 kB / 0.6182 GB, free: 1.184 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004839/1.331, allocations: 0.5668 MB / 0.6187 GB, free: 0.6641 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002355/1.333, allocations: 2.326 MB / 0.621 GB, free: 14.33 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004057/1.337, allocations: 216.4 kB / 0.6212 GB, free: 14.15 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007634/1.338, allocations: 196.5 kB / 0.6214 GB, free: 13.98 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/1.338, allocations: 7.953 kB / 0.6214 GB, free: 13.97 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008456/1.347, allocations: 2.848 MB / 0.6242 GB, free: 12.03 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.395e-05/1.347, allocations: 12 kB / 0.6242 GB, free: 12.02 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006738/1.347, allocations: 195 kB / 0.6244 GB, free: 11.84 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004434/1.352, allocations: 0.5554 MB / 0.6249 GB, free: 11.34 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002215/1.354, allocations: 2.327 MB / 0.6272 GB, free: 8.996 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004428/1.359, allocations: 213 kB / 0.6274 GB, free: 8.82 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007755/1.359, allocations: 188.9 kB / 0.6276 GB, free: 8.656 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.002243/1.362, allocations: 0.6197 MB / 0.6282 GB, free: 8.223 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007996/1.363, allocations: 209.5 kB / 0.6284 GB, free: 8.016 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01733/1.38, allocations: 3.484 MB / 0.6318 GB, free: 5.5 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.724e-05/1.38, allocations: 27.95 kB / 0.6318 GB, free: 5.473 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.469e-05/1.38, allocations: 0 / 0.6318 GB, free: 5.473 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01025/1.39, allocations: 2.709 MB / 0.6344 GB, free: 3.383 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02722/1.418, allocations: 6.785 MB / 0.6411 GB, free: 12.54 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.547e-05/1.418, allocations: 8 kB / 0.6411 GB, free: 12.53 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005034/1.423, allocations: 449.4 kB / 0.6415 GB, free: 12.11 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001018/1.424, allocations: 189.8 kB / 0.6417 GB, free: 11.91 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006017/1.424, allocations: 103.9 kB / 0.6418 GB, free: 11.81 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003758/1.428, allocations: 3.083 MB / 0.6448 GB, free: 8.531 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.571e-05/1.428, allocations: 13.06 kB / 0.6448 GB, free: 8.523 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01341/1.442, allocations: 4.648 MB / 0.6493 GB, free: 3.598 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001962/1.444, allocations: 0.5139 MB / 0.6498 GB, free: 3.062 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000757/1.444, allocations: 55.98 kB / 0.6499 GB, free: 3.008 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002624/1.447, allocations: 127.7 kB / 0.65 GB, free: 2.883 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000519/1.448, allocations: 173.4 kB / 0.6502 GB, free: 2.719 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004561/1.448, allocations: 163.9 kB / 0.6503 GB, free: 2.559 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002226/1.45, allocations: 0.9998 MB / 0.6513 GB, free: 1.566 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.41e-07/1.45, allocations: 0 / 0.6513 GB, free: 1.566 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007476/1.458, 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.0054/1.463, allocations: 1.268 MB / 0.6542 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0138/1.477, allocations: 4.476 MB / 0.6586 GB, free: 10.29 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.424e-05/1.477, allocations: 0 / 0.6586 GB, free: 10.29 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004202/1.481, allocations: 1.559 MB / 0.6601 GB, free: 8.75 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007861/1.489, allocations: 0.91 MB / 0.661 GB, free: 7.844 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0144/1.504, allocations: 5.681 MB / 0.6665 GB, free: 2.078 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002052/1.506, allocations: 1.722 MB / 0.6682 GB, free: 332 kB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01065/1.517, 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.002043/1.519, allocations: 287.3 kB / 0.67 GB, free: 14.5 MB / 0.5261 GB Notification: Performance of SimCode: time 1.182e-06/1.519, allocations: 0 / 0.67 GB, free: 14.5 MB / 0.5261 GB Notification: Performance of Templates: time 0.4809/2, allocations: 58.16 MB / 0.7268 GB, free: 231.3 MB / 0.5417 GB