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.98/1.98, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.514e-05/3.531e-05, allocations: 4 kB / 255.4 MB, free: 3.109 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09256/0.09263, allocations: 44.51 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.124/8.217, allocations: 2.614 GB / 2.907 GB, free: 94.89 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002243/8.217, allocations: 66 kB / 2.907 GB, free: 94.88 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8189/9.036, allocations: 107 MB / 3.012 GB, free: 70.18 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.437e-06/9.036, allocations: 0.7031 kB / 3.012 GB, free: 70.18 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.62e-05/9.036, allocations: 8.328 kB / 3.012 GB, free: 70.18 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.008463/9.045, allocations: 1.148 MB / 3.013 GB, free: 69.69 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/9.045, allocations: 13.61 kB / 3.013 GB, free: 69.69 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.067e-05/9.045, allocations: 49.73 kB / 3.013 GB, free: 69.65 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006933/9.046, allocations: 54.27 kB / 3.013 GB, free: 69.64 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003253/9.046, allocations: 227.2 kB / 3.013 GB, free: 69.45 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.6e-05/9.046, allocations: 10.44 kB / 3.013 GB, free: 69.45 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.805e-05/9.046, allocations: 12.22 kB / 3.013 GB, free: 69.45 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001488/9.048, allocations: 375.6 kB / 3.014 GB, free: 69.34 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.291e-05/9.048, allocations: 3.812 kB / 3.014 GB, free: 69.34 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.023e-05/9.048, allocations: 3.188 kB / 3.014 GB, free: 69.34 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.849e-06/9.048, allocations: 3.938 kB / 3.014 GB, free: 69.34 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00151/9.049, allocations: 310.5 kB / 3.014 GB, free: 69.34 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.002024/9.051, allocations: 1.193 MB / 3.015 GB, free: 68.36 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001081/9.052, allocations: 258.9 kB / 3.015 GB, free: 68.29 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002398/9.053, allocations: 95.17 kB / 3.015 GB, free: 68.27 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1551/9.208, allocations: 47.36 MB / 3.062 GB, free: 39.43 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.984e-05/9.208, allocations: 38.5 kB / 3.062 GB, free: 39.39 MB / 410.7 MB Notification: Performance of pre-optimization done (n=23): time 1.369e-05/9.208, allocations: 0 / 3.062 GB, free: 39.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=33): time 0.008589/9.216, allocations: 1.418 MB / 3.063 GB, free: 39.08 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.426e-05/9.217, allocations: 114.6 kB / 3.063 GB, free: 38.95 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001031/9.217, allocations: 109.5 kB / 3.063 GB, free: 38.86 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.149e-05/9.217, allocations: 29.58 kB / 3.063 GB, free: 38.83 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.627e-05/9.217, allocations: 179.5 kB / 3.064 GB, free: 38.66 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001076/9.217, allocations: 118 kB / 3.064 GB, free: 38.61 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.34e-05/9.217, allocations: 6.25 kB / 3.064 GB, free: 38.61 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.328e-05/9.217, allocations: 324.4 kB / 3.064 GB, free: 38.3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002828/9.217, allocations: 108.4 kB / 3.064 GB, free: 38.3 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003216/9.218, allocations: 165.6 kB / 3.064 GB, free: 38.23 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003099/9.218, allocations: 129.5 kB / 3.064 GB, free: 38.23 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/9.218, allocations: 0 / 3.064 GB, free: 38.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00099/9.219, allocations: 372.1 kB / 3.065 GB, free: 38.16 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.167e-05/9.219, allocations: 5.531 kB / 3.065 GB, free: 38.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/9.219, allocations: 8.25 kB / 3.065 GB, free: 38.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003097/9.219, allocations: 38.66 kB / 3.065 GB, free: 38.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008491/9.22, allocations: 96.19 kB / 3.065 GB, free: 38.15 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003691/9.221, allocations: 0.5396 MB / 3.065 GB, free: 37.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004985/9.221, allocations: 26.17 kB / 3.065 GB, free: 37.63 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.043e-05/9.221, allocations: 14.72 kB / 3.065 GB, free: 37.63 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/9.221, allocations: 138.5 kB / 3.066 GB, free: 37.52 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000115/9.222, allocations: 15.28 kB / 3.066 GB, free: 37.52 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002321/9.224, allocations: 1.424 MB / 3.067 GB, free: 37.34 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-05/9.224, allocations: 22.2 kB / 3.067 GB, free: 37.34 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/9.224, allocations: 3.891 kB / 3.067 GB, free: 37.34 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.159e-05/9.224, allocations: 8.594 kB / 3.067 GB, free: 37.34 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003288/9.227, allocations: 1.946 MB / 3.069 GB, free: 36.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.366e-06/9.227, allocations: 3.969 kB / 3.069 GB, free: 36.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007968/9.228, allocations: 96.62 kB / 3.069 GB, free: 36.94 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004308/9.229, allocations: 70.31 kB / 3.069 GB, free: 36.93 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.841e-05/9.229, allocations: 14.28 kB / 3.069 GB, free: 36.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003415/9.229, allocations: 0.587 MB / 3.07 GB, free: 36.41 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/9.229, allocations: 3.969 kB / 3.07 GB, free: 36.41 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002138/9.231, allocations: 1.681 MB / 3.071 GB, free: 35.93 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.523e-05/9.231, allocations: 129.9 kB / 3.071 GB, free: 35.82 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.89e-05/9.231, allocations: 7.312 kB / 3.071 GB, free: 35.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006097/9.232, allocations: 27.48 kB / 3.071 GB, free: 35.82 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.008e-05/9.232, allocations: 29.62 kB / 3.071 GB, free: 35.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.973e-05/9.232, allocations: 18.97 kB / 3.071 GB, free: 35.81 MB / 410.7 MB Notification: Performance of sorting global known variables: time 5.908e-05/9.232, allocations: 97.84 kB / 3.072 GB, free: 35.73 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.473e-06/9.232, allocations: 0 / 3.072 GB, free: 35.73 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004901/9.237, allocations: 0.9626 MB / 3.073 GB, free: 35.61 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.01146/9.249, allocations: 3.786 MB / 3.076 GB, free: 34.02 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001452/9.25, allocations: 0.5465 MB / 3.077 GB, free: 34.01 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/9.25, allocations: 0 / 3.077 GB, free: 34.01 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008177/9.251, allocations: 492.9 kB / 3.077 GB, free: 34.01 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009324/9.252, allocations: 79.83 kB / 3.077 GB, free: 34 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006144/9.258, allocations: 1.507 MB / 3.079 GB, free: 33.45 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002919/9.258, allocations: 0.8244 MB / 3.08 GB, free: 32.75 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000339/9.259, allocations: 132 kB / 3.08 GB, free: 32.74 MB / 410.7 MB Notification: Performance of SimCode: time 1.433e-06/9.259, allocations: 3.938 kB / 3.08 GB, free: 32.73 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.677/12.94, allocations: 24.99 MB / 3.104 GB, free: 30.02 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