Running command: "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.659/1.659, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.765e-05/3.785e-05, allocations: 0 / 225.1 MB, free: 2.707 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3057/0.3058, allocations: 38.76 MB / 263.8 MB, free: 9.773 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.244/7.55, allocations: 2.504 GB / 2.762 GB, free: 65.89 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002485/7.55, allocations: 63.97 kB / 2.762 GB, free: 65.86 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6945/8.245, allocations: 105.6 MB / 2.865 GB, free: 74.95 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.903e-06/8.245, allocations: 0 / 2.865 GB, free: 74.95 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.546e-05/8.245, allocations: 3 kB / 2.865 GB, free: 74.95 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.008382/8.253, allocations: 1.142 MB / 2.866 GB, free: 74.34 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.528e-05/8.253, allocations: 11 kB / 2.866 GB, free: 74.34 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.347e-05/8.253, allocations: 44.53 kB / 2.866 GB, free: 74.3 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006812/8.254, allocations: 55.67 kB / 2.866 GB, free: 74.29 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000313/8.254, allocations: 217.2 kB / 2.867 GB, free: 74.08 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.606e-05/8.254, allocations: 14.19 kB / 2.867 GB, free: 74.08 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.855e-05/8.254, allocations: 16.94 kB / 2.867 GB, free: 74.08 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001463/8.256, allocations: 376.8 kB / 2.867 GB, free: 73.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.411e-05/8.256, allocations: 3.75 kB / 2.867 GB, free: 73.98 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.23e-05/8.256, allocations: 11.69 kB / 2.867 GB, free: 73.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-06/8.256, allocations: 3.75 kB / 2.867 GB, free: 73.98 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001454/8.258, allocations: 307.5 kB / 2.867 GB, free: 73.97 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.001796/8.259, allocations: 1.187 MB / 2.868 GB, free: 72.97 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009091/8.26, allocations: 265.5 kB / 2.869 GB, free: 72.89 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002078/8.261, allocations: 99.34 kB / 2.869 GB, free: 72.87 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1465/8.407, allocations: 47.27 MB / 2.915 GB, free: 42.36 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.671e-05/8.407, allocations: 47.28 kB / 2.915 GB, free: 42.31 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 2.585e-06/8.407, allocations: 0 / 2.915 GB, free: 42.31 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.008727/8.416, allocations: 1.43 MB / 2.916 GB, free: 41.32 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.261e-05/8.416, allocations: 106.8 kB / 2.916 GB, free: 41.2 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001083/8.416, allocations: 123.9 kB / 2.917 GB, free: 41.08 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.239e-05/8.416, allocations: 28.77 kB / 2.917 GB, free: 41.05 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.23e-05/8.416, allocations: 166.5 kB / 2.917 GB, free: 40.89 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001042/8.416, allocations: 124.2 kB / 2.917 GB, free: 40.8 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.426e-05/8.416, allocations: 7.75 kB / 2.917 GB, free: 40.79 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.48e-05/8.416, allocations: 325.5 kB / 2.917 GB, free: 40.48 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002873/8.417, allocations: 101.4 kB / 2.917 GB, free: 40.42 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003237/8.417, allocations: 182.2 kB / 2.917 GB, free: 40.27 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000318/8.417, allocations: 120.5 kB / 2.918 GB, free: 40.21 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/8.417, allocations: 0 / 2.918 GB, free: 40.21 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001029/8.418, allocations: 379 kB / 2.918 GB, free: 39.96 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/8.418, allocations: 4 kB / 2.918 GB, free: 39.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/8.418, allocations: 4 kB / 2.918 GB, free: 39.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003202/8.419, allocations: 32.02 kB / 2.918 GB, free: 39.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008415/8.42, allocations: 94.17 kB / 2.918 GB, free: 39.85 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003722/8.42, allocations: 0.5497 MB / 2.919 GB, free: 39.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005195/8.421, allocations: 24.97 kB / 2.919 GB, free: 39.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.28e-05/8.421, allocations: 15.33 kB / 2.919 GB, free: 39.28 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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: 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 prepare postOptimizeDAE: time 0.0001458/8.421, allocations: 126.9 kB / 2.919 GB, free: 39.16 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001156/8.421, allocations: 23.77 kB / 2.919 GB, free: 39.13 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00239/8.423, allocations: 1.426 MB / 2.92 GB, free: 38.02 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.029e-05/8.423, allocations: 19.12 kB / 2.92 GB, free: 38 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.017e-05/8.423, allocations: 4 kB / 2.92 GB, free: 38 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/8.423, allocations: 3.609 kB / 2.92 GB, free: 38 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003375/8.427, allocations: 1.971 MB / 2.922 GB, free: 36.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.508e-06/8.427, allocations: 0 / 2.922 GB, free: 36.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008247/8.428, allocations: 90.67 kB / 2.922 GB, free: 36.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004403/8.428, allocations: 67.77 kB / 2.922 GB, free: 36.06 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.638e-05/8.428, allocations: 16.09 kB / 2.922 GB, free: 36.05 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003564/8.429, allocations: 0.5883 MB / 2.923 GB, free: 35.45 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/8.429, allocations: 3.797 kB / 2.923 GB, free: 35.45 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002222/8.431, allocations: 1.684 MB / 2.925 GB, free: 33.8 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.82e-05/8.431, allocations: 136 kB / 2.925 GB, free: 33.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.857e-05/8.431, allocations: 12 kB / 2.925 GB, free: 33.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006223/8.432, allocations: 27.89 kB / 2.925 GB, free: 33.62 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.45e-05/8.432, allocations: 27.09 kB / 2.925 GB, free: 33.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.219e-05/8.432, allocations: 19.84 kB / 2.925 GB, free: 33.59 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.305e-05/8.432, allocations: 91.08 kB / 2.925 GB, free: 33.5 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.6e-07/8.432, allocations: 0 / 2.925 GB, free: 33.5 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005025/8.437, allocations: 0.9657 MB / 2.926 GB, free: 32.56 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 11 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.01133/8.448, allocations: 3.757 MB / 2.929 GB, free: 29.05 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001461/8.45, allocations: 0.5546 MB / 2.93 GB, free: 28.52 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/8.45, allocations: 0 / 2.93 GB, free: 28.52 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008611/8.451, allocations: 489.9 kB / 2.93 GB, free: 28.07 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009463/8.452, allocations: 74.77 kB / 2.931 GB, free: 28.02 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006261/8.458, allocations: 1.505 MB / 2.932 GB, free: 26.61 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003233/8.458, allocations: 0.8328 MB / 2.933 GB, free: 25.8 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003534/8.459, allocations: 132.5 kB / 2.933 GB, free: 25.69 MB / 362.7 MB Notification: Performance of SimCode: time 9.52e-07/8.459, allocations: 0 / 2.933 GB, free: 25.69 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.469/11.93, allocations: 24.84 MB / 2.957 GB, free: 10.89 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Media.Examples.WaterIF97_res.mat does not exist to compare? outputFormat=mat