Running command: "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97OnePhase_ph",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.104/2.104, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.029e-05/3.033e-05, allocations: 0 / 255.5 MB, free: 3.086 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09566/0.09572, allocations: 44.51 MB / 300 MB, free: 6.523 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.935/8.031, allocations: 2.576 GB / 2.869 GB, free: 88.56 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003412/8.031, allocations: 87.72 kB / 2.869 GB, free: 88.56 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.076/10.11, allocations: 429.7 MB / 3.288 GB, free: 26.39 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.964e-06/10.11, allocations: 2.625 kB / 3.288 GB, free: 26.39 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.709e-05/10.11, allocations: 8 kB / 3.289 GB, free: 26.38 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.005327/10.11, allocations: 1.213 MB / 3.29 GB, free: 25.17 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.584e-05/10.11, allocations: 8.031 kB / 3.29 GB, free: 25.16 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001099/10.11, allocations: 73.25 kB / 3.29 GB, free: 25.08 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00191/10.11, allocations: 153.9 kB / 3.29 GB, free: 24.93 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000594/10.12, allocations: 320.4 kB / 3.29 GB, free: 24.59 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.94e-05/10.12, allocations: 21.64 kB / 3.29 GB, free: 24.57 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.841e-05/10.12, allocations: 32 kB / 3.29 GB, free: 24.54 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001855/10.12, allocations: 0.5383 MB / 3.291 GB, free: 23.97 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.818e-05/10.12, allocations: 0 / 3.291 GB, free: 23.97 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.794e-05/10.12, allocations: 12 kB / 3.291 GB, free: 23.96 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.413e-05/10.12, allocations: 11.95 kB / 3.291 GB, free: 23.95 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008761/10.12, allocations: 328.8 kB / 3.291 GB, free: 23.62 MB / 410.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.004063/10.12, allocations: 2.565 MB / 3.294 GB, free: 20.84 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008248/10.12, allocations: 274.3 kB / 3.294 GB, free: 20.56 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002451/10.12, allocations: 111.6 kB / 3.294 GB, free: 20.45 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1035/10.23, allocations: 30.88 MB / 3.324 GB, free: 2.332 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.019e-05/10.23, allocations: 50.55 kB / 3.324 GB, free: 2.273 MB / 426.7 MB Notification: Performance of pre-optimization done (n=27): time 2.635e-06/10.23, allocations: 0 / 3.324 GB, free: 2.273 MB / 426.7 MB Notification: Performance of matching and sorting (n=31): time 0.005057/10.23, allocations: 1.083 MB / 3.325 GB, free: 1.129 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.441e-05/10.23, allocations: 59.34 kB / 3.325 GB, free: 1.059 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003995/10.23, allocations: 226.8 kB / 3.326 GB, free: 0.832 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.192e-05/10.23, allocations: 33.7 kB / 3.326 GB, free: 0.793 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001659/10.23, allocations: 240.9 kB / 3.326 GB, free: 0.5586 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000126/10.23, allocations: 113.3 kB / 3.326 GB, free: 460 kB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.065e-05/10.23, allocations: 12 kB / 3.326 GB, free: 448 kB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001469/10.23, allocations: 326.8 kB / 3.326 GB, free: 112 kB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000267/10.23, allocations: 92.88 kB / 3.326 GB, free: 20 kB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3012/10.53, allocations: 197.3 kB / 3.327 GB, free: 64.43 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003606/10.54, allocations: 124.9 kB / 3.327 GB, free: 64.43 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.982e-06/10.54, allocations: 1.188 kB / 3.327 GB, free: 64.43 MB / 426.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001145/10.54, allocations: 383.3 kB / 3.327 GB, free: 64.38 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.763e-05/10.54, allocations: 10.38 kB / 3.327 GB, free: 64.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/10.54, allocations: 5.188 kB / 3.327 GB, free: 64.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004019/10.54, allocations: 55.89 kB / 3.327 GB, free: 64.36 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000678/10.54, allocations: 88.97 kB / 3.327 GB, free: 64.36 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001662/10.54, allocations: 2.422 MB / 3.33 GB, free: 62.02 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005694/10.54, allocations: 28.05 kB / 3.33 GB, free: 62.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.758e-05/10.54, allocations: 20.88 kB / 3.33 GB, free: 62.02 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 3 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001901/10.54, allocations: 130.5 kB / 3.33 GB, free: 61.92 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001119/10.54, allocations: 35.64 kB / 3.33 GB, free: 61.91 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001901/10.54, allocations: 0.8633 MB / 3.331 GB, free: 61.83 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.043e-05/10.54, allocations: 10.02 kB / 3.331 GB, free: 61.83 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/10.54, allocations: 0 / 3.331 GB, free: 61.83 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001294/10.54, allocations: 1.036 MB / 3.332 GB, free: 61.34 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002815/10.55, allocations: 1.486 MB / 3.333 GB, free: 60.95 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.774e-06/10.55, allocations: 0.6094 kB / 3.333 GB, free: 60.95 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004538/10.55, allocations: 58.08 kB / 3.333 GB, free: 60.95 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004966/10.55, allocations: 71.91 kB / 3.333 GB, free: 60.94 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.253e-05/10.55, allocations: 13.48 kB / 3.333 GB, free: 60.94 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004239/10.55, allocations: 0.5873 MB / 3.334 GB, free: 60.43 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/10.55, allocations: 4.562 kB / 3.334 GB, free: 60.42 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00156/10.55, allocations: 0.8111 MB / 3.335 GB, free: 60.25 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002167/10.55, allocations: 137.7 kB / 3.335 GB, free: 60.13 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8e-05/10.55, allocations: 10.27 kB / 3.335 GB, free: 60.13 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006806/10.55, allocations: 38.86 kB / 3.335 GB, free: 60.13 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.919e-05/10.55, allocations: 23.81 kB / 3.335 GB, free: 60.12 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.374e-05/10.55, allocations: 15.66 kB / 3.335 GB, free: 60.12 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003843/10.55, allocations: 232.4 kB / 3.335 GB, free: 60.04 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.81e-07/10.55, allocations: 4.562 kB / 3.335 GB, free: 60.04 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005104/10.56, allocations: 0.89 MB / 3.336 GB, free: 60.04 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 4 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0109/10.57, allocations: 2.594 MB / 3.338 GB, free: 59.31 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001618/10.57, allocations: 476.7 kB / 3.339 GB, free: 59.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/10.57, allocations: 0 / 3.339 GB, free: 59.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005309/10.57, allocations: 245.6 kB / 3.339 GB, free: 59.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00188/10.57, allocations: 178.7 kB / 3.339 GB, free: 59.19 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005311/10.58, allocations: 1.126 MB / 3.34 GB, free: 58.95 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004036/10.58, allocations: 0.8293 MB / 3.341 GB, free: 58.26 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000307/10.58, allocations: 149.9 kB / 3.341 GB, free: 58.25 MB / 426.7 MB Notification: Performance of SimCode: time 1.322e-06/10.58, allocations: 0.9688 kB / 3.341 GB, free: 58.25 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.675/14.25, allocations: 27.97 MB / 3.369 GB, free: 56.89 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat does not exist to compare? outputFormat=mat