Running command: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_trunk_cpp_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.318/2.318, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.579e-05/3.583e-05, allocations: 4 kB / 292.2 MB, free: 8.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1068, allocations: 50.41 MB / 342.6 MB, free: 6.316 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.015/9.122, allocations: 3.026 GB / 3.361 GB, free: 6.645 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.3221/9.444, allocations: 11.15 MB / 3.372 GB, free: 132.7 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5873/10.03, allocations: 114 MB / 3.483 GB, free: 76.62 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.933e-06/10.03, allocations: 4 kB / 3.483 GB, free: 76.62 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.746e-05/10.03, allocations: 4 kB / 3.483 GB, free: 76.62 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.007195/10.04, allocations: 1.141 MB / 3.484 GB, free: 75.43 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.787e-05/10.04, allocations: 11.97 kB / 3.484 GB, free: 75.42 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000116/10.04, allocations: 58.55 kB / 3.484 GB, free: 75.35 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003103/10.04, allocations: 183.5 kB / 3.484 GB, free: 75.17 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004838/10.04, allocations: 258.7 kB / 3.485 GB, free: 74.88 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.576e-05/10.04, allocations: 20.42 kB / 3.485 GB, free: 74.86 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.748e-05/10.04, allocations: 23.95 kB / 3.485 GB, free: 74.84 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006866/10.05, allocations: 0.9043 MB / 3.486 GB, free: 73.91 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.194e-05/10.05, allocations: 0 / 3.486 GB, free: 73.91 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.531e-05/10.05, allocations: 12 kB / 3.486 GB, free: 73.9 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.266e-05/10.05, allocations: 8 kB / 3.486 GB, free: 73.89 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006772/10.06, allocations: 0.9455 MB / 3.487 GB, free: 72.95 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.00281/10.06, allocations: 1.35 MB / 3.488 GB, free: 71.46 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005616/10.06, allocations: 0.7252 MB / 3.489 GB, free: 70.72 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004549/10.07, allocations: 141.4 kB / 3.489 GB, free: 70.58 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1225/10.19, allocations: 37.36 MB / 3.525 GB, free: 28.78 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.641e-05/10.19, allocations: 46.86 kB / 3.525 GB, free: 28.72 MB / 458.7 MB Notification: Performance of pre-optimization done (n=33): time 3.597e-06/10.19, allocations: 0 / 3.525 GB, free: 28.72 MB / 458.7 MB Notification: Performance of matching and sorting (n=33): time 0.007261/10.2, allocations: 1.234 MB / 3.526 GB, free: 27.48 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.371e-05/10.2, allocations: 59.39 kB / 3.526 GB, free: 27.41 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001181/10.2, allocations: 109.1 kB / 3.527 GB, free: 27.3 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001193/10.2, allocations: 29.7 kB / 3.527 GB, free: 27.27 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.513e-05/10.2, allocations: 186.9 kB / 3.527 GB, free: 27.08 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000178/10.2, allocations: 118.3 kB / 3.527 GB, free: 26.96 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.741e-05/10.2, allocations: 8 kB / 3.527 GB, free: 26.96 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 7.074e-05/10.2, allocations: 326.8 kB / 3.527 GB, free: 26.63 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007683/10.2, allocations: 307.9 kB / 3.527 GB, free: 26.33 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008008/10.2, allocations: 379.6 kB / 3.528 GB, free: 25.93 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007972/10.2, allocations: 315.7 kB / 3.528 GB, free: 25.62 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/10.2, allocations: 0 / 3.528 GB, free: 25.62 MB / 458.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002482/10.2, allocations: 0.8137 MB / 3.529 GB, free: 24.8 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.237e-05/10.2, allocations: 8 kB / 3.529 GB, free: 24.79 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/10.2, allocations: 0 / 3.529 GB, free: 24.79 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.67e-05/10.2, allocations: 4.375 kB / 3.529 GB, free: 24.79 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001302/10.2, allocations: 179.8 kB / 3.529 GB, free: 24.61 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.599e-05/10.2, allocations: 4 kB / 3.529 GB, free: 24.61 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007996/10.2, allocations: 59.8 kB / 3.529 GB, free: 24.55 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001662/10.2, allocations: 63.86 kB / 3.529 GB, free: 24.49 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 4 (medium.phase,medium.bubble2.phase,medium.bubble.phase,medium.dew.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002919/10.2, allocations: 128.9 kB / 3.529 GB, free: 24.36 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001457/10.2, allocations: 15.81 kB / 3.529 GB, free: 24.34 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008037/10.21, allocations: 6.507 MB / 3.536 GB, free: 17.82 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-05/10.21, allocations: 23.97 kB / 3.536 GB, free: 17.8 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/10.21, allocations: 4 kB / 3.536 GB, free: 17.8 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.449e-05/10.21, allocations: 7.984 kB / 3.536 GB, free: 17.79 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003073/10.22, allocations: 2.895 MB / 3.539 GB, free: 14.69 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.195e-06/10.22, allocations: 0 / 3.539 GB, free: 14.69 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001317/10.22, allocations: 131.8 kB / 3.539 GB, free: 14.56 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.868e-06/10.22, allocations: 0 / 3.539 GB, free: 14.56 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.356e-05/10.22, allocations: 23.98 kB / 3.539 GB, free: 14.54 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/10.22, allocations: 0 / 3.539 GB, free: 14.54 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/10.22, allocations: 0 / 3.539 GB, free: 14.54 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003086/10.22, allocations: 1.75 MB / 3.54 GB, free: 12.77 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001151/10.22, allocations: 140.2 kB / 3.541 GB, free: 12.61 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.722e-05/10.22, allocations: 12 kB / 3.541 GB, free: 12.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006838/10.22, allocations: 19.98 kB / 3.541 GB, free: 12.58 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001357/10.22, allocations: 35.94 kB / 3.541 GB, free: 12.55 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.783e-05/10.22, allocations: 32.05 kB / 3.541 GB, free: 12.52 MB / 458.7 MB Notification: Performance of sorting global known variables: time 6.992e-05/10.22, allocations: 95.2 kB / 3.541 GB, free: 12.42 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.4e-07/10.22, allocations: 3.938 kB / 3.541 GB, free: 12.42 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005706/10.23, allocations: 1.003 MB / 3.542 GB, free: 11.41 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (medium.p,medium.h) * Number of discrete variables: 13 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.region3boundary,$cse9.region3boundary,medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01287/10.24, allocations: 3.454 MB / 3.545 GB, free: 7.93 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001975/10.24, allocations: 0.8488 MB / 3.546 GB, free: 7.082 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/10.24, allocations: 0 / 3.546 GB, free: 7.082 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009581/10.24, allocations: 0.5555 MB / 3.547 GB, free: 6.523 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009881/10.24, allocations: 76.42 kB / 3.547 GB, free: 6.449 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006115/10.25, allocations: 1.49 MB / 3.548 GB, free: 4.91 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002956/10.25, allocations: 0.8533 MB / 3.549 GB, free: 4.035 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007702/10.25, allocations: 227.3 kB / 3.549 GB, free: 3.816 MB / 458.7 MB Notification: Performance of SimCode: time 1.162e-06/10.25, allocations: 4 kB / 3.549 GB, free: 3.812 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.73/13.98, allocations: 27.63 MB / 3.576 GB, free: 93.48 MB / 458.7 MB