Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.925/1.925, allocations: 171.3 MB / 178.8 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.097e-05/2.122e-05, allocations: 0 / 219.5 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.258/0.258, allocations: 38.77 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1291/0.3872, allocations: 68.89 MB / 327.2 MB, free: 8.926 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003251/0.3876, allocations: 71.97 kB / 327.3 MB, free: 8.855 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02902/0.4166, allocations: 5.064 MB / 332.3 MB, free: 3.781 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4167, allocations: 0 / 332.3 MB, free: 3.781 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.742e-05/0.4167, allocations: 8 kB / 332.3 MB, free: 3.773 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.001177/0.4179, allocations: 0.5221 MB / 332.9 MB, free: 3.195 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.211e-05/0.418, allocations: 12.03 kB / 332.9 MB, free: 3.184 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00026/0.4183, allocations: 27.7 kB / 332.9 MB, free: 3.156 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005463/0.4188, allocations: 235 kB / 333.1 MB, free: 2.887 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.486e-05/0.4189, allocations: 15.89 kB / 333.2 MB, free: 2.871 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.733e-05/0.419, allocations: 8 kB / 333.2 MB, free: 2.863 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000487/0.4195, allocations: 104.6 kB / 333.3 MB, free: 2.762 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004653/0.42, allocations: 127.9 kB / 333.4 MB, free: 2.633 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.418e-05/0.42, allocations: 3.906 kB / 333.4 MB, free: 2.629 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.229e-05/0.42, allocations: 3.984 kB / 333.4 MB, free: 2.625 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.161e-05/0.4201, allocations: 4 kB / 333.4 MB, free: 2.621 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001645/0.4217, allocations: 0.5326 MB / 333.9 MB, free: 2.047 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005026/0.4223, allocations: 137.3 kB / 334.1 MB, free: 1.906 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002579/0.4225, allocations: 76.78 kB / 334.1 MB, free: 1.828 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.851e-05/0.4226, allocations: 4.312 kB / 334.1 MB, free: 1.824 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003355/0.4229, allocations: 110.8 kB / 334.3 MB, free: 1.707 MB / 282.7 MB Notification: Performance of pre-optimization done (n=18): time 3.907e-06/0.423, allocations: 0 / 334.3 MB, free: 1.707 MB / 282.7 MB Notification: Performance of matching and sorting (n=18): time 0.0006527/0.4236, allocations: 153.4 kB / 334.4 MB, free: 1.551 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.873e-05/0.4237, allocations: 51.41 kB / 334.5 MB, free: 1.488 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004658/0.4242, allocations: 213.9 kB / 334.7 MB, free: 1.273 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.22e-05/0.4242, allocations: 29.64 kB / 334.7 MB, free: 1.238 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001964/0.4245, allocations: 210.6 kB / 334.9 MB, free: 1.027 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.931e-05/0.4246, allocations: 63.19 kB / 335 MB, free: 0.9648 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.992e-05/0.4246, allocations: 0 / 335 MB, free: 0.9648 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.4248, allocations: 322.8 kB / 335.3 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002403/0.4251, allocations: 48 kB / 335.3 MB, free: 0.5938 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002619/0.4253, allocations: 78.69 kB / 335.4 MB, free: 0.5078 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002737/0.4256, allocations: 64.09 kB / 335.5 MB, free: 456 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.4257, allocations: 0 / 335.5 MB, free: 456 kB / 282.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000716/0.4264, allocations: 194.3 kB / 335.7 MB, free: 256 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.121e-05/0.4265, allocations: 37.69 kB / 335.7 MB, free: 212 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/0.4265, allocations: 3.938 kB / 335.7 MB, free: 208 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.284e-05/0.4265, allocations: 4 kB / 335.7 MB, free: 204 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004705/0.427, allocations: 43.97 kB / 335.7 MB, free: 160 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.665e-06/0.427, allocations: 3.938 kB / 335.7 MB, free: 156 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002898/0.4274, allocations: 19.83 kB / 335.8 MB, free: 136 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.991e-05/0.4274, allocations: 12.06 kB / 335.8 MB, free: 124 kB / 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: 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.000143/0.4276, allocations: 112.9 kB / 335.9 MB, free: 4 kB / 282.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005822/0.4282, allocations: 153.4 kB / 336 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.065e-05/0.4283, allocations: 19.81 kB / 336.1 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007081/0.429, allocations: 175.5 kB / 336.2 MB, free: 15.65 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.829e-06/0.429, allocations: 4 kB / 336.2 MB, free: 15.65 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.429, allocations: 0 / 336.2 MB, free: 15.65 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.778e-06/0.4291, allocations: 3.984 kB / 336.2 MB, free: 15.64 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000534/0.4296, allocations: 245.9 kB / 336.5 MB, free: 15.37 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.4296, allocations: 4 kB / 336.5 MB, free: 15.37 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000473/0.4301, allocations: 31.98 kB / 336.5 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.227e-06/0.4301, allocations: 7.953 kB / 336.5 MB, free: 15.33 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.053e-05/0.4302, allocations: 7.984 kB / 336.5 MB, free: 15.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.231e-06/0.4302, allocations: 0 / 336.5 MB, free: 15.32 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.4302, allocations: 3.938 kB / 336.5 MB, free: 15.32 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008607/0.4311, allocations: 252.2 kB / 336.8 MB, free: 15.05 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001407/0.4313, allocations: 100.9 kB / 336.9 MB, free: 14.94 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.611e-05/0.4314, allocations: 12.02 kB / 336.9 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002022/0.4316, allocations: 7.984 kB / 336.9 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.733e-05/0.4317, allocations: 11.98 kB / 336.9 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.852e-05/0.4317, allocations: 4 kB / 336.9 MB, free: 14.9 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003354/0.4321, allocations: 176.4 kB / 337.1 MB, free: 14.73 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.4321, allocations: 3.938 kB / 337.1 MB, free: 14.73 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006969/0.4328, allocations: 71.78 kB / 337.2 MB, free: 14.66 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.002145/0.435, allocations: 0.9601 MB / 338.1 MB, free: 13.7 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006122/0.4356, allocations: 195.5 kB / 338.3 MB, free: 13.5 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.4356, allocations: 0 / 338.3 MB, free: 13.5 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002288/0.4359, allocations: 64.44 kB / 338.4 MB, free: 13.43 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004822/0.4364, allocations: 32.02 kB / 338.4 MB, free: 13.4 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001944/0.4383, allocations: 0.5009 MB / 338.9 MB, free: 12.86 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005514/0.4389, allocations: 0.7553 MB / 339.7 MB, free: 12.07 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002532/0.4392, allocations: 67.42 kB / 339.7 MB, free: 12.01 MB / 298.7 MB Notification: Performance of SimCode: time 1.463e-06/0.4392, allocations: 4 kB / 339.7 MB, free: 12 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.734/3.173, allocations: 3.958 MB / 343.7 MB, free: 8.039 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat does not exist to compare? outputFormat=mat