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.235/2.235, allocations: 235 MB / 247.2 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.758e-05/3.748e-05, allocations: 7.984 kB / 304.9 MB, free: 5.168 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.324/0.324, allocations: 54.84 MB / 359.8 MB, free: 3.117 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.524/1.848, allocations: 0.6876 GB / 1.039 GB, free: 43.54 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001968/1.849, allocations: 80.08 kB / 1.039 GB, free: 43.5 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.73/4.578, allocations: 0.5495 GB / 1.589 GB, free: 38.46 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.052e-06/4.579, allocations: 0 / 1.589 GB, free: 38.46 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002788/4.579, allocations: 68.59 kB / 1.589 GB, free: 38.45 MB / 490.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.01034/4.589, allocations: 3.006 MB / 1.592 GB, free: 36.74 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.013e-05/4.589, allocations: 7.625 kB / 1.592 GB, free: 36.74 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004289/4.594, allocations: 450.9 kB / 1.592 GB, free: 36.59 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006253/4.6, allocations: 1.936 MB / 1.594 GB, free: 35.71 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001564/4.6, allocations: 130.6 kB / 1.594 GB, free: 35.66 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005388/4.601, allocations: 169.4 kB / 1.594 GB, free: 35.61 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005379/4.606, allocations: 2.553 MB / 1.597 GB, free: 34.45 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.968e-05/4.606, allocations: 7.625 kB / 1.597 GB, free: 34.45 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003183/4.606, allocations: 73.5 kB / 1.597 GB, free: 34.4 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000218/4.607, allocations: 153 kB / 1.597 GB, free: 34.38 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004807/4.611, allocations: 2.151 MB / 1.599 GB, free: 33.64 MB / 490.7 MB Warning: The model contains alias variables with conflicting start and/or 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.01833/4.63, allocations: 10.97 MB / 1.61 GB, free: 24.55 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00346/4.633, allocations: 1.729 MB / 1.611 GB, free: 22.76 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001935/4.635, allocations: 1.032 MB / 1.612 GB, free: 21.73 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009879/4.636, allocations: 456 kB / 1.613 GB, free: 21.24 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002122/4.638, allocations: 1.145 MB / 1.614 GB, free: 20.07 MB / 490.7 MB Notification: Performance of pre-optimization done (n=162): time 5.088e-06/4.638, allocations: 0 / 1.614 GB, free: 20.07 MB / 490.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 Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=185): time 0.02618/4.665, allocations: 8.479 MB / 1.622 GB, free: 11.47 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.56e-05/4.665, allocations: 257.3 kB / 1.622 GB, free: 11.17 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00229/4.667, allocations: 1.329 MB / 1.624 GB, free: 9.84 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004933/4.668, allocations: 61.7 kB / 1.624 GB, free: 9.773 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000724/4.668, allocations: 0.8709 MB / 1.625 GB, free: 8.895 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007378/4.669, allocations: 0.6275 MB / 1.625 GB, free: 8.273 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002134/4.669, allocations: 44 kB / 1.625 GB, free: 8.23 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001372/4.669, allocations: 390 kB / 1.626 GB, free: 7.844 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002053/4.672, allocations: 0.9841 MB / 1.627 GB, free: 6.855 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002675/4.674, allocations: 1.414 MB / 1.628 GB, free: 5.277 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003043/4.677, allocations: 1.272 MB / 1.629 GB, free: 4 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.209e-05/4.677, allocations: 8 kB / 1.629 GB, free: 3.992 MB / 490.7 MB Notification: Performance of matching and sorting (n=266) (initialization): time 0.006909/4.684, allocations: 2.966 MB / 1.632 GB, free: 0.9922 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00212/4.686, allocations: 4.282 MB / 1.636 GB, free: 12.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.805e-05/4.686, allocations: 12 kB / 1.636 GB, free: 12.31 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006549/4.687, allocations: 195.3 kB / 1.637 GB, free: 12.11 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003472/4.691, allocations: 0.5383 MB / 1.637 GB, free: 11.57 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002268/4.693, allocations: 2.334 MB / 1.639 GB, free: 9.129 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003267/4.696, allocations: 211.7 kB / 1.64 GB, free: 8.922 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006558/4.697, allocations: 191.9 kB / 1.64 GB, free: 8.734 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/4.697, allocations: 4 kB / 1.64 GB, free: 8.73 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006804/4.704, allocations: 2.693 MB / 1.642 GB, free: 6.012 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.727e-05/4.704, allocations: 12 kB / 1.642 GB, free: 6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005606/4.704, allocations: 187.4 kB / 1.643 GB, free: 5.805 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003071/4.707, allocations: 0.5344 MB / 1.643 GB, free: 5.27 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002152/4.71, allocations: 2.331 MB / 1.645 GB, free: 2.836 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00294/4.713, allocations: 211.8 kB / 1.646 GB, free: 2.629 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004932/4.713, allocations: 184 kB / 1.646 GB, free: 2.449 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * 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 (250): * Single equations (assignments): 244 * 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.0008271/4.714, allocations: 296.1 kB / 1.646 GB, free: 2.145 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005536/4.715, allocations: 217.4 kB / 1.646 GB, free: 1.93 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01031/4.725, allocations: 3.469 MB / 1.65 GB, free: 14.44 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.446e-05/4.725, allocations: 16 kB / 1.65 GB, free: 14.43 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.103e-05/4.725, allocations: 3.938 kB / 1.65 GB, free: 14.42 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006061/4.731, allocations: 2.701 MB / 1.652 GB, free: 11.61 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01747/4.749, allocations: 6.852 MB / 1.659 GB, free: 4.496 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.133e-05/4.749, allocations: 8.844 kB / 1.659 GB, free: 4.488 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002681/4.751, allocations: 451.4 kB / 1.659 GB, free: 4.047 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006785/4.752, allocations: 187 kB / 1.66 GB, free: 3.855 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003683/4.752, allocations: 99.95 kB / 1.66 GB, free: 3.758 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00302/4.755, allocations: 3.066 MB / 1.663 GB, free: 492 kB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.552e-05/4.755, allocations: 7.938 kB / 1.663 GB, free: 484 kB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3328/5.088, allocations: 4.641 MB / 1.667 GB, free: 66.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001846/5.09, allocations: 0.5296 MB / 1.668 GB, free: 66.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007562/5.091, allocations: 62.64 kB / 1.668 GB, free: 66.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00251/5.093, allocations: 129.4 kB / 1.668 GB, free: 66.61 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000564/5.094, allocations: 175.9 kB / 1.668 GB, free: 66.61 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004509/5.095, allocations: 170.6 kB / 1.668 GB, free: 66.61 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002262/5.097, allocations: 1.006 MB / 1.669 GB, free: 66.49 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.034e-06/5.097, allocations: 1.031 kB / 1.669 GB, free: 66.49 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008026/5.105, allocations: 1.949 MB / 1.671 GB, free: 66.49 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.007288/5.112, allocations: 2.469 MB / 1.674 GB, free: 66.18 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01013/5.122, allocations: 4.272 MB / 1.678 GB, free: 65.89 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.452e-05/5.122, allocations: 5.781 kB / 1.678 GB, free: 65.89 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003278/5.126, allocations: 1.517 MB / 1.679 GB, free: 65.66 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005891/5.132, allocations: 0.9167 MB / 1.68 GB, free: 65.64 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01627/5.148, allocations: 5.489 MB / 1.685 GB, free: 64.7 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001605/5.15, allocations: 1.727 MB / 1.687 GB, free: 63.96 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.008951/5.159, allocations: 1.535 MB / 1.689 GB, free: 63.93 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001759/5.16, allocations: 283.9 kB / 1.689 GB, free: 63.93 MB / 0.5105 GB Notification: Performance of SimCode: time 1.691e-06/5.16, allocations: 0 / 1.689 GB, free: 63.93 MB / 0.5105 GB Notification: Performance of Templates: time 0.1849/5.345, allocations: 78.26 MB / 1.765 GB, free: 58.91 MB / 0.5105 GB