Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.107/2.107, allocations: 225.8 MB / 239.3 MB, free: 1.27 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.371e-05/3.376e-05, allocations: 5.094 kB / 292.7 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1087, allocations: 50.41 MB / 343.2 MB, free: 9 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4803/0.5892, allocations: 114.4 MB / 457.6 MB, free: 7.473 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003008/0.5895, allocations: 85.83 kB / 457.6 MB, free: 7.43 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.269/0.8586, allocations: 60.18 MB / 0.5057 GB, free: 2.629 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.398e-06/0.8586, allocations: 4 kB / 0.5057 GB, free: 2.625 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004299/0.8591, allocations: 83.88 kB / 0.5058 GB, free: 2.543 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.01181/0.8709, allocations: 2.998 MB / 0.5087 GB, free: 15.48 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.419e-05/0.871, allocations: 8.031 kB / 0.5087 GB, free: 15.47 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001806/0.8728, allocations: 429.8 kB / 0.5091 GB, free: 15.04 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002486/0.8753, allocations: 411.5 kB / 0.5095 GB, free: 14.63 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008454/0.8838, allocations: 2.216 MB / 0.5117 GB, free: 12.37 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003905/0.8843, allocations: 225.9 kB / 0.5119 GB, free: 12.14 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001412/0.8857, allocations: 299.9 kB / 0.5122 GB, free: 11.85 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01329/0.899, allocations: 3.696 MB / 0.5158 GB, free: 8.008 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001844/0.8993, allocations: 8.344 kB / 0.5158 GB, free: 8 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009575/0.9002, allocations: 127.9 kB / 0.5159 GB, free: 7.875 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002586/0.9005, allocations: 145.7 kB / 0.5161 GB, free: 7.73 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01087/0.9114, allocations: 2.967 MB / 0.519 GB, free: 4.758 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0373/0.9487, allocations: 12.21 MB / 0.5309 GB, free: 8.195 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005135/0.9539, allocations: 2.052 MB / 0.5329 GB, free: 6.027 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002974/0.957, allocations: 0.9948 MB / 0.5339 GB, free: 5.035 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006319/0.9576, allocations: 227.4 kB / 0.5341 GB, free: 4.777 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.197e-05/0.9577, allocations: 47.88 kB / 0.5341 GB, free: 4.723 MB / 426.7 MB Notification: Performance of pre-optimization done (n=141): time 4.348e-06/0.9577, allocations: 0 / 0.5341 GB, free: 4.723 MB / 426.7 MB Notification: Performance of matching and sorting (n=163): time 0.02673/0.9845, allocations: 6.674 MB / 0.5406 GB, free: 14 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.592e-05/0.9846, allocations: 68.72 kB / 0.5407 GB, free: 13.91 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004881/0.9895, allocations: 1.746 MB / 0.5424 GB, free: 12.13 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004422/0.99, allocations: 49.7 kB / 0.5425 GB, free: 12.07 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001766/0.9918, allocations: 1.448 MB / 0.5439 GB, free: 10.61 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001092/0.9929, allocations: 0.5584 MB / 0.5444 GB, free: 10.04 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000247/0.9932, allocations: 40 kB / 0.5444 GB, free: 10 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002961/0.9935, allocations: 381.9 kB / 0.5448 GB, free: 9.625 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002741/0.9963, allocations: 0.9059 MB / 0.5457 GB, free: 8.719 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003408/0.9997, allocations: 1.445 MB / 0.5471 GB, free: 7.035 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003414/1.003, allocations: 1.165 MB / 0.5482 GB, free: 5.871 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.556e-05/1.003, allocations: 8 kB / 0.5483 GB, free: 5.863 MB / 442.7 MB Notification: Performance of matching and sorting (n=252) (initialization): time 0.01014/1.013, allocations: 3.099 MB / 0.5513 GB, free: 2.746 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.933e-05/1.014, allocations: 16.09 kB / 0.5513 GB, free: 2.73 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.944e-05/1.014, allocations: 20 kB / 0.5513 GB, free: 2.711 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0025/1.016, allocations: 0.5386 MB / 0.5518 GB, free: 2.164 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003772/1.02, allocations: 471.2 kB / 0.5523 GB, free: 1.703 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.311/1.331, allocations: 6.272 MB / 0.5584 GB, free: 101.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003168/1.334, allocations: 148.6 kB / 0.5586 GB, free: 101.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005742/1.335, allocations: 93.34 kB / 0.5586 GB, free: 101.1 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * Number of states: 0 () * Number of discrete variables: 1 (sinCosEvaluation.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (226): * Single equations (assignments): 223 * 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 {(5,76.0%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005117/1.335, allocations: 219.6 kB / 0.5589 GB, free: 101 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007375/1.336, allocations: 223.6 kB / 0.5591 GB, free: 101 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008391/1.344, allocations: 2.795 MB / 0.5618 GB, free: 100.8 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.139e-05/1.345, allocations: 17 kB / 0.5618 GB, free: 100.8 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.314e-05/1.345, allocations: 8.094 kB / 0.5618 GB, free: 100.8 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.066e-05/1.345, allocations: 7.594 kB / 0.5618 GB, free: 100.8 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0189/1.364, allocations: 6.003 MB / 0.5677 GB, free: 100.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.889e-05/1.364, allocations: 2.562 kB / 0.5677 GB, free: 100.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002716/1.366, allocations: 285.9 kB / 0.568 GB, free: 100.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002811/1.369, allocations: 0.5861 MB / 0.5685 GB, free: 100.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004129/1.37, allocations: 46.28 kB / 0.5686 GB, free: 100.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01239/1.382, allocations: 7.966 MB / 0.5764 GB, free: 96.45 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.733e-06/1.382, allocations: 3.906 kB / 0.5764 GB, free: 96.45 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01008/1.392, allocations: 4.288 MB / 0.5806 GB, free: 95.79 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001808/1.394, allocations: 0.4989 MB / 0.581 GB, free: 95.57 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007489/1.395, allocations: 38.25 kB / 0.5811 GB, free: 95.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002557/1.397, allocations: 107 kB / 0.5812 GB, free: 95.57 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005713/1.398, allocations: 120.9 kB / 0.5813 GB, free: 95.57 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001922/1.398, allocations: 52.81 kB / 0.5813 GB, free: 95.57 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003398/1.402, allocations: 1.328 MB / 0.5826 GB, free: 95.41 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.91e-07/1.402, allocations: 0 / 0.5826 GB, free: 95.41 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004563/1.406, allocations: 0.6382 MB / 0.5833 GB, free: 95.41 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x,sinCosEvaluation.integrator.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (141): * Single equations (assignments): 138 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,76.0%) 20,(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.0106/1.417, allocations: 5.926 MB / 0.5891 GB, free: 93.4 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006454/1.423, allocations: 2.652 MB / 0.5916 GB, free: 92.39 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.077e-05/1.424, allocations: 0 / 0.5916 GB, free: 92.39 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003937/1.428, allocations: 1.582 MB / 0.5932 GB, free: 91.65 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004299/1.432, allocations: 0.5054 MB / 0.5937 GB, free: 91.51 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01667/1.449, allocations: 5.593 MB / 0.5991 GB, free: 89.37 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003519/1.452, allocations: 2.336 MB / 0.6014 GB, free: 88.4 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002939/1.455, allocations: 0.5142 MB / 0.6019 GB, free: 88.35 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002496/1.458, allocations: 1.192 MB / 0.6031 GB, free: 87.39 MB / 442.7 MB Notification: Performance of SimCode: time 1.192e-06/1.458, allocations: 0 / 0.6031 GB, free: 87.39 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1327/1.59, allocations: 57.59 MB / 0.6593 GB, free: 53.62 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001653/1.591, allocations: 199.6 kB / 0.6595 GB, free: 53.4 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.696/6.287, allocations: 6.453 kB / 0.6595 GB, free: 53.39 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat does not exist to compare? outputFormat=mat