Running command: "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Media_Examples_ReferenceAir_MoistAir",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.9/1.9, allocations: 194.9 MB / 208.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.982e-05/3.991e-05, allocations: 4 kB / 255.5 MB, free: 3.098 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09513/0.0952, allocations: 44.5 MB / 300 MB, free: 6.531 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 19.5/19.6, allocations: 6.611 GB / 6.904 GB, free: 46.48 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003354/19.6, allocations: 75.52 kB / 6.904 GB, free: 46.44 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.142/20.74, allocations: 191 MB / 7.091 GB, free: 27.68 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.393e-06/20.74, allocations: 0 / 7.091 GB, free: 27.68 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.517e-05/20.74, allocations: 4 kB / 7.091 GB, free: 27.68 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.008032/20.75, allocations: 1.445 MB / 7.092 GB, free: 26.18 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.122e-05/20.75, allocations: 11.97 kB / 7.092 GB, free: 26.17 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.049e-05/20.75, allocations: 54.55 kB / 7.092 GB, free: 26.11 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001915/20.75, allocations: 19.81 kB / 7.092 GB, free: 26.09 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002949/20.75, allocations: 210.8 kB / 7.092 GB, free: 25.84 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.02e-05/20.75, allocations: 12.33 kB / 7.092 GB, free: 25.83 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.411e-05/20.75, allocations: 15.91 kB / 7.092 GB, free: 25.82 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00081/20.75, allocations: 261 kB / 7.093 GB, free: 25.55 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.048e-05/20.75, allocations: 0 / 7.093 GB, free: 25.55 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.538e-05/20.75, allocations: 8 kB / 7.093 GB, free: 25.54 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.634e-05/20.75, allocations: 7.984 kB / 7.093 GB, free: 25.54 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007748/20.75, allocations: 243.9 kB / 7.093 GB, free: 25.3 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.001874/20.75, allocations: 0.6795 MB / 7.094 GB, free: 24.55 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008544/20.75, allocations: 290.3 kB / 7.094 GB, free: 24.23 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002718/20.75, allocations: 121.7 kB / 7.094 GB, free: 24.1 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01607/20.77, allocations: 10.07 MB / 7.104 GB, free: 12.04 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.936e-05/20.77, allocations: 34.55 kB / 7.104 GB, free: 12 MB / 410.7 MB Notification: Performance of pre-optimization done (n=29): time 4.158e-06/20.77, allocations: 3.984 kB / 7.104 GB, free: 12 MB / 410.7 MB Notification: Performance of matching and sorting (n=36): time 0.003193/20.77, allocations: 0.5188 MB / 7.104 GB, free: 11.47 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.915e-05/20.77, allocations: 85.23 kB / 7.104 GB, free: 11.37 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001157/20.77, allocations: 113 kB / 7.105 GB, free: 11.25 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.448e-05/20.77, allocations: 33.7 kB / 7.105 GB, free: 11.21 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.656e-05/20.77, allocations: 175 kB / 7.105 GB, free: 11.04 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/20.77, allocations: 126.1 kB / 7.105 GB, free: 10.91 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.766e-05/20.77, allocations: 12 kB / 7.105 GB, free: 10.9 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.739e-05/20.77, allocations: 326.8 kB / 7.105 GB, free: 10.57 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002939/20.77, allocations: 108 kB / 7.105 GB, free: 10.47 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004231/20.78, allocations: 179.9 kB / 7.106 GB, free: 10.27 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004118/20.78, allocations: 128.8 kB / 7.106 GB, free: 10.14 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/20.78, allocations: 0 / 7.106 GB, free: 10.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001102/20.78, allocations: 363.6 kB / 7.106 GB, free: 9.781 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.233e-05/20.78, allocations: 13.72 kB / 7.106 GB, free: 9.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/20.78, allocations: 4 kB / 7.106 GB, free: 9.766 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.46e-05/20.78, allocations: 4 kB / 7.106 GB, free: 9.762 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008697/20.78, allocations: 87.88 kB / 7.106 GB, free: 9.676 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.552e-05/20.78, allocations: 7.938 kB / 7.106 GB, free: 9.668 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005716/20.78, allocations: 35.81 kB / 7.106 GB, free: 9.633 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.449e-05/20.78, allocations: 12 kB / 7.106 GB, free: 9.621 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001397/20.78, allocations: 128.9 kB / 7.106 GB, free: 9.488 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001772/20.78, allocations: 27.75 kB / 7.106 GB, free: 9.461 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007023/20.78, allocations: 186.3 kB / 7.106 GB, free: 9.273 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.263e-06/20.78, allocations: 4 kB / 7.106 GB, free: 9.27 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/20.78, allocations: 3.984 kB / 7.106 GB, free: 9.266 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/20.78, allocations: 4 kB / 7.106 GB, free: 9.262 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002301/20.78, allocations: 0.9095 MB / 7.107 GB, free: 8.281 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.816e-06/20.78, allocations: 7.984 kB / 7.107 GB, free: 8.273 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000783/20.78, allocations: 75.89 kB / 7.107 GB, free: 8.199 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-05/20.78, allocations: 4 kB / 7.107 GB, free: 8.195 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.545e-05/20.78, allocations: 15.98 kB / 7.107 GB, free: 8.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.434e-06/20.78, allocations: 8.156 kB / 7.107 GB, free: 8.172 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.57e-06/20.78, allocations: 7.891 kB / 7.107 GB, free: 8.164 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001458/20.78, allocations: 0.7101 MB / 7.108 GB, free: 7.383 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000187/20.78, allocations: 124.8 kB / 7.108 GB, free: 7.242 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.11e-05/20.78, allocations: 8 kB / 7.108 GB, free: 7.234 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006151/20.79, allocations: 31.97 kB / 7.108 GB, free: 7.203 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.429e-05/20.79, allocations: 31.86 kB / 7.108 GB, free: 7.172 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.359e-05/20.79, allocations: 16 kB / 7.108 GB, free: 7.156 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.642e-05/20.79, allocations: 95.27 kB / 7.108 GB, free: 7.062 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.31e-07/20.79, allocations: 3.938 kB / 7.108 GB, free: 7.059 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005825/20.79, allocations: 1.085 MB / 7.11 GB, free: 5.973 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (medium.p,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): 39 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01293/20.8, allocations: 3.187 MB / 7.113 GB, free: 2.727 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001059/20.81, allocations: 287.8 kB / 7.113 GB, free: 2.445 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/20.81, allocations: 0 / 7.113 GB, free: 2.445 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004744/20.81, allocations: 155.8 kB / 7.113 GB, free: 2.293 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001093/20.81, allocations: 93.23 kB / 7.113 GB, free: 2.203 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00544/20.81, allocations: 0.9468 MB / 7.114 GB, free: 1.199 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002391/20.81, allocations: 0.7417 MB / 7.115 GB, free: 440 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003486/20.81, allocations: 79.39 kB / 7.115 GB, free: 360 kB / 410.7 MB Notification: Performance of SimCode: time 1.603e-06/20.81, allocations: 0 / 7.115 GB, free: 360 kB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.926/24.74, allocations: 27.05 MB / 7.141 GB, free: 52.5 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir_res.mat does not exist to compare? outputFormat=mat