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.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15") Notification: Performance of loadModel(ModelicaTest): time 2.217/2.217, allocations: 235 MB / 247.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.828e-05/2.844e-05, allocations: 4 kB / 304.9 MB, free: 5.656 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3237/0.3238, allocations: 54.86 MB / 359.8 MB, free: 2.645 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.518/1.842, allocations: 0.6876 GB / 1.039 GB, free: 43.21 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002049/1.842, allocations: 79.2 kB / 1.039 GB, free: 43.17 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.649/4.49, allocations: 0.5495 GB / 1.588 GB, free: 38.43 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.782e-06/4.49, allocations: 0 / 1.588 GB, free: 38.43 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000221/4.491, allocations: 65.39 kB / 1.589 GB, free: 38.41 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.009493/4.5, allocations: 3.016 MB / 1.592 GB, free: 36.68 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/4.5, allocations: 10.66 kB / 1.592 GB, free: 36.68 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003932/4.504, allocations: 436.4 kB / 1.592 GB, free: 36.54 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006265/4.511, allocations: 1.949 MB / 1.594 GB, free: 35.66 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001626/4.511, allocations: 127.2 kB / 1.594 GB, free: 35.61 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006141/4.511, allocations: 166.9 kB / 1.594 GB, free: 35.56 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005037/4.516, allocations: 2.551 MB / 1.597 GB, free: 34.4 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.707e-05/4.516, allocations: 6.969 kB / 1.597 GB, free: 34.39 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003131/4.517, allocations: 72.73 kB / 1.597 GB, free: 34.35 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002193/4.517, allocations: 153.2 kB / 1.597 GB, free: 34.33 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004445/4.522, allocations: 2.154 MB / 1.599 GB, free: 33.59 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.01772/4.539, allocations: 10.96 MB / 1.61 GB, free: 24.4 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003336/4.543, allocations: 1.733 MB / 1.611 GB, free: 22.61 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001845/4.544, allocations: 1.032 MB / 1.612 GB, free: 21.57 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009794/4.545, allocations: 456.4 kB / 1.613 GB, free: 21.08 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002118/4.548, allocations: 1.148 MB / 1.614 GB, free: 19.91 MB / 490.7 MB Notification: Performance of pre-optimization done (n=162): time 5.709e-06/4.548, allocations: 4 kB / 1.614 GB, free: 19.91 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.02594/4.574, allocations: 8.466 MB / 1.622 GB, free: 11.32 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.916e-05/4.574, allocations: 265.3 kB / 1.622 GB, free: 11 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002248/4.576, allocations: 1.325 MB / 1.624 GB, free: 9.68 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000384/4.576, allocations: 65.7 kB / 1.624 GB, free: 9.609 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005855/4.577, allocations: 0.8106 MB / 1.625 GB, free: 8.797 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006259/4.578, allocations: 0.6265 MB / 1.625 GB, free: 8.176 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002094/4.578, allocations: 44 kB / 1.625 GB, free: 8.133 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000134/4.578, allocations: 386.9 kB / 1.626 GB, free: 7.746 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001983/4.58, allocations: 0.9841 MB / 1.627 GB, free: 6.762 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002253/4.582, allocations: 1.422 MB / 1.628 GB, free: 5.176 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002354/4.585, allocations: 1.272 MB / 1.629 GB, free: 3.895 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.1e-05/4.585, allocations: 4 kB / 1.629 GB, free: 3.891 MB / 490.7 MB Notification: Performance of matching and sorting (n=266) (initialization): time 0.006203/4.591, allocations: 2.854 MB / 1.632 GB, free: 1.008 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002067/4.593, allocations: 4.163 MB / 1.636 GB, free: 12.51 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.378e-05/4.593, allocations: 12 kB / 1.636 GB, free: 12.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006794/4.594, allocations: 183.3 kB / 1.636 GB, free: 12.31 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003514/4.597, allocations: 0.55 MB / 1.637 GB, free: 11.76 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002267/4.6, allocations: 2.327 MB / 1.639 GB, free: 9.328 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003257/4.603, allocations: 219.8 kB / 1.639 GB, free: 9.113 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007443/4.604, allocations: 192 kB / 1.639 GB, free: 8.926 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/4.604, allocations: 4 kB / 1.639 GB, free: 8.922 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00702/4.611, allocations: 2.689 MB / 1.642 GB, free: 6.207 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.333e-05/4.611, allocations: 12 kB / 1.642 GB, free: 6.195 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005757/4.611, allocations: 191.8 kB / 1.642 GB, free: 5.996 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003317/4.615, allocations: 0.5344 MB / 1.643 GB, free: 5.461 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00219/4.617, allocations: 2.327 MB / 1.645 GB, free: 3.031 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002463/4.619, allocations: 212 kB / 1.645 GB, free: 2.824 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005415/4.62, allocations: 187.7 kB / 1.645 GB, free: 2.645 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.0008648/4.621, allocations: 296.7 kB / 1.646 GB, free: 2.336 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006581/4.621, allocations: 213.4 kB / 1.646 GB, free: 2.125 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01045/4.632, allocations: 3.457 MB / 1.649 GB, free: 14.64 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.67e-05/4.632, allocations: 20 kB / 1.649 GB, free: 14.62 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.114e-05/4.632, allocations: 0 / 1.649 GB, free: 14.62 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006072/4.638, allocations: 2.709 MB / 1.652 GB, free: 11.8 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01812/4.656, allocations: 6.853 MB / 1.659 GB, free: 4.691 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.006e-05/4.656, allocations: 4 kB / 1.659 GB, free: 4.688 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002909/4.659, allocations: 443.4 kB / 1.659 GB, free: 4.254 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007031/4.66, allocations: 187.6 kB / 1.659 GB, free: 4.059 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005071/4.661, allocations: 99.94 kB / 1.659 GB, free: 3.961 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003047/4.664, allocations: 3.069 MB / 1.662 GB, free: 0.6836 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.466e-05/4.664, allocations: 15.92 kB / 1.662 GB, free: 0.668 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3803/5.044, allocations: 4.639 MB / 1.667 GB, free: 66.79 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001799/5.046, allocations: 0.5298 MB / 1.667 GB, free: 66.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005853/5.046, allocations: 58.02 kB / 1.667 GB, free: 66.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002136/5.049, allocations: 136.9 kB / 1.668 GB, free: 66.7 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004336/5.049, allocations: 171.7 kB / 1.668 GB, free: 66.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004557/5.05, allocations: 170 kB / 1.668 GB, free: 66.7 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002194/5.052, allocations: 1.007 MB / 1.669 GB, free: 66.58 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.623e-06/5.052, allocations: 0 / 1.669 GB, free: 66.58 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007841/5.06, allocations: 1.956 MB / 1.671 GB, free: 66.58 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.007148/5.067, allocations: 2.468 MB / 1.673 GB, free: 66.28 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.009939/5.077, allocations: 4.214 MB / 1.677 GB, free: 65.99 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.257e-05/5.077, allocations: 5.125 kB / 1.677 GB, free: 65.99 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003429/5.08, allocations: 1.512 MB / 1.679 GB, free: 65.77 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005868/5.086, allocations: 0.915 MB / 1.68 GB, free: 65.75 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01662/5.103, allocations: 5.556 MB / 1.685 GB, free: 64.77 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001564/5.104, allocations: 1.699 MB / 1.687 GB, free: 64.04 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002302/5.107, allocations: 365.7 kB / 1.687 GB, free: 64.03 MB / 0.5105 GB Notification: Performance of SimCode: time 2.563e-06/5.107, allocations: 0 / 1.687 GB, free: 64.03 MB / 0.5105 GB Notification: Performance of Templates: time 0.1119/5.219, allocations: 83.17 MB / 1.768 GB, free: 59.74 MB / 0.5105 GB