Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.689/2.689, allocations: 270 MB / 283.6 MB, free: 1.867 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.179e-05/3.191e-05, allocations: 4 kB / 348.5 MB, free: 2.645 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3946/0.3947, allocations: 61.87 MB / 410.4 MB, free: 10.62 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.945/2.34, allocations: 0.5613 GB / 0.962 GB, free: 120 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000282/2.34, allocations: 79.03 kB / 0.9621 GB, free: 120 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.639/4.98, allocations: 0.5061 GB / 1.468 GB, free: 38.12 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.234e-06/4.98, allocations: 0 / 1.468 GB, free: 38.12 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003311/4.98, allocations: 63.92 kB / 1.468 GB, free: 38.05 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.01195/4.992, allocations: 2.802 MB / 1.471 GB, free: 35.18 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.924e-05/4.992, allocations: 12.02 kB / 1.471 GB, free: 35.17 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001171/4.993, allocations: 244.8 kB / 1.471 GB, free: 34.92 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004805/4.998, allocations: 436.8 kB / 1.472 GB, free: 34.49 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008306/5.006, allocations: 1.928 MB / 1.474 GB, free: 32.52 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002/5.007, allocations: 143 kB / 1.474 GB, free: 32.38 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000863/5.008, allocations: 164 kB / 1.474 GB, free: 32.21 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007146/5.015, allocations: 2.587 MB / 1.476 GB, free: 29.48 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.834e-05/5.015, allocations: 4 kB / 1.476 GB, free: 29.47 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004177/5.015, allocations: 75.91 kB / 1.476 GB, free: 29.4 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002936/5.016, allocations: 147 kB / 1.477 GB, free: 29.25 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006997/5.023, allocations: 2.169 MB / 1.479 GB, free: 27.08 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.02587/5.049, allocations: 11.02 MB / 1.489 GB, free: 15.29 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005018/5.054, allocations: 1.759 MB / 1.491 GB, free: 13.47 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002831/5.056, allocations: 1.052 MB / 1.492 GB, free: 12.42 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001441/5.058, allocations: 0.5065 MB / 1.493 GB, free: 11.82 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003694/5.062, allocations: 1.273 MB / 1.494 GB, free: 10.51 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=162): time 5.691e-06/5.062, allocations: 0 / 1.494 GB, free: 10.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.03999/5.102, allocations: 8.678 MB / 1.502 GB, free: 1.699 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001208/5.102, allocations: 364.1 kB / 1.503 GB, free: 1.262 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00319/5.105, allocations: 1.4 MB / 1.504 GB, free: 15.87 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0007499/5.106, allocations: 65.69 kB / 1.504 GB, free: 15.8 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001354/5.107, allocations: 0.8703 MB / 1.505 GB, free: 14.91 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001378/5.109, allocations: 0.6238 MB / 1.506 GB, free: 14.28 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003439/5.109, allocations: 44 kB / 1.506 GB, free: 14.24 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002596/5.109, allocations: 389.9 kB / 1.506 GB, free: 13.85 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003317/5.113, allocations: 0.9957 MB / 1.507 GB, free: 12.86 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004495/5.117, allocations: 1.432 MB / 1.508 GB, free: 11.27 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004244/5.122, allocations: 1.268 MB / 1.51 GB, free: 9.984 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-05/5.122, allocations: 4 kB / 1.51 GB, free: 9.98 MB / 0.5417 GB Notification: Performance of matching and sorting (n=260) (initialization): time 0.01143/5.133, allocations: 3.059 MB / 1.513 GB, free: 6.887 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001714/5.135, allocations: 3.772 MB / 1.516 GB, free: 2.797 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.09e-05/5.135, allocations: 12 kB / 1.516 GB, free: 2.785 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008494/5.136, allocations: 183.3 kB / 1.517 GB, free: 2.594 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005327/5.141, allocations: 0.5422 MB / 1.517 GB, free: 2.051 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4578/5.599, allocations: 2.318 MB / 1.519 GB, free: 62.81 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004823/5.604, allocations: 215 kB / 1.52 GB, free: 62.81 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001015/5.605, allocations: 188.8 kB / 1.52 GB, free: 62.81 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/5.605, allocations: 6.25 kB / 1.52 GB, free: 62.81 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009057/5.614, allocations: 2.781 MB / 1.522 GB, free: 62.69 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.22e-05/5.614, allocations: 8 kB / 1.522 GB, free: 62.69 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006059/5.615, allocations: 193.1 kB / 1.523 GB, free: 62.66 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004703/5.619, allocations: 0.5383 MB / 1.523 GB, free: 62.66 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001752/5.621, allocations: 2.318 MB / 1.525 GB, free: 60.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004607/5.626, allocations: 218.6 kB / 1.526 GB, free: 60.6 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000888/5.627, allocations: 179 kB / 1.526 GB, free: 60.6 MB / 0.5417 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.00104/5.628, allocations: 300.5 kB / 1.526 GB, free: 60.43 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007241/5.629, allocations: 216.6 kB / 1.526 GB, free: 60.43 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01332/5.642, allocations: 4.605 MB / 1.531 GB, free: 60.17 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.428e-05/5.642, allocations: 18.47 kB / 1.531 GB, free: 60.17 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.437e-05/5.642, allocations: 5.047 kB / 1.531 GB, free: 60.17 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006893/5.649, allocations: 2.747 MB / 1.533 GB, free: 59.59 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01803/5.667, allocations: 6.969 MB / 1.54 GB, free: 58.05 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.775e-05/5.667, allocations: 7.281 kB / 1.54 GB, free: 58.05 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003573/5.671, allocations: 442 kB / 1.541 GB, free: 58.05 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006485/5.671, allocations: 183.5 kB / 1.541 GB, free: 58.02 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000335/5.672, allocations: 102.1 kB / 1.541 GB, free: 58.02 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002125/5.674, allocations: 3.055 MB / 1.544 GB, free: 55.23 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.855e-06/5.674, allocations: 10.78 kB / 1.544 GB, free: 55.23 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0104/5.684, allocations: 4.727 MB / 1.549 GB, free: 53.97 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00193/5.686, allocations: 0.5414 MB / 1.549 GB, free: 53.76 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007863/5.687, allocations: 62.03 kB / 1.549 GB, free: 53.76 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003039/5.69, allocations: 136.9 kB / 1.549 GB, free: 53.76 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004248/5.691, allocations: 171.2 kB / 1.549 GB, free: 53.75 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003903/5.691, allocations: 164.2 kB / 1.55 GB, free: 53.75 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002246/5.693, allocations: 1.087 MB / 1.551 GB, free: 53.59 MB / 0.5417 GB Notification: Performance of sort global known variables: time 7.32e-07/5.693, allocations: 3.75 kB / 1.551 GB, free: 53.59 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007712/5.701, allocations: 1.802 MB / 1.552 GB, free: 53.59 MB / 0.5417 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.01752/5.719, allocations: 9.068 MB / 1.561 GB, free: 49.88 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01184/5.73, allocations: 4.255 MB / 1.565 GB, free: 49.58 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.62e-05/5.731, allocations: 2.531 kB / 1.565 GB, free: 49.58 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003747/5.734, allocations: 1.49 MB / 1.567 GB, free: 49.35 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00865/5.743, allocations: 0.9699 MB / 1.568 GB, free: 49.33 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01616/5.759, allocations: 4.958 MB / 1.573 GB, free: 48.3 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001573/5.761, allocations: 1.724 MB / 1.574 GB, free: 47.57 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.01314/5.774, allocations: 3.233 MB / 1.578 GB, free: 47.5 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004368/5.778, allocations: 0.9945 MB / 1.579 GB, free: 47.49 MB / 0.5417 GB Notification: Performance of SimCode: time 1.463e-06/5.778, allocations: 0 / 1.579 GB, free: 47.49 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2781/6.057, allocations: 101.2 MB / 1.677 GB, free: 12.85 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001739/6.057, allocations: 233.1 kB / 1.678 GB, free: 12.54 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.121/14.18, allocations: 4.062 kB / 1.678 GB, free: 12.54 MB / 0.5417 GB