Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.987/1.987, allocations: 194.9 MB / 208.5 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.628e-05/3.63e-05, allocations: 4 kB / 255.5 MB, free: 3.074 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1019, allocations: 44.5 MB / 300 MB, free: 6.508 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5933/0.6953, allocations: 100.9 MB / 400.8 MB, free: 11.71 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002787/0.6956, allocations: 80.89 kB / 400.9 MB, free: 11.7 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1909/0.8865, allocations: 45.91 MB / 446.8 MB, free: 3.93 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.8866, allocations: 0 / 446.8 MB, free: 3.93 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002655/0.8868, allocations: 63.88 kB / 446.9 MB, free: 3.867 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 550 * Number of variables: 550 Notification: Performance of Generate backend data structure: time 0.008763/0.8956, allocations: 2.236 MB / 449.1 MB, free: 1.727 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.331e-05/0.8957, allocations: 8.031 kB / 449.1 MB, free: 1.719 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001148/0.8968, allocations: 307.5 kB / 449.4 MB, free: 1.539 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001446/0.8983, allocations: 292.8 kB / 449.7 MB, free: 1.25 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005457/0.9038, allocations: 1.574 MB / 451.3 MB, free: 28 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002098/0.904, allocations: 156.7 kB / 451.4 MB, free: 15.93 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007761/0.9048, allocations: 217.3 kB / 451.6 MB, free: 15.79 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008539/0.9134, allocations: 2.665 MB / 454.3 MB, free: 13.93 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001019/0.9135, allocations: 6.531 kB / 454.3 MB, free: 13.93 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003387/0.9139, allocations: 93.5 kB / 454.4 MB, free: 13.9 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001686/0.9141, allocations: 96.72 kB / 454.5 MB, free: 13.8 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007442/0.9215, allocations: 2.1 MB / 456.6 MB, free: 11.73 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02562/0.9472, allocations: 8.563 MB / 465.2 MB, free: 2.992 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003966/0.9512, allocations: 1.663 MB / 466.8 MB, free: 1.211 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002142/0.9534, allocations: 0.7909 MB / 467.6 MB, free: 428 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004958/0.9539, allocations: 213.3 kB / 467.8 MB, free: 176 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.672e-05/0.954, allocations: 47.56 kB / 467.9 MB, free: 120 kB / 346.7 MB Notification: Performance of pre-optimization done (n=103): time 3.286e-06/0.954, allocations: 4 kB / 467.9 MB, free: 116 kB / 346.7 MB Notification: Performance of matching and sorting (n=124): time 0.02454/0.9785, allocations: 5.931 MB / 473.8 MB, free: 10.14 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.745e-05/0.9786, allocations: 64.41 kB / 473.9 MB, free: 10.07 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003105/0.9818, allocations: 1.228 MB / 475.1 MB, free: 8.828 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003688/0.9822, allocations: 45.7 kB / 475.1 MB, free: 8.777 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001007/0.9832, allocations: 0.9751 MB / 476.1 MB, free: 7.793 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006948/0.9839, allocations: 439.2 kB / 476.5 MB, free: 7.367 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001472/0.9841, allocations: 28 kB / 476.6 MB, free: 7.34 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002301/0.9843, allocations: 374.7 kB / 476.9 MB, free: 6.965 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001906/0.9862, allocations: 0.6912 MB / 477.6 MB, free: 6.273 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002279/0.9885, allocations: 1.061 MB / 478.7 MB, free: 5.055 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002386/0.9909, allocations: 0.8716 MB / 479.6 MB, free: 4.184 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.257e-05/0.991, allocations: 0 / 479.6 MB, free: 4.184 MB / 362.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.007427/0.9984, allocations: 2.369 MB / 481.9 MB, free: 1.801 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.953e-05/0.9985, allocations: 8 kB / 481.9 MB, free: 1.793 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.18e-05/0.9986, allocations: 12 kB / 481.9 MB, free: 1.781 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002639/1.001, allocations: 0.5766 MB / 482.5 MB, free: 1.195 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002656/1.004, allocations: 331.5 kB / 482.8 MB, free: 0.8711 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01323/1.017, allocations: 6.318 MB / 489.2 MB, free: 10.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002348/1.02, allocations: 107.9 kB / 489.3 MB, free: 10.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002995/1.02, allocations: 63.98 kB / 489.3 MB, free: 10.12 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 153 * 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%) 22,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004472/1.02, allocations: 192.5 kB / 489.5 MB, free: 9.922 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005259/1.021, allocations: 158 kB / 489.7 MB, free: 9.766 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007003/1.028, allocations: 2.268 MB / 491.9 MB, free: 7.473 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.242e-05/1.028, allocations: 16 kB / 492 MB, free: 7.457 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.39e-05/1.028, allocations: 4 kB / 492 MB, free: 7.453 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.234e-05/1.028, allocations: 11.92 kB / 492 MB, free: 7.441 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01484/1.043, allocations: 4.673 MB / 496.7 MB, free: 2.695 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.916e-05/1.043, allocations: 4 kB / 496.7 MB, free: 2.691 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001912/1.045, allocations: 203.7 kB / 496.9 MB, free: 2.492 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003231/1.048, allocations: 0.6395 MB / 497.5 MB, free: 1.844 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002912/1.048, allocations: 39.92 kB / 497.5 MB, free: 1.805 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01598/1.064, allocations: 8.04 MB / 0.4937 GB, free: 9.371 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.137e-05/1.065, allocations: 7.938 kB / 0.4937 GB, free: 9.363 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009321/1.074, allocations: 3.385 MB / 0.497 GB, free: 5.863 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001393/1.075, allocations: 391 kB / 0.4974 GB, free: 5.461 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003527/1.076, allocations: 31.98 kB / 0.4974 GB, free: 5.43 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001664/1.077, allocations: 91.91 kB / 0.4975 GB, free: 5.34 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003623/1.078, allocations: 100.8 kB / 0.4976 GB, free: 5.238 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001414/1.078, allocations: 36 kB / 0.4977 GB, free: 5.203 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002276/1.08, allocations: 0.936 MB / 0.4986 GB, free: 4.266 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.81e-07/1.08, allocations: 0 / 0.4986 GB, free: 4.266 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002862/1.083, allocations: 0.5195 MB / 0.4991 GB, free: 3.746 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 94 * 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%) 22,(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.01028/1.093, allocations: 4.739 MB / 0.5037 GB, free: 14.93 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00623/1.1, allocations: 2.209 MB / 0.5059 GB, free: 12.68 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/1.1, allocations: 0 / 0.5059 GB, free: 12.68 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004185/1.104, allocations: 1.423 MB / 0.5073 GB, free: 11.22 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003198/1.107, allocations: 376.7 kB / 0.5076 GB, free: 10.86 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01255/1.12, allocations: 4.278 MB / 0.5118 GB, free: 6.492 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002263/1.122, allocations: 1.835 MB / 0.5136 GB, free: 4.621 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001978/1.124, allocations: 0.8351 MB / 0.5144 GB, free: 3.785 MB / 410.7 MB Notification: Performance of SimCode: time 1.373e-06/1.124, allocations: 0 / 0.5144 GB, free: 3.785 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.086/5.21, allocations: 67.46 MB / 0.5803 GB, free: 87.49 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat