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.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16") Notification: Performance of loadModel(ModelicaTest): time 2.281/2.281, allocations: 249.5 MB / 261.6 MB, free: 2.152 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 4.813e-05/4.831e-05, allocations: 4 kB / 323.4 MB, free: 4.305 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3204/0.3205, allocations: 58.83 MB / 382.2 MB, free: 10.33 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.579/1.9, allocations: 0.6917 GB / 1.065 GB, free: 58.56 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002158/1.9, allocations: 82.08 kB / 1.065 GB, free: 58.52 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.632/4.532, allocations: 0.5545 GB / 1.62 GB, free: 45.19 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.92e-06/4.532, allocations: 0 / 1.62 GB, free: 45.19 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.000211/4.532, allocations: 67.05 kB / 1.62 GB, free: 45.17 MB / 0.5105 GB 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.009808/4.542, allocations: 3.03 MB / 1.623 GB, free: 43.69 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/4.542, allocations: 10.5 kB / 1.623 GB, free: 43.68 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003903/4.546, allocations: 448.5 kB / 1.623 GB, free: 43.55 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006272/4.553, allocations: 1.927 MB / 1.625 GB, free: 43.11 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001484/4.553, allocations: 136.2 kB / 1.625 GB, free: 43.11 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004894/4.553, allocations: 163.3 kB / 1.625 GB, free: 43.11 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005642/4.559, allocations: 2.581 MB / 1.628 GB, free: 42.68 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.9e-05/4.559, allocations: 0 / 1.628 GB, free: 42.68 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000343/4.559, allocations: 73.36 kB / 1.628 GB, free: 42.68 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000228/4.56, allocations: 152.1 kB / 1.628 GB, free: 42.68 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004929/4.565, allocations: 2.163 MB / 1.63 GB, free: 42.67 MB / 0.5105 GB 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.01821/4.583, allocations: 11.04 MB / 1.641 GB, free: 36.77 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003493/4.586, allocations: 1.756 MB / 1.642 GB, free: 36.45 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002009/4.588, allocations: 1.046 MB / 1.643 GB, free: 36.44 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001021/4.589, allocations: 454.2 kB / 1.644 GB, free: 36.15 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002511/4.592, allocations: 1.268 MB / 1.645 GB, free: 35.99 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=162): time 5.88e-06/4.592, allocations: 0 / 1.645 GB, free: 35.99 MB / 0.5105 GB 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.02932/4.621, allocations: 8.665 MB / 1.654 GB, free: 34.79 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/4.621, allocations: 366.1 kB / 1.654 GB, free: 34.38 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002588/4.624, allocations: 1.403 MB / 1.655 GB, free: 34.2 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000519/4.625, allocations: 61.89 kB / 1.655 GB, free: 34.16 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007745/4.625, allocations: 0.8672 MB / 1.656 GB, free: 33.85 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007842/4.626, allocations: 0.6244 MB / 1.657 GB, free: 33.37 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002183/4.626, allocations: 42.09 kB / 1.657 GB, free: 33.34 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001363/4.627, allocations: 391.2 kB / 1.657 GB, free: 33 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002155/4.629, allocations: 0.9958 MB / 1.658 GB, free: 32.65 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002576/4.631, allocations: 1.426 MB / 1.66 GB, free: 31.84 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002621/4.634, allocations: 1.27 MB / 1.661 GB, free: 31.36 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.166e-05/4.634, allocations: 4.219 kB / 1.661 GB, free: 31.36 MB / 0.5105 GB Notification: Performance of matching and sorting (n=260) (initialization): time 0.007413/4.641, allocations: 3.045 MB / 1.664 GB, free: 30.29 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008233/4.642, allocations: 3.766 MB / 1.668 GB, free: 26.28 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.297e-05/4.642, allocations: 10.69 kB / 1.668 GB, free: 26.28 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005844/4.643, allocations: 189.1 kB / 1.668 GB, free: 26.22 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003624/4.647, allocations: 0.5416 MB / 1.668 GB, free: 26.17 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001478/4.648, allocations: 2.318 MB / 1.671 GB, free: 24.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003586/4.652, allocations: 221.2 kB / 1.671 GB, free: 23.97 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006281/4.652, allocations: 187.6 kB / 1.671 GB, free: 23.95 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/4.652, allocations: 6.719 kB / 1.671 GB, free: 23.95 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006399/4.659, allocations: 2.771 MB / 1.674 GB, free: 22.97 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.516e-05/4.659, allocations: 14.31 kB / 1.674 GB, free: 22.97 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005666/4.659, allocations: 183.2 kB / 1.674 GB, free: 22.92 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002993/4.662, allocations: 0.5338 MB / 1.674 GB, free: 22.87 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001534/4.664, allocations: 2.317 MB / 1.677 GB, free: 20.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003007/4.667, allocations: 209.9 kB / 1.677 GB, free: 20.67 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004442/4.668, allocations: 189.4 kB / 1.677 GB, free: 20.65 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (246): * Single equations (assignments): 240 * 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.0007684/4.668, allocations: 292.8 kB / 1.677 GB, free: 20.38 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004985/4.669, allocations: 213.5 kB / 1.677 GB, free: 20.17 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009123/4.678, allocations: 3.709 MB / 1.681 GB, free: 17.14 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.87e-05/4.678, allocations: 20 kB / 1.681 GB, free: 17.12 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/4.678, allocations: 0 / 1.681 GB, free: 17.12 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00489/4.683, allocations: 2.731 MB / 1.684 GB, free: 14.58 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01404/4.697, allocations: 6.582 MB / 1.69 GB, free: 8.965 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.564e-05/4.697, allocations: 4 kB / 1.69 GB, free: 8.961 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002545/4.7, allocations: 429.8 kB / 1.691 GB, free: 8.605 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005833/4.7, allocations: 187.9 kB / 1.691 GB, free: 8.445 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003233/4.701, allocations: 100.5 kB / 1.691 GB, free: 8.359 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002441/4.703, allocations: 3.066 MB / 1.694 GB, free: 21.18 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.104e-06/4.703, allocations: 8 kB / 1.694 GB, free: 21.18 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008059/4.711, allocations: 4.614 MB / 1.698 GB, free: 16.7 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001591/4.713, allocations: 0.5459 MB / 1.699 GB, free: 16.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005103/4.713, allocations: 55.47 kB / 1.699 GB, free: 16.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001889/4.715, allocations: 134.3 kB / 1.699 GB, free: 16.06 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003488/4.716, allocations: 161.5 kB / 1.699 GB, free: 15.95 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003321/4.716, allocations: 162.3 kB / 1.699 GB, free: 15.8 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001897/4.718, allocations: 1.089 MB / 1.7 GB, free: 14.79 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.6e-07/4.718, allocations: 0 / 1.7 GB, free: 14.79 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007518/4.725, allocations: 1.98 MB / 1.702 GB, free: 12.85 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (191): * Single equations (assignments): 185 * 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.006873/4.732, allocations: 2.481 MB / 1.705 GB, free: 11.02 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01042/4.743, allocations: 4.245 MB / 1.709 GB, free: 7.098 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.186e-05/4.743, allocations: 3.375 kB / 1.709 GB, free: 7.098 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003348/4.746, allocations: 1.477 MB / 1.71 GB, free: 5.719 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006015/4.752, allocations: 0.9731 MB / 1.711 GB, free: 5.008 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01021/4.762, allocations: 4.045 MB / 1.715 GB, free: 1.387 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00196/4.764, allocations: 1.727 MB / 1.717 GB, free: 15.99 MB / 0.5418 GB Notification: Performance of simCode: alias equations: time 0.008949/4.773, allocations: 1.533 MB / 1.719 GB, free: 14.93 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001706/4.775, allocations: 277.3 kB / 1.719 GB, free: 14.68 MB / 0.5418 GB Notification: Performance of SimCode: time 2.283e-06/4.775, allocations: 4 kB / 1.719 GB, free: 14.68 MB / 0.5418 GB Notification: Performance of Templates: time 0.4881/5.263, allocations: 80.85 MB / 1.798 GB, free: 68.67 MB / 0.5418 GB