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.811/1.811, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.29e-05/3.331e-05, allocations: 0 / 225.1 MB, free: 2.684 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3004/0.3005, allocations: 38.77 MB / 263.9 MB, free: 9.875 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.165/2.465, allocations: 0.6954 GB / 0.9531 GB, free: 89.97 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003332/2.466, allocations: 91.2 kB / 0.9532 GB, free: 89.93 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.958/5.424, allocations: 0.5517 GB / 1.505 GB, free: 54.22 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.745e-06/5.424, allocations: 0 / 1.505 GB, free: 54.22 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.062e-05/5.424, allocations: 13.59 kB / 1.505 GB, free: 54.22 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.003238/5.428, allocations: 0.9617 MB / 1.506 GB, free: 53.71 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.196e-05/5.428, allocations: 13.91 kB / 1.506 GB, free: 53.71 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003001/5.428, allocations: 116.7 kB / 1.506 GB, free: 53.67 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001041/5.429, allocations: 150.9 kB / 1.506 GB, free: 53.63 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001287/5.43, allocations: 485.3 kB / 1.507 GB, free: 53.42 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.92e-05/5.431, allocations: 52.03 kB / 1.507 GB, free: 53.41 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001861/5.431, allocations: 74.75 kB / 1.507 GB, free: 53.41 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002526/5.433, allocations: 0.8953 MB / 1.508 GB, free: 53.36 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.663e-05/5.433, allocations: 3.625 kB / 1.508 GB, free: 53.36 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002139/5.434, allocations: 30.97 kB / 1.508 GB, free: 53.36 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.983e-05/5.434, allocations: 17.75 kB / 1.508 GB, free: 53.36 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002468/5.436, allocations: 0.8226 MB / 1.508 GB, free: 53.36 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.008692/5.445, allocations: 3.046 MB / 1.511 GB, free: 52.22 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001282/5.446, allocations: 0.6102 MB / 1.512 GB, free: 52.19 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006965/5.447, allocations: 359.8 kB / 1.512 GB, free: 52.17 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.853e-05/5.447, allocations: 28.72 kB / 1.512 GB, free: 52.17 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.976e-05/5.447, allocations: 42.28 kB / 1.512 GB, free: 52.13 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 3.166e-06/5.447, allocations: 0 / 1.512 GB, free: 52.13 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.02131/5.468, allocations: 4.245 MB / 1.517 GB, free: 51.39 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.127e-05/5.469, allocations: 57.47 kB / 1.517 GB, free: 51.33 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008973/5.469, allocations: 0.4947 MB / 1.517 GB, free: 51.23 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002318/5.47, allocations: 45.61 kB / 1.517 GB, free: 51.2 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001801/5.47, allocations: 314 kB / 1.517 GB, free: 51 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002665/5.47, allocations: 255.3 kB / 1.518 GB, free: 50.85 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.066e-05/5.47, allocations: 14.28 kB / 1.518 GB, free: 50.85 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.935e-05/5.47, allocations: 341.5 kB / 1.518 GB, free: 50.54 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009502/5.471, allocations: 435.8 kB / 1.518 GB, free: 50.54 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001043/5.472, allocations: 0.4907 MB / 1.519 GB, free: 50.48 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001118/5.473, allocations: 0.4953 MB / 1.519 GB, free: 50.47 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.68e-06/5.474, allocations: 0 / 1.519 GB, free: 50.47 MB / 362.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.00301/5.477, allocations: 1.276 MB / 1.521 GB, free: 50.35 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.926e-05/5.477, allocations: 3.969 kB / 1.521 GB, free: 50.35 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.484e-05/5.477, allocations: 3.969 kB / 1.521 GB, free: 50.35 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009178/5.478, allocations: 339.7 kB / 1.521 GB, free: 50.28 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001827/5.479, allocations: 175.4 kB / 1.521 GB, free: 50.28 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008729/5.488, allocations: 10.19 MB / 1.531 GB, free: 40.99 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001412/5.49, allocations: 78.52 kB / 1.531 GB, free: 40.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001447/5.49, allocations: 47.03 kB / 1.531 GB, free: 40.98 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.0003463/5.49, allocations: 143.2 kB / 1.531 GB, free: 40.88 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002432/5.49, allocations: 61.34 kB / 1.531 GB, free: 40.85 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003159/5.494, allocations: 1.262 MB / 1.533 GB, free: 40.72 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.305e-05/5.494, allocations: 7.031 kB / 1.533 GB, free: 40.72 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/5.494, allocations: 3.781 kB / 1.533 GB, free: 40.72 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002365/5.496, allocations: 1.594 MB / 1.534 GB, free: 39.88 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005234/5.501, allocations: 2.252 MB / 1.536 GB, free: 39.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.906e-06/5.501, allocations: 0 / 1.536 GB, free: 39.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002266/5.504, allocations: 232.1 kB / 1.537 GB, free: 39.49 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003344/5.504, allocations: 63.2 kB / 1.537 GB, free: 39.48 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001869/5.504, allocations: 38.69 kB / 1.537 GB, free: 39.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001426/5.506, allocations: 1.438 MB / 1.538 GB, free: 38.23 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/5.506, allocations: 7.594 kB / 1.538 GB, free: 38.22 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003574/5.509, allocations: 1.599 MB / 1.54 GB, free: 37.75 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003721/5.51, allocations: 149 kB / 1.54 GB, free: 37.62 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002242/5.51, allocations: 30.39 kB / 1.54 GB, free: 37.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001546/5.512, allocations: 82.72 kB / 1.54 GB, free: 37.58 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000178/5.512, allocations: 62.8 kB / 1.54 GB, free: 37.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002165/5.512, allocations: 55.64 kB / 1.54 GB, free: 37.56 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006822/5.513, allocations: 399 kB / 1.54 GB, free: 37.38 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.31e-07/5.513, allocations: 3 kB / 1.54 GB, free: 37.38 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002407/5.515, allocations: 416.4 kB / 1.541 GB, free: 37.3 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.007354/5.523, allocations: 3.492 MB / 1.544 GB, free: 35.62 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003512/5.526, allocations: 1.792 MB / 1.546 GB, free: 34.54 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.578e-06/5.526, allocations: 3.25 kB / 1.546 GB, free: 34.54 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001423/5.528, allocations: 0.6685 MB / 1.547 GB, free: 34.23 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004312/5.532, allocations: 486 kB / 1.547 GB, free: 34.14 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006802/5.539, allocations: 2.18 MB / 1.549 GB, free: 33.36 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006157/5.539, allocations: 0.9903 MB / 1.55 GB, free: 32.62 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008639/5.54, allocations: 276.9 kB / 1.55 GB, free: 32.45 MB / 362.7 MB Notification: Performance of SimCode: time 1.182e-06/5.54, allocations: 0 / 1.55 GB, free: 32.45 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.713/9.253, allocations: 33.88 MB / 1.584 GB, free: 4.641 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