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.87/1.87, allocations: 194.9 MB / 208.5 MB, free: 3.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.463e-05/3.465e-05, allocations: 4 kB / 255.4 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09158/0.09165, allocations: 44.5 MB / 299.9 MB, free: 6.531 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.615/7.707, allocations: 2.614 GB / 2.907 GB, free: 92.27 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002279/7.707, allocations: 67.59 kB / 2.907 GB, free: 92.27 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7464/8.453, allocations: 107 MB / 3.012 GB, free: 72.67 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.613e-06/8.454, allocations: 0 / 3.012 GB, free: 72.67 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.536e-05/8.454, allocations: 1.406 kB / 3.012 GB, free: 72.67 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.008665/8.462, allocations: 1.148 MB / 3.013 GB, free: 72.16 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.276e-05/8.462, allocations: 8.812 kB / 3.013 GB, free: 72.16 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.778e-05/8.462, allocations: 50.42 kB / 3.013 GB, free: 72.12 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006939/8.463, allocations: 55.08 kB / 3.013 GB, free: 72.11 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003228/8.463, allocations: 223.9 kB / 3.013 GB, free: 71.91 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.697e-05/8.463, allocations: 13.19 kB / 3.013 GB, free: 71.91 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.93e-05/8.464, allocations: 14.44 kB / 3.013 GB, free: 71.91 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001572/8.465, allocations: 374.3 kB / 3.014 GB, free: 71.81 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.485e-05/8.465, allocations: 1.438 kB / 3.014 GB, free: 71.81 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.326e-05/8.465, allocations: 6.531 kB / 3.014 GB, free: 71.81 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.858e-06/8.465, allocations: 6.266 kB / 3.014 GB, free: 71.81 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001458/8.467, allocations: 309.9 kB / 3.014 GB, free: 71.81 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.001859/8.469, allocations: 1.188 MB / 3.015 GB, free: 70.82 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009662/8.47, allocations: 262.4 kB / 3.015 GB, free: 70.75 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00024/8.47, allocations: 96.67 kB / 3.015 GB, free: 70.73 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1516/8.621, allocations: 47.35 MB / 3.062 GB, free: 41.69 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.911e-05/8.622, allocations: 39.5 kB / 3.062 GB, free: 41.65 MB / 410.7 MB Notification: Performance of pre-optimization done (n=23): time 2.745e-06/8.622, allocations: 4 kB / 3.062 GB, free: 41.65 MB / 410.7 MB Notification: Performance of matching and sorting (n=33): time 0.008771/8.63, allocations: 1.417 MB / 3.063 GB, free: 41.34 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.218e-05/8.63, allocations: 107.8 kB / 3.063 GB, free: 41.21 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000105/8.631, allocations: 111.8 kB / 3.063 GB, free: 41.12 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.407e-05/8.631, allocations: 37.11 kB / 3.063 GB, free: 41.09 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.563e-05/8.631, allocations: 171.3 kB / 3.064 GB, free: 40.93 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001086/8.631, allocations: 120.3 kB / 3.064 GB, free: 40.87 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.383e-05/8.631, allocations: 3.562 kB / 3.064 GB, free: 40.87 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.573e-05/8.631, allocations: 329.6 kB / 3.064 GB, free: 40.56 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002929/8.631, allocations: 104.3 kB / 3.064 GB, free: 40.56 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003288/8.632, allocations: 175.3 kB / 3.064 GB, free: 40.49 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003102/8.632, allocations: 115.7 kB / 3.064 GB, free: 40.49 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/8.632, allocations: 7.875 kB / 3.064 GB, free: 40.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001024/8.633, allocations: 361.2 kB / 3.065 GB, free: 40.43 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.868e-05/8.633, allocations: 12.78 kB / 3.065 GB, free: 40.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.886e-06/8.633, allocations: 3.797 kB / 3.065 GB, free: 40.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003303/8.633, allocations: 38.23 kB / 3.065 GB, free: 40.42 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008241/8.634, allocations: 94.38 kB / 3.065 GB, free: 40.41 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003575/8.635, allocations: 0.5391 MB / 3.065 GB, free: 39.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005029/8.635, allocations: 31.36 kB / 3.065 GB, free: 39.89 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.033e-05/8.635, allocations: 20.55 kB / 3.065 GB, free: 39.89 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.0001492/8.635, allocations: 122.7 kB / 3.066 GB, free: 39.78 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001135/8.635, allocations: 18.22 kB / 3.066 GB, free: 39.78 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002314/8.638, allocations: 1.431 MB / 3.067 GB, free: 39.6 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.82e-05/8.638, allocations: 18.8 kB / 3.067 GB, free: 39.6 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.652e-06/8.638, allocations: 4 kB / 3.067 GB, free: 39.6 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.042e-05/8.638, allocations: 3.938 kB / 3.067 GB, free: 39.6 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003283/8.641, allocations: 1.959 MB / 3.069 GB, free: 39.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.714e-06/8.641, allocations: 0 / 3.069 GB, free: 39.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007825/8.642, allocations: 87.47 kB / 3.069 GB, free: 39.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004377/8.642, allocations: 74.88 kB / 3.069 GB, free: 39.18 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.035e-05/8.642, allocations: 17.19 kB / 3.069 GB, free: 39.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003435/8.643, allocations: 0.5829 MB / 3.07 GB, free: 38.66 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/8.643, allocations: 7.453 kB / 3.07 GB, free: 38.66 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002154/8.645, allocations: 1.678 MB / 3.071 GB, free: 38.18 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.251e-05/8.645, allocations: 130.6 kB / 3.071 GB, free: 38.05 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.562e-05/8.645, allocations: 13.88 kB / 3.071 GB, free: 38.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005954/8.646, allocations: 18.3 kB / 3.071 GB, free: 38.05 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.163e-05/8.646, allocations: 37.98 kB / 3.071 GB, free: 38.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.989e-05/8.646, allocations: 20.44 kB / 3.071 GB, free: 38.04 MB / 410.7 MB Notification: Performance of sorting global known variables: time 5.829e-05/8.646, allocations: 90.94 kB / 3.072 GB, free: 37.97 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.91e-07/8.646, allocations: 0 / 3.072 GB, free: 37.97 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005075/8.651, allocations: 0.9667 MB / 3.073 GB, free: 37.82 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.01152/8.663, allocations: 3.774 MB / 3.076 GB, free: 36.23 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00142/8.664, allocations: 0.5476 MB / 3.077 GB, free: 36.22 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/8.664, allocations: 0 / 3.077 GB, free: 36.22 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008248/8.665, allocations: 489.7 kB / 3.077 GB, free: 36.21 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009467/8.666, allocations: 75.62 kB / 3.077 GB, free: 36.2 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006303/8.672, allocations: 1.5 MB / 3.079 GB, free: 35.64 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003128/8.673, allocations: 0.8256 MB / 3.08 GB, free: 34.94 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003305/8.673, allocations: 130.9 kB / 3.08 GB, free: 34.93 MB / 410.7 MB Notification: Performance of SimCode: time 1.142e-06/8.673, allocations: 3.938 kB / 3.08 GB, free: 34.93 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.5/12.17, allocations: 25 MB / 3.104 GB, free: 32.13 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