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 2.029/2.029, allocations: 171.3 MB / 178.4 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 3.016e-05/3.035e-05, allocations: 8 kB / 219.6 MB, free: 6.949 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2772/0.2773, allocations: 38.76 MB / 258.3 MB, free: 12.18 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1381/0.4154, allocations: 68.89 MB / 327.2 MB, free: 8.895 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002779/0.4157, allocations: 67.95 kB / 327.3 MB, free: 8.828 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02179/0.4376, allocations: 5.069 MB / 332.4 MB, free: 3.75 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4376, allocations: 0 / 332.4 MB, free: 3.75 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.391e-05/0.4376, allocations: 7.938 kB / 332.4 MB, free: 3.742 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.0009682/0.4386, allocations: 0.5206 MB / 332.9 MB, free: 3.164 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/0.4387, allocations: 8.031 kB / 332.9 MB, free: 3.156 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001897/0.4389, allocations: 27.72 kB / 332.9 MB, free: 3.129 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004159/0.4393, allocations: 234.9 kB / 333.2 MB, free: 2.859 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.34e-05/0.4393, allocations: 7.953 kB / 333.2 MB, free: 2.852 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.888e-05/0.4394, allocations: 19.94 kB / 333.2 MB, free: 2.832 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003472/0.4398, allocations: 100.6 kB / 333.3 MB, free: 2.734 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003361/0.4401, allocations: 131.9 kB / 333.4 MB, free: 2.602 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.4402, allocations: 3.906 kB / 333.4 MB, free: 2.598 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.244e-05/0.4402, allocations: 0 / 333.4 MB, free: 2.598 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.568e-06/0.4402, allocations: 4 kB / 333.4 MB, free: 2.594 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001233/0.4414, allocations: 0.5326 MB / 334 MB, free: 2.02 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003678/0.4418, allocations: 142.6 kB / 334.1 MB, free: 1.871 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001752/0.442, allocations: 72.84 kB / 334.2 MB, free: 1.797 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.625e-05/0.4421, allocations: 320 / 334.2 MB, free: 1.797 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002589/0.4423, allocations: 110.9 kB / 334.3 MB, free: 1.68 MB / 282.7 MB Notification: Performance of pre-optimization done (n=18): time 2.294e-06/0.4424, allocations: 0 / 334.3 MB, free: 1.68 MB / 282.7 MB Notification: Performance of matching and sorting (n=18): time 0.0004715/0.4428, allocations: 153.3 kB / 334.4 MB, free: 1.523 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.841e-05/0.4429, allocations: 55.41 kB / 334.5 MB, free: 1.457 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003352/0.4432, allocations: 213.9 kB / 334.7 MB, free: 1.242 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.514e-05/0.4433, allocations: 29.7 kB / 334.7 MB, free: 1.207 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001321/0.4434, allocations: 152.1 kB / 334.9 MB, free: 1.051 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.19e-05/0.4435, allocations: 59.2 kB / 334.9 MB, free: 0.9922 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.463e-05/0.4435, allocations: 0 / 334.9 MB, free: 0.9922 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.4437, allocations: 336.5 kB / 335.3 MB, free: 0.6562 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001527/0.4439, allocations: 48 kB / 335.3 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001769/0.4441, allocations: 70.75 kB / 335.4 MB, free: 0.5312 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001903/0.4443, allocations: 64.16 kB / 335.4 MB, free: 480 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.4443, allocations: 0 / 335.4 MB, free: 480 kB / 282.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005242/0.4448, allocations: 214.1 kB / 335.6 MB, free: 260 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.782e-05/0.4449, allocations: 33.7 kB / 335.7 MB, free: 220 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.4449, allocations: 0 / 335.7 MB, free: 220 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.4449, allocations: 3.984 kB / 335.7 MB, free: 216 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003413/0.4453, allocations: 39.92 kB / 335.7 MB, free: 176 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.789e-05/0.4453, allocations: 7.984 kB / 335.7 MB, free: 168 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001814/0.4455, allocations: 19.78 kB / 335.7 MB, free: 148 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.725e-05/0.4456, allocations: 8 kB / 335.8 MB, free: 140 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.0001128/0.4457, allocations: 113 kB / 335.9 MB, free: 20 kB / 282.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004022/0.4461, allocations: 157.4 kB / 336 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.549e-05/0.4462, allocations: 19.72 kB / 336 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005193/0.4467, allocations: 183.5 kB / 336.2 MB, free: 15.66 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.225e-06/0.4467, allocations: 4 kB / 336.2 MB, free: 15.65 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.4467, allocations: 0 / 336.2 MB, free: 15.65 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.4467, allocations: 0 / 336.2 MB, free: 15.65 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003744/0.4471, allocations: 245.9 kB / 336.5 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.4472, allocations: 3.984 kB / 336.5 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003479/0.4475, allocations: 39.92 kB / 336.5 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.675e-06/0.4475, allocations: 3.953 kB / 336.5 MB, free: 15.33 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.205e-05/0.4476, allocations: 4 kB / 336.5 MB, free: 15.33 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.4476, allocations: 0 / 336.5 MB, free: 15.33 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.4476, allocations: 0 / 336.5 MB, free: 15.33 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005997/0.4482, allocations: 252.1 kB / 336.8 MB, free: 15.07 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001162/0.4483, allocations: 108.8 kB / 336.9 MB, free: 14.94 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.643e-05/0.4484, allocations: 3.953 kB / 336.9 MB, free: 14.94 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001368/0.4485, allocations: 12 kB / 336.9 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.196e-05/0.4486, allocations: 11.98 kB / 336.9 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.034e-05/0.4487, allocations: 4 kB / 336.9 MB, free: 14.91 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002373/0.4489, allocations: 176.4 kB / 337.1 MB, free: 14.74 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.4489, allocations: 0 / 337.1 MB, free: 14.74 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004636/0.4494, allocations: 83.7 kB / 337.1 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.001587/0.451, allocations: 0.955 MB / 338.1 MB, free: 13.71 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004523/0.4515, allocations: 191.5 kB / 338.3 MB, free: 13.51 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.4515, allocations: 0 / 338.3 MB, free: 13.51 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001694/0.4517, allocations: 68.44 kB / 338.4 MB, free: 13.44 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003804/0.4521, allocations: 32 kB / 338.4 MB, free: 13.41 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001408/0.4535, allocations: 487.2 kB / 338.9 MB, free: 12.9 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004297/0.4539, allocations: 0.7514 MB / 339.6 MB, free: 12.12 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001524/0.4541, allocations: 21.33 kB / 339.6 MB, free: 12.1 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001866/0.4543, allocations: 75.41 kB / 339.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of SimCode: time 8.82e-07/0.4543, allocations: 0 / 339.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04336/0.4977, allocations: 4.038 MB / 343.7 MB, free: 7.98 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003173/0.4981, allocations: 160.8 kB / 343.9 MB, free: 7.789 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.579/3.077, allocations: 3.938 kB / 343.9 MB, free: 7.785 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