Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.501/2.501, allocations: 249.5 MB / 261.6 MB, free: 2.168 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 3.738e-05/3.749e-05, allocations: 4 kB / 323.5 MB, free: 4.223 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.408/0.408, allocations: 58.84 MB / 382.3 MB, free: 10.22 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2227/0.6308, allocations: 123 MB / 0.4934 GB, free: 1.363 MB / 426.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002979/0.6312, allocations: 71.97 kB / 0.4935 GB, free: 1.293 MB / 426.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.6129/1.244, allocations: 61.89 MB / 0.5539 GB, free: 115.6 MB / 458.8 MB Notification: Performance of FrontEnd: time 1.823e-06/1.244, allocations: 0 / 0.5539 GB, free: 115.6 MB / 458.8 MB Notification: Performance of Transformations before backend: time 0.0003292/1.244, allocations: 83.31 kB / 0.554 GB, free: 115.6 MB / 458.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.01013/1.255, allocations: 2.913 MB / 0.5569 GB, free: 114.1 MB / 458.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/1.255, allocations: 10.75 kB / 0.5569 GB, free: 114.1 MB / 458.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001337/1.256, allocations: 410.2 kB / 0.5573 GB, free: 113.9 MB / 458.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001774/1.258, allocations: 400.5 kB / 0.5577 GB, free: 113.7 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00701/1.265, allocations: 2.155 MB / 0.5598 GB, free: 112.6 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002128/1.265, allocations: 218.2 kB / 0.56 GB, free: 112.5 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000895/1.266, allocations: 281.5 kB / 0.5602 GB, free: 112.4 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009747/1.276, allocations: 3.601 MB / 0.5637 GB, free: 110.7 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001395/1.276, allocations: 7.688 kB / 0.5638 GB, free: 110.7 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006676/1.277, allocations: 120.7 kB / 0.5639 GB, free: 110.6 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001784/1.277, allocations: 135.8 kB / 0.564 GB, free: 110.6 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009318/1.286, allocations: 2.89 MB / 0.5668 GB, free: 108.5 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02865/1.315, allocations: 11.63 MB / 0.5782 GB, free: 96.96 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005575/1.32, allocations: 2.176 MB / 0.5803 GB, free: 94.67 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002326/1.323, allocations: 1.075 MB / 0.5814 GB, free: 93.59 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000438/1.323, allocations: 223.3 kB / 0.5816 GB, free: 93.34 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/1.323, allocations: 47.88 kB / 0.5816 GB, free: 93.29 MB / 458.8 MB Notification: Performance of pre-optimization done (n=142): time 5.841e-06/1.323, allocations: 0 / 0.5816 GB, free: 93.29 MB / 458.8 MB Notification: Performance of matching and sorting (n=156): time 0.01807/1.341, allocations: 6.06 MB / 0.5875 GB, free: 87.18 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.96e-05/1.342, allocations: 72.72 kB / 0.5876 GB, free: 87.1 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003747/1.345, allocations: 1.69 MB / 0.5893 GB, free: 85.36 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0004137/1.346, allocations: 53.69 kB / 0.5893 GB, free: 85.3 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001023/1.347, allocations: 1.351 MB / 0.5906 GB, free: 83.94 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007301/1.348, allocations: 0.5268 MB / 0.5911 GB, free: 83.42 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001819/1.348, allocations: 40 kB / 0.5912 GB, free: 83.38 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0001354/1.348, allocations: 373.9 kB / 0.5915 GB, free: 83.01 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002063/1.35, allocations: 0.8746 MB / 0.5924 GB, free: 82.13 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002427/1.352, allocations: 1.296 MB / 0.5937 GB, free: 80.65 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002738/1.355, allocations: 1.103 MB / 0.5947 GB, free: 79.55 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.578e-05/1.355, allocations: 4 kB / 0.5947 GB, free: 79.54 MB / 458.8 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.007424/1.363, allocations: 2.86 MB / 0.5975 GB, free: 76.67 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.196e-05/1.363, allocations: 8 kB / 0.5975 GB, free: 76.66 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.683e-05/1.363, allocations: 16 kB / 0.5976 GB, free: 76.64 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001776/1.365, allocations: 446.5 kB / 0.598 GB, free: 76.2 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003563/1.368, allocations: 455.3 kB / 0.5984 GB, free: 75.75 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009749/1.378, allocations: 7.035 MB / 0.6053 GB, free: 68.32 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003123/1.381, allocations: 127.9 kB / 0.6054 GB, free: 68.2 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005611/1.382, allocations: 75.92 kB / 0.6055 GB, free: 68.12 MB / 458.8 MB Warning: Assuming fixed start value for the following 1 variables: smpm.idq_sr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "Stator space phasor current / rotor fixed frame" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (204): * Single equations (assignments): 201 * 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 {(2,100.0%) 9,(1,100.0%) 2,(2,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005513/1.382, allocations: 218.5 kB / 0.6057 GB, free: 67.9 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007114/1.383, allocations: 209.4 kB / 0.6059 GB, free: 67.7 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007984/1.391, allocations: 2.953 MB / 0.6088 GB, free: 64.72 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.919e-05/1.391, allocations: 16.19 kB / 0.6088 GB, free: 64.7 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.41e-05/1.391, allocations: 8 kB / 0.6088 GB, free: 64.7 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.89e-05/1.391, allocations: 11.91 kB / 0.6088 GB, free: 64.68 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01714/1.408, allocations: 6.127 MB / 0.6148 GB, free: 58.48 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.108e-05/1.408, allocations: 8 kB / 0.6148 GB, free: 58.47 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002367/1.411, allocations: 236 kB / 0.615 GB, free: 58.24 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004366/1.415, allocations: 0.8294 MB / 0.6158 GB, free: 57.4 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000462/1.416, allocations: 39.98 kB / 0.6159 GB, free: 57.36 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02459/1.44, allocations: 10.2 MB / 0.6258 GB, free: 46.76 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.244e-06/1.44, allocations: 4 kB / 0.6258 GB, free: 46.76 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01472/1.455, allocations: 4.373 MB / 0.6301 GB, free: 42.23 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002233/1.457, allocations: 0.4905 MB / 0.6306 GB, free: 41.71 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006878/1.458, allocations: 35.95 kB / 0.6306 GB, free: 41.68 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003067/1.461, allocations: 107.9 kB / 0.6307 GB, free: 41.57 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005619/1.462, allocations: 117.1 kB / 0.6308 GB, free: 41.46 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002369/1.462, allocations: 47.98 kB / 0.6309 GB, free: 41.41 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.004012/1.466, allocations: 1.294 MB / 0.6321 GB, free: 40.09 MB / 458.8 MB Notification: Performance of sort global known variables: time 9.12e-07/1.466, allocations: 0 / 0.6321 GB, free: 40.09 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.004909/1.471, allocations: 0.6367 MB / 0.6328 GB, free: 39.45 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (smpm.inertiaRotor.w,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],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 (113): * Single equations (assignments): 110 * 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 {(2,100.0%) 9,(1,100.0%) 2,(3,88.9%) 34} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01609/1.487, allocations: 5.968 MB / 0.6386 GB, free: 33.43 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.01508/1.502, allocations: 2.543 MB / 0.6411 GB, free: 30.86 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.299e-05/1.502, allocations: 4 kB / 0.6411 GB, free: 30.85 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00613/1.509, allocations: 1.602 MB / 0.6426 GB, free: 29.22 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006733/1.515, allocations: 497.7 kB / 0.6431 GB, free: 28.73 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02451/1.54, allocations: 5.473 MB / 0.6485 GB, free: 23.17 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00504/1.545, allocations: 2.272 MB / 0.6507 GB, free: 20.87 MB / 458.8 MB Notification: Performance of simCode: alias equations: time 0.004092/1.549, allocations: 457.7 kB / 0.6511 GB, free: 20.42 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003824/1.553, allocations: 1.128 MB / 0.6522 GB, free: 19.29 MB / 458.8 MB Notification: Performance of SimCode: time 5.48e-06/1.553, allocations: 0 / 0.6522 GB, free: 19.29 MB / 458.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1764/1.73, allocations: 56.94 MB / 0.7078 GB, free: 10.34 MB / 0.4949 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002516/1.73, allocations: 186.6 kB / 0.708 GB, free: 10.12 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.581/6.311, allocations: 0 / 0.708 GB, free: 10.12 MB / 0.4949 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat does not exist to compare? outputFormat=mat