Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.055/2.055, allocations: 209.4 MB / 216.5 MB, free: 6.699 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.383e-05/2.39e-05, allocations: 3.938 kB / 267.6 MB, free: 4.953 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1117, allocations: 48.69 MB / 316.3 MB, free: 4.164 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.523/2.635, allocations: 0.8074 GB / 1.116 GB, free: 11.92 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003059/2.635, allocations: 87.45 kB / 1.116 GB, free: 11.88 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.06/6.696, allocations: 0.7221 GB / 1.839 GB, free: 64.75 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.276e-06/6.696, allocations: 3.562 kB / 1.839 GB, free: 64.75 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001196/6.696, allocations: 24.94 kB / 1.839 GB, free: 64.75 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.007339/6.703, allocations: 1.374 MB / 1.84 GB, free: 64.1 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.996e-05/6.703, allocations: 8.75 kB / 1.84 GB, free: 64.1 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004753/6.708, allocations: 281.7 kB / 1.84 GB, free: 64.05 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002573/6.711, allocations: 0.6862 MB / 1.841 GB, free: 63.81 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001334/6.711, allocations: 92.19 kB / 1.841 GB, free: 63.75 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000177/6.711, allocations: 42.5 kB / 1.841 GB, free: 63.75 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002139/6.713, allocations: 0.8608 MB / 1.842 GB, free: 63.74 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002436/6.716, allocations: 1.118 MB / 1.843 GB, free: 63.51 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.865e-05/6.716, allocations: 2.719 kB / 1.843 GB, free: 63.51 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001617/6.716, allocations: 3.906 kB / 1.843 GB, free: 63.51 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001366/6.716, allocations: 70.33 kB / 1.843 GB, free: 63.51 MB / 442.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.008115/6.724, allocations: 4.401 MB / 1.847 GB, free: 61.09 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006181/6.725, allocations: 234.6 kB / 1.848 GB, free: 61.07 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003004/6.725, allocations: 128.8 kB / 1.848 GB, free: 61.06 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001097/6.725, allocations: 21.14 kB / 1.848 GB, free: 61.06 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.042e-05/6.725, allocations: 38.05 kB / 1.848 GB, free: 61.02 MB / 442.7 MB Notification: Performance of pre-optimization done (n=27): time 3.447e-06/6.725, allocations: 0 / 1.848 GB, free: 61.02 MB / 442.7 MB Notification: Performance of matching and sorting (n=32): time 0.008854/6.734, allocations: 1.509 MB / 1.849 GB, free: 60.39 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.181e-05/6.734, allocations: 132.4 kB / 1.849 GB, free: 60.24 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001098/6.735, allocations: 0.6923 MB / 1.85 GB, free: 60.1 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.682e-05/6.735, allocations: 29.55 kB / 1.85 GB, free: 60.07 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003945/6.736, allocations: 0.5807 MB / 1.851 GB, free: 59.72 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001217/6.736, allocations: 127.3 kB / 1.851 GB, free: 59.64 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.331e-05/6.736, allocations: 0 / 1.851 GB, free: 59.64 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001331/6.736, allocations: 395.9 kB / 1.851 GB, free: 59.33 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005292/6.737, allocations: 250.2 kB / 1.851 GB, free: 59.32 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009/6.738, allocations: 0.8762 MB / 1.852 GB, free: 58.51 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009248/6.739, allocations: 446.2 kB / 1.853 GB, free: 58.5 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.388e-05/6.739, allocations: 7.281 kB / 1.853 GB, free: 58.5 MB / 442.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.002488/6.741, allocations: 1.097 MB / 1.854 GB, free: 58.38 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.089e-05/6.741, allocations: 12.19 kB / 1.854 GB, free: 58.38 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.622e-05/6.741, allocations: 22.34 kB / 1.854 GB, free: 58.38 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001742/6.743, allocations: 259.7 kB / 1.854 GB, free: 58.37 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00116/6.744, allocations: 229 kB / 1.854 GB, free: 58.34 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001257/6.745, allocations: 0.8793 MB / 1.855 GB, free: 57.81 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001398/6.747, allocations: 48.12 kB / 1.855 GB, free: 57.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000124/6.747, allocations: 78.19 kB / 1.855 GB, free: 57.8 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 99 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 121 * 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 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.000244/6.747, allocations: 163.1 kB / 1.855 GB, free: 57.66 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008567/6.748, allocations: 364.3 kB / 1.856 GB, free: 57.57 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001422/6.748, allocations: 83.81 kB / 1.856 GB, free: 57.53 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001147/6.749, allocations: 445.5 kB / 1.856 GB, free: 57.46 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.204e-06/6.749, allocations: 3.719 kB / 1.856 GB, free: 57.46 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/6.75, allocations: 0 / 1.856 GB, free: 57.46 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/6.75, allocations: 0 / 1.856 GB, free: 57.46 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002082/6.752, allocations: 0.9898 MB / 1.857 GB, free: 57.17 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/6.752, allocations: 3.688 kB / 1.857 GB, free: 57.17 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001819/6.753, allocations: 179.7 kB / 1.857 GB, free: 57.17 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001137/6.754, allocations: 26.28 kB / 1.857 GB, free: 57.16 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.539e-05/6.754, allocations: 2.781 kB / 1.857 GB, free: 57.16 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001859/6.756, allocations: 2.58 MB / 1.86 GB, free: 54.7 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/6.756, allocations: 3 kB / 1.86 GB, free: 54.7 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001286/6.757, allocations: 0.6419 MB / 1.86 GB, free: 54.48 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004754/6.757, allocations: 187.8 kB / 1.861 GB, free: 54.35 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000204/6.758, allocations: 0 / 1.861 GB, free: 54.35 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007601/6.758, allocations: 21.81 kB / 1.861 GB, free: 54.35 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.242e-05/6.758, allocations: 27.05 kB / 1.861 GB, free: 54.35 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.309e-05/6.758, allocations: 21.02 kB / 1.861 GB, free: 54.35 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008338/6.759, allocations: 496 kB / 1.861 GB, free: 54.25 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.91e-07/6.759, allocations: 0 / 1.861 GB, free: 54.25 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002473/6.762, allocations: 480.2 kB / 1.862 GB, free: 54.2 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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.005876/6.768, allocations: 2.743 MB / 1.864 GB, free: 53.2 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001843/6.77, allocations: 0.6232 MB / 1.865 GB, free: 53.14 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/6.77, allocations: 0 / 1.865 GB, free: 53.14 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001269/6.771, allocations: 333.2 kB / 1.865 GB, free: 53.03 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002463/6.773, allocations: 308.7 kB / 1.866 GB, free: 53.02 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004495/6.778, allocations: 1.448 MB / 1.867 GB, free: 52.61 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006429/6.779, allocations: 1.044 MB / 1.868 GB, free: 51.91 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001681/6.78, allocations: 304.2 kB / 1.868 GB, free: 51.89 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006119/6.781, allocations: 311.8 kB / 1.869 GB, free: 51.88 MB / 442.7 MB Notification: Performance of SimCode: time 9.61e-07/6.781, allocations: 0 / 1.869 GB, free: 51.88 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1035/6.884, allocations: 31.84 MB / 1.9 GB, free: 44.43 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002397/6.885, allocations: 229.5 kB / 1.9 GB, free: 44.14 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.863/10.75, allocations: 0 / 1.9 GB, free: 44.14 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat does not exist to compare? outputFormat=mat