Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.IdealSteam,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_IdealSteam",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.914/1.914, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.177e-05/4.198e-05, allocations: 7.984 kB / 273.2 MB, free: 0.6211 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1029, allocations: 48.7 MB / 321.9 MB, free: 15.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.507/1.61, allocations: 0.4976 GB / 0.8119 GB, free: 3.148 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003207/1.611, allocations: 99.92 kB / 0.812 GB, free: 3.051 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.35/2.961, allocations: 234.3 MB / 1.041 GB, free: 82.61 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.796e-06/2.961, allocations: 7.594 kB / 1.041 GB, free: 82.61 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.657e-05/2.961, allocations: 25.64 kB / 1.041 GB, free: 82.61 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.003644/2.965, allocations: 1.097 MB / 1.042 GB, free: 82.04 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.185e-05/2.965, allocations: 9.938 kB / 1.042 GB, free: 82.04 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001994/2.965, allocations: 96.88 kB / 1.042 GB, free: 82 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001185/2.966, allocations: 136 kB / 1.042 GB, free: 81.96 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001616/2.968, allocations: 0.552 MB / 1.043 GB, free: 81.71 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001202/2.968, allocations: 108.2 kB / 1.043 GB, free: 81.65 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001387/2.968, allocations: 44.94 kB / 1.043 GB, free: 81.65 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001678/2.97, allocations: 0.7878 MB / 1.044 GB, free: 81.43 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.03e-05/2.97, allocations: 3.719 kB / 1.044 GB, free: 81.43 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001148/2.97, allocations: 27.08 kB / 1.044 GB, free: 81.43 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.422e-05/2.97, allocations: 45.59 kB / 1.044 GB, free: 81.43 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001446/2.972, allocations: 0.5862 MB / 1.044 GB, free: 81.42 MB / 426.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.00591/2.977, allocations: 3.898 MB / 1.048 GB, free: 78.83 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007216/2.978, allocations: 326.9 kB / 1.048 GB, free: 78.8 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003703/2.979, allocations: 165.6 kB / 1.049 GB, free: 78.77 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001154/2.979, allocations: 21.84 kB / 1.049 GB, free: 78.76 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.819e-05/2.979, allocations: 38.81 kB / 1.049 GB, free: 78.72 MB / 426.7 MB Notification: Performance of pre-optimization done (n=34): time 2.835e-06/2.979, allocations: 0 / 1.049 GB, free: 78.72 MB / 426.7 MB Notification: Performance of matching and sorting (n=39): time 0.00856/2.987, allocations: 1.496 MB / 1.05 GB, free: 77.97 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.376e-05/2.987, allocations: 141.5 kB / 1.05 GB, free: 77.81 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009236/2.988, allocations: 0.5165 MB / 1.051 GB, free: 77.57 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001137/2.989, allocations: 33.67 kB / 1.051 GB, free: 77.54 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003368/2.989, allocations: 410 kB / 1.051 GB, free: 77.18 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001982/2.989, allocations: 143.7 kB / 1.051 GB, free: 77.07 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.784e-05/2.989, allocations: 15.41 kB / 1.051 GB, free: 77.06 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001075/2.989, allocations: 343.9 kB / 1.052 GB, free: 76.73 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006816/2.99, allocations: 193.2 kB / 1.052 GB, free: 76.66 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009199/2.991, allocations: 0.5181 MB / 1.052 GB, free: 76.16 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009114/2.992, allocations: 293.6 kB / 1.053 GB, free: 76.08 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-05/2.992, allocations: 3.906 kB / 1.053 GB, free: 76.08 MB / 426.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002684/2.995, allocations: 0.8064 MB / 1.053 GB, free: 75.84 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.524e-05/2.995, allocations: 10.59 kB / 1.053 GB, free: 75.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.303e-05/2.995, allocations: 11.09 kB / 1.053 GB, free: 75.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002769/2.997, allocations: 309 kB / 1.054 GB, free: 75.79 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001027/2.999, allocations: 128.9 kB / 1.054 GB, free: 75.78 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00185/3, allocations: 0.9039 MB / 1.055 GB, free: 75.13 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001507/3.002, allocations: 55.23 kB / 1.055 GB, free: 75.12 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001804/3.002, allocations: 72.25 kB / 1.055 GB, free: 75.11 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (72): * Single equations (assignments): 71 * 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 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.0003225/3.002, allocations: 159.1 kB / 1.055 GB, free: 74.98 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002409/3.003, allocations: 72.06 kB / 1.055 GB, free: 74.94 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003246/3.006, allocations: 0.6488 MB / 1.056 GB, free: 74.69 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.194e-05/3.006, allocations: 9.906 kB / 1.056 GB, free: 74.69 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.447e-06/3.006, allocations: 0 / 1.056 GB, free: 74.69 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.12e-05/3.006, allocations: 3.844 kB / 1.056 GB, free: 74.69 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003801/3.01, allocations: 1.237 MB / 1.057 GB, free: 73.97 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.258e-06/3.01, allocations: 3.906 kB / 1.057 GB, free: 73.97 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002674/3.013, allocations: 210.4 kB / 1.057 GB, free: 73.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001675/3.013, allocations: 27.09 kB / 1.057 GB, free: 73.95 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.701e-05/3.013, allocations: 19.09 kB / 1.057 GB, free: 73.95 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002699/3.016, allocations: 2.678 MB / 1.06 GB, free: 71.24 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.923e-06/3.016, allocations: 7.719 kB / 1.06 GB, free: 71.24 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002428/3.018, allocations: 0.8344 MB / 1.061 GB, free: 70.73 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006283/3.019, allocations: 177.8 kB / 1.061 GB, free: 70.59 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002427/3.019, allocations: 15.77 kB / 1.061 GB, free: 70.58 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001137/3.02, allocations: 32.7 kB / 1.061 GB, free: 70.57 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000176/3.02, allocations: 40.8 kB / 1.061 GB, free: 70.56 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000134/3.021, allocations: 42.2 kB / 1.061 GB, free: 70.56 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001026/3.022, allocations: 406.5 kB / 1.061 GB, free: 70.37 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.31e-07/3.022, allocations: 3.938 kB / 1.061 GB, free: 70.37 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002872/3.025, allocations: 387.2 kB / 1.062 GB, free: 70.28 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005932/3.031, allocations: 2.647 MB / 1.064 GB, free: 68.76 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002335/3.033, allocations: 0.5221 MB / 1.065 GB, free: 68.59 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.929e-06/3.033, allocations: 3 kB / 1.065 GB, free: 68.59 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001892/3.035, allocations: 376.5 kB / 1.065 GB, free: 68.42 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003532/3.038, allocations: 326.5 kB / 1.065 GB, free: 68.35 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01512/3.054, allocations: 2.643 MB / 1.068 GB, free: 67.56 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006825/3.054, allocations: 0.9445 MB / 1.069 GB, free: 66.84 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001241/3.056, allocations: 282 kB / 1.069 GB, free: 66.68 MB / 426.7 MB Notification: Performance of SimCode: time 1.372e-06/3.056, allocations: 0 / 1.069 GB, free: 66.68 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.311/6.367, allocations: 23.53 MB / 1.092 GB, free: 46.66 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.IdealSteam_res.mat does not exist to compare? outputFormat=mat