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.895/1.895, allocations: 171.2 MB / 178.8 MB, free: 176 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.646e-05/2.652e-05, allocations: 4 kB / 219.6 MB, free: 7.312 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.261/0.2611, allocations: 38.77 MB / 258.3 MB, free: 12.16 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.053/7.314, allocations: 2.466 GB / 2.718 GB, free: 36.55 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000297/7.315, allocations: 83.08 kB / 2.718 GB, free: 36.5 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.143/9.458, allocations: 415.3 MB / 3.124 GB, free: 33.3 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.613e-06/9.458, allocations: 0 / 3.124 GB, free: 33.3 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.331e-05/9.458, allocations: 3.844 kB / 3.124 GB, free: 33.3 MB / 362.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.005076/9.463, allocations: 1.185 MB / 3.125 GB, free: 32.55 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.188e-05/9.463, allocations: 11.81 kB / 3.125 GB, free: 32.55 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001872/9.465, allocations: 163.5 kB / 3.125 GB, free: 32.52 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006031/9.466, allocations: 321.8 kB / 3.125 GB, free: 32.25 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.142e-05/9.466, allocations: 7.844 kB / 3.125 GB, free: 32.25 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.602e-05/9.466, allocations: 24.12 kB / 3.125 GB, free: 32.25 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006081/9.466, allocations: 248.4 kB / 3.125 GB, free: 32.17 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007226/9.467, allocations: 358.6 kB / 3.126 GB, free: 31.96 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.339e-05/9.467, allocations: 0 / 3.126 GB, free: 31.96 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.73e-05/9.467, allocations: 0 / 3.126 GB, free: 31.96 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/9.467, allocations: 8.969 kB / 3.126 GB, free: 31.96 MB / 362.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.1106/9.578, allocations: 33.19 MB / 3.158 GB, free: 26.77 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006095/9.578, allocations: 196.8 kB / 3.158 GB, free: 26.67 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002993/9.579, allocations: 92.48 kB / 3.158 GB, free: 26.63 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3656/9.944, allocations: 30.87 MB / 3.189 GB, free: 50.32 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.504e-05/9.944, allocations: 42.39 kB / 3.189 GB, free: 50.29 MB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 3.607e-06/9.944, allocations: 0.5 kB / 3.189 GB, free: 50.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.004166/9.949, allocations: 0.919 MB / 3.19 GB, free: 50 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.868e-05/9.949, allocations: 56.53 kB / 3.19 GB, free: 49.93 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000329/9.949, allocations: 201.3 kB / 3.19 GB, free: 49.84 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.016e-05/9.949, allocations: 26.7 kB / 3.19 GB, free: 49.81 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000125/9.949, allocations: 264 kB / 3.19 GB, free: 49.62 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.763e-05/9.949, allocations: 95.98 kB / 3.19 GB, free: 49.57 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.275e-05/9.949, allocations: 2.375 kB / 3.19 GB, free: 49.57 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.999e-05/9.949, allocations: 326.9 kB / 3.19 GB, free: 49.25 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000215/9.95, allocations: 83.34 kB / 3.191 GB, free: 49.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002777/9.95, allocations: 195.8 kB / 3.191 GB, free: 49.12 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004709/9.95, allocations: 123.3 kB / 3.191 GB, free: 49.12 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/9.95, allocations: 4.797 kB / 3.191 GB, free: 49.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001194/9.952, allocations: 367.5 kB / 3.191 GB, free: 49.05 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.594e-05/9.952, allocations: 6.031 kB / 3.191 GB, free: 49.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.382e-05/9.952, allocations: 4.125 kB / 3.191 GB, free: 49.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003291/9.952, allocations: 61.12 kB / 3.191 GB, free: 49.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006432/9.953, allocations: 87.48 kB / 3.191 GB, free: 49.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001668/9.954, allocations: 2.39 MB / 3.194 GB, free: 46.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005343/9.955, allocations: 20.14 kB / 3.194 GB, free: 46.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.804e-05/9.955, allocations: 21.5 kB / 3.194 GB, free: 46.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.0001737/9.955, allocations: 115 kB / 3.194 GB, free: 46.64 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008124/9.956, allocations: 269.8 kB / 3.194 GB, free: 46.57 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.823e-05/9.956, allocations: 30.39 kB / 3.194 GB, free: 46.55 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001394/9.958, allocations: 0.7506 MB / 3.195 GB, free: 46.45 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.869e-05/9.958, allocations: 14.39 kB / 3.195 GB, free: 46.45 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/9.958, allocations: 3 kB / 3.195 GB, free: 46.45 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001153/9.959, allocations: 0.9728 MB / 3.196 GB, free: 45.96 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002232/9.961, allocations: 1.313 MB / 3.197 GB, free: 45.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/9.961, allocations: 3.312 kB / 3.197 GB, free: 45.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003793/9.961, allocations: 53.11 kB / 3.197 GB, free: 45.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003296/9.962, allocations: 70.05 kB / 3.197 GB, free: 45.58 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.492e-05/9.962, allocations: 0 / 3.197 GB, free: 45.58 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003984/9.962, allocations: 0.6225 MB / 3.198 GB, free: 45.05 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/9.962, allocations: 7.062 kB / 3.198 GB, free: 45.05 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001241/9.964, allocations: 0.8105 MB / 3.199 GB, free: 44.83 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001364/9.964, allocations: 116 kB / 3.199 GB, free: 44.72 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.868e-05/9.964, allocations: 3.469 kB / 3.199 GB, free: 44.72 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005738/9.964, allocations: 42.06 kB / 3.199 GB, free: 44.72 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.628e-05/9.964, allocations: 19.36 kB / 3.199 GB, free: 44.72 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.608e-05/9.964, allocations: 17.17 kB / 3.199 GB, free: 44.72 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001853/9.965, allocations: 153 kB / 3.199 GB, free: 44.64 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.31e-07/9.965, allocations: 0 / 3.199 GB, free: 44.64 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00457/9.969, allocations: 0.8508 MB / 3.2 GB, free: 44.64 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 4 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 27 * 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.009136/9.978, allocations: 2.802 MB / 3.203 GB, free: 43.72 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001306/9.98, allocations: 458 kB / 3.203 GB, free: 43.62 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/9.98, allocations: 3.5 kB / 3.203 GB, free: 43.62 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004748/9.98, allocations: 230 kB / 3.203 GB, free: 43.62 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001407/9.982, allocations: 132.9 kB / 3.203 GB, free: 43.61 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004625/9.986, allocations: 1.075 MB / 3.204 GB, free: 43.31 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003127/9.987, allocations: 0.818 MB / 3.205 GB, free: 42.61 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002557/9.987, allocations: 129.6 kB / 3.205 GB, free: 42.61 MB / 378.7 MB Notification: Performance of SimCode: time 1.382e-06/9.987, allocations: 3.812 kB / 3.205 GB, free: 42.61 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.641/13.63, allocations: 27.58 MB / 3.232 GB, free: 41.02 MB / 378.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