Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_trunk_cpp_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.097/2.097, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.157e-05/3.159e-05, allocations: 0 / 292.2 MB, free: 8.734 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1092, allocations: 50.4 MB / 342.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.135/9.244, allocations: 3.161 GB / 3.495 GB, free: 33.21 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002613/9.244, allocations: 82.58 kB / 3.495 GB, free: 33.18 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 14.19/23.44, allocations: 3.108 GB / 6.604 GB, free: 41.71 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.205e-06/23.44, allocations: 3.5 kB / 6.604 GB, free: 41.71 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003422/23.44, allocations: 72.19 kB / 6.604 GB, free: 41.7 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: 538 * Number of variables: 538 Notification: Performance of Generate backend data structure: time 0.01919/23.46, allocations: 3.595 MB / 6.607 GB, free: 39.93 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/23.46, allocations: 10 kB / 6.607 GB, free: 39.93 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001595/23.46, allocations: 342.7 kB / 6.608 GB, free: 39.87 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001886/23.46, allocations: 318.4 kB / 6.608 GB, free: 39.72 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00843/23.47, allocations: 2.018 MB / 6.61 GB, free: 39.25 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003187/23.47, allocations: 219.7 kB / 6.61 GB, free: 39.19 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001062/23.47, allocations: 202.5 kB / 6.61 GB, free: 39.18 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008874/23.48, allocations: 3.287 MB / 6.614 GB, free: 38.71 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.146e-05/23.48, allocations: 10.06 kB / 6.614 GB, free: 38.71 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000431/23.48, allocations: 82.81 kB / 6.614 GB, free: 38.71 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003772/23.48, allocations: 206 kB / 6.614 GB, free: 38.7 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008673/23.49, allocations: 2.994 MB / 6.617 GB, free: 38.7 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.03171/23.52, allocations: 12.43 MB / 6.629 GB, free: 33.7 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006381/23.53, allocations: 2.186 MB / 6.631 GB, free: 33.55 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003535/23.53, allocations: 1.339 MB / 6.632 GB, free: 33.54 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0141/23.54, allocations: 5.993 MB / 6.638 GB, free: 30.71 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.57e-05/23.54, allocations: 54.88 kB / 6.638 GB, free: 30.67 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001569/23.55, allocations: 203.4 kB / 6.638 GB, free: 30.57 MB / 490.7 MB Notification: Performance of pre-optimization done (n=172): time 5.46e-06/23.55, allocations: 0 / 6.638 GB, free: 30.57 MB / 490.7 MB Notification: Performance of matching and sorting (n=198): time 0.02564/23.57, allocations: 7.249 MB / 6.646 GB, free: 29.67 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.072e-05/23.57, allocations: 129.1 kB / 6.646 GB, free: 29.55 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003398/23.57, allocations: 1.654 MB / 6.647 GB, free: 29.31 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006148/23.58, allocations: 60.52 kB / 6.647 GB, free: 29.28 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007255/23.58, allocations: 0.9684 MB / 6.648 GB, free: 28.8 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008527/23.58, allocations: 0.6802 MB / 6.649 GB, free: 28.37 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002528/23.58, allocations: 47.44 kB / 6.649 GB, free: 28.37 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001683/23.58, allocations: 404.4 kB / 6.649 GB, free: 28.05 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002859/23.58, allocations: 1.18 MB / 6.651 GB, free: 28.05 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003183/23.58, allocations: 1.688 MB / 6.652 GB, free: 27.49 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003319/23.59, allocations: 1.441 MB / 6.654 GB, free: 27.47 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.318e-05/23.59, allocations: 7.094 kB / 6.654 GB, free: 27.46 MB / 490.7 MB Notification: Performance of matching and sorting (n=293) (initialization): time 0.01001/23.6, allocations: 3.967 MB / 6.657 GB, free: 27.33 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001316/23.6, allocations: 5.657 MB / 6.663 GB, free: 21.44 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.096e-05/23.6, allocations: 15.28 kB / 6.663 GB, free: 21.44 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02325/23.62, allocations: 3.554 MB / 6.666 GB, free: 21.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002474/23.62, allocations: 317.4 kB / 6.667 GB, free: 21.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01001/23.63, allocations: 3.948 MB / 6.671 GB, free: 20.01 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004215/23.64, allocations: 197 kB / 6.671 GB, free: 19.96 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003704/23.64, allocations: 108.9 kB / 6.671 GB, free: 19.94 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/23.64, allocations: 3.719 kB / 6.671 GB, free: 19.94 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009261/23.65, allocations: 3.658 MB / 6.674 GB, free: 18.72 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.393e-05/23.65, allocations: 14.78 kB / 6.675 GB, free: 18.72 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0157/23.66, allocations: 2.569 MB / 6.677 GB, free: 18.34 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003053/23.67, allocations: 365.2 kB / 6.677 GB, free: 18.32 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007809/23.67, allocations: 3.414 MB / 6.681 GB, free: 16.84 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003199/23.68, allocations: 191.8 kB / 6.681 GB, free: 16.79 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003276/23.68, allocations: 108.6 kB / 6.681 GB, free: 16.77 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 168 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {18 107} Notification: Performance of prepare postOptimizeDAE: time 0.0007734/23.68, allocations: 224.3 kB / 6.681 GB, free: 16.58 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007196/23.68, allocations: 228.8 kB / 6.681 GB, free: 16.46 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01095/23.69, allocations: 3.887 MB / 6.685 GB, free: 15.05 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.681e-05/23.69, allocations: 26.39 kB / 6.685 GB, free: 15.05 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-05/23.69, allocations: 2.938 kB / 6.685 GB, free: 15.05 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008148/23.7, allocations: 3.284 MB / 6.688 GB, free: 13.67 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01707/23.72, allocations: 6.327 MB / 6.695 GB, free: 11.28 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.626e-05/23.72, allocations: 1.562 kB / 6.695 GB, free: 11.28 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002885/23.72, allocations: 322.3 kB / 6.695 GB, free: 11.25 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007119/23.73, allocations: 1.197 MB / 6.696 GB, free: 11 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005712/23.73, allocations: 71.58 kB / 6.696 GB, free: 10.97 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01129/23.74, allocations: 10.4 MB / 6.706 GB, free: 1.883 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/23.74, allocations: 0 / 6.706 GB, free: 1.883 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0139/23.75, allocations: 5.156 MB / 6.711 GB, free: 15.99 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002415/23.75, allocations: 0.6454 MB / 6.712 GB, free: 15.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006631/23.76, allocations: 54.03 kB / 6.712 GB, free: 15.58 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003209/23.76, allocations: 155 kB / 6.712 GB, free: 15.54 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006405/23.76, allocations: 168.4 kB / 6.712 GB, free: 15.52 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003315/23.76, allocations: 81.78 kB / 6.712 GB, free: 15.5 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003289/23.76, allocations: 1.278 MB / 6.714 GB, free: 14.98 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.82e-07/23.76, allocations: 0 / 6.714 GB, free: 14.98 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01012/23.77, allocations: 1.936 MB / 6.716 GB, free: 14.58 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (tank.medium.T,tank.level,heater.mediums[1].p,heater.mediums[1].T,radiator.mediums[1].p,radiator.mediums[1].T,pipe.mediums[1].p,pipe.mediums[1].T,pipe.mediums[2].p,pipe.mediums[2].T) * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (183): * Single equations (assignments): 169 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 6,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {1 9,2 8,6 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.02213/23.8, allocations: 6.958 MB / 6.722 GB, free: 9.09 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01919/23.81, allocations: 4.813 MB / 6.727 GB, free: 4.836 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.238e-05/23.81, allocations: 7.938 kB / 6.727 GB, free: 4.828 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.007682/23.82, allocations: 2.16 MB / 6.729 GB, free: 2.836 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008843/23.83, allocations: 0.9476 MB / 6.73 GB, free: 2.164 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.409/24.24, allocations: 5.945 MB / 6.736 GB, free: 50.91 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002936/24.24, allocations: 1.9 MB / 6.738 GB, free: 50.16 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002858/24.25, allocations: 1.023 MB / 6.739 GB, free: 50.16 MB / 0.4948 GB Notification: Performance of SimCode: time 1.312e-06/24.25, allocations: 0 / 6.739 GB, free: 50.16 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.339/28.59, allocations: 99.83 MB / 6.836 GB, free: 37.21 MB / 0.4948 GB