Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.8/1.8, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.52e-05/3.535e-05, allocations: 0 / 225.1 MB, free: 2.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2619/0.2619, allocations: 38.77 MB / 263.8 MB, free: 9.762 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1276/0.3896, allocations: 66 MB / 329.8 MB, free: 7.668 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003654/0.3901, allocations: 75.95 kB / 329.9 MB, free: 7.594 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007465/0.3976, allocations: 1.769 MB / 331.7 MB, free: 5.82 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3976, allocations: 0 / 331.7 MB, free: 5.82 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.727e-06/0.3976, allocations: 0 / 331.7 MB, free: 5.82 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0005081/0.3981, allocations: 362.3 kB / 332 MB, free: 5.422 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.262e-05/0.3982, allocations: 8.031 kB / 332 MB, free: 5.414 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.374e-05/0.3983, allocations: 38.56 kB / 332.1 MB, free: 5.367 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001454/0.3984, allocations: 23.83 kB / 332.1 MB, free: 5.344 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001699/0.3986, allocations: 170.9 kB / 332.3 MB, free: 5.137 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.911e-05/0.3987, allocations: 8 kB / 332.3 MB, free: 5.129 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.912e-05/0.3987, allocations: 15.95 kB / 332.3 MB, free: 5.113 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002384/0.399, allocations: 81.11 kB / 332.4 MB, free: 5.031 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.903e-05/0.399, allocations: 7.906 kB / 332.4 MB, free: 5.023 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.481e-05/0.399, allocations: 0 / 332.4 MB, free: 5.023 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.399, allocations: 0 / 332.4 MB, free: 5.023 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000173/0.3992, allocations: 51.98 kB / 332.4 MB, free: 4.973 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000929/0.4002, allocations: 404.6 kB / 332.8 MB, free: 4.527 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001807/0.4004, allocations: 70.55 kB / 332.9 MB, free: 4.449 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.792e-05/0.4005, allocations: 40.8 kB / 332.9 MB, free: 4.406 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.165e-05/0.4005, allocations: 4 kB / 332.9 MB, free: 4.402 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.175e-05/0.4005, allocations: 30.56 kB / 333 MB, free: 4.363 MB / 282.7 MB Notification: Performance of pre-optimization done (n=8): time 1.984e-06/0.4005, allocations: 4 kB / 333 MB, free: 4.359 MB / 282.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002379/0.4008, allocations: 69.84 kB / 333 MB, free: 4.285 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.964e-05/0.4009, allocations: 55.39 kB / 333.1 MB, free: 4.219 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.244e-05/0.401, allocations: 97 kB / 333.2 MB, free: 4.117 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.779e-05/0.401, allocations: 25.7 kB / 333.2 MB, free: 4.086 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/0.4011, allocations: 174.3 kB / 333.4 MB, free: 3.914 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.715e-05/0.4011, allocations: 31.55 kB / 333.4 MB, free: 3.883 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.632e-06/0.4012, allocations: 0 / 333.4 MB, free: 3.883 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.4013, allocations: 322.8 kB / 333.7 MB, free: 3.559 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.512e-05/0.4014, allocations: 16 kB / 333.7 MB, free: 3.543 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001008/0.4015, allocations: 50.5 kB / 333.8 MB, free: 3.484 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.376e-05/0.4016, allocations: 24 kB / 333.8 MB, free: 3.461 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.4016, allocations: 0 / 333.8 MB, free: 3.461 MB / 282.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002508/0.4019, allocations: 109.5 kB / 333.9 MB, free: 3.348 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/0.4019, allocations: 8.062 kB / 333.9 MB, free: 3.34 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.4019, allocations: 0 / 333.9 MB, free: 3.34 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.129e-05/0.402, allocations: 4 kB / 333.9 MB, free: 3.336 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002361/0.4022, allocations: 20 kB / 333.9 MB, free: 3.316 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.465e-05/0.4022, allocations: 3.984 kB / 333.9 MB, free: 3.312 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.4024, allocations: 4 kB / 334 MB, free: 3.309 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.658e-05/0.4024, allocations: 8 kB / 334 MB, free: 3.301 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (13): * Single equations (assignments): 13 * 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.0001006/0.4025, allocations: 108.9 kB / 334.1 MB, free: 3.188 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.636e-05/0.4026, allocations: 11.91 kB / 334.1 MB, free: 3.176 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.933e-05/0.4026, allocations: 8.625 kB / 334.1 MB, free: 3.172 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.4026, allocations: 4 kB / 334.1 MB, free: 3.168 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.4026, allocations: 0 / 334.1 MB, free: 3.168 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.4026, allocations: 0 / 334.1 MB, free: 3.168 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000298/0.4029, allocations: 193.5 kB / 334.3 MB, free: 2.93 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.403, allocations: 3.938 kB / 334.3 MB, free: 2.926 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002119/0.4032, allocations: 19.98 kB / 334.3 MB, free: 2.906 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.4032, allocations: 0 / 334.3 MB, free: 2.906 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.535e-05/0.4032, allocations: 4 kB / 334.3 MB, free: 2.902 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.4032, allocations: 4 kB / 334.3 MB, free: 2.898 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.4033, allocations: 0 / 334.3 MB, free: 2.898 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003079/0.4036, allocations: 195.4 kB / 334.5 MB, free: 2.691 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.483e-05/0.4036, allocations: 96.92 kB / 334.6 MB, free: 2.578 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.316e-05/0.4037, allocations: 4 kB / 334.6 MB, free: 2.574 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.282e-05/0.4038, allocations: 0 / 334.6 MB, free: 2.574 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.034e-05/0.4038, allocations: 4 kB / 334.6 MB, free: 2.57 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.354e-06/0.4038, allocations: 256 / 334.6 MB, free: 2.57 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.002e-05/0.4039, allocations: 99.33 kB / 334.7 MB, free: 2.473 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.4039, allocations: 0 / 334.7 MB, free: 2.473 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003326/0.4043, allocations: 27.94 kB / 334.7 MB, free: 2.445 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mass1.T,mass2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.000627/0.4049, allocations: 0.7202 MB / 335.4 MB, free: 1.695 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002071/0.4051, allocations: 59.98 kB / 335.5 MB, free: 1.637 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.4051, allocations: 0 / 335.5 MB, free: 1.637 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 6.106e-05/0.4052, allocations: 27.98 kB / 335.5 MB, free: 1.609 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002473/0.4055, allocations: 4 kB / 335.5 MB, free: 1.605 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001098/0.4066, allocations: 308.1 kB / 335.8 MB, free: 1.266 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004245/0.407, allocations: 0.6965 MB / 336.5 MB, free: 0.543 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.864e-05/0.4071, allocations: 19.44 kB / 336.6 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of SimCode: time 1.162e-06/0.4072, allocations: 0 / 336.6 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.467/2.874, allocations: 1.348 MB / 337.9 MB, free: 15.18 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat does not exist to compare? outputFormat=mat