Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.396/2.396, allocations: 235.2 MB / 242.3 MB, free: 9.578 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.04e-05/2.055e-05, allocations: 0 / 299.6 MB, free: 196 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3531/0.3531, allocations: 54.85 MB / 354.4 MB, free: 15.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.892/2.245, allocations: 0.636 GB / 0.9821 GB, free: 39.49 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000339/2.245, allocations: 93.69 kB / 0.9822 GB, free: 39.44 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.153/3.398, allocations: 226.9 MB / 1.204 GB, free: 19.24 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.473e-06/3.398, allocations: 0 / 1.204 GB, free: 19.24 MB / 490.7 MB Notification: Performance of Transformations before backend: time 6.37e-05/3.398, allocations: 16 kB / 1.204 GB, free: 19.23 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.003529/3.402, allocations: 1.151 MB / 1.205 GB, free: 18.03 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/3.402, allocations: 20.02 kB / 1.205 GB, free: 18.01 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00118/3.403, allocations: 131 kB / 1.205 GB, free: 17.88 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001449/3.404, allocations: 0.5545 MB / 1.206 GB, free: 17.29 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001065/3.405, allocations: 84.7 kB / 1.206 GB, free: 17.19 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001235/3.405, allocations: 31.95 kB / 1.206 GB, free: 17.16 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001307/3.406, allocations: 0.5219 MB / 1.206 GB, free: 16.64 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001473/3.407, allocations: 0.7211 MB / 1.207 GB, free: 15.84 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.718e-05/3.407, allocations: 3.938 kB / 1.207 GB, free: 15.84 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001043/3.408, allocations: 4 kB / 1.207 GB, free: 15.83 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.931e-05/3.408, allocations: 37.3 kB / 1.207 GB, free: 15.8 MB / 490.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.005739/3.413, allocations: 3.885 MB / 1.211 GB, free: 11.66 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006059/3.414, allocations: 235.3 kB / 1.211 GB, free: 11.43 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002872/3.414, allocations: 129.3 kB / 1.211 GB, free: 11.3 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.867e-05/3.414, allocations: 24.97 kB / 1.211 GB, free: 11.27 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.182e-05/3.415, allocations: 30.8 kB / 1.211 GB, free: 11.23 MB / 490.7 MB Notification: Performance of pre-optimization done (n=27): time 3.327e-06/3.415, allocations: 4 kB / 1.211 GB, free: 11.23 MB / 490.7 MB Notification: Performance of matching and sorting (n=32): time 0.008487/3.423, allocations: 1.43 MB / 1.213 GB, free: 9.719 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.361e-05/3.423, allocations: 132.5 kB / 1.213 GB, free: 9.559 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007299/3.424, allocations: 470.1 kB / 1.213 GB, free: 9.094 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 5.206e-05/3.424, allocations: 25.7 kB / 1.213 GB, free: 9.062 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002604/3.424, allocations: 406.7 kB / 1.214 GB, free: 8.656 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001093/3.424, allocations: 118.3 kB / 1.214 GB, free: 8.539 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.474e-05/3.424, allocations: 0 / 1.214 GB, free: 8.539 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001099/3.424, allocations: 374.8 kB / 1.214 GB, free: 8.164 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004228/3.425, allocations: 177.5 kB / 1.214 GB, free: 7.992 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005918/3.426, allocations: 0.5043 MB / 1.215 GB, free: 7.328 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009538/3.426, allocations: 331.4 kB / 1.215 GB, free: 7.004 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.496e-06/3.426, allocations: 7.953 kB / 1.215 GB, free: 6.996 MB / 490.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002134/3.429, allocations: 0.8252 MB / 1.216 GB, free: 6.16 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.404e-05/3.429, allocations: 12 kB / 1.216 GB, free: 6.148 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.658e-05/3.429, allocations: 12 kB / 1.216 GB, free: 6.137 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001898/3.431, allocations: 263.2 kB / 1.216 GB, free: 5.879 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007797/3.431, allocations: 131.8 kB / 1.216 GB, free: 5.75 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001355/3.433, allocations: 0.923 MB / 1.217 GB, free: 4.801 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009649/3.434, allocations: 35.91 kB / 1.217 GB, free: 4.766 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001211/3.434, allocations: 71.98 kB / 1.217 GB, free: 4.695 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (72): * Single equations (assignments): 71 * 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.000204/3.434, allocations: 132.7 kB / 1.217 GB, free: 4.559 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001168/3.435, allocations: 421.5 kB / 1.218 GB, free: 4.137 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001361/3.435, allocations: 55.34 kB / 1.218 GB, free: 4.082 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001607/3.437, allocations: 0.5034 MB / 1.218 GB, free: 3.574 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/3.437, allocations: 7.938 kB / 1.218 GB, free: 3.566 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/3.437, allocations: 0 / 1.218 GB, free: 3.566 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/3.437, allocations: 7.984 kB / 1.218 GB, free: 3.559 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002056/3.439, allocations: 0.9648 MB / 1.219 GB, free: 2.543 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/3.439, allocations: 0 / 1.219 GB, free: 2.543 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001985/3.441, allocations: 195.8 kB / 1.219 GB, free: 2.352 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001157/3.441, allocations: 28.88 kB / 1.22 GB, free: 2.32 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.66e-05/3.441, allocations: 8 kB / 1.22 GB, free: 2.312 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3624/3.804, allocations: 2.575 MB / 1.222 GB, free: 93.9 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.013e-06/3.804, allocations: 2.938 kB / 1.222 GB, free: 93.9 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001928/3.806, allocations: 0.669 MB / 1.223 GB, free: 93.74 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004041/3.806, allocations: 173.7 kB / 1.223 GB, free: 93.65 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000186/3.806, allocations: 1.953 kB / 1.223 GB, free: 93.65 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007748/3.807, allocations: 18.14 kB / 1.223 GB, free: 93.65 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00015/3.807, allocations: 36.19 kB / 1.223 GB, free: 93.65 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001149/3.808, allocations: 36.64 kB / 1.223 GB, free: 93.65 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0007574/3.808, allocations: 346.4 kB / 1.223 GB, free: 93.56 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.11e-07/3.808, allocations: 0 / 1.223 GB, free: 93.56 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002045/3.81, allocations: 341.4 kB / 1.224 GB, free: 93.56 MB / 490.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 (33): * Single equations (assignments): 31 * 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.004635/3.815, allocations: 2.376 MB / 1.226 GB, free: 92.73 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001719/3.817, allocations: 489.8 kB / 1.226 GB, free: 92.73 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/3.817, allocations: 0 / 1.226 GB, free: 92.73 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001472/3.818, allocations: 358.4 kB / 1.227 GB, free: 92.62 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002217/3.821, allocations: 241.4 kB / 1.227 GB, free: 92.61 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01131/3.832, allocations: 2.498 MB / 1.229 GB, free: 92.32 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004709/3.832, allocations: 0.9425 MB / 1.23 GB, free: 91.62 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.001735/3.834, allocations: 244.7 kB / 1.231 GB, free: 91.62 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007314/3.835, allocations: 258.4 kB / 1.231 GB, free: 91.61 MB / 490.7 MB Notification: Performance of SimCode: time 1.754e-06/3.835, allocations: 0 / 1.231 GB, free: 91.61 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1026/3.938, allocations: 25.54 MB / 1.256 GB, free: 91.04 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002158/3.938, allocations: 201.7 kB / 1.256 GB, free: 90.77 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.869/7.807, allocations: 0 / 1.256 GB, free: 90.77 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air_res.mat does not exist to compare? outputFormat=mat