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.636/1.636, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.125e-05/3.13e-05, allocations: 0 / 225.1 MB, free: 2.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2513, allocations: 38.77 MB / 263.8 MB, free: 9.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1712/0.4226, allocations: 103 MB / 366.8 MB, free: 2.707 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003133/0.4229, allocations: 87.95 kB / 366.9 MB, free: 2.621 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4164/0.8393, allocations: 56.33 MB / 423.2 MB, free: 52.1 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.8394, allocations: 0 / 423.2 MB, free: 52.1 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002479/0.8396, allocations: 83.88 kB / 423.3 MB, free: 52.02 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.007879/0.8475, allocations: 2.845 MB / 426.2 MB, free: 49.11 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/0.8476, allocations: 8.031 kB / 426.2 MB, free: 49.11 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008626/0.8485, allocations: 409 kB / 426.6 MB, free: 48.7 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001409/0.8499, allocations: 399.6 kB / 427 MB, free: 48.3 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004929/0.8548, allocations: 1.906 MB / 428.9 MB, free: 46.34 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000161/0.855, allocations: 221.6 kB / 429.1 MB, free: 46.12 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005911/0.8556, allocations: 279.9 kB / 429.4 MB, free: 45.85 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007998/0.8636, allocations: 3.609 MB / 433 MB, free: 42.09 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.492e-05/0.8638, allocations: 4 kB / 433 MB, free: 42.09 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003877/0.8642, allocations: 124 kB / 433.1 MB, free: 41.96 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001613/0.8643, allocations: 129.5 kB / 433.2 MB, free: 41.84 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006919/0.8713, allocations: 2.864 MB / 436.1 MB, free: 38.96 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02409/0.8954, allocations: 11.52 MB / 447.6 MB, free: 27.1 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003337/0.8988, allocations: 1.919 MB / 449.5 MB, free: 25.06 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001829/0.9006, allocations: 0.9207 MB / 450.4 MB, free: 24.14 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003936/0.901, allocations: 138 kB / 450.6 MB, free: 23.99 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.818e-05/0.9011, allocations: 47.56 kB / 450.6 MB, free: 23.94 MB / 314.7 MB Notification: Performance of pre-optimization done (n=126): time 3.567e-06/0.9011, allocations: 0 / 450.6 MB, free: 23.94 MB / 314.7 MB Notification: Performance of matching and sorting (n=147): time 0.01894/0.92, allocations: 6.327 MB / 456.9 MB, free: 17.55 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.266e-05/0.9201, allocations: 68.72 kB / 457 MB, free: 17.47 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002826/0.9229, allocations: 1.537 MB / 458.6 MB, free: 15.89 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000177/0.9231, allocations: 49.7 kB / 458.6 MB, free: 15.84 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007926/0.9239, allocations: 1.302 MB / 459.9 MB, free: 14.52 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004342/0.9244, allocations: 0.5084 MB / 460.4 MB, free: 14 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001525/0.9246, allocations: 36 kB / 460.4 MB, free: 13.97 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.9247, allocations: 386.7 kB / 460.8 MB, free: 13.58 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001832/0.9265, allocations: 0.8474 MB / 461.7 MB, free: 12.73 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002087/0.9286, allocations: 1.393 MB / 463.1 MB, free: 11.11 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002223/0.9309, allocations: 1.09 MB / 464.2 MB, free: 10.01 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.15e-05/0.9309, allocations: 4 kB / 464.2 MB, free: 10.01 MB / 314.7 MB Notification: Performance of matching and sorting (n=233) (initialization): time 0.0065/0.9374, allocations: 2.837 MB / 467 MB, free: 7.152 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.045e-05/0.9375, allocations: 12 kB / 467 MB, free: 7.141 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.506e-05/0.9375, allocations: 16 kB / 467 MB, free: 7.125 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00213/0.9396, allocations: 0.5493 MB / 467.6 MB, free: 6.566 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002812/0.9425, allocations: 439.3 kB / 468 MB, free: 6.137 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009847/0.9523, allocations: 6.257 MB / 474.3 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002494/0.9549, allocations: 135.8 kB / 474.4 MB, free: 15.47 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002318/0.9551, allocations: 80 kB / 474.5 MB, free: 15.39 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.000486/0.9556, allocations: 216.4 kB / 474.7 MB, free: 15.17 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004526/0.9561, allocations: 201.5 kB / 474.9 MB, free: 14.97 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007408/0.9635, allocations: 2.605 MB / 477.5 MB, free: 12.34 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.053e-05/0.9636, allocations: 16 kB / 477.5 MB, free: 12.33 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.42e-05/0.9636, allocations: 8 kB / 477.5 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.256e-05/0.9636, allocations: 7.969 kB / 477.5 MB, free: 12.31 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01546/0.9791, allocations: 5.601 MB / 483.1 MB, free: 6.594 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.279e-05/0.9791, allocations: 4 kB / 483.1 MB, free: 6.59 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002102/0.9812, allocations: 256 kB / 483.4 MB, free: 6.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002707/0.984, allocations: 0.5766 MB / 483.9 MB, free: 5.754 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001587/0.9841, allocations: 43.92 kB / 484 MB, free: 5.711 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01439/0.9985, allocations: 7.961 MB / 491.9 MB, free: 13.36 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.903e-06/0.9986, allocations: 7.938 kB / 492 MB, free: 13.35 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009978/1.009, allocations: 3.992 MB / 495.9 MB, free: 9.191 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001511/1.01, allocations: 478.3 kB / 496.4 MB, free: 8.703 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003818/1.011, allocations: 28 kB / 496.4 MB, free: 8.676 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001715/1.012, allocations: 103.8 kB / 496.5 MB, free: 8.574 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003747/1.013, allocations: 105.2 kB / 496.6 MB, free: 8.473 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001705/1.013, allocations: 36 kB / 496.7 MB, free: 8.438 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002727/1.016, allocations: 1.181 MB / 497.9 MB, free: 7.227 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.01e-07/1.016, allocations: 0 / 497.9 MB, free: 7.227 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002804/1.018, allocations: 0.6016 MB / 498.5 MB, free: 6.625 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.01103/1.029, allocations: 5.551 MB / 0.4922 GB, free: 0.957 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.2501/1.28, allocations: 2.558 MB / 0.4947 GB, free: 84.8 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.478e-06/1.28, allocations: 0 / 0.4947 GB, free: 84.8 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004658/1.284, allocations: 1.538 MB / 0.4962 GB, free: 84.45 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004609/1.289, allocations: 472.8 kB / 0.4967 GB, free: 84.43 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0153/1.304, allocations: 5.237 MB / 0.5018 GB, free: 83.34 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002239/1.307, allocations: 2.224 MB / 0.5039 GB, free: 82.59 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002092/1.309, allocations: 1.102 MB / 0.505 GB, free: 82.59 MB / 346.7 MB Notification: Performance of SimCode: time 1.342e-06/1.309, allocations: 0 / 0.505 GB, free: 82.59 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.583/4.892, allocations: 87.34 MB / 0.5903 GB, free: 20.91 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