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.78/1.78, allocations: 171.2 MB / 183.8 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.346e-05/3.363e-05, allocations: 0 / 225.1 MB, free: 2.605 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2794, allocations: 38.77 MB / 263.9 MB, free: 9.754 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.692/7.971, allocations: 2.465 GB / 2.722 GB, free: 81.69 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003156/7.972, allocations: 87.83 kB / 2.722 GB, free: 81.69 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.553/9.524, allocations: 289 MB / 3.005 GB, free: 45.85 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.034e-06/9.524, allocations: 0 / 3.005 GB, free: 45.85 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.569e-05/9.524, allocations: 13.89 kB / 3.005 GB, free: 45.85 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.003574/9.528, allocations: 0.8963 MB / 3.005 GB, free: 45.39 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/9.528, allocations: 10.56 kB / 3.005 GB, free: 45.39 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001021/9.528, allocations: 65.67 kB / 3.006 GB, free: 45.36 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001016/9.529, allocations: 87.64 kB / 3.006 GB, free: 45.34 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005583/9.53, allocations: 302.2 kB / 3.006 GB, free: 45.13 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.333e-05/9.53, allocations: 24.12 kB / 3.006 GB, free: 45.13 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.558e-05/9.53, allocations: 42.75 kB / 3.006 GB, free: 45.13 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001098/9.531, allocations: 441.1 kB / 3.006 GB, free: 44.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.784e-05/9.531, allocations: 4.25 kB / 3.006 GB, free: 44.98 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.874e-05/9.531, allocations: 14.59 kB / 3.006 GB, free: 44.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.391e-05/9.531, allocations: 9.094 kB / 3.006 GB, free: 44.98 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000874/9.532, allocations: 315 kB / 3.007 GB, free: 44.98 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.003717/9.536, allocations: 2.626 MB / 3.009 GB, free: 42.93 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007482/9.536, allocations: 256.5 kB / 3.01 GB, free: 42.91 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002268/9.537, allocations: 94.23 kB / 3.01 GB, free: 42.9 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05026/9.587, allocations: 15.31 MB / 3.025 GB, free: 33.79 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.635e-05/9.587, allocations: 34.16 kB / 3.025 GB, free: 33.75 MB / 362.7 MB Notification: Performance of pre-optimization done (n=25): time 2.264e-06/9.587, allocations: 3.875 kB / 3.025 GB, free: 33.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=30): time 0.006019/9.593, allocations: 1.17 MB / 3.026 GB, free: 33.42 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.305e-05/9.593, allocations: 55.84 kB / 3.026 GB, free: 33.36 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003679/9.594, allocations: 241 kB / 3.026 GB, free: 33.25 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.908e-05/9.594, allocations: 35.72 kB / 3.026 GB, free: 33.22 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/9.594, allocations: 256.5 kB / 3.026 GB, free: 33.03 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/9.594, allocations: 104.6 kB / 3.026 GB, free: 32.96 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.722e-05/9.594, allocations: 13.09 kB / 3.026 GB, free: 32.96 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.406e-05/9.594, allocations: 320.9 kB / 3.027 GB, free: 32.65 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002508/9.594, allocations: 99.12 kB / 3.027 GB, free: 32.65 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003037/9.595, allocations: 216.2 kB / 3.027 GB, free: 32.5 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003186/9.595, allocations: 131 kB / 3.027 GB, free: 32.5 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/9.595, allocations: 3.906 kB / 3.027 GB, free: 32.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001108/9.596, allocations: 401.9 kB / 3.028 GB, free: 32.45 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.588e-05/9.596, allocations: 7.594 kB / 3.028 GB, free: 32.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/9.596, allocations: 3.844 kB / 3.028 GB, free: 32.45 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00668/9.603, allocations: 271.5 kB / 3.028 GB, free: 32.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006232/9.604, allocations: 83.86 kB / 3.028 GB, free: 32.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001574/9.605, allocations: 1.866 MB / 3.03 GB, free: 30.65 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005161/9.606, allocations: 29.02 kB / 3.03 GB, free: 30.65 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.237e-05/9.606, allocations: 13.34 kB / 3.03 GB, free: 30.65 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.0001495/9.606, allocations: 141.4 kB / 3.03 GB, free: 30.54 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.012e-05/9.606, allocations: 30.69 kB / 3.03 GB, free: 30.52 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00153/9.608, allocations: 0.9312 MB / 3.031 GB, free: 30.41 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.749e-05/9.608, allocations: 10 kB / 3.031 GB, free: 30.41 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/9.608, allocations: 2.5 kB / 3.031 GB, free: 30.41 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001175/9.609, allocations: 1.121 MB / 3.032 GB, free: 29.92 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002519/9.611, allocations: 1.581 MB / 3.033 GB, free: 29.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.709e-06/9.611, allocations: 3.797 kB / 3.033 GB, free: 29.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003892/9.612, allocations: 44.69 kB / 3.033 GB, free: 29.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003023/9.615, allocations: 281.6 kB / 3.034 GB, free: 29.5 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.001e-05/9.615, allocations: 13.8 kB / 3.034 GB, free: 29.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006698/9.616, allocations: 0.6684 MB / 3.034 GB, free: 28.98 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/9.616, allocations: 0 / 3.034 GB, free: 28.98 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001607/9.617, allocations: 0.9434 MB / 3.035 GB, free: 28.81 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000218/9.618, allocations: 138.8 kB / 3.035 GB, free: 28.68 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.427e-05/9.618, allocations: 11.36 kB / 3.035 GB, free: 28.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004218/9.618, allocations: 17.45 kB / 3.036 GB, free: 28.68 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.615e-05/9.618, allocations: 18.53 kB / 3.036 GB, free: 28.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.201e-05/9.618, allocations: 11.25 kB / 3.036 GB, free: 28.68 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003459/9.619, allocations: 237.3 kB / 3.036 GB, free: 28.59 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.51e-07/9.619, allocations: 4.844 kB / 3.036 GB, free: 28.59 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003067/9.622, allocations: 0.5396 MB / 3.036 GB, free: 28.54 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.006547/9.628, allocations: 2.243 MB / 3.038 GB, free: 27.77 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001251/9.629, allocations: 0.4975 MB / 3.039 GB, free: 27.66 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/9.63, allocations: 3.5 kB / 3.039 GB, free: 27.66 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006101/9.63, allocations: 292.1 kB / 3.039 GB, free: 27.65 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001817/9.632, allocations: 185.4 kB / 3.039 GB, free: 27.64 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003788/9.636, allocations: 1.002 MB / 3.04 GB, free: 27.33 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003118/9.636, allocations: 0.8332 MB / 3.041 GB, free: 26.63 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002718/9.636, allocations: 142.2 kB / 3.041 GB, free: 26.62 MB / 362.7 MB Notification: Performance of SimCode: time 1.072e-06/9.636, allocations: 0 / 3.041 GB, free: 26.62 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.299/12.94, allocations: 20.12 MB / 3.061 GB, free: 24.82 MB / 362.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