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.597/1.597, allocations: 171.2 MB / 183.3 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.778e-05/2.781e-05, allocations: 0 / 225.1 MB, free: 2.207 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.2459, allocations: 38.76 MB / 263.9 MB, free: 9.809 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4143/0.6602, allocations: 116.8 MB / 380.7 MB, free: 52.43 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002449/0.6605, allocations: 85.88 kB / 380.8 MB, free: 52.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4371/1.098, allocations: 118.6 MB / 499.4 MB, free: 14.97 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.693e-06/1.098, allocations: 0 / 499.4 MB, free: 14.97 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0006364/1.098, allocations: 143.7 kB / 499.5 MB, free: 14.83 MB / 362.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.02077/1.119, allocations: 4.953 MB / 0.4927 GB, free: 9.805 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.381e-05/1.119, allocations: 12.03 kB / 0.4927 GB, free: 9.793 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00283/1.122, allocations: 0.7077 MB / 0.4934 GB, free: 9.074 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00514/1.127, allocations: 0.7777 MB / 0.4941 GB, free: 8.289 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01256/1.14, allocations: 3.652 MB / 0.4977 GB, free: 4.562 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006102/1.14, allocations: 390.3 kB / 0.4981 GB, free: 4.18 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002311/1.143, allocations: 0.5114 MB / 0.4986 GB, free: 3.672 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2719/1.415, allocations: 6.511 MB / 0.5049 GB, free: 42.21 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003028/1.415, allocations: 13.44 kB / 0.5049 GB, free: 42.21 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001341/1.416, allocations: 219.2 kB / 0.5051 GB, free: 42.21 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003244/1.417, allocations: 233.7 kB / 0.5054 GB, free: 42.2 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0166/1.433, allocations: 5.017 MB / 0.5103 GB, free: 42.16 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05226/1.486, allocations: 21.08 MB / 0.5308 GB, free: 37.88 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006497/1.492, allocations: 4.028 MB / 0.5348 GB, free: 36.15 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00412/1.496, allocations: 1.8 MB / 0.5365 GB, free: 36.12 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004875/1.497, allocations: 154.2 kB / 0.5367 GB, free: 36.02 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.187e-05/1.497, allocations: 64.77 kB / 0.5367 GB, free: 35.98 MB / 362.7 MB Notification: Performance of pre-optimization done (n=226): time 4.759e-06/1.497, allocations: 0 / 0.5367 GB, free: 35.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=275): time 0.04493/1.542, allocations: 11.74 MB / 0.5482 GB, free: 34.45 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.321e-05/1.542, allocations: 85.86 kB / 0.5483 GB, free: 34.38 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00622/1.548, allocations: 2.587 MB / 0.5508 GB, free: 34.13 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006002/1.549, allocations: 72.36 kB / 0.5509 GB, free: 34.1 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002047/1.551, allocations: 2.37 MB / 0.5532 GB, free: 33.24 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001233/1.552, allocations: 0.9405 MB / 0.5541 GB, free: 32.64 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003143/1.553, allocations: 65.94 kB / 0.5542 GB, free: 32.64 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002107/1.553, allocations: 444.1 kB / 0.5546 GB, free: 32.33 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003538/1.556, allocations: 1.401 MB / 0.556 GB, free: 32.16 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004494/1.561, allocations: 2.328 MB / 0.5582 GB, free: 30.48 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004659/1.566, allocations: 1.836 MB / 0.56 GB, free: 29.77 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.924e-05/1.566, allocations: 7.125 kB / 0.56 GB, free: 29.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=424) (initialization): time 0.0146/1.58, allocations: 5.137 MB / 0.5651 GB, free: 27.87 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.46e-05/1.58, allocations: 15.19 kB / 0.5651 GB, free: 27.87 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.684e-05/1.58, allocations: 32.72 kB / 0.5651 GB, free: 27.87 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003954/1.584, allocations: 0.9949 MB / 0.5661 GB, free: 27.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005299/1.59, allocations: 0.7182 MB / 0.5668 GB, free: 27.55 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02052/1.61, allocations: 13.51 MB / 0.58 GB, free: 17.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004358/1.615, allocations: 189.6 kB / 0.5801 GB, free: 17.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005723/1.615, allocations: 143.3 kB / 0.5803 GB, free: 17.7 MB / 362.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 (364): * Single equations (assignments): 357 * 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.0007398/1.616, allocations: 307.2 kB / 0.5806 GB, free: 17.48 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009186/1.617, allocations: 349.5 kB / 0.5809 GB, free: 17.3 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01228/1.629, allocations: 4.522 MB / 0.5853 GB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.57e-05/1.629, allocations: 23.62 kB / 0.5853 GB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.523e-05/1.629, allocations: 16.38 kB / 0.5854 GB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001063/1.63, allocations: 15.38 kB / 0.5854 GB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05821/1.688, allocations: 10.64 MB / 0.5958 GB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.34e-05/1.688, allocations: 3.938 kB / 0.5958 GB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01711/1.705, allocations: 434.5 kB / 0.5962 GB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01146/1.717, allocations: 1.065 MB / 0.5972 GB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006295/1.717, allocations: 75.81 kB / 0.5973 GB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02689/1.744, allocations: 16.9 MB / 0.6138 GB, free: 12.86 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.937e-06/1.744, allocations: 10.25 kB / 0.6138 GB, free: 12.85 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0167/1.761, allocations: 7.06 MB / 0.6207 GB, free: 6.098 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00264/1.764, allocations: 0.7307 MB / 0.6214 GB, free: 5.422 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007145/1.764, allocations: 67.7 kB / 0.6215 GB, free: 5.359 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00298/1.767, allocations: 152.1 kB / 0.6216 GB, free: 5.246 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000633/1.768, allocations: 211.3 kB / 0.6218 GB, free: 5.117 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002694/1.768, allocations: 75.75 kB / 0.6219 GB, free: 5.047 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00469/1.773, allocations: 1.961 MB / 0.6238 GB, free: 3.266 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.11e-07/1.773, allocations: 0 / 0.6238 GB, free: 3.266 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005431/1.778, allocations: 1.089 MB / 0.6249 GB, free: 2.188 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 (213): * Single equations (assignments): 206 * 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.01839/1.797, allocations: 9.528 MB / 0.6342 GB, free: 9.133 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01188/1.809, allocations: 4.645 MB / 0.6387 GB, free: 4.719 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.909e-06/1.809, allocations: 0 / 0.6387 GB, free: 4.719 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008147/1.817, allocations: 3.009 MB / 0.6417 GB, free: 1.887 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006417/1.823, allocations: 0.8799 MB / 0.6425 GB, free: 1.207 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2926/2.116, allocations: 9.941 MB / 0.6522 GB, free: 68.07 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004664/2.121, allocations: 3.52 MB / 0.6557 GB, free: 67.27 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.003993/2.125, allocations: 0.7333 MB / 0.6564 GB, free: 67.21 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003878/2.129, allocations: 2.039 MB / 0.6584 GB, free: 67.21 MB / 394.7 MB Notification: Performance of SimCode: time 1.212e-06/2.129, allocations: 0 / 0.6584 GB, free: 67.21 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2334/2.362, allocations: 94.44 MB / 0.7506 GB, free: 33.22 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002229/2.362, allocations: 204 kB / 0.7508 GB, free: 32.99 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.96/8.322, allocations: 0 / 0.7508 GB, free: 32.99 MB / 394.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