Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.723/1.723, allocations: 171.3 MB / 178.4 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.319e-05/2.318e-05, allocations: 4 kB / 219.6 MB, free: 6.941 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2515/0.2515, allocations: 38.77 MB / 258.4 MB, free: 12.18 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.435/0.6866, allocations: 116.2 MB / 374.5 MB, free: 53.95 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002688/0.6869, allocations: 85.59 kB / 374.6 MB, free: 53.95 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4213/1.108, allocations: 117 MB / 491.6 MB, free: 8.723 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.655e-06/1.108, allocations: 0 / 491.6 MB, free: 8.723 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006034/1.109, allocations: 147.7 kB / 491.8 MB, free: 8.578 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1354 * Number of variables: 1354 Notification: Performance of Generate backend data structure: time 0.02074/1.13, allocations: 4.953 MB / 496.7 MB, free: 3.555 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.75e-05/1.13, allocations: 8.031 kB / 496.8 MB, free: 3.547 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005239/1.135, allocations: 0.7777 MB / 497.5 MB, free: 2.762 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.259/1.394, allocations: 3.652 MB / 0.4894 GB, free: 34.7 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000532/1.395, allocations: 170.7 kB / 0.4896 GB, free: 34.7 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002223/1.397, allocations: 311.8 kB / 0.4899 GB, free: 34.7 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01555/1.412, allocations: 4.708 MB / 0.4945 GB, free: 34.67 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01967/1.432, allocations: 5.768 MB / 0.5001 GB, free: 34.02 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003392/1.433, allocations: 13.23 kB / 0.5001 GB, free: 34.02 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001515/1.434, allocations: 3.719 kB / 0.5001 GB, free: 34.02 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003003/1.434, allocations: 233.1 kB / 0.5004 GB, free: 34.01 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05097/1.485, allocations: 20.08 MB / 0.52 GB, free: 29.84 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006245/1.492, allocations: 3.95 MB / 0.5238 GB, free: 28.12 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004049/1.496, allocations: 1.74 MB / 0.5255 GB, free: 28.09 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005834/1.496, allocations: 157.3 kB / 0.5257 GB, free: 27.99 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.606e-05/1.497, allocations: 58.08 kB / 0.5257 GB, free: 27.95 MB / 346.7 MB Notification: Performance of pre-optimization done (n=230): time 5.15e-06/1.497, allocations: 0 / 0.5257 GB, free: 27.95 MB / 346.7 MB Notification: Performance of matching and sorting (n=279): time 0.02875/1.525, allocations: 9.307 MB / 0.5348 GB, free: 26.44 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.856e-05/1.525, allocations: 80.86 kB / 0.5349 GB, free: 26.38 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004927/1.53, allocations: 2.076 MB / 0.5369 GB, free: 26.15 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005893/1.531, allocations: 29.48 kB / 0.537 GB, free: 26.12 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001938/1.533, allocations: 2.367 MB / 0.5393 GB, free: 25.2 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001255/1.534, allocations: 0.9157 MB / 0.5402 GB, free: 24.59 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000312/1.535, allocations: 0 / 0.5402 GB, free: 24.59 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002201/1.535, allocations: 442.5 kB / 0.5406 GB, free: 24.28 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002943/1.538, allocations: 1.34 MB / 0.5419 GB, free: 24.27 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003492/1.541, allocations: 2.263 MB / 0.5441 GB, free: 22.61 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003726/1.545, allocations: 1.768 MB / 0.5458 GB, free: 21.91 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.734e-05/1.545, allocations: 10.97 kB / 0.5458 GB, free: 21.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=428) (initialization): time 0.01202/1.557, allocations: 4.783 MB / 0.5505 GB, free: 20.15 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.854e-05/1.557, allocations: 18.31 kB / 0.5505 GB, free: 20.15 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.364e-05/1.557, allocations: 30.09 kB / 0.5506 GB, free: 20.15 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003914/1.561, allocations: 0.9815 MB / 0.5515 GB, free: 19.85 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005475/1.567, allocations: 0.7258 MB / 0.5522 GB, free: 19.83 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01971/1.586, allocations: 12.94 MB / 0.5649 GB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004162/1.591, allocations: 130.5 kB / 0.565 GB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000694/1.591, allocations: 142 kB / 0.5651 GB, free: 10.47 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 130 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (368): * Single equations (assignments): 361 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(6,72.2%) 23,(1,100.0%) 1,(4,93.8%) 20,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007873/1.592, allocations: 186.9 kB / 0.5653 GB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01098/1.603, allocations: 4.023 MB / 0.5692 GB, free: 8.645 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001382/1.605, allocations: 319.1 kB / 0.5695 GB, free: 8.484 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01182/1.616, allocations: 4.267 MB / 0.5737 GB, free: 6.691 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.904e-05/1.617, allocations: 29.3 kB / 0.5737 GB, free: 6.688 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.626e-05/1.617, allocations: 14.2 kB / 0.5737 GB, free: 6.688 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.674e-05/1.617, allocations: 13.5 kB / 0.5738 GB, free: 6.688 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02629/1.643, allocations: 9.746 MB / 0.5833 GB, free: 2.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.228e-05/1.643, allocations: 13.41 kB / 0.5833 GB, free: 2.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003636/1.647, allocations: 439.7 kB / 0.5837 GB, free: 2.504 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00459/1.651, allocations: 1.05 MB / 0.5847 GB, free: 2.195 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005088/1.652, allocations: 30.05 kB / 0.5848 GB, free: 2.188 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02645/1.678, allocations: 16.27 MB / 0.6007 GB, free: 3.68 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.415e-05/1.678, allocations: 10.81 kB / 0.6007 GB, free: 3.672 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01779/1.696, allocations: 6.853 MB / 0.6074 GB, free: 13.28 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002833/1.699, allocations: 0.687 MB / 0.608 GB, free: 12.64 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001296/1.7, allocations: 19.75 kB / 0.608 GB, free: 12.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003585/1.704, allocations: 117.4 kB / 0.6082 GB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009635/1.705, allocations: 208.2 kB / 0.6084 GB, free: 12.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000334/1.705, allocations: 83.55 kB / 0.6084 GB, free: 12.35 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.004248/1.71, allocations: 1.528 MB / 0.6099 GB, free: 10.97 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.385e-06/1.71, allocations: 0 / 0.6099 GB, free: 10.97 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.007235/1.717, allocations: 0.9432 MB / 0.6108 GB, free: 10.04 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.port_n.Phi.re,smpmM.stator.port_n.Phi.im,smpmM.stator.strayReluctance.Phi.re,smpmM.stator.strayReluctance.Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (215): * Single equations (assignments): 208 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,75.0%) 23,(4,93.8%) 18,(1,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(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.01887/1.736, allocations: 9.213 MB / 0.6198 GB, free: 1.305 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.2749/2.011, allocations: 4.901 MB / 0.6246 GB, free: 61.71 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.526e-05/2.011, allocations: 4.719 kB / 0.6246 GB, free: 61.71 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007903/2.019, allocations: 2.895 MB / 0.6275 GB, free: 60.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006112/2.025, allocations: 0.6795 MB / 0.6281 GB, free: 60.92 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02513/2.05, allocations: 9.438 MB / 0.6373 GB, free: 58.94 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004826/2.055, allocations: 3.524 MB / 0.6408 GB, free: 58.08 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.004051/2.059, allocations: 0.7085 MB / 0.6415 GB, free: 58 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004023/2.063, allocations: 2.02 MB / 0.6434 GB, free: 58 MB / 378.7 MB Notification: Performance of SimCode: time 2.174e-06/2.063, allocations: 0 / 0.6434 GB, free: 58 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1938/2.257, allocations: 80.34 MB / 0.7219 GB, free: 32.53 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002028/2.257, allocations: 160.1 kB / 0.7221 GB, free: 32.34 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.381/7.638, allocations: 0 / 0.7221 GB, free: 32.34 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat