Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.022/2.022, allocations: 225.8 MB / 239.3 MB, free: 11.21 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.047e-05/3.054e-05, allocations: 4 kB / 292.8 MB, free: 8.254 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1041, allocations: 50.42 MB / 343.2 MB, free: 5.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5154/0.6195, allocations: 131.7 MB / 474.9 MB, free: 11.14 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003357/0.6199, allocations: 95.06 kB / 475 MB, free: 11.09 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7702/1.39, allocations: 124.4 MB / 0.5853 GB, free: 97.18 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.257e-06/1.39, allocations: 3.969 kB / 0.5853 GB, free: 97.18 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005277/1.391, allocations: 146.2 kB / 0.5855 GB, free: 97.15 MB / 442.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.01986/1.411, allocations: 5.139 MB / 0.5905 GB, free: 94.75 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.224e-05/1.411, allocations: 8.094 kB / 0.5905 GB, free: 94.75 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002935/1.414, allocations: 0.7313 MB / 0.5912 GB, free: 94.34 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00781/1.421, allocations: 1.005 MB / 0.5922 GB, free: 93.96 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01629/1.438, allocations: 4.599 MB / 0.5967 GB, free: 91.7 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004635/1.438, allocations: 405.5 kB / 0.5971 GB, free: 91.52 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002151/1.44, allocations: 0.5224 MB / 0.5976 GB, free: 91.34 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0205/1.461, allocations: 6.759 MB / 0.6042 GB, free: 87.78 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002535/1.461, allocations: 7.906 kB / 0.6042 GB, free: 87.77 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001368/1.463, allocations: 227.8 kB / 0.6044 GB, free: 87.55 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002794/1.463, allocations: 246.6 kB / 0.6046 GB, free: 87.31 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01676/1.48, allocations: 5.355 MB / 0.6099 GB, free: 81.95 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05493/1.535, allocations: 22.53 MB / 0.6319 GB, free: 59.02 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01111/1.546, allocations: 8.243 MB / 0.6399 GB, free: 49.89 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00505/1.551, allocations: 2.101 MB / 0.642 GB, free: 47.78 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01681/1.568, allocations: 6.309 MB / 0.6481 GB, free: 41.41 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.435e-05/1.568, allocations: 64.56 kB / 0.6482 GB, free: 41.34 MB / 442.7 MB Notification: Performance of pre-optimization done (n=227): time 4.92e-06/1.568, allocations: 3.938 kB / 0.6482 GB, free: 41.34 MB / 442.7 MB Notification: Performance of matching and sorting (n=254): time 0.03373/1.602, allocations: 10.08 MB / 0.6581 GB, free: 31.2 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.726e-05/1.602, allocations: 77.41 kB / 0.6581 GB, free: 31.11 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005595/1.607, allocations: 2.725 MB / 0.6608 GB, free: 28.38 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005158/1.608, allocations: 69.7 kB / 0.6609 GB, free: 28.31 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001766/1.61, allocations: 2.49 MB / 0.6633 GB, free: 25.8 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009588/1.611, allocations: 0.8793 MB / 0.6641 GB, free: 24.93 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002831/1.611, allocations: 64 kB / 0.6642 GB, free: 24.86 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001938/1.611, allocations: 440.8 kB / 0.6646 GB, free: 24.43 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003018/1.614, allocations: 1.322 MB / 0.6659 GB, free: 23.1 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003444/1.618, allocations: 2.275 MB / 0.6681 GB, free: 20.4 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003729/1.621, allocations: 1.734 MB / 0.6698 GB, free: 18.64 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-05/1.621, allocations: 12 kB / 0.6698 GB, free: 18.63 MB / 442.7 MB Notification: Performance of matching and sorting (n=415) (initialization): time 0.01106/1.632, allocations: 4.676 MB / 0.6744 GB, free: 13.87 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.211e-05/1.633, allocations: 20 kB / 0.6744 GB, free: 13.85 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.08e-05/1.633, allocations: 32 kB / 0.6745 GB, free: 13.82 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002748/1.635, allocations: 0.7281 MB / 0.6752 GB, free: 13.07 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00532/1.641, allocations: 0.7527 MB / 0.6759 GB, free: 12.32 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01341/1.654, allocations: 9.759 MB / 0.6854 GB, free: 2.031 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004547/1.659, allocations: 203.7 kB / 0.6856 GB, free: 1.832 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003961/1.659, allocations: 144 kB / 0.6858 GB, free: 1.691 MB / 442.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.0007001/1.66, allocations: 307.9 kB / 0.6861 GB, free: 1.383 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007348/1.661, allocations: 351.6 kB / 0.6864 GB, free: 1.035 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3241/1.985, allocations: 4.215 MB / 0.6905 GB, free: 86.63 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.421e-05/1.985, allocations: 24.56 kB / 0.6905 GB, free: 86.63 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.558e-05/1.985, allocations: 9.875 kB / 0.6905 GB, free: 86.63 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.238e-05/1.985, allocations: 12.56 kB / 0.6906 GB, free: 86.63 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02663/2.012, allocations: 9.19 MB / 0.6995 GB, free: 85.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.181e-05/2.012, allocations: 4.156 kB / 0.6995 GB, free: 85.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003887/2.016, allocations: 415.2 kB / 0.6999 GB, free: 85.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004528/2.02, allocations: 0.9673 MB / 0.7009 GB, free: 85.75 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000528/2.021, allocations: 67.27 kB / 0.7009 GB, free: 85.75 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02284/2.044, allocations: 15.94 MB / 0.7165 GB, free: 76.71 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.314e-06/2.044, allocations: 15.67 kB / 0.7165 GB, free: 76.71 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01433/2.058, allocations: 6.368 MB / 0.7227 GB, free: 75.55 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002586/2.061, allocations: 0.7225 MB / 0.7234 GB, free: 75.46 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009508/2.062, allocations: 57.72 kB / 0.7235 GB, free: 75.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003456/2.065, allocations: 158.1 kB / 0.7237 GB, free: 75.46 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006824/2.066, allocations: 197.8 kB / 0.7238 GB, free: 75.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002535/2.066, allocations: 75 kB / 0.7239 GB, free: 75.45 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004866/2.071, allocations: 2.056 MB / 0.7259 GB, free: 74.92 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.042e-06/2.071, allocations: 3.438 kB / 0.7259 GB, free: 74.92 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005709/2.077, allocations: 1.091 MB / 0.727 GB, free: 74.8 MB / 442.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.01562/2.092, allocations: 8.389 MB / 0.7352 GB, free: 70.27 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009265/2.102, allocations: 4.054 MB / 0.7391 GB, free: 68.48 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/2.102, allocations: 0 / 0.7391 GB, free: 68.48 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006555/2.108, allocations: 2.714 MB / 0.7418 GB, free: 67.05 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006995/2.115, allocations: 0.8786 MB / 0.7426 GB, free: 66.82 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02802/2.143, allocations: 9.595 MB / 0.752 GB, free: 62.93 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00472/2.148, allocations: 3.533 MB / 0.7555 GB, free: 61.62 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004666/2.153, allocations: 0.8025 MB / 0.7563 GB, free: 61.52 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004121/2.157, allocations: 2.084 MB / 0.7583 GB, free: 59.8 MB / 442.7 MB Notification: Performance of SimCode: time 1.783e-06/2.157, allocations: 0 / 0.7583 GB, free: 59.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2121/2.369, allocations: 93.09 MB / 0.8492 GB, free: 1.586 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002529/2.369, allocations: 226.8 kB / 0.8494 GB, free: 1.352 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.46/8.83, allocations: 3.938 kB / 0.8494 GB, free: 1.348 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat