Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.938/1.938, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.978e-05/2.985e-05, allocations: 1.562 kB / 292.2 MB, free: 8.719 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1043, allocations: 50.41 MB / 342.6 MB, free: 6.281 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4713/0.5756, allocations: 109.3 MB / 451.9 MB, free: 0.9375 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003003/0.576, allocations: 84.14 kB / 452 MB, free: 0.8945 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2369/0.8129, allocations: 50.09 MB / 0.4903 GB, free: 3.168 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.813, allocations: 3.938 kB / 0.4903 GB, free: 3.164 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002548/0.8133, allocations: 63.92 kB / 0.4904 GB, free: 3.102 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.009025/0.8223, allocations: 2.366 MB / 0.4927 GB, free: 0.6797 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.667e-05/0.8224, allocations: 12.03 kB / 0.4927 GB, free: 0.668 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001156/0.8235, allocations: 316.8 kB / 0.493 GB, free: 356 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001525/0.8251, allocations: 324.4 kB / 0.4933 GB, free: 28 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006101/0.8312, allocations: 1.684 MB / 0.4949 GB, free: 14.29 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000213/0.8315, allocations: 172.4 kB / 0.4951 GB, free: 14.11 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006909/0.8322, allocations: 220 kB / 0.4953 GB, free: 13.9 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008122/0.8403, allocations: 2.796 MB / 0.4981 GB, free: 10.96 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.765e-05/0.8405, allocations: 11.91 kB / 0.4981 GB, free: 10.95 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003553/0.8408, allocations: 95.98 kB / 0.4982 GB, free: 10.86 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001775/0.841, allocations: 104.3 kB / 0.4983 GB, free: 10.75 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007004/0.848, allocations: 2.176 MB / 0.5004 GB, free: 8.57 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02372/0.8718, allocations: 9.133 MB / 0.5093 GB, free: 15.15 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003476/0.8753, allocations: 1.69 MB / 0.5109 GB, free: 13.34 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00197/0.8773, allocations: 0.7997 MB / 0.5117 GB, free: 12.54 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004602/0.8778, allocations: 223.1 kB / 0.5119 GB, free: 12.29 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.122e-05/0.8779, allocations: 51.5 kB / 0.512 GB, free: 12.23 MB / 442.7 MB Notification: Performance of pre-optimization done (n=108): time 3.957e-06/0.8779, allocations: 0 / 0.512 GB, free: 12.23 MB / 442.7 MB Notification: Performance of matching and sorting (n=132): time 0.02493/0.9028, allocations: 6.394 MB / 0.5182 GB, free: 5.777 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.211e-05/0.9029, allocations: 68.66 kB / 0.5183 GB, free: 5.699 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003015/0.906, allocations: 1.334 MB / 0.5196 GB, free: 4.359 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002626/0.9062, allocations: 45.7 kB / 0.5196 GB, free: 4.309 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009947/0.9073, allocations: 1.058 MB / 0.5207 GB, free: 3.238 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006155/0.9079, allocations: 461.3 kB / 0.5211 GB, free: 2.781 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001454/0.908, allocations: 36 kB / 0.5212 GB, free: 2.746 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001993/0.9083, allocations: 374.8 kB / 0.5215 GB, free: 2.371 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001857/0.9101, allocations: 0.7224 MB / 0.5222 GB, free: 1.648 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002158/0.9123, allocations: 1.121 MB / 0.5233 GB, free: 356 kB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2932/1.206, allocations: 0.9091 MB / 0.5242 GB, free: 113.1 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.89e-05/1.206, allocations: 7.438 kB / 0.5242 GB, free: 113.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.007949/1.214, allocations: 2.461 MB / 0.5266 GB, free: 113 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.885e-05/1.214, allocations: 10.69 kB / 0.5266 GB, free: 113 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.903e-05/1.214, allocations: 15.44 kB / 0.5266 GB, free: 113 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002645/1.216, allocations: 0.5844 MB / 0.5272 GB, free: 113 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002866/1.219, allocations: 363.2 kB / 0.5276 GB, free: 113 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01294/1.232, allocations: 6.692 MB / 0.5341 GB, free: 110.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002492/1.235, allocations: 121.9 kB / 0.5342 GB, free: 110.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003038/1.235, allocations: 63.62 kB / 0.5343 GB, free: 110.4 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (170): * Single equations (assignments): 167 * 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.0004305/1.236, allocations: 197.4 kB / 0.5345 GB, free: 110.3 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005112/1.236, allocations: 176.8 kB / 0.5346 GB, free: 110.3 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006905/1.243, allocations: 2.341 MB / 0.5369 GB, free: 110.2 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-05/1.243, allocations: 12.91 kB / 0.5369 GB, free: 110.2 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.007e-05/1.243, allocations: 6.094 kB / 0.5369 GB, free: 110.2 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-05/1.243, allocations: 15.45 kB / 0.5369 GB, free: 110.2 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01405/1.257, allocations: 4.92 MB / 0.5417 GB, free: 109.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.429e-05/1.257, allocations: 3.344 kB / 0.5417 GB, free: 109.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00194/1.259, allocations: 222.7 kB / 0.542 GB, free: 109.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002948/1.262, allocations: 0.6561 MB / 0.5426 GB, free: 109.6 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002914/1.263, allocations: 34.2 kB / 0.5426 GB, free: 109.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01367/1.276, allocations: 8.394 MB / 0.5508 GB, free: 105.8 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.281e-06/1.276, allocations: 9.688 kB / 0.5508 GB, free: 105.8 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007713/1.284, allocations: 3.569 MB / 0.5543 GB, free: 104.3 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00127/1.285, allocations: 412.3 kB / 0.5547 GB, free: 104 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000372/1.286, allocations: 31.28 kB / 0.5547 GB, free: 104 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001758/1.287, allocations: 99.2 kB / 0.5548 GB, free: 104 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003518/1.288, allocations: 108.2 kB / 0.5549 GB, free: 104 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001294/1.288, allocations: 42.62 kB / 0.555 GB, free: 104 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002041/1.29, allocations: 1.014 MB / 0.556 GB, free: 103.6 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.21e-07/1.29, allocations: 2.25 kB / 0.556 GB, free: 103.6 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002798/1.293, allocations: 0.5564 MB / 0.5565 GB, free: 103.5 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 (104): * Single equations (assignments): 101 * 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.00864/1.302, allocations: 5.19 MB / 0.5616 GB, free: 100.5 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005526/1.307, allocations: 2.273 MB / 0.5638 GB, free: 99.55 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.197e-06/1.307, allocations: 0 / 0.5638 GB, free: 99.55 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003786/1.311, allocations: 1.469 MB / 0.5652 GB, free: 98.86 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003619/1.315, allocations: 438.1 kB / 0.5657 GB, free: 98.74 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0127/1.327, allocations: 4.522 MB / 0.5701 GB, free: 96.89 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001804/1.329, allocations: 1.902 MB / 0.5719 GB, free: 95.97 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001796/1.331, allocations: 0.8971 MB / 0.5728 GB, free: 95.26 MB / 442.7 MB Notification: Performance of SimCode: time 1.452e-06/1.331, allocations: 0 / 0.5728 GB, free: 95.26 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.688/5.019, allocations: 72.66 MB / 0.6438 GB, free: 41.79 MB / 442.7 MB