Running command: "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir1,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Media_Examples_ReferenceAir_MoistAir1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.672/1.672, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.734e-05/2.734e-05, allocations: 0 / 219.5 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2676/0.2677, allocations: 38.77 MB / 258.3 MB, free: 12.15 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 19.01/19.27, allocations: 6.523 GB / 6.775 GB, free: 86.73 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002328/19.27, allocations: 74.61 kB / 6.775 GB, free: 86.73 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.163/23.44, allocations: 0.8238 GB / 7.599 GB, free: 6.941 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.773e-06/23.44, allocations: 0 / 7.599 GB, free: 6.941 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.274e-05/23.44, allocations: 12 kB / 7.599 GB, free: 6.93 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.015/23.45, allocations: 2.895 MB / 7.602 GB, free: 3.988 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.671e-05/23.45, allocations: 12.03 kB / 7.602 GB, free: 3.977 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005094/23.45, allocations: 55.44 kB / 7.602 GB, free: 3.922 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007908/23.45, allocations: 365.6 kB / 7.602 GB, free: 3.527 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.19e-05/23.45, allocations: 12 kB / 7.602 GB, free: 3.516 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001039/23.45, allocations: 24 kB / 7.602 GB, free: 3.492 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001615/23.45, allocations: 0.5803 MB / 7.603 GB, free: 2.91 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001209/23.46, allocations: 431.8 kB / 7.603 GB, free: 2.48 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.721e-05/23.46, allocations: 3.938 kB / 7.603 GB, free: 2.477 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.179e-05/23.46, allocations: 0 / 7.603 GB, free: 2.477 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.536e-05/23.46, allocations: 12 kB / 7.603 GB, free: 2.465 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3519/23.81, allocations: 11.59 MB / 7.615 GB, free: 21.74 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001705/23.81, allocations: 0.5969 MB / 7.615 GB, free: 21.52 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008771/23.81, allocations: 241 kB / 7.615 GB, free: 21.5 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03557/23.85, allocations: 20.13 MB / 7.635 GB, free: 17.25 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.893e-05/23.85, allocations: 41.34 kB / 7.635 GB, free: 17.21 MB / 410.7 MB Notification: Performance of pre-optimization done (n=50): time 2.876e-06/23.85, allocations: 0 / 7.635 GB, free: 17.21 MB / 410.7 MB Notification: Performance of matching and sorting (n=55): time 0.005774/23.85, allocations: 1.509 MB / 7.637 GB, free: 16.87 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.498e-05/23.85, allocations: 59.5 kB / 7.637 GB, free: 16.81 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003332/23.85, allocations: 229.7 kB / 7.637 GB, free: 16.71 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.825e-05/23.85, allocations: 25.7 kB / 7.637 GB, free: 16.68 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001483/23.85, allocations: 262.5 kB / 7.637 GB, free: 16.49 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001588/23.85, allocations: 186.3 kB / 7.637 GB, free: 16.39 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.491e-05/23.85, allocations: 0 / 7.637 GB, free: 16.39 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001425/23.85, allocations: 336 kB / 7.638 GB, free: 16.08 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004614/23.85, allocations: 194 kB / 7.638 GB, free: 16.07 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005281/23.85, allocations: 291.6 kB / 7.638 GB, free: 16 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00128/23.86, allocations: 317.6 kB / 7.638 GB, free: 16 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.241e-06/23.86, allocations: 2.594 kB / 7.638 GB, free: 16 MB / 410.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002514/23.86, allocations: 0.7168 MB / 7.639 GB, free: 15.91 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.394e-05/23.86, allocations: 6.234 kB / 7.639 GB, free: 15.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/23.86, allocations: 4.781 kB / 7.639 GB, free: 15.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003177/23.86, allocations: 79.56 kB / 7.639 GB, free: 15.89 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009366/23.86, allocations: 122.2 kB / 7.639 GB, free: 15.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003229/23.86, allocations: 3.197 MB / 7.642 GB, free: 12.93 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009947/23.86, allocations: 31.12 kB / 7.642 GB, free: 12.92 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001201/23.86, allocations: 30.16 kB / 7.642 GB, free: 12.92 MB / 410.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.h:VARIABLE(flow=false min = -10000000000.0 max = 10000000000.0 unit = "J/kg" nominal = 1000000.0 ) "Specific mixture enthalpy in the connection point" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[1]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004013/23.86, allocations: 121.6 kB / 7.643 GB, free: 12.82 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003093/23.87, allocations: 0.6031 MB / 7.643 GB, free: 12.73 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005202/23.87, allocations: 36.56 kB / 7.643 GB, free: 12.71 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003019/23.87, allocations: 0.715 MB / 7.644 GB, free: 12.63 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.228e-05/23.87, allocations: 5.734 kB / 7.644 GB, free: 12.63 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/23.87, allocations: 0 / 7.644 GB, free: 12.63 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002355/23.87, allocations: 0.7995 MB / 7.645 GB, free: 12.27 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005014/23.88, allocations: 1.346 MB / 7.646 GB, free: 11.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.728e-06/23.88, allocations: 1.188 kB / 7.646 GB, free: 11.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001315/23.88, allocations: 122.8 kB / 7.646 GB, free: 11.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003267/23.88, allocations: 73.73 kB / 7.646 GB, free: 11.92 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.642e-05/23.88, allocations: 12.42 kB / 7.646 GB, free: 11.92 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001079/23.88, allocations: 0.6731 MB / 7.647 GB, free: 11.33 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.835e-06/23.88, allocations: 10.56 kB / 7.647 GB, free: 11.33 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004389/23.89, allocations: 0.9959 MB / 7.648 GB, free: 27.05 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002838/23.89, allocations: 120.6 kB / 7.648 GB, free: 26.95 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001571/23.89, allocations: 13.2 kB / 7.648 GB, free: 26.94 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001024/23.89, allocations: 25.97 kB / 7.648 GB, free: 26.94 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001356/23.89, allocations: 43.77 kB / 7.648 GB, free: 26.94 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001255/23.89, allocations: 34.25 kB / 7.648 GB, free: 26.94 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003418/23.89, allocations: 185.9 kB / 7.648 GB, free: 26.86 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.51e-07/23.89, allocations: 0 / 7.648 GB, free: 26.86 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01157/23.9, allocations: 1.925 MB / 7.65 GB, free: 26.86 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (volume.medium.p,volume.medium.Xi[1],volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 60 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02569/23.93, allocations: 4.971 MB / 7.655 GB, free: 25.64 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002289/23.93, allocations: 0.7406 MB / 7.656 GB, free: 25.43 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.588e-06/23.93, allocations: 2.781 kB / 7.656 GB, free: 25.43 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008557/23.93, allocations: 294.2 kB / 7.656 GB, free: 25.42 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002736/23.93, allocations: 219.3 kB / 7.656 GB, free: 25.41 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009567/23.94, allocations: 1.774 MB / 7.658 GB, free: 25.01 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006917/23.94, allocations: 0.856 MB / 7.659 GB, free: 24.31 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005952/23.94, allocations: 167.6 kB / 7.659 GB, free: 24.3 MB / 426.7 MB Notification: Performance of SimCode: time 1.162e-06/23.94, allocations: 0 / 7.659 GB, free: 24.3 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.355/28.3, allocations: 57.19 MB / 7.715 GB, free: 17.99 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1_res.mat does not exist to compare? outputFormat=mat