Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.992/1.992, allocations: 205.8 MB / 218.9 MB, free: 9.273 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.488e-05/3.505e-05, allocations: 4 kB / 269.5 MB, free: 6.297 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1045, allocations: 47.56 MB / 317 MB, free: 6.645 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5456/0.6502, allocations: 108.7 MB / 425.8 MB, free: 11.67 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004246/0.6507, allocations: 84.02 kB / 425.8 MB, free: 11.62 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2354/0.8861, allocations: 49.93 MB / 475.8 MB, free: 484 kB / 378.7 MB Notification: Performance of FrontEnd: time 4.298e-06/0.8862, allocations: 0 / 475.8 MB, free: 484 kB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002754/0.8865, allocations: 63.88 kB / 475.8 MB, free: 420 kB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.009432/0.8959, allocations: 2.357 MB / 478.2 MB, free: 14 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.8e-05/0.896, allocations: 12.03 kB / 478.2 MB, free: 13.98 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001271/0.8973, allocations: 328.7 kB / 478.5 MB, free: 13.65 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001649/0.899, allocations: 316.5 kB / 478.8 MB, free: 13.34 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006114/0.9051, allocations: 1.695 MB / 480.5 MB, free: 11.59 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002519/0.9054, allocations: 164.4 kB / 480.7 MB, free: 11.42 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009021/0.9063, allocations: 219.9 kB / 480.9 MB, free: 11.21 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008731/0.9151, allocations: 2.794 MB / 483.7 MB, free: 8.273 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001028/0.9152, allocations: 15.83 kB / 483.7 MB, free: 8.258 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003737/0.9156, allocations: 95.98 kB / 483.8 MB, free: 8.164 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001838/0.9158, allocations: 104.3 kB / 483.9 MB, free: 8.059 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007721/0.9236, allocations: 2.18 MB / 486.1 MB, free: 5.871 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0279/0.9515, allocations: 9.145 MB / 495.2 MB, free: 12.44 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004104/0.9557, allocations: 1.68 MB / 496.9 MB, free: 10.64 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002395/0.9581, allocations: 0.8076 MB / 497.7 MB, free: 9.832 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005776/0.9587, allocations: 219.1 kB / 497.9 MB, free: 9.582 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.813e-05/0.9588, allocations: 43.56 kB / 498 MB, free: 9.531 MB / 410.7 MB Notification: Performance of pre-optimization done (n=108): time 7.904e-06/0.9589, allocations: 0 / 498 MB, free: 9.531 MB / 410.7 MB Notification: Performance of matching and sorting (n=131): time 0.02729/0.9862, allocations: 6.364 MB / 0.4925 GB, free: 3.113 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.65e-05/0.9863, allocations: 68.67 kB / 0.4926 GB, free: 3.035 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003378/0.9897, allocations: 1.326 MB / 0.4939 GB, free: 1.703 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000379/0.9901, allocations: 61.64 kB / 0.4939 GB, free: 1.637 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00131/0.9914, allocations: 1.096 MB / 0.495 GB, free: 0.5234 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007633/0.9922, allocations: 461.4 kB / 0.4955 GB, free: 68 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001592/0.9924, allocations: 32 kB / 0.4955 GB, free: 36 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002348/0.9927, allocations: 370 kB / 0.4958 GB, free: 15.66 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00206/0.9947, allocations: 0.7146 MB / 0.4965 GB, free: 14.95 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002422/0.9972, allocations: 1.126 MB / 0.4976 GB, free: 13.64 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002487/0.9997, allocations: 0.9144 MB / 0.4985 GB, free: 12.73 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.485e-05/0.9998, allocations: 4 kB / 0.4985 GB, free: 12.72 MB / 426.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.007936/1.008, allocations: 2.571 MB / 0.501 GB, free: 10.13 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.947e-05/1.008, allocations: 12 kB / 0.5011 GB, free: 10.12 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.744e-05/1.008, allocations: 12.28 kB / 0.5011 GB, free: 10.11 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0027/1.011, allocations: 0.588 MB / 0.5016 GB, free: 9.512 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002836/1.013, allocations: 359.5 kB / 0.502 GB, free: 9.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01414/1.028, allocations: 6.69 MB / 0.5085 GB, free: 2.203 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002621/1.03, allocations: 119.8 kB / 0.5086 GB, free: 2.086 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003148/1.031, allocations: 64 kB / 0.5087 GB, free: 2.023 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 166 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,72.2%) 23,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004802/1.031, allocations: 196.5 kB / 0.5089 GB, free: 1.824 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005836/1.032, allocations: 173.8 kB / 0.509 GB, free: 1.652 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3019/1.334, allocations: 2.328 MB / 0.5113 GB, free: 112.4 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-05/1.334, allocations: 13.75 kB / 0.5113 GB, free: 112.4 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.158e-05/1.334, allocations: 8.766 kB / 0.5113 GB, free: 112.4 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.179e-05/1.334, allocations: 8.953 kB / 0.5114 GB, free: 112.4 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01525/1.349, allocations: 4.892 MB / 0.5161 GB, free: 111.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-05/1.349, allocations: 3 kB / 0.5161 GB, free: 111.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001992/1.351, allocations: 223.1 kB / 0.5163 GB, free: 111.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003197/1.354, allocations: 0.6345 MB / 0.517 GB, free: 111.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003081/1.355, allocations: 38.75 kB / 0.517 GB, free: 111.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01509/1.37, allocations: 8.381 MB / 0.5252 GB, free: 108.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.037e-06/1.37, allocations: 9.031 kB / 0.5252 GB, free: 108.1 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008919/1.379, allocations: 3.539 MB / 0.5287 GB, free: 107.5 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001515/1.38, allocations: 412.2 kB / 0.529 GB, free: 107.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005549/1.381, allocations: 35.2 kB / 0.5291 GB, free: 107.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001923/1.383, allocations: 97.23 kB / 0.5292 GB, free: 107.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003812/1.383, allocations: 106.3 kB / 0.5293 GB, free: 107.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001317/1.383, allocations: 44.27 kB / 0.5293 GB, free: 107.4 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002269/1.386, allocations: 1.012 MB / 0.5303 GB, free: 107.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.994e-06/1.386, allocations: 3.688 kB / 0.5303 GB, free: 107.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002933/1.389, allocations: 0.5498 MB / 0.5308 GB, free: 107.3 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 100 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,72.2%) 23,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009181/1.398, allocations: 5.079 MB / 0.5358 GB, free: 105.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006016/1.404, allocations: 2.268 MB / 0.538 GB, free: 105.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.086e-05/1.404, allocations: 0 / 0.538 GB, free: 105.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004241/1.408, allocations: 1.464 MB / 0.5394 GB, free: 104.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003682/1.412, allocations: 442.3 kB / 0.5399 GB, free: 104.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01154/1.424, allocations: 4.457 MB / 0.5442 GB, free: 103.2 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002072/1.426, allocations: 1.927 MB / 0.5461 GB, free: 102.3 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002168/1.428, allocations: 384.6 kB / 0.5465 GB, free: 102.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002022/1.43, allocations: 0.8836 MB / 0.5473 GB, free: 101.5 MB / 426.7 MB Notification: Performance of SimCode: time 1.483e-06/1.43, allocations: 6.094 kB / 0.5473 GB, free: 101.5 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1253/1.555, allocations: 47.99 MB / 0.5942 GB, free: 77.37 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002255/1.556, allocations: 214.6 kB / 0.5944 GB, free: 77.13 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.409/5.964, allocations: 0 / 0.5944 GB, free: 77.13 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat