Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.913/1.913, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.261e-05/3.264e-05, allocations: 1.562 kB / 292.8 MB, free: 8.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1069, allocations: 50.41 MB / 343.2 MB, free: 5.801 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4919/0.5988, allocations: 120 MB / 463.2 MB, free: 6.582 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003276/0.5992, allocations: 97.5 kB / 463.3 MB, free: 6.531 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6195/1.219, allocations: 80.75 MB / 0.5313 GB, free: 94.48 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.176e-06/1.219, allocations: 1.453 kB / 0.5313 GB, free: 94.48 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004389/1.219, allocations: 98.39 kB / 0.5314 GB, free: 94.47 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01504/1.234, allocations: 3.457 MB / 0.5347 GB, free: 93.27 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.036e-05/1.234, allocations: 9.719 kB / 0.5347 GB, free: 93.27 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001964/1.236, allocations: 493.8 kB / 0.5352 GB, free: 93.21 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005308/1.242, allocations: 0.6411 MB / 0.5358 GB, free: 93 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01369/1.255, allocations: 3.367 MB / 0.5391 GB, free: 92.45 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004423/1.256, allocations: 266.4 kB / 0.5394 GB, free: 92.44 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001687/1.258, allocations: 349 kB / 0.5397 GB, free: 92.43 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01567/1.273, allocations: 4.279 MB / 0.5439 GB, free: 91.99 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001514/1.273, allocations: 14.41 kB / 0.5439 GB, free: 91.99 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00067/1.274, allocations: 146.3 kB / 0.544 GB, free: 91.99 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002367/1.274, allocations: 161.1 kB / 0.5442 GB, free: 91.98 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01176/1.286, allocations: 3.39 MB / 0.5475 GB, free: 91.96 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03703/1.323, allocations: 14.56 MB / 0.5617 GB, free: 88.46 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007192/1.331, allocations: 5.318 MB / 0.5669 GB, free: 84.39 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003138/1.334, allocations: 1.251 MB / 0.5681 GB, free: 83.93 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01089/1.345, allocations: 3.887 MB / 0.5719 GB, free: 81.88 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.527e-05/1.345, allocations: 46.75 kB / 0.572 GB, free: 81.84 MB / 442.7 MB Notification: Performance of pre-optimization done (n=127): time 3.787e-06/1.345, allocations: 0 / 0.572 GB, free: 81.84 MB / 442.7 MB Notification: Performance of matching and sorting (n=131): time 0.01062/1.355, allocations: 4.274 MB / 0.5762 GB, free: 79.58 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.11e-05/1.355, allocations: 68.62 kB / 0.5762 GB, free: 79.52 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004137/1.36, allocations: 1.834 MB / 0.578 GB, free: 78.77 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003319/1.36, allocations: 48.89 kB / 0.5781 GB, free: 78.72 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001218/1.361, allocations: 1.663 MB / 0.5797 GB, free: 77.45 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005973/1.362, allocations: 459.1 kB / 0.5801 GB, free: 77.1 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001509/1.362, allocations: 33.06 kB / 0.5802 GB, free: 77.07 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001348/1.362, allocations: 381.4 kB / 0.5805 GB, free: 76.74 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001655/1.364, allocations: 0.6915 MB / 0.5812 GB, free: 76.47 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001932/1.366, allocations: 1.301 MB / 0.5825 GB, free: 75.41 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002029/1.368, allocations: 0.9317 MB / 0.5834 GB, free: 75.05 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.566e-05/1.368, allocations: 5.719 kB / 0.5834 GB, free: 75.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005869/1.374, allocations: 2.406 MB / 0.5857 GB, free: 74.11 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.377e-05/1.374, allocations: 17.94 kB / 0.5857 GB, free: 74.11 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.999e-05/1.374, allocations: 18.66 kB / 0.5858 GB, free: 74.11 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005295/1.374, allocations: 141.8 kB / 0.5859 GB, free: 74.05 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003244/1.378, allocations: 466.7 kB / 0.5863 GB, free: 74.03 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002671/1.38, allocations: 3.07 MB / 0.5893 GB, free: 71.15 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002961/1.383, allocations: 114.9 kB / 0.5895 GB, free: 71.12 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003461/1.384, allocations: 80.47 kB / 0.5895 GB, free: 71.1 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 89 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (223): * Single equations (assignments): 220 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004451/1.384, allocations: 219.9 kB / 0.5897 GB, free: 70.93 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005531/1.385, allocations: 222.1 kB / 0.59 GB, free: 70.82 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0052/1.39, allocations: 2.157 MB / 0.5921 GB, free: 69.79 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.576e-05/1.39, allocations: 14.38 kB / 0.5921 GB, free: 69.79 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/1.39, allocations: 3.312 kB / 0.5921 GB, free: 69.79 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.808e-05/1.39, allocations: 6.656 kB / 0.5921 GB, free: 69.79 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01228/1.402, allocations: 5.146 MB / 0.5971 GB, free: 67.48 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.004e-05/1.402, allocations: 2.625 kB / 0.5971 GB, free: 67.48 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001992/1.404, allocations: 237.5 kB / 0.5973 GB, free: 67.46 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001131/1.406, allocations: 276.3 kB / 0.5976 GB, free: 67.36 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00016/1.406, allocations: 26.5 kB / 0.5976 GB, free: 67.35 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0075/1.413, allocations: 7.097 MB / 0.6046 GB, free: 61.04 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/1.413, allocations: 1.5 kB / 0.6046 GB, free: 61.04 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006992/1.42, allocations: 3.299 MB / 0.6078 GB, free: 59.27 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001601/1.422, allocations: 466.2 kB / 0.6082 GB, free: 58.96 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005968/1.423, allocations: 31.31 kB / 0.6083 GB, free: 58.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002103/1.425, allocations: 75.33 kB / 0.6083 GB, free: 58.92 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002855/1.425, allocations: 96.97 kB / 0.6084 GB, free: 58.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001193/1.425, allocations: 35 kB / 0.6084 GB, free: 58.89 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003124/1.428, allocations: 1.396 MB / 0.6098 GB, free: 58.31 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.11e-07/1.428, allocations: 2.438 kB / 0.6098 GB, free: 58.31 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003791/1.432, allocations: 0.6065 MB / 0.6104 GB, free: 58.24 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,currentController.PI_d.x,currentController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (111): * Single equations (assignments): 107 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007971/1.44, allocations: 4.778 MB / 0.6151 GB, free: 55.37 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004481/1.445, allocations: 1.993 MB / 0.617 GB, free: 54.44 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/1.445, allocations: 0 / 0.617 GB, free: 54.44 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002932/1.448, allocations: 1.323 MB / 0.6183 GB, free: 53.66 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004298/1.452, allocations: 0.5085 MB / 0.6188 GB, free: 53.51 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01651/1.469, allocations: 5.702 MB / 0.6244 GB, free: 49.36 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003017/1.472, allocations: 2.478 MB / 0.6268 GB, free: 47.43 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002987/1.475, allocations: 0.4909 MB / 0.6273 GB, free: 47.09 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002851/1.478, allocations: 1.289 MB / 0.6285 GB, free: 45.89 MB / 442.7 MB Notification: Performance of SimCode: time 1.593e-06/1.478, allocations: 0 / 0.6285 GB, free: 45.89 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.131/1.609, allocations: 55.54 MB / 0.6828 GB, free: 416 kB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001569/1.609, allocations: 220.2 kB / 0.683 GB, free: 188 kB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.627/6.236, allocations: 0 / 0.683 GB, free: 188 kB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.mat does not exist to compare? outputFormat=mat