Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.989/1.989, allocations: 205.8 MB / 218.9 MB, free: 9.258 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.387e-05/4.415e-05, allocations: 4 kB / 269.5 MB, free: 6.285 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1359, allocations: 47.57 MB / 317 MB, free: 6.633 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5345/0.6704, allocations: 118.8 MB / 435.8 MB, free: 1.543 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000329/0.6708, allocations: 81.95 kB / 435.9 MB, free: 1.504 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3201/0.9909, allocations: 80.38 MB / 0.5042 GB, free: 7.484 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.305e-06/0.991, allocations: 0 / 0.5042 GB, free: 7.484 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004216/0.9914, allocations: 95.88 kB / 0.5042 GB, free: 7.391 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01452/1.006, allocations: 3.451 MB / 0.5076 GB, free: 3.875 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.236e-05/1.006, allocations: 8.031 kB / 0.5076 GB, free: 3.867 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001805/1.008, allocations: 493.3 kB / 0.5081 GB, free: 3.375 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004915/1.013, allocations: 0.6393 MB / 0.5087 GB, free: 2.73 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3016/1.314, allocations: 3.36 MB / 0.512 GB, free: 87.64 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004243/1.315, allocations: 259.5 kB / 0.5122 GB, free: 87.64 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00164/1.317, allocations: 341 kB / 0.5126 GB, free: 87.64 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01578/1.332, allocations: 4.287 MB / 0.5168 GB, free: 87.2 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000161/1.333, allocations: 9.188 kB / 0.5168 GB, free: 87.2 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007493/1.333, allocations: 144.5 kB / 0.5169 GB, free: 87.2 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002679/1.334, allocations: 165.2 kB / 0.5171 GB, free: 87.19 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01244/1.346, allocations: 3.39 MB / 0.5204 GB, free: 87.18 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03934/1.385, allocations: 14.58 MB / 0.5346 GB, free: 83.96 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007407/1.393, allocations: 5.328 MB / 0.5398 GB, free: 80.08 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00323/1.396, allocations: 1.25 MB / 0.541 GB, free: 80.06 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01057/1.407, allocations: 3.857 MB / 0.5448 GB, free: 79.39 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.329e-05/1.407, allocations: 46.81 kB / 0.5448 GB, free: 79.35 MB / 426.7 MB Notification: Performance of pre-optimization done (n=126): time 5.601e-06/1.407, allocations: 3.188 kB / 0.5448 GB, free: 79.35 MB / 426.7 MB Notification: Performance of matching and sorting (n=130): time 0.01072/1.418, allocations: 4.242 MB / 0.549 GB, free: 78.28 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.379e-05/1.418, allocations: 65.03 kB / 0.5491 GB, free: 78.21 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004314/1.422, allocations: 1.831 MB / 0.5508 GB, free: 77.89 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003459/1.422, allocations: 49.67 kB / 0.5509 GB, free: 77.84 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001389/1.424, allocations: 1.656 MB / 0.5525 GB, free: 76.71 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006432/1.425, allocations: 460 kB / 0.5529 GB, free: 76.36 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001498/1.425, allocations: 35.25 kB / 0.553 GB, free: 76.33 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001448/1.425, allocations: 381 kB / 0.5533 GB, free: 76 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001649/1.426, allocations: 0.697 MB / 0.554 GB, free: 75.73 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002019/1.429, allocations: 1.283 MB / 0.5553 GB, free: 74.69 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00217/1.431, allocations: 0.9368 MB / 0.5562 GB, free: 74.35 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.598e-05/1.431, allocations: 6.688 kB / 0.5562 GB, free: 74.35 MB / 426.7 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.006062/1.437, allocations: 2.401 MB / 0.5585 GB, free: 73.43 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.568e-05/1.437, allocations: 17.16 kB / 0.5586 GB, free: 73.43 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.753e-05/1.437, allocations: 20.31 kB / 0.5586 GB, free: 73.43 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005565/1.438, allocations: 136.5 kB / 0.5587 GB, free: 73.38 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003372/1.441, allocations: 468.5 kB / 0.5592 GB, free: 73.36 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002866/1.444, allocations: 3.068 MB / 0.5622 GB, free: 70.49 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003002/1.447, allocations: 112.3 kB / 0.5623 GB, free: 70.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003472/1.447, allocations: 82.22 kB / 0.5623 GB, free: 70.44 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * 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.0004364/1.448, allocations: 224.1 kB / 0.5626 GB, free: 70.27 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005958/1.448, allocations: 219.6 kB / 0.5628 GB, free: 70.16 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005402/1.454, allocations: 2.139 MB / 0.5649 GB, free: 69.16 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.867e-05/1.454, allocations: 14 kB / 0.5649 GB, free: 69.16 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.026e-05/1.454, allocations: 3.719 kB / 0.5649 GB, free: 69.16 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.452e-05/1.454, allocations: 10.8 kB / 0.5649 GB, free: 69.16 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01297/1.467, allocations: 5.141 MB / 0.5699 GB, free: 66.85 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.259e-05/1.467, allocations: 7.344 kB / 0.5699 GB, free: 66.85 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001978/1.469, allocations: 224 kB / 0.5701 GB, free: 66.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001147/1.47, allocations: 277.3 kB / 0.5704 GB, free: 66.74 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001885/1.47, allocations: 34.69 kB / 0.5704 GB, free: 66.72 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007782/1.478, allocations: 7.1 MB / 0.5774 GB, free: 60.43 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.833e-06/1.478, allocations: 5.125 kB / 0.5774 GB, free: 60.43 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006897/1.485, allocations: 3.289 MB / 0.5806 GB, free: 58.66 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001498/1.487, allocations: 467.6 kB / 0.581 GB, free: 58.34 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005341/1.487, allocations: 26.88 kB / 0.581 GB, free: 58.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001956/1.489, allocations: 83.58 kB / 0.5811 GB, free: 58.3 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002713/1.489, allocations: 91.44 kB / 0.5812 GB, free: 58.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001248/1.49, allocations: 39.33 kB / 0.5812 GB, free: 58.28 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003159/1.493, allocations: 1.389 MB / 0.5826 GB, free: 57.7 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.002e-06/1.493, allocations: 0 / 0.5826 GB, free: 57.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003559/1.496, allocations: 0.6154 MB / 0.5832 GB, free: 57.64 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.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.00825/1.505, allocations: 4.813 MB / 0.5879 GB, free: 54.72 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004625/1.509, allocations: 1.998 MB / 0.5899 GB, free: 53.84 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.075e-05/1.509, allocations: 3.406 kB / 0.5899 GB, free: 53.84 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003033/1.512, allocations: 1.314 MB / 0.5911 GB, free: 53.09 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004301/1.517, allocations: 0.5146 MB / 0.5916 GB, free: 52.94 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01717/1.534, allocations: 5.699 MB / 0.5972 GB, free: 50.6 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003457/1.538, allocations: 2.483 MB / 0.5996 GB, free: 49.53 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003028/1.541, allocations: 0.4939 MB / 0.6001 GB, free: 49.47 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002924/1.544, allocations: 1.308 MB / 0.6014 GB, free: 48.39 MB / 426.7 MB Notification: Performance of SimCode: time 2.084e-06/1.544, allocations: 0 / 0.6014 GB, free: 48.39 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1357/1.679, allocations: 55.33 MB / 0.6554 GB, free: 8.973 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000258/1.68, allocations: 193.4 kB / 0.6556 GB, free: 8.754 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.934/6.614, allocations: 0 / 0.6556 GB, free: 8.754 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.mat does not exist to compare? outputFormat=mat