Running command: "" <> buildModelFMU(Modelica.Media.Examples.IdealGasH2O,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Media_Examples_IdealGasH2O",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.934/1.934, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.029e-05/3.047e-05, allocations: 8 kB / 255.4 MB, free: 3.117 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09699/0.09704, allocations: 44.51 MB / 299.9 MB, free: 6.551 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.393/1.49, allocations: 438 MB / 0.7206 GB, free: 104.2 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002332/1.49, allocations: 65.64 kB / 0.7207 GB, free: 104.1 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08582/1.576, allocations: 24.8 MB / 0.7449 GB, free: 83.79 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.403e-06/1.576, allocations: 0 / 0.7449 GB, free: 83.79 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.484e-06/1.576, allocations: 4 kB / 0.7449 GB, free: 83.79 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.001105/1.577, allocations: 436.4 kB / 0.7453 GB, free: 83.33 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/1.577, allocations: 11.97 kB / 0.7453 GB, free: 83.32 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.848e-05/1.577, allocations: 38.12 kB / 0.7454 GB, free: 83.27 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01002/1.587, allocations: 459.7 kB / 0.7458 GB, free: 82.86 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001012/1.588, allocations: 163.1 kB / 0.746 GB, free: 82.66 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.12e-05/1.588, allocations: 0 / 0.746 GB, free: 82.66 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001248/1.588, allocations: 7.75 kB / 0.746 GB, free: 82.66 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007987/1.589, allocations: 270.1 kB / 0.7462 GB, free: 82.45 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/1.589, allocations: 3.984 kB / 0.7462 GB, free: 82.45 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.937e-05/1.589, allocations: 7.891 kB / 0.7462 GB, free: 82.44 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.204e-06/1.589, allocations: 8 kB / 0.7463 GB, free: 82.43 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007734/1.589, allocations: 234.9 kB / 0.7465 GB, free: 82.29 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001394/1.591, allocations: 421.9 kB / 0.7469 GB, free: 81.88 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001284/1.592, allocations: 192.8 kB / 0.7471 GB, free: 81.72 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000192/1.592, allocations: 66.53 kB / 0.7471 GB, free: 81.67 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.477e-05/1.592, allocations: 7.922 kB / 0.7471 GB, free: 81.66 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.723e-05/1.593, allocations: 34.56 kB / 0.7472 GB, free: 81.62 MB / 410.7 MB Notification: Performance of pre-optimization done (n=13): time 2.254e-06/1.593, allocations: 4 kB / 0.7472 GB, free: 81.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=17): time 0.001794/1.594, allocations: 315 kB / 0.7475 GB, free: 81.38 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.848e-05/1.594, allocations: 55.36 kB / 0.7475 GB, free: 81.31 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.492e-05/1.594, allocations: 93 kB / 0.7476 GB, free: 81.21 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.201e-05/1.594, allocations: 29.45 kB / 0.7476 GB, free: 81.18 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.336e-05/1.595, allocations: 162.3 kB / 0.7478 GB, free: 81.02 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.728e-05/1.595, allocations: 65.81 kB / 0.7479 GB, free: 80.96 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.673e-05/1.595, allocations: 0 / 0.7479 GB, free: 80.96 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.999e-05/1.595, allocations: 318.7 kB / 0.7482 GB, free: 80.65 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001896/1.595, allocations: 58.36 kB / 0.7482 GB, free: 80.61 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002102/1.595, allocations: 98.34 kB / 0.7483 GB, free: 80.52 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002072/1.595, allocations: 73.44 kB / 0.7484 GB, free: 80.47 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/1.595, allocations: 3.938 kB / 0.7484 GB, free: 80.47 MB / 410.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005535/1.596, allocations: 193.9 kB / 0.7486 GB, free: 80.32 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/1.596, allocations: 11.98 kB / 0.7486 GB, free: 80.31 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/1.596, allocations: 0 / 0.7486 GB, free: 80.31 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2e-05/1.596, allocations: 4 kB / 0.7486 GB, free: 80.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006885/1.597, allocations: 59.7 kB / 0.7486 GB, free: 80.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/1.597, allocations: 0 / 0.7486 GB, free: 80.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004344/1.597, allocations: 19.5 kB / 0.7487 GB, free: 80.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.972e-05/1.597, allocations: 8 kB / 0.7487 GB, free: 80.23 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001026/1.597, allocations: 115.8 kB / 0.7488 GB, free: 80.11 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.712e-05/1.597, allocations: 7.906 kB / 0.7488 GB, free: 80.11 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008078/1.598, allocations: 242.4 kB / 0.749 GB, free: 79.93 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/1.598, allocations: 4 kB / 0.749 GB, free: 79.93 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/1.598, allocations: 0 / 0.749 GB, free: 79.93 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/1.598, allocations: 3.984 kB / 0.749 GB, free: 79.92 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001248/1.6, allocations: 0.537 MB / 0.7496 GB, free: 79.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-06/1.6, allocations: 7.953 kB / 0.7496 GB, free: 79.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005696/1.6, allocations: 47.45 kB / 0.7496 GB, free: 79.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.745e-06/1.6, allocations: 0 / 0.7496 GB, free: 79.35 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.486e-05/1.6, allocations: 7.984 kB / 0.7496 GB, free: 79.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.058e-06/1.6, allocations: 0 / 0.7496 GB, free: 79.34 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/1.6, allocations: 12 kB / 0.7496 GB, free: 79.33 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006041/1.601, allocations: 303.6 kB / 0.7499 GB, free: 79.05 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.256e-05/1.601, allocations: 85.02 kB / 0.75 GB, free: 78.95 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.969e-05/1.601, allocations: 7.984 kB / 0.75 GB, free: 78.94 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004426/1.601, allocations: 15.48 kB / 0.75 GB, free: 78.93 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.687e-05/1.602, allocations: 19.42 kB / 0.75 GB, free: 78.91 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.186e-05/1.602, allocations: 12 kB / 0.75 GB, free: 78.9 MB / 410.7 MB Notification: Performance of sorting global known variables: time 4.154e-05/1.602, allocations: 83.27 kB / 0.7501 GB, free: 78.82 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.91e-07/1.602, allocations: 0 / 0.7501 GB, free: 78.82 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006141/1.602, allocations: 68.12 kB / 0.7502 GB, free: 78.77 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001658/1.604, allocations: 1.41 MB / 0.7516 GB, free: 77.38 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006409/1.605, allocations: 155.6 kB / 0.7517 GB, free: 77.27 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/1.605, allocations: 0 / 0.7517 GB, free: 77.27 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002306/1.605, allocations: 82.28 kB / 0.7518 GB, free: 77.21 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005297/1.605, allocations: 39.67 kB / 0.7518 GB, free: 77.18 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001329/1.607, allocations: 259.4 kB / 0.7521 GB, free: 76.91 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001489/1.607, allocations: 0.6974 MB / 0.7528 GB, free: 76.18 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003264/1.607, allocations: 42.41 kB / 0.7528 GB, free: 76.15 MB / 410.7 MB Notification: Performance of SimCode: time 1.373e-06/1.607, allocations: 7.938 kB / 0.7528 GB, free: 76.14 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.811/4.418, allocations: 5.157 MB / 0.7578 GB, free: 70.99 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Media.Examples.IdealGasH2O_res.mat does not exist to compare? outputFormat=mat