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_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16") Notification: Performance of loadModel(ModelicaTest): time 2.284/2.284, allocations: 270 MB / 283.6 MB, free: 1.836 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.785e-05/2.792e-05, allocations: 0 / 348.4 MB, free: 2.719 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3686/0.3686, allocations: 61.89 MB / 410.3 MB, free: 10.75 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.588/1.957, allocations: 0.5613 GB / 0.962 GB, free: 121.4 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003085/1.957, allocations: 78.67 kB / 0.962 GB, free: 121.4 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.268/4.225, allocations: 0.5061 GB / 1.468 GB, free: 42.86 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.126e-06/4.225, allocations: 0 / 1.468 GB, free: 42.86 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002155/4.226, allocations: 59.98 kB / 1.468 GB, free: 42.8 MB / 0.5261 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.008566/4.234, allocations: 2.802 MB / 1.471 GB, free: 39.93 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/4.234, allocations: 8.031 kB / 1.471 GB, free: 39.92 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003839/4.238, allocations: 444.7 kB / 1.471 GB, free: 39.48 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005804/4.244, allocations: 1.925 MB / 1.473 GB, free: 37.51 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001423/4.244, allocations: 131 kB / 1.473 GB, free: 37.38 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000531/4.245, allocations: 160 kB / 1.473 GB, free: 37.23 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005114/4.25, allocations: 2.591 MB / 1.476 GB, free: 34.48 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.758e-05/4.25, allocations: 11.92 kB / 1.476 GB, free: 34.47 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003306/4.25, allocations: 71.97 kB / 1.476 GB, free: 34.4 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002192/4.25, allocations: 154.9 kB / 1.476 GB, free: 34.25 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004436/4.255, allocations: 2.157 MB / 1.478 GB, free: 32.09 MB / 0.5261 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.01758/4.273, allocations: 11.03 MB / 1.489 GB, free: 20.29 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003307/4.276, allocations: 1.755 MB / 1.491 GB, free: 18.48 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001853/4.278, allocations: 1.048 MB / 1.492 GB, free: 17.43 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008711/4.279, allocations: 0.5065 MB / 1.492 GB, free: 16.83 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002199/4.281, allocations: 1.28 MB / 1.494 GB, free: 15.51 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=162): time 5.441e-06/4.281, allocations: 0 / 1.494 GB, free: 15.51 MB / 0.5261 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.02604/4.307, allocations: 8.683 MB / 1.502 GB, free: 6.699 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.813e-05/4.307, allocations: 360.1 kB / 1.502 GB, free: 6.266 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002369/4.309, allocations: 1.403 MB / 1.504 GB, free: 4.867 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003727/4.31, allocations: 57.7 kB / 1.504 GB, free: 4.805 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007604/4.311, allocations: 0.8704 MB / 1.505 GB, free: 3.922 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006247/4.311, allocations: 0.6239 MB / 1.505 GB, free: 3.289 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002184/4.312, allocations: 40 kB / 1.505 GB, free: 3.25 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001297/4.312, allocations: 385.9 kB / 1.506 GB, free: 2.867 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002005/4.314, allocations: 0.9996 MB / 1.507 GB, free: 1.867 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002313/4.316, allocations: 1.432 MB / 1.508 GB, free: 280 kB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002828/4.319, allocations: 1.28 MB / 1.509 GB, free: 14.98 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.35e-06/4.319, allocations: 0 / 1.509 GB, free: 14.98 MB / 0.5417 GB Notification: Performance of matching and sorting (n=260) (initialization): time 0.007772/4.327, allocations: 3.048 MB / 1.512 GB, free: 11.9 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.002103/4.329, allocations: 3.771 MB / 1.516 GB, free: 7.809 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.555e-05/4.329, allocations: 12 kB / 1.516 GB, free: 7.797 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006588/4.33, allocations: 199.3 kB / 1.516 GB, free: 7.59 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00343/4.333, allocations: 0.5345 MB / 1.517 GB, free: 7.055 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002201/4.335, allocations: 2.323 MB / 1.519 GB, free: 4.629 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003189/4.338, allocations: 215.7 kB / 1.519 GB, free: 4.418 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005879/4.339, allocations: 184 kB / 1.519 GB, free: 4.238 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/4.339, allocations: 4 kB / 1.519 GB, free: 4.234 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006999/4.346, allocations: 2.787 MB / 1.522 GB, free: 1.422 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.344e-05/4.346, allocations: 8 kB / 1.522 GB, free: 1.414 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005822/4.347, allocations: 195.8 kB / 1.522 GB, free: 1.211 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00314/4.35, allocations: 0.5305 MB / 1.523 GB, free: 0.6797 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002177/4.352, allocations: 2.318 MB / 1.525 GB, free: 14.26 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002988/4.355, allocations: 227.7 kB / 1.525 GB, free: 14.04 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000537/4.356, allocations: 191.8 kB / 1.525 GB, free: 13.85 MB / 0.5573 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.0008617/4.356, allocations: 291.9 kB / 1.526 GB, free: 13.55 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006104/4.357, allocations: 213.5 kB / 1.526 GB, free: 13.34 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01205/4.369, allocations: 4.607 MB / 1.53 GB, free: 8.691 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.626e-05/4.369, allocations: 23.94 kB / 1.53 GB, free: 8.668 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.036e-05/4.369, allocations: 4 kB / 1.53 GB, free: 8.664 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005945/4.375, allocations: 2.728 MB / 1.533 GB, free: 5.828 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3655/4.741, allocations: 6.97 MB / 1.54 GB, free: 77.78 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.007e-05/4.741, allocations: 6.906 kB / 1.54 GB, free: 77.78 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002702/4.743, allocations: 434.1 kB / 1.54 GB, free: 77.78 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000672/4.744, allocations: 186.6 kB / 1.541 GB, free: 77.75 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004782/4.745, allocations: 103.9 kB / 1.541 GB, free: 77.75 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001963/4.747, allocations: 3.064 MB / 1.544 GB, free: 74.96 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.5e-06/4.747, allocations: 13.56 kB / 1.544 GB, free: 74.96 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009232/4.756, allocations: 4.723 MB / 1.548 GB, free: 73.73 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001787/4.758, allocations: 0.5453 MB / 1.549 GB, free: 73.64 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007855/4.759, allocations: 57.67 kB / 1.549 GB, free: 73.64 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002238/4.761, allocations: 136 kB / 1.549 GB, free: 73.64 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004034/4.761, allocations: 170.6 kB / 1.549 GB, free: 73.63 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003866/4.762, allocations: 162.4 kB / 1.549 GB, free: 73.63 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002143/4.764, allocations: 1.088 MB / 1.55 GB, free: 73.47 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.233e-06/4.764, allocations: 0 / 1.55 GB, free: 73.47 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.006662/4.771, allocations: 1.796 MB / 1.552 GB, free: 73.47 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * 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.00542/4.776, allocations: 2.167 MB / 1.554 GB, free: 73.21 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.009424/4.785, allocations: 4.256 MB / 1.558 GB, free: 72.91 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.185e-05/4.785, allocations: 2.594 kB / 1.558 GB, free: 72.91 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002938/4.788, allocations: 1.49 MB / 1.56 GB, free: 72.68 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005808/4.794, allocations: 0.9703 MB / 1.561 GB, free: 72.66 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009116/4.803, allocations: 4.08 MB / 1.565 GB, free: 71.7 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001754/4.805, allocations: 1.728 MB / 1.566 GB, free: 70.96 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01098/4.816, allocations: 3.227 MB / 1.57 GB, free: 70.9 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001816/4.818, allocations: 320.8 kB / 1.57 GB, free: 70.89 MB / 0.5573 GB Notification: Performance of SimCode: time 1.64e-06/4.818, allocations: 0 / 1.57 GB, free: 70.89 MB / 0.5573 GB Notification: Performance of Templates: time 0.1859/5.004, allocations: 77.86 MB / 1.646 GB, free: 66.73 MB / 0.5573 GB