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.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16") Notification: Performance of loadModel(ModelicaTest): time 1.85/1.85, allocations: 209.3 MB / 221.5 MB, free: 1.852 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.742e-05/4.754e-05, allocations: 4 kB / 273.1 MB, free: 236 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1291/0.1292, allocations: 48.7 MB / 321.8 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.897/2.026, allocations: 0.681 GB / 0.9952 GB, free: 122.1 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002237/2.027, allocations: 80.02 kB / 0.9953 GB, free: 122.1 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.584/4.611, allocations: 0.5492 GB / 1.545 GB, free: 36.3 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.779e-06/4.611, allocations: 0 / 1.545 GB, free: 36.3 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002058/4.611, allocations: 66.08 kB / 1.545 GB, free: 36.29 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.009169/4.62, allocations: 3.003 MB / 1.548 GB, free: 35.09 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/4.62, allocations: 13.88 kB / 1.548 GB, free: 35.09 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003744/4.624, allocations: 438.9 kB / 1.548 GB, free: 34.96 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005842/4.63, allocations: 1.914 MB / 1.55 GB, free: 34.53 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001371/4.63, allocations: 134.4 kB / 1.55 GB, free: 34.52 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004405/4.631, allocations: 163.4 kB / 1.55 GB, free: 34.52 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004971/4.636, allocations: 2.56 MB / 1.553 GB, free: 34.1 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.752e-05/4.636, allocations: 3.906 kB / 1.553 GB, free: 34.1 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003004/4.636, allocations: 72.14 kB / 1.553 GB, free: 34.1 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002123/4.636, allocations: 157.2 kB / 1.553 GB, free: 34.09 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004757/4.641, allocations: 2.139 MB / 1.555 GB, free: 34.08 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.01763/4.659, allocations: 10.92 MB / 1.566 GB, free: 28.2 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00343/4.662, allocations: 1.74 MB / 1.567 GB, free: 27.88 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002078/4.664, allocations: 1.016 MB / 1.568 GB, free: 27.87 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001133/4.665, allocations: 457.5 kB / 1.569 GB, free: 27.59 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00239/4.668, allocations: 1.138 MB / 1.57 GB, free: 27.46 MB / 458.7 MB Notification: Performance of pre-optimization done (n=158): time 6.131e-06/4.668, allocations: 0 / 1.57 GB, free: 27.46 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.02739/4.695, allocations: 8.475 MB / 1.578 GB, free: 26.29 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.392e-05/4.695, allocations: 259.6 kB / 1.578 GB, free: 26.01 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002737/4.698, allocations: 1.327 MB / 1.58 GB, free: 25.83 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006009/4.699, allocations: 62.55 kB / 1.58 GB, free: 25.8 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000949/4.7, allocations: 0.8709 MB / 1.581 GB, free: 25.47 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009263/4.701, allocations: 0.611 MB / 1.581 GB, free: 25.08 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002604/4.701, allocations: 40.56 kB / 1.581 GB, free: 25.08 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001592/4.701, allocations: 392.1 kB / 1.582 GB, free: 24.77 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002238/4.703, allocations: 0.9753 MB / 1.583 GB, free: 24.76 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002581/4.706, allocations: 1.413 MB / 1.584 GB, free: 24.33 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002588/4.709, allocations: 1.257 MB / 1.585 GB, free: 24.24 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.149e-05/4.709, allocations: 3.938 kB / 1.585 GB, free: 24.24 MB / 458.7 MB Notification: Performance of matching and sorting (n=262) (initialization): time 0.006916/4.716, allocations: 2.988 MB / 1.588 GB, free: 23.96 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008986/4.716, allocations: 4.298 MB / 1.592 GB, free: 19.45 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.319e-05/4.717, allocations: 10.69 kB / 1.592 GB, free: 19.45 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006039/4.717, allocations: 190.4 kB / 1.592 GB, free: 19.42 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003304/4.72, allocations: 0.5374 MB / 1.593 GB, free: 19.42 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001418/4.722, allocations: 2.328 MB / 1.595 GB, free: 17.35 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003366/4.725, allocations: 207.4 kB / 1.595 GB, free: 17.34 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000653/4.726, allocations: 196.1 kB / 1.596 GB, free: 17.34 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/4.726, allocations: 3.656 kB / 1.596 GB, free: 17.34 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006143/4.732, allocations: 2.719 MB / 1.598 GB, free: 17.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.992e-05/4.732, allocations: 12.03 kB / 1.598 GB, free: 17.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005172/4.733, allocations: 192.4 kB / 1.598 GB, free: 17.16 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002994/4.736, allocations: 0.5411 MB / 1.599 GB, free: 17.16 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001346/4.737, allocations: 2.322 MB / 1.601 GB, free: 15.09 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002876/4.74, allocations: 210.2 kB / 1.601 GB, free: 15.08 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005052/4.741, allocations: 190 kB / 1.602 GB, free: 15.08 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.0007478/4.741, allocations: 288.8 kB / 1.602 GB, free: 14.9 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005261/4.742, allocations: 207.4 kB / 1.602 GB, free: 14.8 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009405/4.751, allocations: 3.481 MB / 1.606 GB, free: 14.55 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.263e-05/4.751, allocations: 17.53 kB / 1.606 GB, free: 14.55 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.173e-05/4.751, allocations: 3.141 kB / 1.606 GB, free: 14.55 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005442/4.757, allocations: 2.706 MB / 1.608 GB, free: 13.97 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01518/4.772, allocations: 6.844 MB / 1.615 GB, free: 12.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.761e-05/4.772, allocations: 6.906 kB / 1.615 GB, free: 12.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002653/4.775, allocations: 447.1 kB / 1.615 GB, free: 12.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005986/4.775, allocations: 191.4 kB / 1.615 GB, free: 12.46 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003568/4.776, allocations: 104 kB / 1.616 GB, free: 12.46 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002728/4.779, allocations: 3.06 MB / 1.619 GB, free: 25.66 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.765e-06/4.779, allocations: 11.94 kB / 1.619 GB, free: 25.66 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008773/4.787, allocations: 4.645 MB / 1.623 GB, free: 24.43 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001679/4.789, allocations: 0.5272 MB / 1.624 GB, free: 24.23 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006449/4.79, allocations: 59.45 kB / 1.624 GB, free: 24.23 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002029/4.792, allocations: 128.3 kB / 1.624 GB, free: 24.22 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003886/4.792, allocations: 171.6 kB / 1.624 GB, free: 24.21 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003594/4.793, allocations: 172.3 kB / 1.624 GB, free: 24.21 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001956/4.795, allocations: 1.001 MB / 1.625 GB, free: 24.09 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.51e-07/4.795, allocations: 0 / 1.625 GB, free: 24.09 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008486/4.803, allocations: 1.946 MB / 1.627 GB, free: 23.66 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.007111/4.81, allocations: 2.475 MB / 1.629 GB, free: 23 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009018/4.819, allocations: 4.145 MB / 1.633 GB, free: 21.48 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.149e-05/4.819, allocations: 0 / 1.633 GB, free: 21.48 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002835/4.822, allocations: 1.471 MB / 1.635 GB, free: 20.85 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005085/4.827, allocations: 0.9136 MB / 1.636 GB, free: 20.66 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01446/4.842, allocations: 5.469 MB / 1.641 GB, free: 17.78 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00166/4.844, allocations: 1.715 MB / 1.643 GB, free: 16.39 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.007887/4.851, allocations: 1.533 MB / 1.644 GB, free: 15.34 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001467/4.853, allocations: 281.2 kB / 1.645 GB, free: 15.1 MB / 474.7 MB Notification: Performance of SimCode: time 1.695e-06/4.853, allocations: 0 / 1.645 GB, free: 15.1 MB / 474.7 MB Notification: Performance of Templates: time 0.4546/5.308, allocations: 78.34 MB / 1.721 GB, free: 46.79 MB / 474.7 MB