Running command: "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.885/1.885, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.935e-05/3.954e-05, allocations: 4 kB / 225.1 MB, free: 2.688 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2888/0.2889, allocations: 38.76 MB / 263.8 MB, free: 9.754 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.155/2.444, allocations: 0.6954 GB / 0.953 GB, free: 89.41 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003683/2.444, allocations: 90.66 kB / 0.9531 GB, free: 89.37 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.834/5.278, allocations: 0.5517 GB / 1.505 GB, free: 52.9 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.134e-06/5.278, allocations: 0 / 1.505 GB, free: 52.9 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.893e-05/5.279, allocations: 20.59 kB / 1.505 GB, free: 52.9 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.002687/5.281, allocations: 0.955 MB / 1.506 GB, free: 52.39 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/5.281, allocations: 7.312 kB / 1.506 GB, free: 52.39 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001927/5.282, allocations: 126.6 kB / 1.506 GB, free: 52.35 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009833/5.283, allocations: 148.2 kB / 1.506 GB, free: 52.31 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001107/5.284, allocations: 477.1 kB / 1.506 GB, free: 52.1 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.188e-05/5.284, allocations: 54 kB / 1.507 GB, free: 52.1 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001696/5.284, allocations: 74.38 kB / 1.507 GB, free: 52.1 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00224/5.286, allocations: 0.9065 MB / 1.507 GB, free: 52.04 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.214e-05/5.286, allocations: 5.094 kB / 1.508 GB, free: 52.04 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001478/5.286, allocations: 39.08 kB / 1.508 GB, free: 52.04 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.863e-05/5.286, allocations: 14.78 kB / 1.508 GB, free: 52.04 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001906/5.288, allocations: 0.8283 MB / 1.508 GB, free: 52.03 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.008941/5.297, allocations: 3.045 MB / 1.511 GB, free: 50.9 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001741/5.299, allocations: 0.6259 MB / 1.512 GB, free: 50.86 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001031/5.3, allocations: 351.6 kB / 1.512 GB, free: 50.85 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000116/5.3, allocations: 20.58 kB / 1.512 GB, free: 50.85 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.764e-05/5.3, allocations: 49.44 kB / 1.512 GB, free: 50.8 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 4.689e-06/5.3, allocations: 0 / 1.512 GB, free: 50.8 MB / 362.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: volume.medium.Xi[6] 2: volume.medium.Xi[5] 3: volume.medium.Xi[4] 4: volume.medium.Xi[3] 5: volume.medium.Xi[2] 6: volume.medium.Xi[1] 7: volume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=71): time 0.02894/5.329, allocations: 4.284 MB / 1.517 GB, free: 50.06 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.584e-05/5.329, allocations: 56.09 kB / 1.517 GB, free: 50 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00121/5.331, allocations: 0.4922 MB / 1.517 GB, free: 49.89 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002715/5.331, allocations: 47.95 kB / 1.517 GB, free: 49.86 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002424/5.331, allocations: 319.7 kB / 1.517 GB, free: 49.67 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003223/5.332, allocations: 253.1 kB / 1.518 GB, free: 49.52 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001114/5.332, allocations: 16.84 kB / 1.518 GB, free: 49.52 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001032/5.332, allocations: 337.2 kB / 1.518 GB, free: 49.21 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001404/5.333, allocations: 429.6 kB / 1.518 GB, free: 49.21 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001495/5.335, allocations: 0.5061 MB / 1.519 GB, free: 49.15 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001619/5.336, allocations: 494.3 kB / 1.519 GB, free: 49.14 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/5.336, allocations: 2.812 kB / 1.519 GB, free: 49.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.004618/5.341, allocations: 1.315 MB / 1.521 GB, free: 49.01 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.522e-05/5.341, allocations: 8.969 kB / 1.521 GB, free: 49.01 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.34e-05/5.341, allocations: 0 / 1.521 GB, free: 49.01 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001546/5.343, allocations: 344.5 kB / 1.521 GB, free: 48.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002341/5.345, allocations: 181.7 kB / 1.521 GB, free: 48.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01111/5.356, allocations: 10.2 MB / 1.531 GB, free: 39.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001746/5.358, allocations: 83.7 kB / 1.531 GB, free: 39.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001767/5.358, allocations: 45.7 kB / 1.531 GB, free: 39.64 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 72 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 8 {1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004155/5.359, allocations: 145.8 kB / 1.531 GB, free: 39.52 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003151/5.359, allocations: 63.66 kB / 1.531 GB, free: 39.49 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004646/5.364, allocations: 1.295 MB / 1.533 GB, free: 39.35 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.569e-05/5.364, allocations: 7.625 kB / 1.533 GB, free: 39.35 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.283e-06/5.364, allocations: 0 / 1.533 GB, free: 39.35 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003441/5.367, allocations: 1.596 MB / 1.534 GB, free: 38.5 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006542/5.374, allocations: 2.253 MB / 1.536 GB, free: 38.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.127e-06/5.374, allocations: 0 / 1.536 GB, free: 38.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002176/5.376, allocations: 229.2 kB / 1.537 GB, free: 38.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003274/5.376, allocations: 69.2 kB / 1.537 GB, free: 38.1 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001382/5.377, allocations: 40.81 kB / 1.537 GB, free: 38.1 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001392/5.378, allocations: 1.434 MB / 1.538 GB, free: 36.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/5.378, allocations: 7.859 kB / 1.538 GB, free: 36.84 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003621/5.382, allocations: 1.612 MB / 1.54 GB, free: 36.38 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000401/5.382, allocations: 151.8 kB / 1.54 GB, free: 36.24 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002329/5.382, allocations: 32.62 kB / 1.54 GB, free: 36.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001511/5.384, allocations: 73.81 kB / 1.54 GB, free: 36.21 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001765/5.384, allocations: 63.89 kB / 1.54 GB, free: 36.19 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000163/5.384, allocations: 61 kB / 1.54 GB, free: 36.18 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007528/5.385, allocations: 404.7 kB / 1.541 GB, free: 36 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.71e-07/5.385, allocations: 0 / 1.541 GB, free: 36 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00218/5.387, allocations: 418.1 kB / 1.541 GB, free: 35.92 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (volume.medium.p,volume.medium.Xi[1],volume.medium.Xi[2],volume.medium.Xi[3],volume.medium.Xi[4],volume.medium.Xi[5],volume.medium.Xi[6],volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 76 * 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.007123/5.394, allocations: 3.47 MB / 1.544 GB, free: 34.27 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003478/5.398, allocations: 1.84 MB / 1.546 GB, free: 33.12 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.945e-06/5.398, allocations: 3.812 kB / 1.546 GB, free: 33.12 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001415/5.399, allocations: 0.6685 MB / 1.547 GB, free: 32.8 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004212/5.404, allocations: 483.7 kB / 1.547 GB, free: 32.72 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006526/5.41, allocations: 2.189 MB / 1.549 GB, free: 31.94 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005987/5.411, allocations: 0.9878 MB / 1.55 GB, free: 31.2 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007785/5.412, allocations: 280.8 kB / 1.551 GB, free: 31.03 MB / 362.7 MB Notification: Performance of SimCode: time 1.343e-06/5.412, allocations: 0 / 1.551 GB, free: 31.03 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.551/8.962, allocations: 33.88 MB / 1.584 GB, free: 3.516 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.IdealGases.SimpleNaturalGas_res.mat does not exist to compare? outputFormat=mat