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.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15") Notification: Performance of loadModel(ModelicaTest): time 1.875/1.875, allocations: 209.3 MB / 221.9 MB, free: 7.738 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.281e-05/3.282e-05, allocations: 0 / 273.1 MB, free: 3.664 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08419/0.08425, allocations: 48.7 MB / 321.8 MB, free: 2.871 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.775/1.859, allocations: 0.681 GB / 0.9952 GB, free: 8.25 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001931/1.859, allocations: 71.97 kB / 0.9953 GB, free: 8.18 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.853/4.713, allocations: 0.5492 GB / 1.544 GB, free: 36.83 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.167e-06/4.713, allocations: 0 / 1.544 GB, free: 36.83 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000266/4.713, allocations: 62.17 kB / 1.545 GB, free: 36.83 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 423 * Number of variables: 423 Notification: Performance of Generate backend data structure: time 0.01066/4.724, allocations: 3.007 MB / 1.547 GB, free: 35.69 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/4.724, allocations: 7.719 kB / 1.547 GB, free: 35.69 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00428/4.728, allocations: 441.8 kB / 1.548 GB, free: 35.57 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006395/4.734, allocations: 1.914 MB / 1.55 GB, free: 35.18 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002089/4.735, allocations: 137.4 kB / 1.55 GB, free: 35.18 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007855/4.735, allocations: 166 kB / 1.55 GB, free: 35.18 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006392/4.742, allocations: 2.546 MB / 1.553 GB, free: 34.75 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.921e-05/4.742, allocations: 6.188 kB / 1.553 GB, free: 34.75 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003886/4.742, allocations: 72.84 kB / 1.553 GB, free: 34.75 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002432/4.743, allocations: 160.7 kB / 1.553 GB, free: 34.75 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005538/4.748, allocations: 2.134 MB / 1.555 GB, free: 34.74 MB / 458.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.01946/4.768, allocations: 10.93 MB / 1.566 GB, free: 28.86 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003828/4.772, allocations: 1.733 MB / 1.567 GB, free: 28.54 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002387/4.774, allocations: 1.022 MB / 1.568 GB, free: 28.52 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001275/4.775, allocations: 467.3 kB / 1.569 GB, free: 28.24 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002787/4.778, allocations: 1.133 MB / 1.57 GB, free: 28.11 MB / 458.7 MB Notification: Performance of pre-optimization done (n=158): time 6.251e-06/4.778, allocations: 0 / 1.57 GB, free: 28.11 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 Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=181): time 0.03008/4.808, allocations: 8.479 MB / 1.578 GB, free: 26.93 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.766e-05/4.808, allocations: 259.5 kB / 1.578 GB, free: 26.65 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0026/4.811, allocations: 1.328 MB / 1.58 GB, free: 26.48 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005724/4.812, allocations: 62.48 kB / 1.58 GB, free: 26.45 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007069/4.812, allocations: 0.8132 MB / 1.58 GB, free: 26.05 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008933/4.813, allocations: 0.6075 MB / 1.581 GB, free: 25.66 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002418/4.813, allocations: 39.53 kB / 1.581 GB, free: 25.66 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001589/4.814, allocations: 396 kB / 1.581 GB, free: 25.35 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002263/4.816, allocations: 0.9776 MB / 1.582 GB, free: 25.34 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002901/4.819, allocations: 1.412 MB / 1.584 GB, free: 24.91 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00292/4.822, allocations: 1.253 MB / 1.585 GB, free: 24.83 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.699e-05/4.822, allocations: 3.656 kB / 1.585 GB, free: 24.83 MB / 458.7 MB Notification: Performance of matching and sorting (n=262) (initialization): time 0.007546/4.829, allocations: 2.879 MB / 1.588 GB, free: 24.61 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008954/4.83, allocations: 4.166 MB / 1.592 GB, free: 20.29 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.672e-05/4.83, allocations: 11.03 kB / 1.592 GB, free: 20.29 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006027/4.831, allocations: 190.6 kB / 1.592 GB, free: 20.25 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003613/4.835, allocations: 0.5472 MB / 1.593 GB, free: 20.25 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001511/4.836, allocations: 2.328 MB / 1.595 GB, free: 18.18 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003459/4.84, allocations: 211.3 kB / 1.595 GB, free: 18.17 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008052/4.841, allocations: 186.1 kB / 1.595 GB, free: 18.17 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/4.841, allocations: 3.938 kB / 1.595 GB, free: 18.17 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00649/4.847, allocations: 2.726 MB / 1.598 GB, free: 18.03 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.437e-05/4.847, allocations: 11 kB / 1.598 GB, free: 18.03 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005802/4.848, allocations: 186.2 kB / 1.598 GB, free: 18 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003121/4.851, allocations: 0.5396 MB / 1.599 GB, free: 17.99 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00139/4.852, allocations: 2.325 MB / 1.601 GB, free: 15.92 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002493/4.855, allocations: 205.3 kB / 1.601 GB, free: 15.91 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005792/4.855, allocations: 187.5 kB / 1.601 GB, free: 15.91 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent) * 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.0007862/4.856, allocations: 298.9 kB / 1.602 GB, free: 15.73 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006093/4.857, allocations: 204.4 kB / 1.602 GB, free: 15.63 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009913/4.867, allocations: 3.477 MB / 1.605 GB, free: 15.39 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.126e-05/4.867, allocations: 16.41 kB / 1.605 GB, free: 15.39 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.169e-05/4.867, allocations: 6.344 kB / 1.605 GB, free: 15.39 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006089/4.873, allocations: 2.717 MB / 1.608 GB, free: 14.8 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01783/4.891, allocations: 6.838 MB / 1.615 GB, free: 13.32 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-05/4.891, allocations: 4.156 kB / 1.615 GB, free: 13.32 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002796/4.894, allocations: 450.1 kB / 1.615 GB, free: 13.32 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006209/4.894, allocations: 186.3 kB / 1.615 GB, free: 13.29 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004959/4.895, allocations: 103 kB / 1.615 GB, free: 13.29 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003068/4.898, allocations: 3.065 MB / 1.618 GB, free: 26.49 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.899e-06/4.898, allocations: 9.891 kB / 1.618 GB, free: 26.48 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00938/4.907, allocations: 4.648 MB / 1.623 GB, free: 25.27 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001865/4.909, allocations: 0.5228 MB / 1.623 GB, free: 25.06 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008436/4.91, allocations: 53.92 kB / 1.623 GB, free: 25.06 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002442/4.913, allocations: 134.1 kB / 1.623 GB, free: 25.05 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005539/4.913, allocations: 173.8 kB / 1.624 GB, free: 25.04 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004383/4.914, allocations: 173 kB / 1.624 GB, free: 25.04 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002144/4.916, allocations: 0.9997 MB / 1.625 GB, free: 24.92 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.18e-06/4.916, allocations: 5.375 kB / 1.625 GB, free: 24.92 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009531/4.926, allocations: 1.945 MB / 1.627 GB, free: 24.67 MB / 474.7 MB 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: 10 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,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.009843/4.935, allocations: 2.468 MB / 1.629 GB, free: 24.07 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01391/4.949, allocations: 4.096 MB / 1.633 GB, free: 23.78 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.841e-05/4.949, allocations: 0 / 1.633 GB, free: 23.78 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004616/4.954, allocations: 1.468 MB / 1.635 GB, free: 23.54 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008376/4.963, allocations: 0.9018 MB / 1.635 GB, free: 23.51 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01803/4.981, allocations: 5.513 MB / 1.641 GB, free: 22.24 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001801/4.982, allocations: 1.695 MB / 1.642 GB, free: 21.41 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002496/4.985, allocations: 364 kB / 1.643 GB, free: 21.36 MB / 474.7 MB Notification: Performance of SimCode: time 1.849e-06/4.985, allocations: 0 / 1.643 GB, free: 21.36 MB / 474.7 MB Notification: Performance of Templates: time 0.4215/5.407, allocations: 82.78 MB / 1.724 GB, free: 46.81 MB / 474.7 MB