Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.693/1.693, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.108e-05/3.115e-05, allocations: 7.438 kB / 225.1 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2502/0.2502, allocations: 38.77 MB / 263.9 MB, free: 9.855 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1834/0.4336, allocations: 103 MB / 366.9 MB, free: 2.695 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003263/0.434, allocations: 91.94 kB / 366.9 MB, free: 2.605 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4217/0.8557, allocations: 56.32 MB / 423.3 MB, free: 52.09 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.384e-06/0.8557, allocations: 0 / 423.3 MB, free: 52.09 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003063/0.8561, allocations: 87.81 kB / 423.3 MB, free: 52 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 744 * Number of variables: 744 Notification: Performance of Generate backend data structure: time 0.009493/0.8656, allocations: 2.849 MB / 426.2 MB, free: 49.09 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.06e-05/0.8656, allocations: 8.031 kB / 426.2 MB, free: 49.09 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001511/0.8672, allocations: 405 kB / 426.6 MB, free: 48.68 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002221/0.8694, allocations: 395.6 kB / 427 MB, free: 48.29 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00582/0.8753, allocations: 1.914 MB / 428.9 MB, free: 46.32 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002594/0.8756, allocations: 217.7 kB / 429.1 MB, free: 46.11 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001136/0.8767, allocations: 287.9 kB / 429.4 MB, free: 45.82 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01286/0.8896, allocations: 3.571 MB / 433 MB, free: 42.11 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002349/0.8899, allocations: 7.938 kB / 433 MB, free: 42.1 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007772/0.8907, allocations: 120 kB / 433.1 MB, free: 41.98 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002456/0.8909, allocations: 133.5 kB / 433.2 MB, free: 41.85 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02237/0.9133, allocations: 2.826 MB / 436 MB, free: 39.02 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05714/0.9705, allocations: 11.52 MB / 447.6 MB, free: 27.16 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003746/0.9743, allocations: 1.895 MB / 449.5 MB, free: 25.15 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002142/0.9765, allocations: 0.9207 MB / 450.4 MB, free: 24.23 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004156/0.977, allocations: 138 kB / 450.5 MB, free: 24.07 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.027e-05/0.977, allocations: 47.56 kB / 450.6 MB, free: 24.02 MB / 314.7 MB Notification: Performance of pre-optimization done (n=126): time 3.968e-06/0.977, allocations: 0 / 450.6 MB, free: 24.02 MB / 314.7 MB Notification: Performance of matching and sorting (n=147): time 0.02016/0.9972, allocations: 6.323 MB / 456.9 MB, free: 17.64 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.905e-05/0.9973, allocations: 64.72 kB / 456.9 MB, free: 17.56 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003075/1, allocations: 1.545 MB / 458.5 MB, free: 15.97 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003467/1.001, allocations: 49.7 kB / 458.5 MB, free: 15.92 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008618/1.002, allocations: 1.302 MB / 459.8 MB, free: 14.6 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006246/1.002, allocations: 0.5045 MB / 460.3 MB, free: 14.09 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000163/1.002, allocations: 40 kB / 460.4 MB, free: 14.05 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001334/1.003, allocations: 386.7 kB / 460.8 MB, free: 13.66 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001877/1.004, allocations: 0.8513 MB / 461.6 MB, free: 12.81 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002148/1.007, allocations: 1.377 MB / 463 MB, free: 11.2 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002304/1.009, allocations: 1.09 MB / 464.1 MB, free: 10.11 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-05/1.009, allocations: 8 kB / 464.1 MB, free: 10.1 MB / 314.7 MB Notification: Performance of matching and sorting (n=233) (initialization): time 0.006798/1.016, allocations: 2.787 MB / 466.9 MB, free: 7.297 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.613e-05/1.016, allocations: 13.72 kB / 466.9 MB, free: 7.285 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.784e-05/1.016, allocations: 16 kB / 466.9 MB, free: 7.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002163/1.018, allocations: 0.5493 MB / 467.5 MB, free: 6.711 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003017/1.021, allocations: 435.3 kB / 467.9 MB, free: 6.285 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01009/1.031, allocations: 6.261 MB / 474.1 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002618/1.034, allocations: 127.8 kB / 474.3 MB, free: 15.62 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003396/1.034, allocations: 91.92 kB / 474.4 MB, free: 15.53 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (207): * Single equations (assignments): 204 * 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.0005008/1.035, allocations: 212.4 kB / 474.6 MB, free: 15.32 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000576/1.035, allocations: 201.5 kB / 474.8 MB, free: 15.12 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007749/1.043, allocations: 2.605 MB / 477.4 MB, free: 12.49 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.449e-05/1.043, allocations: 16 kB / 477.4 MB, free: 12.48 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.487e-05/1.043, allocations: 8.125 kB / 477.4 MB, free: 12.47 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.724e-05/1.043, allocations: 15.91 kB / 477.4 MB, free: 12.45 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01683/1.06, allocations: 5.585 MB / 483 MB, free: 6.754 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.605e-05/1.06, allocations: 4 kB / 483 MB, free: 6.75 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002235/1.062, allocations: 252 kB / 483.2 MB, free: 6.504 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002755/1.065, allocations: 0.5884 MB / 483.8 MB, free: 5.906 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002747/1.065, allocations: 35.98 kB / 483.9 MB, free: 5.871 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0145/1.08, allocations: 7.972 MB / 491.8 MB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/1.08, allocations: 0 / 491.8 MB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0101/1.09, allocations: 3.988 MB / 495.8 MB, free: 9.344 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001551/1.092, allocations: 474.3 kB / 496.3 MB, free: 8.859 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004127/1.092, allocations: 35.98 kB / 496.3 MB, free: 8.824 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001783/1.094, allocations: 91.88 kB / 496.4 MB, free: 8.734 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003499/1.094, allocations: 113.1 kB / 496.5 MB, free: 8.625 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001571/1.095, allocations: 39.98 kB / 496.6 MB, free: 8.586 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002793/1.097, allocations: 1.177 MB / 497.7 MB, free: 7.379 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.32e-07/1.097, allocations: 0 / 497.7 MB, free: 7.379 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003153/1.1, allocations: 0.6016 MB / 498.3 MB, free: 6.777 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (smpm.inertiaRotor.w,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 (122): * Single equations (assignments): 119 * 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.01126/1.112, allocations: 5.574 MB / 0.4921 GB, free: 1.105 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.2317/1.344, allocations: 2.498 MB / 0.4945 GB, free: 84.56 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.024e-06/1.344, allocations: 0 / 0.4945 GB, free: 84.56 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003392/1.347, allocations: 1.502 MB / 0.496 GB, free: 84.23 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003518/1.351, allocations: 469.9 kB / 0.4965 GB, free: 84.21 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0137/1.364, allocations: 5.231 MB / 0.5016 GB, free: 83.12 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002288/1.367, allocations: 2.226 MB / 0.5037 GB, free: 82.38 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002154/1.369, allocations: 1.098 MB / 0.5048 GB, free: 82.37 MB / 346.7 MB Notification: Performance of SimCode: time 1.262e-06/1.369, allocations: 0 / 0.5048 GB, free: 82.37 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.715/5.084, allocations: 87.07 MB / 0.5898 GB, free: 21.31 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource_res.mat does not exist to compare? outputFormat=mat