Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_3_2_1_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.853/1.853, allocations: 171.2 MB / 183.3 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 5.037e-05/5.051e-05, allocations: 4 kB / 225.1 MB, free: 2.133 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3577/0.3578, allocations: 38.76 MB / 263.8 MB, free: 9.793 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1799/0.5377, allocations: 69.56 MB / 333.4 MB, free: 4.129 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003485/0.5381, allocations: 71.95 kB / 333.5 MB, free: 4.059 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03369/0.5719, allocations: 5.109 MB / 338.6 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.5719, allocations: 0 / 338.6 MB, free: 14.94 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.1e-05/0.572, allocations: 4 kB / 338.6 MB, free: 14.93 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.001289/0.5733, allocations: 0.5203 MB / 339.1 MB, free: 14.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.125e-05/0.5734, allocations: 11.97 kB / 339.1 MB, free: 14.35 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001102/0.5735, allocations: 50.55 kB / 339.2 MB, free: 14.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002913/0.5738, allocations: 23.72 kB / 339.2 MB, free: 14.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006007/0.5744, allocations: 246.7 kB / 339.4 MB, free: 13.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.346e-05/0.5745, allocations: 12.27 kB / 339.4 MB, free: 13.97 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.125e-05/0.5746, allocations: 27.94 kB / 339.5 MB, free: 13.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006098/0.5752, allocations: 148.2 kB / 339.6 MB, free: 13.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.93e-05/0.5753, allocations: 7.906 kB / 339.6 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.045e-05/0.5754, allocations: 4 kB / 339.6 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.309e-05/0.5754, allocations: 4 kB / 339.6 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005676/0.576, allocations: 116.6 kB / 339.8 MB, free: 13.67 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001908/0.5779, allocations: 0.5821 MB / 340.3 MB, free: 13.03 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006293/0.5786, allocations: 138.6 kB / 340.5 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000319/0.5789, allocations: 80.84 kB / 340.5 MB, free: 12.8 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.089e-05/0.579, allocations: 8 kB / 340.6 MB, free: 12.8 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004192/0.5794, allocations: 104.4 kB / 340.7 MB, free: 12.68 MB / 298.7 MB Notification: Performance of pre-optimization done (n=18): time 4.008e-06/0.5794, allocations: 0 / 340.7 MB, free: 12.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=18): time 0.0007624/0.5802, allocations: 165.7 kB / 340.8 MB, free: 12.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.59e-05/0.5803, allocations: 55.31 kB / 340.9 MB, free: 12.45 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005923/0.5809, allocations: 231 kB / 341.1 MB, free: 12.21 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.753e-05/0.581, allocations: 29.7 kB / 341.1 MB, free: 12.18 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001835/0.5812, allocations: 144.3 kB / 341.3 MB, free: 12.03 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001199/0.5813, allocations: 63.09 kB / 341.3 MB, free: 11.97 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.544e-05/0.5814, allocations: 4 kB / 341.3 MB, free: 11.96 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001963/0.5816, allocations: 338.8 kB / 341.7 MB, free: 11.62 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002877/0.5819, allocations: 55.98 kB / 341.7 MB, free: 11.57 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003334/0.5823, allocations: 86.69 kB / 341.8 MB, free: 11.48 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003739/0.5827, allocations: 93.86 kB / 341.9 MB, free: 11.38 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.5827, allocations: 0 / 341.9 MB, free: 11.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.00105/0.5838, allocations: 243.6 kB / 342.1 MB, free: 11.13 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 8e-05/0.5839, allocations: 34.31 kB / 342.2 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.5839, allocations: 0 / 342.2 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.221e-05/0.584, allocations: 4 kB / 342.2 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005084/0.5845, allocations: 43.92 kB / 342.2 MB, free: 11.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.224e-05/0.5845, allocations: 3.938 kB / 342.2 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003382/0.5849, allocations: 35.73 kB / 342.3 MB, free: 11.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.218e-05/0.5849, allocations: 8 kB / 342.3 MB, free: 11 MB / 298.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: 3 ($whenCondition1,$PRE.lossTable.nextTimeEvent,lossTable.nextTimeEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 1 * 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.0001689/0.5851, allocations: 116.9 kB / 342.4 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.656e-05/0.5852, allocations: 19.81 kB / 342.4 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008462/0.5861, allocations: 196.7 kB / 342.6 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/0.5861, allocations: 4 kB / 342.6 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.5861, allocations: 0 / 342.6 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.5862, allocations: 3.984 kB / 342.6 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006714/0.5869, allocations: 289.4 kB / 342.9 MB, free: 10.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.285e-06/0.5869, allocations: 3.984 kB / 342.9 MB, free: 10.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006063/0.5875, allocations: 35.98 kB / 342.9 MB, free: 10.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-05/0.5876, allocations: 7.953 kB / 342.9 MB, free: 10.28 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.849e-05/0.5876, allocations: 4 kB / 342.9 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.377e-06/0.5876, allocations: 3.938 kB / 342.9 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.5877, allocations: 0 / 342.9 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001066/0.5887, allocations: 269.8 kB / 343.2 MB, free: 9.988 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001842/0.589, allocations: 108.9 kB / 343.3 MB, free: 9.863 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.364e-05/0.5891, allocations: 7.953 kB / 343.3 MB, free: 9.855 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002565/0.5893, allocations: 11.91 kB / 343.3 MB, free: 9.844 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.546e-05/0.5894, allocations: 11.98 kB / 343.3 MB, free: 9.832 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.656e-05/0.5895, allocations: 4 kB / 343.3 MB, free: 9.828 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000451/0.59, allocations: 189.6 kB / 343.5 MB, free: 9.645 MB / 298.7 MB Notification: Performance of sort global known variables: time 9.71e-07/0.59, allocations: 0 / 343.5 MB, free: 9.645 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007557/0.5908, allocations: 75.92 kB / 343.6 MB, free: 9.57 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (winding.T,core.T) * Number of discrete variables: 2 ($whenCondition1,lossTable.nextTimeEvent) * Number of discrete states: 1 (lossTable.nextTimeEvent) * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.002706/0.5935, allocations: 1.012 MB / 344.6 MB, free: 8.57 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008227/0.5944, allocations: 207.6 kB / 344.8 MB, free: 8.355 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.571e-06/0.5944, allocations: 128 / 344.8 MB, free: 8.355 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003011/0.5948, allocations: 83.53 kB / 344.9 MB, free: 8.277 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006563/0.5954, allocations: 28.64 kB / 344.9 MB, free: 8.246 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002311/0.5978, allocations: 0.4924 MB / 345.4 MB, free: 7.719 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005555/0.5984, allocations: 0.7519 MB / 346.2 MB, free: 6.938 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002918/0.5987, allocations: 25.55 kB / 346.2 MB, free: 6.914 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002568/0.599, allocations: 71.41 kB / 346.3 MB, free: 6.844 MB / 298.7 MB Notification: Performance of SimCode: time 2.284e-06/0.599, allocations: 4 kB / 346.3 MB, free: 6.84 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02971/0.6288, allocations: 4.628 MB / 350.9 MB, free: 2.238 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003036/0.6291, allocations: 194.6 kB / 351.1 MB, free: 2.008 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.824/3.453, allocations: 0 / 351.1 MB, free: 2.008 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat does not exist to compare? outputFormat=mat