Running command: "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_pT",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.779/1.779, allocations: 171.3 MB / 178.8 MB, free: 160 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.661e-05/2.669e-05, allocations: 4 kB / 219.6 MB, free: 7.312 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2599/0.2599, allocations: 38.77 MB / 258.3 MB, free: 12.16 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.129/7.389, allocations: 2.464 GB / 2.716 GB, free: 37.77 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003086/7.389, allocations: 88.06 kB / 2.716 GB, free: 37.72 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.48/8.869, allocations: 286.8 MB / 2.996 GB, free: 43.66 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.914e-06/8.869, allocations: 0 / 2.996 GB, free: 43.66 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.243e-05/8.869, allocations: 8 kB / 2.996 GB, free: 43.65 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.003519/8.873, allocations: 0.8918 MB / 2.997 GB, free: 42.77 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.269e-05/8.873, allocations: 11.97 kB / 2.997 GB, free: 42.76 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001001/8.874, allocations: 86.91 kB / 2.997 GB, free: 42.69 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005088/8.874, allocations: 301.5 kB / 2.998 GB, free: 42.38 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.224e-05/8.874, allocations: 15.83 kB / 2.998 GB, free: 42.37 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.917e-05/8.874, allocations: 20 kB / 2.998 GB, free: 42.35 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005666/8.875, allocations: 240.5 kB / 2.998 GB, free: 42.14 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006564/8.876, allocations: 350.2 kB / 2.998 GB, free: 41.79 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.226e-05/8.876, allocations: 0 / 2.998 GB, free: 41.79 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.924e-05/8.876, allocations: 4 kB / 2.998 GB, free: 41.79 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.235e-05/8.876, allocations: 8 kB / 2.998 GB, free: 41.78 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.04845/8.924, allocations: 17.67 MB / 3.015 GB, free: 24.45 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003762/8.925, allocations: 190.1 kB / 3.016 GB, free: 24.26 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001813/8.925, allocations: 93.53 kB / 3.016 GB, free: 24.17 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04569/8.971, allocations: 15.31 MB / 3.031 GB, free: 7.25 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.43e-05/8.971, allocations: 34.56 kB / 3.031 GB, free: 7.207 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 2.485e-06/8.971, allocations: 4 kB / 3.031 GB, free: 7.203 MB / 362.7 MB Notification: Performance of matching and sorting (n=28): time 0.005431/8.976, allocations: 1.141 MB / 3.032 GB, free: 6.012 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.896e-05/8.976, allocations: 51.41 kB / 3.032 GB, free: 5.949 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002655/8.976, allocations: 212.4 kB / 3.032 GB, free: 5.734 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.877e-05/8.976, allocations: 29.7 kB / 3.032 GB, free: 5.699 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/8.977, allocations: 266.5 kB / 3.032 GB, free: 5.434 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.358e-05/8.977, allocations: 102.4 kB / 3.032 GB, free: 5.332 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.18e-05/8.977, allocations: 0 / 3.032 GB, free: 5.332 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.646e-05/8.977, allocations: 326.8 kB / 3.033 GB, free: 5.004 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002026/8.977, allocations: 84.88 kB / 3.033 GB, free: 4.922 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002579/8.977, allocations: 205.3 kB / 3.033 GB, free: 4.676 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00118/8.978, allocations: 223.8 kB / 3.033 GB, free: 4.457 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.439e-06/8.979, allocations: 4 kB / 3.033 GB, free: 4.453 MB / 362.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001838/8.98, allocations: 478.7 kB / 3.034 GB, free: 3.973 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/8.98, allocations: 8.484 kB / 3.034 GB, free: 3.965 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/8.98, allocations: 12 kB / 3.034 GB, free: 3.953 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003491/8.981, allocations: 65.69 kB / 3.034 GB, free: 3.883 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005158/8.981, allocations: 83.84 kB / 3.034 GB, free: 3.801 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002178/8.983, allocations: 1.909 MB / 3.036 GB, free: 1.758 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004253/8.984, allocations: 24.05 kB / 3.036 GB, free: 1.734 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.004e-05/8.984, allocations: 16 kB / 3.036 GB, free: 1.719 MB / 362.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): 43 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001257/8.984, allocations: 120.8 kB / 3.036 GB, free: 1.594 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001495/8.986, allocations: 367.2 kB / 3.036 GB, free: 1.223 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.017e-05/8.986, allocations: 23.72 kB / 3.036 GB, free: 1.199 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001419/8.987, allocations: 0.824 MB / 3.037 GB, free: 372 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.501e-05/8.987, allocations: 11.98 kB / 3.037 GB, free: 360 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/8.987, allocations: 0 / 3.037 GB, free: 360 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.2499/9.237, allocations: 1.026 MB / 3.038 GB, free: 51.75 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002711/9.24, allocations: 1.387 MB / 3.039 GB, free: 51.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.065e-06/9.24, allocations: 0 / 3.039 GB, free: 51.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000374/9.24, allocations: 49.06 kB / 3.04 GB, free: 51.39 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004131/9.241, allocations: 97.61 kB / 3.04 GB, free: 51.38 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.913e-05/9.241, allocations: 8.234 kB / 3.04 GB, free: 51.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007961/9.242, allocations: 0.7091 MB / 3.04 GB, free: 50.87 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/9.242, allocations: 2.75 kB / 3.04 GB, free: 50.87 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001727/9.243, allocations: 0.9124 MB / 3.041 GB, free: 50.69 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001361/9.244, allocations: 107.3 kB / 3.041 GB, free: 50.6 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.77e-05/9.244, allocations: 8.516 kB / 3.041 GB, free: 50.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003449/9.244, allocations: 12.62 kB / 3.041 GB, free: 50.6 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.248e-05/9.244, allocations: 18.28 kB / 3.041 GB, free: 50.6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.578e-05/9.244, allocations: 17.98 kB / 3.041 GB, free: 50.6 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002121/9.244, allocations: 159 kB / 3.042 GB, free: 50.52 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.71e-07/9.244, allocations: 3.25 kB / 3.042 GB, free: 50.52 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003226/9.248, allocations: 0.5109 MB / 3.042 GB, free: 50.52 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.T) * 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 (28): * Single equations (assignments): 25 * 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 {2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.007263/9.255, allocations: 2.354 MB / 3.044 GB, free: 49.72 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001156/9.256, allocations: 486.2 kB / 3.045 GB, free: 49.62 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.399e-06/9.256, allocations: 0 / 3.045 GB, free: 49.62 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000546/9.257, allocations: 278.2 kB / 3.045 GB, free: 49.62 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001399/9.258, allocations: 135 kB / 3.045 GB, free: 49.62 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003402/9.261, allocations: 0.955 MB / 3.046 GB, free: 49.37 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002839/9.262, allocations: 0.8104 MB / 3.047 GB, free: 48.67 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002405/9.262, allocations: 131.2 kB / 3.047 GB, free: 48.66 MB / 362.7 MB Notification: Performance of SimCode: time 1.032e-06/9.262, allocations: 0 / 3.047 GB, free: 48.66 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.157/12.42, allocations: 19.55 MB / 3.066 GB, free: 47.82 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT_res.mat does not exist to compare? outputFormat=mat