Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.928/1.928, allocations: 205.8 MB / 218.9 MB, free: 9.344 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.849e-05/3.858e-05, allocations: 4 kB / 269.5 MB, free: 6.301 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09805/0.09811, allocations: 47.56 MB / 317 MB, free: 6.652 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.474/0.5721, allocations: 130.4 MB / 447.4 MB, free: 6.621 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00031/0.5725, allocations: 85.02 kB / 447.5 MB, free: 6.578 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7714/1.344, allocations: 124.1 MB / 0.5582 GB, free: 89 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.567e-06/1.344, allocations: 3.656 kB / 0.5582 GB, free: 89 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000575/1.345, allocations: 140.4 kB / 0.5584 GB, free: 88.98 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.02078/1.365, allocations: 5.113 MB / 0.5634 GB, free: 87.02 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.044e-05/1.365, allocations: 7.25 kB / 0.5634 GB, free: 87.02 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00308/1.368, allocations: 0.7327 MB / 0.5641 GB, free: 86.95 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00792/1.376, allocations: 1.019 MB / 0.5651 GB, free: 86.62 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01693/1.393, allocations: 4.589 MB / 0.5696 GB, free: 85.84 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005885/1.394, allocations: 407.1 kB / 0.5699 GB, free: 85.83 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002323/1.396, allocations: 0.5241 MB / 0.5705 GB, free: 85.82 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02296/1.419, allocations: 6.766 MB / 0.5771 GB, free: 83.91 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003129/1.42, allocations: 11.31 kB / 0.5771 GB, free: 83.91 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001999/1.422, allocations: 230.7 kB / 0.5773 GB, free: 83.74 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003224/1.422, allocations: 243.4 kB / 0.5775 GB, free: 83.72 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01761/1.44, allocations: 5.355 MB / 0.5828 GB, free: 81.54 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05844/1.498, allocations: 22.55 MB / 0.6048 GB, free: 66.68 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01143/1.51, allocations: 8.237 MB / 0.6128 GB, free: 57.95 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005221/1.515, allocations: 2.11 MB / 0.6149 GB, free: 56 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01853/1.534, allocations: 6.315 MB / 0.621 GB, free: 50.76 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.552e-05/1.534, allocations: 64.52 kB / 0.6211 GB, free: 50.69 MB / 426.7 MB Notification: Performance of pre-optimization done (n=227): time 4.779e-06/1.534, allocations: 0 / 0.6211 GB, free: 50.69 MB / 426.7 MB Notification: Performance of matching and sorting (n=254): time 0.03508/1.569, allocations: 10.06 MB / 0.6309 GB, free: 41.28 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.152e-05/1.569, allocations: 81.34 kB / 0.631 GB, free: 41.19 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006819/1.576, allocations: 2.733 MB / 0.6337 GB, free: 38.46 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005961/1.576, allocations: 69.7 kB / 0.6337 GB, free: 38.38 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002204/1.579, allocations: 2.491 MB / 0.6362 GB, free: 35.87 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001221/1.58, allocations: 0.8759 MB / 0.637 GB, free: 35 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003497/1.58, allocations: 64 kB / 0.6371 GB, free: 34.94 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002208/1.58, allocations: 436.8 kB / 0.6375 GB, free: 34.51 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003525/1.584, allocations: 1.325 MB / 0.6388 GB, free: 33.18 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004297/1.588, allocations: 2.275 MB / 0.641 GB, free: 30.48 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004365/1.593, allocations: 1.734 MB / 0.6427 GB, free: 28.72 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.305e-05/1.593, allocations: 8 kB / 0.6427 GB, free: 28.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=415) (initialization): time 0.01335/1.606, allocations: 4.679 MB / 0.6473 GB, free: 23.95 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.675e-05/1.606, allocations: 20 kB / 0.6473 GB, free: 23.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.766e-05/1.606, allocations: 28 kB / 0.6473 GB, free: 23.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002993/1.609, allocations: 0.7277 MB / 0.648 GB, free: 23.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005833/1.615, allocations: 0.7605 MB / 0.6488 GB, free: 22.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01437/1.63, allocations: 9.754 MB / 0.6583 GB, free: 12.11 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004873/1.635, allocations: 195.8 kB / 0.6585 GB, free: 11.92 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007549/1.635, allocations: 140 kB / 0.6586 GB, free: 11.78 MB / 426.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 (378): * Single equations (assignments): 372 * 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.0007226/1.636, allocations: 303.9 kB / 0.6589 GB, free: 11.48 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001043/1.637, allocations: 363.3 kB / 0.6593 GB, free: 11.12 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01134/1.649, allocations: 4.216 MB / 0.6634 GB, free: 6.785 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.152e-05/1.649, allocations: 31.89 kB / 0.6634 GB, free: 6.754 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-05/1.649, allocations: 12 kB / 0.6634 GB, free: 6.742 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.16e-05/1.649, allocations: 11.95 kB / 0.6634 GB, free: 6.73 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3655/2.014, allocations: 9.176 MB / 0.6724 GB, free: 80.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.131e-05/2.014, allocations: 4.641 kB / 0.6724 GB, free: 80.05 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003906/2.018, allocations: 417.9 kB / 0.6728 GB, free: 80.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004851/2.023, allocations: 0.9584 MB / 0.6737 GB, free: 79.99 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006044/2.024, allocations: 67.28 kB / 0.6738 GB, free: 79.99 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02399/2.048, allocations: 15.92 MB / 0.6894 GB, free: 70.96 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.706e-06/2.048, allocations: 8.156 kB / 0.6894 GB, free: 70.96 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01542/2.063, allocations: 6.375 MB / 0.6956 GB, free: 69.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00285/2.066, allocations: 0.7203 MB / 0.6963 GB, free: 69.71 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001635/2.068, allocations: 65.08 kB / 0.6964 GB, free: 69.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004675/2.073, allocations: 157.9 kB / 0.6965 GB, free: 69.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001102/2.074, allocations: 189.3 kB / 0.6967 GB, free: 69.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003869/2.074, allocations: 78.55 kB / 0.6968 GB, free: 69.7 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006107/2.08, allocations: 2.058 MB / 0.6988 GB, free: 69.54 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.375e-06/2.08, allocations: 0 / 0.6988 GB, free: 69.54 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006908/2.087, allocations: 1.092 MB / 0.6998 GB, free: 69.54 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 (197): * Single equations (assignments): 190 * 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.01724/2.105, allocations: 8.359 MB / 0.708 GB, free: 66.95 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009797/2.114, allocations: 4.046 MB / 0.712 GB, free: 66.25 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.016e-05/2.114, allocations: 3.844 kB / 0.712 GB, free: 66.25 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007039/2.121, allocations: 2.704 MB / 0.7146 GB, free: 65.46 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007271/2.129, allocations: 0.8829 MB / 0.7155 GB, free: 65.39 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02873/2.158, allocations: 9.618 MB / 0.7249 GB, free: 61.51 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006231/2.164, allocations: 3.53 MB / 0.7283 GB, free: 60.22 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.005105/2.169, allocations: 0.8009 MB / 0.7291 GB, free: 60.12 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004738/2.174, allocations: 2.082 MB / 0.7311 GB, free: 58.39 MB / 426.7 MB Notification: Performance of SimCode: time 2.104e-06/2.174, allocations: 4 kB / 0.7311 GB, free: 58.39 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2145/2.388, allocations: 92.95 MB / 0.8219 GB, free: 8.09 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002677/2.389, allocations: 192 kB / 0.8221 GB, free: 7.863 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.354/8.743, allocations: 0 / 0.8221 GB, free: 7.863 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat