Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.075/2.075, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.859e-05/2.841e-05, allocations: 0 / 292.2 MB, free: 8.746 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1148, allocations: 50.41 MB / 342.6 MB, free: 6.316 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5651/0.6799, allocations: 131.7 MB / 474.4 MB, free: 11.02 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003383/0.6803, allocations: 97.94 kB / 474.5 MB, free: 10.97 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7955/1.476, allocations: 124.4 MB / 0.5849 GB, free: 97.12 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.295e-06/1.476, allocations: 0 / 0.5849 GB, free: 97.12 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006033/1.476, allocations: 138.7 kB / 0.585 GB, free: 97.09 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.02161/1.498, allocations: 5.141 MB / 0.59 GB, free: 94.69 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.361e-05/1.498, allocations: 8.125 kB / 0.5901 GB, free: 94.69 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003061/1.501, allocations: 0.7327 MB / 0.5908 GB, free: 94.28 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008499/1.51, allocations: 1.006 MB / 0.5917 GB, free: 93.9 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0181/1.528, allocations: 4.595 MB / 0.5962 GB, free: 91.64 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005851/1.529, allocations: 405.7 kB / 0.5966 GB, free: 91.46 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002541/1.531, allocations: 0.5177 MB / 0.5971 GB, free: 91.29 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02492/1.556, allocations: 6.768 MB / 0.6037 GB, free: 87.99 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003788/1.557, allocations: 14.75 kB / 0.6038 GB, free: 87.98 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002221/1.559, allocations: 229.1 kB / 0.604 GB, free: 87.78 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003437/1.559, allocations: 242.6 kB / 0.6042 GB, free: 87.54 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01895/1.578, allocations: 5.355 MB / 0.6094 GB, free: 82.18 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06259/1.641, allocations: 22.53 MB / 0.6314 GB, free: 59.26 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01243/1.653, allocations: 8.243 MB / 0.6395 GB, free: 50.13 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005617/1.659, allocations: 2.105 MB / 0.6415 GB, free: 48.02 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02037/1.679, allocations: 6.314 MB / 0.6477 GB, free: 41.64 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.828e-05/1.679, allocations: 60.56 kB / 0.6478 GB, free: 41.58 MB / 442.7 MB Notification: Performance of pre-optimization done (n=227): time 5.501e-06/1.68, allocations: 0 / 0.6478 GB, free: 41.58 MB / 442.7 MB Notification: Performance of matching and sorting (n=254): time 0.03682/1.716, allocations: 10.08 MB / 0.6576 GB, free: 31.44 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.109e-05/1.716, allocations: 77.41 kB / 0.6577 GB, free: 31.35 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007042/1.723, allocations: 2.725 MB / 0.6603 GB, free: 28.62 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006409/1.724, allocations: 73.64 kB / 0.6604 GB, free: 28.55 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00202/1.726, allocations: 2.315 MB / 0.6627 GB, free: 26.21 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001287/1.728, allocations: 0.8807 MB / 0.6635 GB, free: 25.34 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003644/1.728, allocations: 64 kB / 0.6636 GB, free: 25.28 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002377/1.728, allocations: 441.6 kB / 0.664 GB, free: 24.84 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003539/1.732, allocations: 1.322 MB / 0.6653 GB, free: 23.52 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004324/1.736, allocations: 2.279 MB / 0.6675 GB, free: 20.81 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004512/1.741, allocations: 1.734 MB / 0.6692 GB, free: 19.05 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.604e-05/1.741, allocations: 8 kB / 0.6692 GB, free: 19.04 MB / 442.7 MB Notification: Performance of matching and sorting (n=415) (initialization): time 0.01224/1.753, allocations: 4.464 MB / 0.6736 GB, free: 14.5 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.848e-05/1.753, allocations: 24.12 kB / 0.6736 GB, free: 14.47 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.255e-05/1.753, allocations: 32 kB / 0.6736 GB, free: 14.44 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002882/1.756, allocations: 0.7198 MB / 0.6743 GB, free: 13.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005881/1.762, allocations: 0.7527 MB / 0.6751 GB, free: 12.95 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01427/1.776, allocations: 9.759 MB / 0.6846 GB, free: 2.656 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005303/1.782, allocations: 195.8 kB / 0.6848 GB, free: 2.465 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001036/1.783, allocations: 144 kB / 0.6849 GB, free: 2.324 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 139 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (378): * Single equations (assignments): 372 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(6,72.2%) 23,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001031/1.784, allocations: 307.9 kB / 0.6852 GB, free: 2.016 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001378/1.785, allocations: 359.6 kB / 0.6856 GB, free: 1.66 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3625/2.148, allocations: 4.207 MB / 0.6897 GB, free: 86.3 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.154e-05/2.148, allocations: 25.09 kB / 0.6897 GB, free: 86.3 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.303e-05/2.148, allocations: 10.28 kB / 0.6897 GB, free: 86.3 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-05/2.148, allocations: 14.66 kB / 0.6897 GB, free: 86.3 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03109/2.179, allocations: 9.199 MB / 0.6987 GB, free: 85.46 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.13e-05/2.179, allocations: 3.281 kB / 0.6987 GB, free: 85.46 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004382/2.184, allocations: 411.6 kB / 0.6991 GB, free: 85.46 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004811/2.188, allocations: 0.9573 MB / 0.7 GB, free: 85.41 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006515/2.189, allocations: 68.7 kB / 0.7001 GB, free: 85.41 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0246/2.214, allocations: 15.95 MB / 0.7157 GB, free: 76.38 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.685e-06/2.214, allocations: 6.469 kB / 0.7157 GB, free: 76.38 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01598/2.23, allocations: 6.369 MB / 0.7219 GB, free: 75.22 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002894/2.233, allocations: 0.7229 MB / 0.7226 GB, free: 75.12 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001401/2.234, allocations: 59.72 kB / 0.7227 GB, free: 75.12 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004271/2.239, allocations: 158 kB / 0.7228 GB, free: 75.12 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001003/2.24, allocations: 191.4 kB / 0.723 GB, free: 75.12 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003079/2.24, allocations: 77.23 kB / 0.7231 GB, free: 75.12 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005744/2.246, allocations: 2.057 MB / 0.7251 GB, free: 74.82 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.132e-06/2.246, allocations: 0 / 0.7251 GB, free: 74.82 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006847/2.253, allocations: 1.088 MB / 0.7262 GB, free: 74.71 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (197): * Single equations (assignments): 190 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,72.2%) 23,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01812/2.271, allocations: 8.396 MB / 0.7344 GB, free: 70.17 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01058/2.281, allocations: 4.047 MB / 0.7383 GB, free: 68.38 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.172e-05/2.282, allocations: 5 kB / 0.7383 GB, free: 68.38 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007464/2.289, allocations: 2.71 MB / 0.741 GB, free: 66.95 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007922/2.297, allocations: 0.8783 MB / 0.7418 GB, free: 66.72 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03203/2.329, allocations: 9.534 MB / 0.7511 GB, free: 62.86 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007191/2.336, allocations: 3.451 MB / 0.7545 GB, free: 61.59 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00566/2.342, allocations: 2.111 MB / 0.7566 GB, free: 59.85 MB / 442.7 MB Notification: Performance of SimCode: time 1.432e-06/2.342, allocations: 0 / 0.7566 GB, free: 59.85 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.322/7.664, allocations: 252.2 MB / 1.003 GB, free: 24.92 MB / 474.7 MB