Running command: "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.936/1.936, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.428e-05/2.425e-05, allocations: 8 kB / 249.7 MB, free: 15.21 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2993/0.2994, allocations: 44.51 MB / 294.2 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.323/7.623, allocations: 2.614 GB / 2.901 GB, free: 47.22 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002319/7.623, allocations: 64.97 kB / 2.901 GB, free: 47.19 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7241/8.347, allocations: 105.2 MB / 3.004 GB, free: 94.59 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.483e-06/8.347, allocations: 0 / 3.004 GB, free: 94.59 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.322e-05/8.347, allocations: 3.656 kB / 3.004 GB, free: 94.59 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.008303/8.356, allocations: 1.147 MB / 3.005 GB, free: 93.92 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.12e-05/8.356, allocations: 11.47 kB / 3.005 GB, free: 93.92 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006828/8.356, allocations: 54.38 kB / 3.005 GB, free: 93.91 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000301/8.357, allocations: 223.9 kB / 3.005 GB, free: 93.69 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.642e-05/8.357, allocations: 3.969 kB / 3.005 GB, free: 93.69 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.611e-05/8.357, allocations: 11.81 kB / 3.005 GB, free: 93.69 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000585/8.357, allocations: 206.4 kB / 3.005 GB, free: 93.62 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003781/8.358, allocations: 210.5 kB / 3.006 GB, free: 93.47 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.843e-05/8.358, allocations: 0 / 3.006 GB, free: 93.47 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.276e-05/8.358, allocations: 0 / 3.006 GB, free: 93.47 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.345e-06/8.358, allocations: 3.781 kB / 3.006 GB, free: 93.47 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.001702/8.36, allocations: 1.158 MB / 3.007 GB, free: 92.41 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003282/8.36, allocations: 165.3 kB / 3.007 GB, free: 92.3 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001797/8.36, allocations: 85.45 kB / 3.007 GB, free: 92.24 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1475/8.508, allocations: 47.35 MB / 3.053 GB, free: 53.67 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.397e-05/8.508, allocations: 38.73 kB / 3.053 GB, free: 53.62 MB / 410.7 MB Notification: Performance of pre-optimization done (n=23): time 3.536e-06/8.508, allocations: 0 / 3.053 GB, free: 53.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=33): time 0.007094/8.515, allocations: 1.231 MB / 3.054 GB, free: 52.52 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.608e-05/8.515, allocations: 106.8 kB / 3.055 GB, free: 52.39 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001054/8.515, allocations: 108.7 kB / 3.055 GB, free: 52.28 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.786e-05/8.515, allocations: 29.77 kB / 3.055 GB, free: 52.24 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.025e-05/8.515, allocations: 178.7 kB / 3.055 GB, free: 52.07 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.991e-05/8.515, allocations: 109.5 kB / 3.055 GB, free: 51.97 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.485e-05/8.515, allocations: 0 / 3.055 GB, free: 51.97 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.71e-05/8.515, allocations: 322.7 kB / 3.055 GB, free: 51.65 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002457/8.516, allocations: 107.7 kB / 3.055 GB, free: 51.55 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002745/8.516, allocations: 158.5 kB / 3.055 GB, free: 51.37 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001057/8.517, allocations: 170.7 kB / 3.056 GB, free: 51.23 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/8.517, allocations: 0 / 3.056 GB, free: 51.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001678/8.519, allocations: 403.9 kB / 3.056 GB, free: 50.86 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/8.519, allocations: 7.953 kB / 3.056 GB, free: 50.86 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.154e-05/8.519, allocations: 7.312 kB / 3.056 GB, free: 50.85 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002397/8.519, allocations: 28.61 kB / 3.056 GB, free: 50.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008201/8.52, allocations: 91.48 kB / 3.056 GB, free: 50.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004181/8.52, allocations: 0.548 MB / 3.057 GB, free: 50.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004975/8.521, allocations: 23.67 kB / 3.057 GB, free: 50.17 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.085e-05/8.521, allocations: 16 kB / 3.057 GB, free: 50.15 MB / 410.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.0001469/8.521, allocations: 124.8 kB / 3.057 GB, free: 50.02 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001675/8.523, allocations: 364.1 kB / 3.057 GB, free: 49.7 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001092/8.523, allocations: 15.91 kB / 3.057 GB, free: 49.69 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002471/8.525, allocations: 1.417 MB / 3.059 GB, free: 48.4 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-05/8.525, allocations: 19.59 kB / 3.059 GB, free: 48.39 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/8.525, allocations: 0 / 3.059 GB, free: 48.39 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.071e-05/8.525, allocations: 7.797 kB / 3.059 GB, free: 48.39 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003428/8.529, allocations: 1.862 MB / 3.06 GB, free: 46.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.006e-05/8.529, allocations: 4.328 kB / 3.06 GB, free: 46.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007984/8.53, allocations: 89.66 kB / 3.061 GB, free: 46.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003331/8.53, allocations: 75.55 kB / 3.061 GB, free: 46.55 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.65e-05/8.53, allocations: 4 kB / 3.061 GB, free: 46.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004266/8.531, allocations: 0.6101 MB / 3.061 GB, free: 45.93 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/8.531, allocations: 3.938 kB / 3.061 GB, free: 45.92 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002291/8.533, allocations: 1.669 MB / 3.063 GB, free: 44.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.316e-05/8.533, allocations: 127.6 kB / 3.063 GB, free: 44.16 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.954e-05/8.533, allocations: 4 kB / 3.063 GB, free: 44.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006245/8.534, allocations: 17.44 kB / 3.063 GB, free: 44.14 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/8.534, allocations: 43.66 kB / 3.063 GB, free: 44.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.038e-05/8.534, allocations: 19.09 kB / 3.063 GB, free: 44.1 MB / 410.7 MB Notification: Performance of sorting global known variables: time 5.414e-05/8.534, allocations: 83.28 kB / 3.063 GB, free: 44.02 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.21e-07/8.534, allocations: 0 / 3.063 GB, free: 44.02 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004861/8.539, allocations: 0.951 MB / 3.064 GB, free: 43.09 MB / 410.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.01214/8.551, allocations: 3.775 MB / 3.068 GB, free: 39.52 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001322/8.553, allocations: 0.5304 MB / 3.068 GB, free: 39.02 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/8.553, allocations: 4.062 kB / 3.068 GB, free: 39.02 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007882/8.553, allocations: 485.3 kB / 3.069 GB, free: 38.57 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009707/8.554, allocations: 68.22 kB / 3.069 GB, free: 38.52 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006297/8.561, allocations: 1.475 MB / 3.07 GB, free: 37.14 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003061/8.561, allocations: 0.8233 MB / 3.071 GB, free: 36.34 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003525/8.561, allocations: 130.6 kB / 3.071 GB, free: 36.23 MB / 410.7 MB Notification: Performance of SimCode: time 1.072e-06/8.561, allocations: 0 / 3.071 GB, free: 36.23 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.441/12, allocations: 25.75 MB / 3.096 GB, free: 16.49 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Media.Examples.WaterIF97_res.mat does not exist to compare? outputFormat=mat