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 2.079/2.079, allocations: 194.9 MB / 208.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.453e-05/3.486e-05, allocations: 0 / 255.4 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1009, allocations: 44.51 MB / 299.9 MB, free: 6.523 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4626/0.5636, allocations: 100.9 MB / 400.8 MB, free: 12.02 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003151/0.564, allocations: 84.27 kB / 400.9 MB, free: 12.01 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1865/0.7505, allocations: 45.9 MB / 446.8 MB, free: 4.297 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.7506, allocations: 0 / 446.8 MB, free: 4.297 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002724/0.7509, allocations: 63.88 kB / 446.8 MB, free: 4.234 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.008892/0.7598, allocations: 2.233 MB / 449.1 MB, free: 2.098 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.968e-05/0.7599, allocations: 12.02 kB / 449.1 MB, free: 2.086 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001155/0.761, allocations: 303.6 kB / 449.4 MB, free: 1.906 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001827/0.7629, allocations: 288.8 kB / 449.7 MB, free: 1.621 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005929/0.7689, allocations: 1.575 MB / 451.2 MB, free: 408 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002458/0.7692, allocations: 161.1 kB / 451.4 MB, free: 312 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009695/0.7701, allocations: 209.7 kB / 451.6 MB, free: 168 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009094/0.7792, allocations: 2.699 MB / 454.3 MB, free: 14.13 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000125/0.7794, allocations: 7.906 kB / 454.3 MB, free: 14.12 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003892/0.7798, allocations: 88 kB / 454.4 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000174/0.78, allocations: 96.16 kB / 454.5 MB, free: 13.94 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007639/0.7877, allocations: 2.121 MB / 456.6 MB, free: 11.8 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02629/0.814, allocations: 8.574 MB / 465.2 MB, free: 3.051 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004156/0.8182, allocations: 1.686 MB / 466.9 MB, free: 1.246 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002302/0.8206, allocations: 0.7809 MB / 467.6 MB, free: 476 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005363/0.8212, allocations: 215.2 kB / 467.9 MB, free: 224 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.685e-05/0.8212, allocations: 47.56 kB / 467.9 MB, free: 168 kB / 346.7 MB Notification: Performance of pre-optimization done (n=103): time 4.468e-06/0.8213, allocations: 8 kB / 467.9 MB, free: 160 kB / 346.7 MB Notification: Performance of matching and sorting (n=124): time 0.02493/0.8462, allocations: 5.932 MB / 473.8 MB, free: 10.18 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.331e-05/0.8463, allocations: 64.41 kB / 473.9 MB, free: 10.11 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003253/0.8496, allocations: 1.225 MB / 475.1 MB, free: 8.875 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003557/0.85, allocations: 45.7 kB / 475.2 MB, free: 8.824 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009616/0.851, allocations: 0.979 MB / 476.2 MB, free: 7.836 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006671/0.8516, allocations: 436.7 kB / 476.6 MB, free: 7.414 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001445/0.8518, allocations: 28 kB / 476.6 MB, free: 7.387 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002031/0.852, allocations: 374.7 kB / 477 MB, free: 7.012 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001906/0.8539, allocations: 0.6912 MB / 477.7 MB, free: 6.32 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002292/0.8563, allocations: 1.073 MB / 478.7 MB, free: 5.086 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002301/0.8586, allocations: 0.8716 MB / 479.6 MB, free: 4.215 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.769e-06/0.8586, allocations: 0 / 479.6 MB, free: 4.215 MB / 362.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.007265/0.8659, allocations: 2.396 MB / 482 MB, free: 1.801 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.802e-05/0.866, allocations: 8 kB / 482 MB, free: 1.793 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.57e-05/0.866, allocations: 15.94 kB / 482 MB, free: 1.777 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002601/0.8687, allocations: 0.5726 MB / 482.6 MB, free: 1.195 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002616/0.8713, allocations: 335.5 kB / 482.9 MB, free: 0.8672 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01296/0.8843, allocations: 6.319 MB / 489.2 MB, free: 10.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002246/0.8866, allocations: 107.9 kB / 489.3 MB, free: 10.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001976/0.8868, allocations: 63.92 kB / 489.4 MB, free: 10.11 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.0004383/0.8872, allocations: 192.6 kB / 489.6 MB, free: 9.918 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004243/0.8877, allocations: 158 kB / 489.8 MB, free: 9.762 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006923/0.8946, allocations: 2.268 MB / 492 MB, free: 7.473 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.33e-05/0.8947, allocations: 12 kB / 492 MB, free: 7.461 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.327e-05/0.8947, allocations: 4 kB / 492 MB, free: 7.457 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.131e-05/0.8947, allocations: 7.984 kB / 492 MB, free: 7.449 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01449/0.9092, allocations: 4.676 MB / 496.7 MB, free: 2.699 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.735e-05/0.9093, allocations: 7.938 kB / 496.7 MB, free: 2.691 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001896/0.9112, allocations: 207.7 kB / 496.9 MB, free: 2.488 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003231/0.9145, allocations: 0.6434 MB / 497.6 MB, free: 1.836 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000291/0.9148, allocations: 31.98 kB / 497.6 MB, free: 1.805 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01632/0.9312, allocations: 8.039 MB / 0.4938 GB, free: 9.371 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.446e-06/0.9312, allocations: 0 / 0.4938 GB, free: 9.371 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00978/0.941, allocations: 3.39 MB / 0.4971 GB, free: 5.859 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001663/0.9427, allocations: 391 kB / 0.4975 GB, free: 5.457 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006244/0.9434, allocations: 35.98 kB / 0.4975 GB, free: 5.422 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002081/0.9455, allocations: 91.91 kB / 0.4976 GB, free: 5.332 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005617/0.9461, allocations: 96.8 kB / 0.4977 GB, free: 5.238 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001624/0.9463, allocations: 35.98 kB / 0.4977 GB, free: 5.203 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002672/0.949, allocations: 0.9399 MB / 0.4986 GB, free: 4.262 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.61e-07/0.9491, allocations: 0 / 0.4986 GB, free: 4.262 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003072/0.9521, allocations: 0.5156 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.01117/0.9634, allocations: 4.747 MB / 0.5038 GB, free: 14.93 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006782/0.9702, allocations: 2.251 MB / 0.506 GB, free: 12.62 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.058e-05/0.9703, allocations: 0 / 0.506 GB, free: 12.62 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004831/0.9751, allocations: 1.467 MB / 0.5074 GB, free: 11.12 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003697/0.9788, allocations: 368.8 kB / 0.5078 GB, free: 10.75 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01398/0.9929, allocations: 4.279 MB / 0.5119 GB, free: 6.387 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002794/0.9958, allocations: 1.835 MB / 0.5137 GB, free: 4.523 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002219/0.998, allocations: 0.839 MB / 0.5146 GB, free: 3.684 MB / 410.7 MB Notification: Performance of SimCode: time 1.082e-06/0.9981, allocations: 0 / 0.5146 GB, free: 3.684 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.889/4.887, allocations: 67.65 MB / 0.5806 GB, free: 87.62 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