Running command: "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97OnePhase_ph",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.867/1.867, allocations: 171.2 MB / 183.8 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.583e-05/4.6e-05, allocations: 4 kB / 225.1 MB, free: 2.598 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2704/0.2705, allocations: 38.76 MB / 263.9 MB, free: 9.766 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.622/7.893, allocations: 2.466 GB / 2.724 GB, free: 73.57 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003225/7.893, allocations: 85.66 kB / 2.724 GB, free: 73.57 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.971/9.865, allocations: 419 MB / 3.133 GB, free: 2.449 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.007e-06/9.865, allocations: 0 / 3.133 GB, free: 2.449 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.586e-05/9.865, allocations: 7.938 kB / 3.133 GB, free: 2.441 MB / 378.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.005483/9.87, allocations: 1.189 MB / 3.134 GB, free: 1.219 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.13e-05/9.87, allocations: 8.031 kB / 3.134 GB, free: 1.211 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001316/9.871, allocations: 66.53 kB / 3.134 GB, free: 1.137 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001929/9.872, allocations: 168.4 kB / 3.135 GB, free: 0.9727 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006388/9.873, allocations: 316.8 kB / 3.135 GB, free: 0.6289 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.747e-05/9.873, allocations: 24.78 kB / 3.135 GB, free: 0.6016 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.361e-05/9.873, allocations: 32 kB / 3.135 GB, free: 0.5703 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2787/10.15, allocations: 0.5386 MB / 3.135 GB, free: 44.31 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.697e-05/10.15, allocations: 0 / 3.135 GB, free: 44.31 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001744/10.15, allocations: 14.09 kB / 3.135 GB, free: 44.31 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.06e-05/10.15, allocations: 8.406 kB / 3.135 GB, free: 44.31 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001244/10.15, allocations: 321 kB / 3.136 GB, free: 44.31 MB / 378.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.004376/10.16, allocations: 2.571 MB / 3.138 GB, free: 42.39 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008406/10.16, allocations: 277.2 kB / 3.139 GB, free: 42.37 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002411/10.16, allocations: 114.8 kB / 3.139 GB, free: 42.36 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1088/10.27, allocations: 30.86 MB / 3.169 GB, free: 24.44 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.163e-05/10.27, allocations: 41.89 kB / 3.169 GB, free: 24.4 MB / 378.7 MB Notification: Performance of pre-optimization done (n=27): time 3.607e-06/10.27, allocations: 0 / 3.169 GB, free: 24.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.004486/10.27, allocations: 1.081 MB / 3.17 GB, free: 24.08 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.755e-05/10.27, allocations: 59 kB / 3.17 GB, free: 24.02 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003159/10.27, allocations: 231.5 kB / 3.17 GB, free: 23.91 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.357e-05/10.27, allocations: 31.64 kB / 3.17 GB, free: 23.88 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/10.27, allocations: 247.8 kB / 3.17 GB, free: 23.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.425e-05/10.27, allocations: 107 kB / 3.171 GB, free: 23.64 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.464e-05/10.27, allocations: 10.09 kB / 3.171 GB, free: 23.64 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.825e-05/10.27, allocations: 326 kB / 3.171 GB, free: 23.33 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002271/10.27, allocations: 92.27 kB / 3.171 GB, free: 23.33 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002931/10.27, allocations: 205.2 kB / 3.171 GB, free: 23.19 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002946/10.27, allocations: 125.1 kB / 3.171 GB, free: 23.18 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/10.27, allocations: 3.969 kB / 3.171 GB, free: 23.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009819/10.28, allocations: 391.5 kB / 3.172 GB, free: 23.12 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/10.28, allocations: 7.844 kB / 3.172 GB, free: 23.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/10.28, allocations: 7.109 kB / 3.172 GB, free: 23.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003711/10.28, allocations: 56.62 kB / 3.172 GB, free: 23.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006238/10.28, allocations: 88.06 kB / 3.172 GB, free: 23.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00151/10.28, allocations: 2.43 MB / 3.174 GB, free: 20.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004814/10.28, allocations: 29.59 kB / 3.174 GB, free: 20.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.859e-05/10.28, allocations: 16.97 kB / 3.174 GB, free: 20.75 MB / 378.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.0001791/10.28, allocations: 131.7 kB / 3.174 GB, free: 20.64 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.672e-05/10.28, allocations: 38.86 kB / 3.174 GB, free: 20.62 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001393/10.28, allocations: 0.8562 MB / 3.175 GB, free: 20.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.554e-05/10.28, allocations: 10.19 kB / 3.175 GB, free: 20.52 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/10.28, allocations: 3.469 kB / 3.175 GB, free: 20.52 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001077/10.28, allocations: 1.037 MB / 3.176 GB, free: 20.04 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002402/10.28, allocations: 1.487 MB / 3.178 GB, free: 19.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/10.28, allocations: 0 / 3.178 GB, free: 19.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004195/10.28, allocations: 54.81 kB / 3.178 GB, free: 19.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004651/10.28, allocations: 72.59 kB / 3.178 GB, free: 19.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.153e-05/10.28, allocations: 13.19 kB / 3.178 GB, free: 19.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000376/10.29, allocations: 0.5851 MB / 3.178 GB, free: 19.11 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/10.29, allocations: 1.906 kB / 3.178 GB, free: 19.11 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001279/10.29, allocations: 0.8138 MB / 3.179 GB, free: 18.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002198/10.29, allocations: 138.2 kB / 3.179 GB, free: 18.82 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.005e-05/10.29, allocations: 10.25 kB / 3.179 GB, free: 18.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006451/10.29, allocations: 43.69 kB / 3.179 GB, free: 18.82 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.873e-05/10.29, allocations: 25.12 kB / 3.179 GB, free: 18.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.578e-05/10.29, allocations: 15.19 kB / 3.179 GB, free: 18.81 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003403/10.29, allocations: 234.3 kB / 3.18 GB, free: 18.73 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.704e-06/10.29, allocations: 0 / 3.18 GB, free: 18.73 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004746/10.29, allocations: 0.8876 MB / 3.18 GB, free: 18.73 MB / 378.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.01008/10.3, allocations: 2.587 MB / 3.183 GB, free: 18.01 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001494/10.3, allocations: 478.5 kB / 3.183 GB, free: 17.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.632e-06/10.3, allocations: 0 / 3.183 GB, free: 17.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005372/10.3, allocations: 236 kB / 3.184 GB, free: 17.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001942/10.31, allocations: 179 kB / 3.184 GB, free: 17.89 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005268/10.31, allocations: 1.123 MB / 3.185 GB, free: 17.64 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00113/10.31, allocations: 0.8311 MB / 3.186 GB, free: 32.94 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002962/10.31, allocations: 144.4 kB / 3.186 GB, free: 32.93 MB / 394.7 MB Notification: Performance of SimCode: time 2.345e-06/10.31, allocations: 0 / 3.186 GB, free: 32.93 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.644/13.96, allocations: 27.89 MB / 3.213 GB, free: 30.34 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat does not exist to compare? outputFormat=mat