Running command: "" <> buildModelFMU(ModelicaTest.Media.TestOnly.IdealGasN2Mix,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Media_TestOnly_IdealGasN2Mix",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.105/2.105, allocations: 209.4 MB / 216.9 MB, free: 6.66 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.256e-05/2.266e-05, allocations: 0 / 267.6 MB, free: 5.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1043, allocations: 48.69 MB / 316.3 MB, free: 4.531 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.299/2.404, allocations: 0.7087 GB / 1.018 GB, free: 111.8 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002697/2.404, allocations: 72.25 kB / 1.018 GB, free: 111.7 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1145/2.518, allocations: 32.64 MB / 1.049 GB, free: 84.76 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.403e-06/2.518, allocations: 0 / 1.049 GB, free: 84.76 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.265e-05/2.518, allocations: 0 / 1.049 GB, free: 84.76 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0005673/2.519, allocations: 422.6 kB / 1.05 GB, free: 84.3 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/2.519, allocations: 12.03 kB / 1.05 GB, free: 84.29 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002747/2.522, allocations: 188.2 kB / 1.05 GB, free: 84.11 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000303/2.522, allocations: 199 kB / 1.05 GB, free: 83.87 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.584e-05/2.522, allocations: 4 kB / 1.05 GB, free: 83.87 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.19e-05/2.522, allocations: 4 kB / 1.05 GB, free: 83.86 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005544/2.523, allocations: 192.3 kB / 1.05 GB, free: 83.68 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003577/2.523, allocations: 154.8 kB / 1.051 GB, free: 83.52 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/2.523, allocations: 4 kB / 1.051 GB, free: 83.52 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.94e-05/2.523, allocations: 3.953 kB / 1.051 GB, free: 83.51 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/2.523, allocations: 4 kB / 1.051 GB, free: 83.51 MB / 426.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.001948/2.525, allocations: 0.5783 MB / 1.051 GB, free: 82.88 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003089/2.526, allocations: 142.6 kB / 1.051 GB, free: 82.73 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001595/2.526, allocations: 80.78 kB / 1.051 GB, free: 82.65 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002771/2.526, allocations: 89.09 kB / 1.051 GB, free: 82.55 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.095e-05/2.526, allocations: 38.78 kB / 1.052 GB, free: 82.5 MB / 426.7 MB Notification: Performance of pre-optimization done (n=14): time 4.127e-06/2.526, allocations: 0 / 1.052 GB, free: 82.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=19): time 0.006538/2.533, allocations: 1.011 MB / 1.053 GB, free: 81.39 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.442e-05/2.533, allocations: 55.41 kB / 1.053 GB, free: 81.33 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.513e-05/2.533, allocations: 105 kB / 1.053 GB, free: 81.22 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.139e-05/2.533, allocations: 29.7 kB / 1.053 GB, free: 81.18 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.92e-05/2.533, allocations: 158.8 kB / 1.053 GB, free: 81.02 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.04e-05/2.533, allocations: 67 kB / 1.053 GB, free: 80.96 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.757e-05/2.533, allocations: 0 / 1.053 GB, free: 80.96 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 5.982e-05/2.533, allocations: 322.8 kB / 1.053 GB, free: 80.63 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001577/2.533, allocations: 71.98 kB / 1.053 GB, free: 80.56 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001763/2.533, allocations: 99.61 kB / 1.053 GB, free: 80.45 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002043/2.534, allocations: 77.09 kB / 1.053 GB, free: 80.38 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/2.534, allocations: 0 / 1.053 GB, free: 80.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005769/2.534, allocations: 230.3 kB / 1.054 GB, free: 80.14 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/2.534, allocations: 8 kB / 1.054 GB, free: 80.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/2.534, allocations: 3.938 kB / 1.054 GB, free: 80.13 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001562/2.534, allocations: 20.94 kB / 1.054 GB, free: 80.11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006181/2.535, allocations: 51.97 kB / 1.054 GB, free: 80.06 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003331/2.535, allocations: 0.5445 MB / 1.054 GB, free: 79.49 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003382/2.536, allocations: 7.891 kB / 1.054 GB, free: 79.48 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.075e-05/2.536, allocations: 8 kB / 1.054 GB, free: 79.47 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 22 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001223/2.536, allocations: 109.1 kB / 1.054 GB, free: 79.36 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005549/2.537, allocations: 210.3 kB / 1.055 GB, free: 79.14 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.192e-05/2.537, allocations: 7.906 kB / 1.055 GB, free: 79.14 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007463/2.537, allocations: 259 kB / 1.055 GB, free: 78.88 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/2.537, allocations: 7.938 kB / 1.055 GB, free: 78.87 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/2.537, allocations: 0 / 1.055 GB, free: 78.87 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/2.537, allocations: 3.984 kB / 1.055 GB, free: 78.87 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001153/2.539, allocations: 0.5897 MB / 1.055 GB, free: 78.22 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/2.539, allocations: 3.953 kB / 1.055 GB, free: 78.22 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006144/2.539, allocations: 51.89 kB / 1.055 GB, free: 78.17 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001087/2.539, allocations: 20.84 kB / 1.056 GB, free: 78.14 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.457e-05/2.539, allocations: 4 kB / 1.056 GB, free: 78.14 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007811/2.54, allocations: 1.225 MB / 1.057 GB, free: 76.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/2.54, allocations: 3.938 kB / 1.057 GB, free: 76.8 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007808/2.541, allocations: 430.9 kB / 1.057 GB, free: 76.33 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.183e-05/2.541, allocations: 85.08 kB / 1.057 GB, free: 76.23 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.142e-05/2.541, allocations: 4 kB / 1.057 GB, free: 76.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003971/2.542, allocations: 4 kB / 1.057 GB, free: 76.22 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.47e-05/2.542, allocations: 23.86 kB / 1.057 GB, free: 76.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.109e-05/2.542, allocations: 12 kB / 1.057 GB, free: 76.19 MB / 426.7 MB Notification: Performance of sorting global known variables: time 4.433e-05/2.542, allocations: 83.27 kB / 1.057 GB, free: 76.11 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.31e-07/2.542, allocations: 0 / 1.057 GB, free: 76.11 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0008426/2.543, allocations: 151.9 kB / 1.057 GB, free: 75.96 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (19): * Single equations (assignments): 18 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002487/2.545, allocations: 1.772 MB / 1.059 GB, free: 74.14 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0005951/2.546, allocations: 184 kB / 1.059 GB, free: 73.96 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/2.546, allocations: 4 kB / 1.059 GB, free: 73.95 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003426/2.546, allocations: 201.7 kB / 1.06 GB, free: 73.75 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005798/2.547, allocations: 36.11 kB / 1.06 GB, free: 73.71 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001191/2.548, allocations: 426.9 kB / 1.06 GB, free: 73.24 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001793/2.548, allocations: 0.7124 MB / 1.061 GB, free: 72.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002716/2.548, allocations: 47.41 kB / 1.061 GB, free: 72.46 MB / 426.7 MB Notification: Performance of SimCode: time 8.21e-07/2.548, allocations: 7.875 kB / 1.061 GB, free: 72.45 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.83/5.378, allocations: 7.867 MB / 1.068 GB, free: 64.57 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestOnly.IdealGasN2Mix_res.mat does not exist to compare? outputFormat=mat