Running command: "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_pT",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.134/2.134, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.57e-05/3.589e-05, allocations: 11.98 kB / 255.4 MB, free: 3.078 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1134, allocations: 44.52 MB / 300 MB, free: 6.516 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.016/8.129, allocations: 2.574 GB / 2.867 GB, free: 84.27 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003332/8.13, allocations: 86.36 kB / 2.867 GB, free: 84.27 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.379/9.508, allocations: 296.4 MB / 3.157 GB, free: 12.65 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.874e-06/9.509, allocations: 0 / 3.157 GB, free: 12.65 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.181e-05/9.509, allocations: 11.05 kB / 3.157 GB, free: 12.64 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.003537/9.512, allocations: 0.9118 MB / 3.157 GB, free: 11.68 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/9.512, allocations: 12.03 kB / 3.158 GB, free: 11.67 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.852e-05/9.512, allocations: 66.53 kB / 3.158 GB, free: 11.6 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009905/9.513, allocations: 91.77 kB / 3.158 GB, free: 11.51 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005037/9.514, allocations: 302.1 kB / 3.158 GB, free: 11.18 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.842e-05/9.514, allocations: 24.78 kB / 3.158 GB, free: 11.15 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.594e-05/9.514, allocations: 32 kB / 3.158 GB, free: 11.12 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001074/9.515, allocations: 443.9 kB / 3.158 GB, free: 10.64 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.996e-05/9.515, allocations: 3.906 kB / 3.158 GB, free: 10.64 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.441e-05/9.515, allocations: 12 kB / 3.158 GB, free: 10.62 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.321e-05/9.515, allocations: 12 kB / 3.158 GB, free: 10.61 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000826/9.516, allocations: 329.8 kB / 3.159 GB, free: 10.29 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.003386/9.519, allocations: 2.627 MB / 3.161 GB, free: 7.434 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007394/9.52, allocations: 260.5 kB / 3.162 GB, free: 7.172 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002257/9.52, allocations: 104.8 kB / 3.162 GB, free: 7.066 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.344/9.864, allocations: 15.37 MB / 3.177 GB, free: 51.57 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.514e-05/9.865, allocations: 39.09 kB / 3.177 GB, free: 51.53 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.786e-06/9.865, allocations: 0 / 3.177 GB, free: 51.53 MB / 410.7 MB Notification: Performance of matching and sorting (n=30): time 0.006123/9.871, allocations: 1.17 MB / 3.178 GB, free: 51.24 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.452e-05/9.871, allocations: 54.84 kB / 3.178 GB, free: 51.18 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004156/9.871, allocations: 240.1 kB / 3.178 GB, free: 51.08 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.682e-05/9.871, allocations: 29.61 kB / 3.178 GB, free: 51.05 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001359/9.871, allocations: 252.6 kB / 3.178 GB, free: 50.86 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001121/9.872, allocations: 108.2 kB / 3.179 GB, free: 50.81 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.733e-05/9.872, allocations: 9.359 kB / 3.179 GB, free: 50.81 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.851e-05/9.872, allocations: 327.9 kB / 3.179 GB, free: 50.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002859/9.872, allocations: 94.19 kB / 3.179 GB, free: 50.5 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003784/9.872, allocations: 216.7 kB / 3.179 GB, free: 50.36 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003862/9.873, allocations: 128.8 kB / 3.179 GB, free: 50.36 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/9.873, allocations: 3.031 kB / 3.179 GB, free: 50.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001344/9.874, allocations: 423.5 kB / 3.18 GB, free: 50.29 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.835e-05/9.874, allocations: 6.469 kB / 3.18 GB, free: 50.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.026e-05/9.874, allocations: 4.062 kB / 3.18 GB, free: 50.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00685/9.881, allocations: 278.4 kB / 3.18 GB, free: 50.28 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006598/9.882, allocations: 78.5 kB / 3.18 GB, free: 50.28 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001828/9.884, allocations: 1.872 MB / 3.182 GB, free: 48.51 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005676/9.884, allocations: 30.31 kB / 3.182 GB, free: 48.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.384e-05/9.884, allocations: 17.62 kB / 3.182 GB, free: 48.5 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 3 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001562/9.885, allocations: 127.7 kB / 3.182 GB, free: 48.4 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.007e-05/9.885, allocations: 26.56 kB / 3.182 GB, free: 48.39 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001604/9.886, allocations: 0.9633 MB / 3.183 GB, free: 48.28 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.741e-05/9.886, allocations: 7.734 kB / 3.183 GB, free: 48.28 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/9.886, allocations: 2.594 kB / 3.183 GB, free: 48.28 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001279/9.888, allocations: 1.111 MB / 3.184 GB, free: 47.79 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002785/9.891, allocations: 1.577 MB / 3.186 GB, free: 47.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.167e-06/9.891, allocations: 5.625 kB / 3.186 GB, free: 47.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000405/9.891, allocations: 49.25 kB / 3.186 GB, free: 47.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003005/9.894, allocations: 281.1 kB / 3.186 GB, free: 47.38 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.543e-05/9.894, allocations: 5.812 kB / 3.186 GB, free: 47.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006772/9.895, allocations: 0.6725 MB / 3.187 GB, free: 46.86 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.574e-06/9.895, allocations: 0 / 3.187 GB, free: 46.86 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001548/9.896, allocations: 0.9523 MB / 3.188 GB, free: 46.68 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001928/9.897, allocations: 139.7 kB / 3.188 GB, free: 46.57 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.721e-05/9.897, allocations: 3.688 kB / 3.188 GB, free: 46.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004001/9.897, allocations: 17.45 kB / 3.188 GB, free: 46.56 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.887e-05/9.897, allocations: 22.5 kB / 3.188 GB, free: 46.56 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.352e-05/9.897, allocations: 17.64 kB / 3.188 GB, free: 46.56 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003424/9.898, allocations: 233.4 kB / 3.188 GB, free: 46.48 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.4e-07/9.898, allocations: 0 / 3.188 GB, free: 46.48 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002999/9.901, allocations: 0.5478 MB / 3.188 GB, free: 46.48 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 4 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.006082/9.907, allocations: 2.238 MB / 3.191 GB, free: 45.75 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001268/9.908, allocations: 0.5042 MB / 3.191 GB, free: 45.64 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/9.908, allocations: 0 / 3.191 GB, free: 45.64 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005745/9.909, allocations: 292.7 kB / 3.191 GB, free: 45.64 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00188/9.911, allocations: 189.5 kB / 3.192 GB, free: 45.63 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003781/9.914, allocations: 1.014 MB / 3.193 GB, free: 45.37 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000316/9.915, allocations: 0.828 MB / 3.193 GB, free: 44.67 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002599/9.915, allocations: 143.7 kB / 3.194 GB, free: 44.66 MB / 410.7 MB Notification: Performance of SimCode: time 1.392e-06/9.915, allocations: 0 / 3.194 GB, free: 44.66 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.442/13.36, allocations: 20.19 MB / 3.213 GB, free: 43.61 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT_res.mat does not exist to compare? outputFormat=mat