Running command: "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_pT",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.763/1.763, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.783e-05/3.798e-05, allocations: 4 kB / 225.1 MB, free: 2.684 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2725/0.2726, allocations: 38.76 MB / 263.8 MB, free: 9.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.594/7.866, allocations: 2.465 GB / 2.722 GB, free: 80.99 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003171/7.867, allocations: 85.52 kB / 2.722 GB, free: 80.99 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.44/9.307, allocations: 289 MB / 3.005 GB, free: 45.49 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.473e-06/9.307, allocations: 3.562 kB / 3.005 GB, free: 45.49 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.476e-05/9.307, allocations: 6.531 kB / 3.005 GB, free: 45.49 MB / 362.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.00314/9.31, allocations: 0.8993 MB / 3.005 GB, free: 45.03 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.306e-05/9.31, allocations: 9.656 kB / 3.005 GB, free: 45.03 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.053e-05/9.31, allocations: 66.73 kB / 3.005 GB, free: 44.99 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009631/9.311, allocations: 81.16 kB / 3.006 GB, free: 44.98 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004932/9.312, allocations: 304.9 kB / 3.006 GB, free: 44.77 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.654e-05/9.312, allocations: 22.34 kB / 3.006 GB, free: 44.77 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.252e-05/9.312, allocations: 38.45 kB / 3.006 GB, free: 44.77 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001003/9.313, allocations: 447.8 kB / 3.006 GB, free: 44.62 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.462e-05/9.313, allocations: 1.875 kB / 3.006 GB, free: 44.62 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.394e-05/9.313, allocations: 19.88 kB / 3.006 GB, free: 44.62 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/9.313, allocations: 7.812 kB / 3.006 GB, free: 44.62 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008191/9.314, allocations: 325.7 kB / 3.007 GB, free: 44.61 MB / 362.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.003322/9.317, allocations: 2.629 MB / 3.009 GB, free: 42.56 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007326/9.318, allocations: 260.8 kB / 3.01 GB, free: 42.54 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002236/9.318, allocations: 95.42 kB / 3.01 GB, free: 42.53 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04745/9.366, allocations: 15.31 MB / 3.025 GB, free: 33.42 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.141e-05/9.366, allocations: 38.03 kB / 3.025 GB, free: 33.38 MB / 362.7 MB Notification: Performance of pre-optimization done (n=25): time 2.235e-06/9.366, allocations: 0 / 3.025 GB, free: 33.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=30): time 0.005631/9.372, allocations: 1.178 MB / 3.026 GB, free: 33.05 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.972e-05/9.372, allocations: 56.5 kB / 3.026 GB, free: 32.99 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003345/9.372, allocations: 237.7 kB / 3.026 GB, free: 32.89 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.849e-05/9.372, allocations: 32.77 kB / 3.026 GB, free: 32.86 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001115/9.372, allocations: 258.4 kB / 3.026 GB, free: 32.66 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.464e-05/9.372, allocations: 107.7 kB / 3.026 GB, free: 32.59 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.573e-05/9.372, allocations: 7.75 kB / 3.026 GB, free: 32.59 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.054e-05/9.372, allocations: 327.4 kB / 3.027 GB, free: 32.28 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002399/9.373, allocations: 94.31 kB / 3.027 GB, free: 32.28 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003087/9.373, allocations: 216.5 kB / 3.027 GB, free: 32.14 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003164/9.373, allocations: 135.1 kB / 3.027 GB, free: 32.14 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/9.373, allocations: 3.562 kB / 3.027 GB, free: 32.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001044/9.374, allocations: 414.3 kB / 3.028 GB, free: 32.07 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/9.374, allocations: 11.45 kB / 3.028 GB, free: 32.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/9.374, allocations: 3.531 kB / 3.028 GB, free: 32.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008228/9.383, allocations: 261.6 kB / 3.028 GB, free: 32.06 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007133/9.383, allocations: 84.45 kB / 3.028 GB, free: 32.06 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002047/9.385, allocations: 1.868 MB / 3.03 GB, free: 30.29 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007146/9.386, allocations: 25.12 kB / 3.03 GB, free: 30.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.049e-05/9.386, allocations: 21.36 kB / 3.03 GB, free: 30.29 MB / 362.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.0001848/9.387, allocations: 129.7 kB / 3.03 GB, free: 30.18 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001405/9.387, allocations: 37.33 kB / 3.03 GB, free: 30.16 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002325/9.389, allocations: 0.9481 MB / 3.031 GB, free: 30.05 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.196e-05/9.389, allocations: 9.406 kB / 3.031 GB, free: 30.05 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/9.389, allocations: 0 / 3.031 GB, free: 30.05 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00185/9.391, allocations: 1.119 MB / 3.032 GB, free: 29.56 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003597/9.395, allocations: 1.577 MB / 3.033 GB, free: 29.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/9.395, allocations: 0 / 3.033 GB, free: 29.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000515/9.395, allocations: 50.42 kB / 3.034 GB, free: 29.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003968/9.399, allocations: 284.8 kB / 3.034 GB, free: 29.14 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.02e-05/9.399, allocations: 7.594 kB / 3.034 GB, free: 29.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007949/9.4, allocations: 0.6692 MB / 3.034 GB, free: 28.62 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/9.4, allocations: 0 / 3.034 GB, free: 28.62 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002133/9.402, allocations: 0.9494 MB / 3.035 GB, free: 28.45 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002279/9.403, allocations: 137.7 kB / 3.036 GB, free: 28.32 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001134/9.403, allocations: 5.938 kB / 3.036 GB, free: 28.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005849/9.403, allocations: 20.03 kB / 3.036 GB, free: 28.32 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.183e-05/9.403, allocations: 17.73 kB / 3.036 GB, free: 28.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-05/9.403, allocations: 13.56 kB / 3.036 GB, free: 28.32 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004924/9.404, allocations: 243 kB / 3.036 GB, free: 28.23 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.11e-07/9.404, allocations: 0 / 3.036 GB, free: 28.23 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00382/9.408, allocations: 0.5378 MB / 3.036 GB, free: 28.19 MB / 362.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.007783/9.416, allocations: 2.243 MB / 3.039 GB, free: 27.4 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001676/9.417, allocations: 0.5091 MB / 3.039 GB, free: 27.29 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/9.417, allocations: 0 / 3.039 GB, free: 27.29 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008297/9.418, allocations: 295.7 kB / 3.039 GB, free: 27.28 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003135/9.421, allocations: 184 kB / 3.039 GB, free: 27.27 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00463/9.426, allocations: 1.008 MB / 3.04 GB, free: 26.95 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001085/9.427, allocations: 0.8319 MB / 3.041 GB, free: 42.24 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003798/9.428, allocations: 147.4 kB / 3.041 GB, free: 42.24 MB / 378.7 MB Notification: Performance of SimCode: time 1.292e-06/9.428, allocations: 4 kB / 3.041 GB, free: 42.23 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.39/12.82, allocations: 20.11 MB / 3.061 GB, free: 40.49 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT_res.mat does not exist to compare? outputFormat=mat