Running command: "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.025/2.025, allocations: 194.9 MB / 208.4 MB, free: 3.176 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.935e-05/3.95e-05, allocations: 4 kB / 255.4 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1024, allocations: 44.51 MB / 299.9 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.366/2.469, allocations: 0.7076 GB / 1.001 GB, free: 108.2 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003134/2.469, allocations: 85.77 kB / 1.001 GB, free: 108.2 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.823/5.292, allocations: 0.5557 GB / 1.556 GB, free: 55.02 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.883e-06/5.292, allocations: 0 / 1.556 GB, free: 55.02 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.635e-05/5.292, allocations: 27.23 kB / 1.556 GB, free: 55 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.003448/5.296, allocations: 0.9488 MB / 1.557 GB, free: 54.27 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.292e-05/5.296, allocations: 12.62 kB / 1.557 GB, free: 54.27 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004008/5.296, allocations: 123 kB / 1.557 GB, free: 54.17 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001226/5.297, allocations: 142 kB / 1.557 GB, free: 54.11 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001532/5.299, allocations: 486.2 kB / 1.558 GB, free: 53.71 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.179e-05/5.299, allocations: 51.94 kB / 1.558 GB, free: 53.68 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001971/5.299, allocations: 80.61 kB / 1.558 GB, free: 53.65 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002724/5.302, allocations: 0.9057 MB / 1.559 GB, free: 52.98 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.705e-05/5.302, allocations: 0 / 1.559 GB, free: 52.98 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002051/5.302, allocations: 39.94 kB / 1.559 GB, free: 52.94 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.01e-05/5.302, allocations: 23.98 kB / 1.559 GB, free: 52.92 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002252/5.305, allocations: 0.8239 MB / 1.56 GB, free: 52.09 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.008845/5.314, allocations: 3.432 MB / 1.563 GB, free: 48.39 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001311/5.315, allocations: 0.6236 MB / 1.564 GB, free: 47.75 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007011/5.316, allocations: 350.5 kB / 1.564 GB, free: 47.41 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.204e-05/5.316, allocations: 24.47 kB / 1.564 GB, free: 47.39 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.281e-05/5.316, allocations: 43.12 kB / 1.564 GB, free: 47.34 MB / 426.7 MB Notification: Performance of pre-optimization done (n=59): time 3.597e-06/5.316, allocations: 0 / 1.564 GB, free: 47.34 MB / 426.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.02158/5.337, allocations: 4.327 MB / 1.568 GB, free: 42.89 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.259e-05/5.337, allocations: 68.17 kB / 1.568 GB, free: 42.82 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008997/5.338, allocations: 499.1 kB / 1.569 GB, free: 42.33 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002714/5.339, allocations: 45.7 kB / 1.569 GB, free: 42.28 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001995/5.339, allocations: 319 kB / 1.569 GB, free: 41.96 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002566/5.339, allocations: 248.4 kB / 1.57 GB, free: 41.72 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.769e-05/5.339, allocations: 16 kB / 1.57 GB, free: 41.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.604e-05/5.339, allocations: 338.8 kB / 1.57 GB, free: 41.36 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001005/5.34, allocations: 429.4 kB / 1.57 GB, free: 40.94 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001005/5.341, allocations: 0.5015 MB / 1.571 GB, free: 40.42 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001099/5.343, allocations: 0.49 MB / 1.571 GB, free: 39.93 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/5.343, allocations: 0 / 1.571 GB, free: 39.93 MB / 426.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.00319/5.346, allocations: 1.319 MB / 1.573 GB, free: 38.58 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.178e-05/5.346, allocations: 8 kB / 1.573 GB, free: 38.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/5.346, allocations: 0 / 1.573 GB, free: 38.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001147/5.347, allocations: 342.6 kB / 1.573 GB, free: 38.21 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001811/5.349, allocations: 179.8 kB / 1.573 GB, free: 38.04 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008291/5.357, allocations: 10.2 MB / 1.583 GB, free: 26.89 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001326/5.359, allocations: 83.94 kB / 1.583 GB, free: 26.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001384/5.359, allocations: 40 kB / 1.583 GB, free: 26.77 MB / 426.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.0003438/5.359, allocations: 156.7 kB / 1.583 GB, free: 26.61 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000241/5.359, allocations: 63.34 kB / 1.583 GB, free: 26.54 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003491/5.363, allocations: 1.298 MB / 1.585 GB, free: 25.21 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.21e-05/5.363, allocations: 4 kB / 1.585 GB, free: 25.21 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/5.363, allocations: 7.953 kB / 1.585 GB, free: 25.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002386/5.365, allocations: 1.593 MB / 1.586 GB, free: 23.44 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005057/5.37, allocations: 2.258 MB / 1.588 GB, free: 21.11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/5.371, allocations: 8.031 kB / 1.588 GB, free: 21.11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00217/5.373, allocations: 219.7 kB / 1.589 GB, free: 20.89 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002927/5.373, allocations: 72.64 kB / 1.589 GB, free: 20.82 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001449/5.373, allocations: 47.95 kB / 1.589 GB, free: 20.77 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00138/5.375, allocations: 1.436 MB / 1.59 GB, free: 19.21 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/5.375, allocations: 3.938 kB / 1.59 GB, free: 19.2 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003561/5.378, allocations: 1.606 MB / 1.592 GB, free: 17.55 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004078/5.379, allocations: 144.4 kB / 1.592 GB, free: 17.39 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002473/5.379, allocations: 31.94 kB / 1.592 GB, free: 17.36 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001581/5.381, allocations: 75.78 kB / 1.592 GB, free: 17.29 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001712/5.381, allocations: 60.64 kB / 1.592 GB, free: 17.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001731/5.381, allocations: 59.95 kB / 1.592 GB, free: 17.17 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000686/5.382, allocations: 405.1 kB / 1.592 GB, free: 16.78 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.3e-07/5.382, allocations: 0 / 1.592 GB, free: 16.78 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002187/5.384, allocations: 415.9 kB / 1.593 GB, free: 16.37 MB / 426.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.007277/5.391, allocations: 3.479 MB / 1.596 GB, free: 12.87 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00364/5.395, allocations: 1.839 MB / 1.598 GB, free: 10.93 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.089e-05/5.395, allocations: 4 kB / 1.598 GB, free: 10.93 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001546/5.396, allocations: 0.6791 MB / 1.599 GB, free: 10.24 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004438/5.401, allocations: 486.2 kB / 1.599 GB, free: 9.762 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006888/5.408, allocations: 2.17 MB / 1.601 GB, free: 7.539 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006539/5.409, allocations: 0.9906 MB / 1.602 GB, free: 6.523 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008605/5.41, allocations: 279.3 kB / 1.603 GB, free: 6.25 MB / 426.7 MB Notification: Performance of SimCode: time 1.874e-06/5.41, allocations: 0 / 1.603 GB, free: 6.25 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.87/9.28, allocations: 33.97 MB / 1.636 GB, free: 56.39 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat does not exist to compare? outputFormat=mat