Running command: "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_trunk_cpp_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.994/1.994, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.563e-05/3.577e-05, allocations: 3.984 kB / 292.2 MB, free: 8.738 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1268, allocations: 50.41 MB / 342.6 MB, free: 6.305 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.733/8.86, allocations: 2.787 GB / 3.122 GB, free: 67.58 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002286/8.86, allocations: 69.09 kB / 3.122 GB, free: 67.55 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7899/9.65, allocations: 108.1 MB / 3.227 GB, free: 100.4 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.803e-06/9.65, allocations: 0 / 3.227 GB, free: 100.4 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.502e-05/9.65, allocations: 3.969 kB / 3.227 GB, free: 100.4 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.00881/9.659, allocations: 1.152 MB / 3.229 GB, free: 99.77 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.15e-05/9.659, allocations: 10.25 kB / 3.229 GB, free: 99.77 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.437e-05/9.659, allocations: 45.77 kB / 3.229 GB, free: 99.73 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006673/9.66, allocations: 52.72 kB / 3.229 GB, free: 99.72 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000309/9.66, allocations: 217.6 kB / 3.229 GB, free: 99.52 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.765e-05/9.66, allocations: 21.45 kB / 3.229 GB, free: 99.52 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.725e-05/9.66, allocations: 18.34 kB / 3.229 GB, free: 99.52 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001465/9.662, allocations: 367.1 kB / 3.229 GB, free: 99.42 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.284e-05/9.662, allocations: 5.562 kB / 3.229 GB, free: 99.42 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.143e-05/9.662, allocations: 5.812 kB / 3.229 GB, free: 99.42 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.537e-06/9.662, allocations: 3.781 kB / 3.229 GB, free: 99.42 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00138/9.663, allocations: 309.3 kB / 3.23 GB, free: 99.42 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.001721/9.665, allocations: 1.186 MB / 3.231 GB, free: 98.42 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008865/9.666, allocations: 262.9 kB / 3.231 GB, free: 98.35 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002098/9.666, allocations: 96.48 kB / 3.231 GB, free: 98.32 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1552/9.821, allocations: 47.36 MB / 3.277 GB, free: 68.41 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.442e-05/9.821, allocations: 44.78 kB / 3.277 GB, free: 68.36 MB / 458.7 MB Notification: Performance of pre-optimization done (n=23): time 3.958e-06/9.821, allocations: 0 / 3.277 GB, free: 68.36 MB / 458.7 MB Notification: Performance of matching and sorting (n=33): time 0.009054/9.83, allocations: 1.417 MB / 3.279 GB, free: 68.03 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.462e-05/9.83, allocations: 114.7 kB / 3.279 GB, free: 67.9 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001128/9.831, allocations: 117 kB / 3.279 GB, free: 67.8 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.179e-05/9.831, allocations: 32.92 kB / 3.279 GB, free: 67.77 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.742e-05/9.831, allocations: 169.7 kB / 3.279 GB, free: 67.6 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001066/9.831, allocations: 119.5 kB / 3.279 GB, free: 67.53 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.294e-05/9.831, allocations: 3.375 kB / 3.279 GB, free: 67.53 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 6.952e-05/9.831, allocations: 329.4 kB / 3.28 GB, free: 67.22 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002857/9.831, allocations: 109 kB / 3.28 GB, free: 67.21 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003247/9.832, allocations: 164.9 kB / 3.28 GB, free: 67.15 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003135/9.832, allocations: 117.8 kB / 3.28 GB, free: 67.14 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/9.832, allocations: 11.91 kB / 3.28 GB, free: 67.14 MB / 458.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001046/9.833, allocations: 362.2 kB / 3.28 GB, free: 67.07 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/9.833, allocations: 8.047 kB / 3.28 GB, free: 67.07 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/9.833, allocations: 3.969 kB / 3.28 GB, free: 67.07 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003268/9.833, allocations: 27.91 kB / 3.28 GB, free: 67.07 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008334/9.834, allocations: 100.1 kB / 3.281 GB, free: 67.06 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003771/9.835, allocations: 0.5511 MB / 3.281 GB, free: 66.53 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005046/9.835, allocations: 30.53 kB / 3.281 GB, free: 66.52 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.976e-05/9.835, allocations: 15.12 kB / 3.281 GB, free: 66.52 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001489/9.835, allocations: 123 kB / 3.281 GB, free: 66.41 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001137/9.836, allocations: 19.7 kB / 3.281 GB, free: 66.4 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002428/9.838, allocations: 1.432 MB / 3.283 GB, free: 66.21 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.057e-05/9.838, allocations: 26.42 kB / 3.283 GB, free: 66.21 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/9.838, allocations: 0 / 3.283 GB, free: 66.21 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.158e-06/9.838, allocations: 0 / 3.283 GB, free: 66.21 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003432/9.841, allocations: 1.96 MB / 3.285 GB, free: 65.27 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/9.842, allocations: 0 / 3.285 GB, free: 65.27 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007869/9.842, allocations: 86.12 kB / 3.285 GB, free: 65.26 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004503/9.843, allocations: 75.75 kB / 3.285 GB, free: 65.23 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.046e-05/9.843, allocations: 11.83 kB / 3.285 GB, free: 65.23 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003577/9.843, allocations: 0.5857 MB / 3.285 GB, free: 64.68 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/9.843, allocations: 3.594 kB / 3.285 GB, free: 64.68 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002213/9.845, allocations: 1.684 MB / 3.287 GB, free: 63.65 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.031e-05/9.846, allocations: 132 kB / 3.287 GB, free: 63.52 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.713e-05/9.846, allocations: 13.95 kB / 3.287 GB, free: 63.51 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006074/9.846, allocations: 27.3 kB / 3.287 GB, free: 63.5 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.281e-05/9.846, allocations: 30 kB / 3.287 GB, free: 63.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.187e-05/9.846, allocations: 19.05 kB / 3.287 GB, free: 63.49 MB / 458.7 MB Notification: Performance of sorting global known variables: time 6.149e-05/9.847, allocations: 90.61 kB / 3.287 GB, free: 63.41 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.71e-07/9.847, allocations: 288 / 3.287 GB, free: 63.41 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005253/9.852, allocations: 0.9638 MB / 3.288 GB, free: 63.22 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 11 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 31 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01255/9.864, allocations: 3.777 MB / 3.292 GB, free: 61.05 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0015/9.866, allocations: 0.5407 MB / 3.292 GB, free: 60.84 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/9.866, allocations: 6.438 kB / 3.292 GB, free: 60.84 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008176/9.867, allocations: 485.8 kB / 3.293 GB, free: 60.61 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009476/9.868, allocations: 78.78 kB / 3.293 GB, free: 60.59 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0066/9.874, allocations: 1.512 MB / 3.294 GB, free: 59.79 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003058/9.875, allocations: 0.8241 MB / 3.295 GB, free: 59.09 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003421/9.875, allocations: 130.2 kB / 3.295 GB, free: 59 MB / 458.7 MB Notification: Performance of SimCode: time 2.124e-06/9.875, allocations: 0 / 3.295 GB, free: 59 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.579/13.45, allocations: 25.03 MB / 3.32 GB, free: 46.86 MB / 458.7 MB