Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.808/1.808, allocations: 194.9 MB / 208 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.143e-05/3.152e-05, allocations: 4 kB / 255.5 MB, free: 2.594 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0892/0.08925, allocations: 44.5 MB / 300 MB, free: 6.027 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4562/0.5455, allocations: 124.5 MB / 424.5 MB, free: 3.434 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003216/0.5459, allocations: 91.06 kB / 424.6 MB, free: 3.387 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7953/1.341, allocations: 123.6 MB / 0.5353 GB, free: 64.79 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.224e-06/1.341, allocations: 0 / 0.5353 GB, free: 64.79 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006482/1.342, allocations: 143.2 kB / 0.5355 GB, free: 64.77 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1406 * Number of variables: 1406 Notification: Performance of Generate backend data structure: time 0.02066/1.363, allocations: 5.077 MB / 0.5404 GB, free: 63.04 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.144e-05/1.363, allocations: 7.75 kB / 0.5404 GB, free: 63.04 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002936/1.366, allocations: 0.7282 MB / 0.5411 GB, free: 62.97 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007715/1.373, allocations: 1.01 MB / 0.5421 GB, free: 62.65 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0164/1.39, allocations: 4.55 MB / 0.5466 GB, free: 61.91 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005065/1.39, allocations: 406.1 kB / 0.547 GB, free: 61.9 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002202/1.393, allocations: 0.5213 MB / 0.5475 GB, free: 61.89 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02198/1.415, allocations: 6.73 MB / 0.554 GB, free: 61.22 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003208/1.415, allocations: 9.25 kB / 0.554 GB, free: 61.21 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00185/1.417, allocations: 235.1 kB / 0.5543 GB, free: 61.21 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003192/1.417, allocations: 246 kB / 0.5545 GB, free: 61.2 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01767/1.435, allocations: 5.323 MB / 0.5597 GB, free: 61.18 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05619/1.491, allocations: 22.43 MB / 0.5816 GB, free: 54.81 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01128/1.502, allocations: 8.207 MB / 0.5896 GB, free: 47.91 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00513/1.508, allocations: 2.095 MB / 0.5917 GB, free: 47.11 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01745/1.525, allocations: 6.275 MB / 0.5978 GB, free: 43.96 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.872e-05/1.525, allocations: 63.8 kB / 0.5979 GB, free: 43.9 MB / 410.7 MB Notification: Performance of pre-optimization done (n=224): time 5.02e-06/1.525, allocations: 0 / 0.5979 GB, free: 43.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=251): time 0.0419/1.567, allocations: 9.999 MB / 0.6076 GB, free: 40 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.668e-05/1.567, allocations: 80.62 kB / 0.6077 GB, free: 39.94 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009029/1.576, allocations: 2.707 MB / 0.6103 GB, free: 38.89 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006876/1.577, allocations: 68.48 kB / 0.6104 GB, free: 38.83 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002744/1.58, allocations: 2.476 MB / 0.6128 GB, free: 36.94 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001475/1.581, allocations: 0.8598 MB / 0.6137 GB, free: 36.27 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004232/1.582, allocations: 67.66 kB / 0.6137 GB, free: 36.22 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002727/1.582, allocations: 433 kB / 0.6141 GB, free: 35.86 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004626/1.587, allocations: 1.31 MB / 0.6154 GB, free: 35.35 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005296/1.592, allocations: 2.272 MB / 0.6176 GB, free: 33.62 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005893/1.598, allocations: 1.725 MB / 0.6193 GB, free: 32.93 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.493e-05/1.598, allocations: 9.25 kB / 0.6193 GB, free: 32.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=412) (initialization): time 0.01736/1.615, allocations: 4.657 MB / 0.6239 GB, free: 31.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.516e-05/1.616, allocations: 19.8 kB / 0.6239 GB, free: 31.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.281e-05/1.616, allocations: 32.88 kB / 0.6239 GB, free: 31.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003696/1.619, allocations: 0.7244 MB / 0.6246 GB, free: 30.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007394/1.627, allocations: 0.7471 MB / 0.6254 GB, free: 30.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01793/1.645, allocations: 9.745 MB / 0.6349 GB, free: 21.94 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004474/1.649, allocations: 193.5 kB / 0.6351 GB, free: 21.79 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003595/1.65, allocations: 139.9 kB / 0.6352 GB, free: 21.65 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 139 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (375): * Single equations (assignments): 369 * 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: 4 * 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: 4 {(6,72.2%) 23,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007005/1.65, allocations: 301.8 kB / 0.6355 GB, free: 21.4 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000693/1.651, allocations: 343.8 kB / 0.6358 GB, free: 21.06 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01025/1.661, allocations: 4.211 MB / 0.6399 GB, free: 17.4 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.399e-05/1.661, allocations: 24 kB / 0.64 GB, free: 17.38 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.178e-05/1.661, allocations: 12 kB / 0.64 GB, free: 17.37 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-05/1.661, allocations: 11.72 kB / 0.64 GB, free: 17.37 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02412/1.686, allocations: 9.125 MB / 0.6489 GB, free: 9.844 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.586e-05/1.686, allocations: 7.328 kB / 0.6489 GB, free: 9.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003569/1.689, allocations: 407.1 kB / 0.6493 GB, free: 9.508 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004249/1.694, allocations: 0.9562 MB / 0.6502 GB, free: 8.723 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005479/1.694, allocations: 62.98 kB / 0.6503 GB, free: 8.668 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02384/1.718, allocations: 15.92 MB / 0.6658 GB, free: 8.969 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.378e-06/1.718, allocations: 7.938 kB / 0.6658 GB, free: 8.961 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01674/1.735, allocations: 6.325 MB / 0.672 GB, free: 2.969 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003011/1.738, allocations: 0.7098 MB / 0.6727 GB, free: 2.316 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001314/1.739, allocations: 66.42 kB / 0.6728 GB, free: 2.258 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003776/1.743, allocations: 149.9 kB / 0.6729 GB, free: 2.148 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007581/1.744, allocations: 192.7 kB / 0.6731 GB, free: 2.027 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002899/1.744, allocations: 71.84 kB / 0.6732 GB, free: 1.961 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005459/1.75, allocations: 2.045 MB / 0.6752 GB, free: 112 kB / 426.7 MB Notification: Performance of sort global known variables: time 9.82e-07/1.75, allocations: 0 / 0.6752 GB, free: 112 kB / 426.7 MB Notification: Performance of remove unused functions: time 0.3056/2.055, allocations: 1.098 MB / 0.6762 GB, free: 72.34 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].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 (194): * Single equations (assignments): 187 * 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,72.2%) 23,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01951/2.075, allocations: 8.306 MB / 0.6843 GB, free: 69.82 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0113/2.086, allocations: 4.02 MB / 0.6883 GB, free: 69.14 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.297e-06/2.086, allocations: 0 / 0.6883 GB, free: 69.14 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007097/2.093, allocations: 2.697 MB / 0.6909 GB, free: 68.38 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007237/2.101, allocations: 0.8659 MB / 0.6917 GB, free: 68.36 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02858/2.129, allocations: 9.568 MB / 0.7011 GB, free: 66.39 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005661/2.135, allocations: 3.509 MB / 0.7045 GB, free: 65.52 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00505/2.14, allocations: 0.7966 MB / 0.7053 GB, free: 65.43 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004655/2.145, allocations: 2.073 MB / 0.7073 GB, free: 65.43 MB / 426.7 MB Notification: Performance of SimCode: time 1.834e-06/2.145, allocations: 0 / 0.7073 GB, free: 65.43 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2037/2.348, allocations: 92.21 MB / 0.7974 GB, free: 25.04 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002382/2.349, allocations: 200.1 kB / 0.7976 GB, free: 24.81 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.714/8.063, allocations: 0 / 0.7976 GB, free: 24.81 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat