Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.953/1.953, allocations: 194.9 MB / 208.4 MB, free: 3.176 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.311e-05/3.314e-05, allocations: 4 kB / 255.4 MB, free: 3.102 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09919/0.09925, allocations: 44.51 MB / 299.9 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4809/0.5802, allocations: 103.8 MB / 403.7 MB, free: 11.12 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003033/0.5805, allocations: 87.8 kB / 403.8 MB, free: 11.11 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2118/0.7923, allocations: 49.72 MB / 453.5 MB, free: 14.11 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.7924, allocations: 0 / 453.5 MB, free: 14.11 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003156/0.7927, allocations: 63.94 kB / 453.6 MB, free: 14.05 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 578 * Number of variables: 578 Notification: Performance of Generate backend data structure: time 0.00915/0.8019, allocations: 2.338 MB / 455.9 MB, free: 11.81 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.996e-05/0.802, allocations: 12.03 kB / 455.9 MB, free: 11.8 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001429/0.8034, allocations: 325.1 kB / 456.3 MB, free: 11.61 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001882/0.8053, allocations: 312.6 kB / 456.6 MB, free: 11.3 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00632/0.8117, allocations: 1.671 MB / 458.2 MB, free: 9.98 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002384/0.812, allocations: 169.5 kB / 458.4 MB, free: 9.879 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009761/0.813, allocations: 221.8 kB / 458.6 MB, free: 9.734 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009869/0.8228, allocations: 2.803 MB / 461.4 MB, free: 7.09 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001185/0.823, allocations: 7.906 kB / 461.4 MB, free: 7.082 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005003/0.8235, allocations: 95.98 kB / 461.5 MB, free: 6.988 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001783/0.8237, allocations: 104.3 kB / 461.6 MB, free: 6.883 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008219/0.8319, allocations: 2.2 MB / 463.8 MB, free: 4.668 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02882/0.8608, allocations: 9.09 MB / 472.9 MB, free: 11.29 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003916/0.8648, allocations: 1.686 MB / 474.6 MB, free: 9.488 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002249/0.8671, allocations: 0.8002 MB / 475.4 MB, free: 8.691 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005095/0.8676, allocations: 223.1 kB / 475.6 MB, free: 8.438 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.548e-05/0.8677, allocations: 43.56 kB / 475.7 MB, free: 8.387 MB / 362.7 MB Notification: Performance of pre-optimization done (n=107): time 3.627e-06/0.8677, allocations: 0 / 475.7 MB, free: 8.387 MB / 362.7 MB Notification: Performance of matching and sorting (n=130): time 0.02675/0.8945, allocations: 6.344 MB / 482 MB, free: 1.984 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.71e-05/0.8946, allocations: 64.72 kB / 482.1 MB, free: 1.91 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003459/0.898, allocations: 1.325 MB / 483.4 MB, free: 0.5781 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003648/0.8984, allocations: 45.7 kB / 483.4 MB, free: 0.5273 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001074/0.8995, allocations: 1.046 MB / 484.5 MB, free: 15.47 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007749/0.9003, allocations: 457.3 kB / 484.9 MB, free: 15.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001629/0.9005, allocations: 36 kB / 485 MB, free: 14.98 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002272/0.9007, allocations: 370.8 kB / 485.3 MB, free: 14.61 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003153/0.9039, allocations: 0.7107 MB / 486 MB, free: 13.9 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002647/0.9066, allocations: 1.145 MB / 487.2 MB, free: 12.58 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00244/0.9091, allocations: 0.9067 MB / 488.1 MB, free: 11.67 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.148e-05/0.9091, allocations: 7.938 kB / 488.1 MB, free: 11.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=198) (initialization): time 0.007266/0.9164, allocations: 2.478 MB / 490.6 MB, free: 9.168 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.516e-05/0.9165, allocations: 12 kB / 490.6 MB, free: 9.156 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.031e-05/0.9165, allocations: 12 kB / 490.6 MB, free: 9.145 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002763/0.9193, allocations: 0.5882 MB / 491.2 MB, free: 8.547 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002766/0.9221, allocations: 355.5 kB / 491.5 MB, free: 8.199 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01374/0.9359, allocations: 6.691 MB / 498.2 MB, free: 1.238 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002466/0.9384, allocations: 111.9 kB / 498.3 MB, free: 1.129 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002438/0.9387, allocations: 67.98 kB / 498.4 MB, free: 1.062 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (168): * Single equations (assignments): 165 * 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 {(6,72.2%) 23,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004382/0.9391, allocations: 192.5 kB / 498.6 MB, free: 0.8672 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004636/0.9396, allocations: 169.9 kB / 498.8 MB, free: 0.6992 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006962/0.9466, allocations: 2.332 MB / 0.4893 GB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.197e-05/0.9466, allocations: 20 kB / 0.4894 GB, free: 14.32 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.22e-05/0.9466, allocations: 4 kB / 0.4894 GB, free: 14.32 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.892e-05/0.9467, allocations: 7.969 kB / 0.4894 GB, free: 14.31 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02007/0.9668, allocations: 4.872 MB / 0.4941 GB, free: 9.332 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.979e-05/0.9669, allocations: 4 kB / 0.4941 GB, free: 9.328 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002738/0.9696, allocations: 216 kB / 0.4943 GB, free: 9.117 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005444/0.9751, allocations: 0.6469 MB / 0.495 GB, free: 8.461 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004019/0.9755, allocations: 31.98 kB / 0.495 GB, free: 8.43 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02174/0.9973, allocations: 8.379 MB / 0.5032 GB, free: 15.64 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.9974, allocations: 4 kB / 0.5032 GB, free: 15.64 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00963/1.007, allocations: 3.524 MB / 0.5066 GB, free: 11.98 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001597/1.009, allocations: 414.8 kB / 0.507 GB, free: 11.55 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000476/1.009, allocations: 27.98 kB / 0.5071 GB, free: 11.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002013/1.011, allocations: 99.89 kB / 0.5072 GB, free: 11.43 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004559/1.012, allocations: 108.7 kB / 0.5073 GB, free: 11.32 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001555/1.012, allocations: 39.98 kB / 0.5073 GB, free: 11.28 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002708/1.015, allocations: 1.011 MB / 0.5083 GB, free: 10.27 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.11e-07/1.015, allocations: 0 / 0.5083 GB, free: 10.27 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003016/1.018, allocations: 0.5507 MB / 0.5088 GB, free: 9.723 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 99 * 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 {(6,72.2%) 23,(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.01084/1.028, allocations: 5.067 MB / 0.5138 GB, free: 4.547 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006724/1.035, allocations: 2.317 MB / 0.516 GB, free: 2.18 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/1.035, allocations: 0 / 0.516 GB, free: 2.18 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004564/1.04, allocations: 1.49 MB / 0.5175 GB, free: 0.6523 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003751/1.044, allocations: 429.1 kB / 0.5179 GB, free: 236 kB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2973/1.341, allocations: 4.485 MB / 0.5223 GB, free: 107.5 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002274/1.343, allocations: 1.897 MB / 0.5241 GB, free: 106.8 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001907/1.345, allocations: 0.8856 MB / 0.525 GB, free: 106.8 MB / 410.7 MB Notification: Performance of SimCode: time 1.403e-06/1.345, allocations: 0 / 0.525 GB, free: 106.8 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.654/4.999, allocations: 72.31 MB / 0.5956 GB, free: 73.61 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat