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.028/2.028, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.807e-05/2.821e-05, allocations: 0 / 255.5 MB, free: 3.074 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0985/0.09855, allocations: 44.51 MB / 300 MB, free: 6.504 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.376/2.474, allocations: 0.7076 GB / 1.001 GB, free: 109.1 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002956/2.475, allocations: 84.84 kB / 1.001 GB, free: 109.1 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.748/5.222, allocations: 0.5557 GB / 1.556 GB, free: 52.6 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.486e-06/5.222, allocations: 0 / 1.556 GB, free: 52.6 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.58e-05/5.222, allocations: 23.94 kB / 1.556 GB, free: 52.57 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.003342/5.226, allocations: 0.9615 MB / 1.557 GB, free: 51.57 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.367e-05/5.226, allocations: 12.03 kB / 1.557 GB, free: 51.56 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000247/5.226, allocations: 120.9 kB / 1.557 GB, free: 51.43 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001272/5.227, allocations: 147.1 kB / 1.558 GB, free: 51.29 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001407/5.229, allocations: 480.9 kB / 1.558 GB, free: 50.77 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.574e-05/5.229, allocations: 61.94 kB / 1.558 GB, free: 50.71 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002361/5.229, allocations: 75.91 kB / 1.558 GB, free: 50.64 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003067/5.232, allocations: 0.8937 MB / 1.559 GB, free: 49.74 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.887e-05/5.232, allocations: 4 kB / 1.559 GB, free: 49.73 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002148/5.232, allocations: 32 kB / 1.559 GB, free: 49.7 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.404e-05/5.232, allocations: 20 kB / 1.559 GB, free: 49.68 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002727/5.235, allocations: 0.8239 MB / 1.56 GB, free: 48.86 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.01011/5.245, allocations: 3.416 MB / 1.563 GB, free: 45.17 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001667/5.247, allocations: 0.6183 MB / 1.564 GB, free: 44.54 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009712/5.248, allocations: 350.5 kB / 1.564 GB, free: 44.2 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.513e-05/5.248, allocations: 24.47 kB / 1.564 GB, free: 44.17 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.079e-05/5.248, allocations: 47.08 kB / 1.564 GB, free: 44.12 MB / 410.7 MB Notification: Performance of pre-optimization done (n=59): time 4.167e-06/5.248, allocations: 0 / 1.564 GB, free: 44.12 MB / 410.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.02814/5.276, allocations: 4.3 MB / 1.568 GB, free: 39.7 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.141e-05/5.276, allocations: 64.12 kB / 1.568 GB, free: 39.63 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001177/5.278, allocations: 499.1 kB / 1.569 GB, free: 39.14 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001888/5.278, allocations: 41.7 kB / 1.569 GB, free: 39.09 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000219/5.278, allocations: 319 kB / 1.569 GB, free: 38.78 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003056/5.278, allocations: 252.4 kB / 1.57 GB, free: 38.53 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/5.279, allocations: 16 kB / 1.57 GB, free: 38.51 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001014/5.279, allocations: 342.8 kB / 1.57 GB, free: 38.17 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001332/5.28, allocations: 429.4 kB / 1.57 GB, free: 37.75 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001443/5.281, allocations: 0.4922 MB / 1.571 GB, free: 37.23 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001549/5.283, allocations: 497.9 kB / 1.571 GB, free: 36.75 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/5.283, allocations: 0 / 1.571 GB, free: 36.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.003783/5.287, allocations: 1.284 MB / 1.572 GB, free: 35.44 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/5.287, allocations: 4 kB / 1.572 GB, free: 35.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/5.287, allocations: 11.98 kB / 1.572 GB, free: 35.42 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000992/5.288, allocations: 326.7 kB / 1.573 GB, free: 35.08 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00175/5.29, allocations: 179.8 kB / 1.573 GB, free: 34.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007915/5.298, allocations: 10.19 MB / 1.583 GB, free: 23.76 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00128/5.299, allocations: 79.91 kB / 1.583 GB, free: 23.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001264/5.299, allocations: 43.98 kB / 1.583 GB, free: 23.64 MB / 410.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.0003162/5.299, allocations: 148.8 kB / 1.583 GB, free: 23.49 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002229/5.3, allocations: 63.34 kB / 1.583 GB, free: 23.43 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003029/5.303, allocations: 1.274 MB / 1.584 GB, free: 22.12 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.305e-05/5.303, allocations: 11.98 kB / 1.585 GB, free: 22.11 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/5.303, allocations: 0 / 1.585 GB, free: 22.11 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0023/5.305, allocations: 1.593 MB / 1.586 GB, free: 20.35 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005141/5.31, allocations: 2.247 MB / 1.588 GB, free: 18.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.677e-06/5.31, allocations: 0 / 1.588 GB, free: 18.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002187/5.312, allocations: 227.8 kB / 1.588 GB, free: 17.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003019/5.313, allocations: 72.73 kB / 1.589 GB, free: 17.74 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001305/5.313, allocations: 35.97 kB / 1.589 GB, free: 17.71 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001348/5.314, allocations: 1.444 MB / 1.59 GB, free: 16.13 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/5.314, allocations: 0 / 1.59 GB, free: 16.13 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003306/5.318, allocations: 1.612 MB / 1.592 GB, free: 14.47 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003363/5.318, allocations: 144.4 kB / 1.592 GB, free: 14.31 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002089/5.318, allocations: 27.98 kB / 1.592 GB, free: 14.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001438/5.32, allocations: 79.78 kB / 1.592 GB, free: 14.21 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001536/5.32, allocations: 60.66 kB / 1.592 GB, free: 14.15 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001575/5.32, allocations: 63.94 kB / 1.592 GB, free: 14.09 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006616/5.321, allocations: 393.1 kB / 1.592 GB, free: 13.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.41e-07/5.321, allocations: 0 / 1.592 GB, free: 13.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001992/5.323, allocations: 423.8 kB / 1.593 GB, free: 13.29 MB / 410.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.006625/5.329, allocations: 3.487 MB / 1.596 GB, free: 9.781 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003336/5.333, allocations: 1.791 MB / 1.598 GB, free: 7.922 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.704e-06/5.333, allocations: 0 / 1.598 GB, free: 7.922 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001314/5.334, allocations: 0.6688 MB / 1.599 GB, free: 7.242 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00402/5.338, allocations: 492 kB / 1.599 GB, free: 6.77 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007872/5.346, allocations: 2.179 MB / 1.601 GB, free: 4.566 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000812/5.347, allocations: 0.9828 MB / 1.602 GB, free: 3.559 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001034/5.348, allocations: 279.3 kB / 1.602 GB, free: 3.285 MB / 410.7 MB Notification: Performance of SimCode: time 1.132e-06/5.348, allocations: 0 / 1.602 GB, free: 3.285 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.025/9.372, allocations: 33.96 MB / 1.635 GB, free: 63.66 MB / 410.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