Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.974/1.974, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.568e-05/3.578e-05, allocations: 4 kB / 292.2 MB, free: 8.727 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1049, allocations: 50.4 MB / 342.6 MB, free: 6.301 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5065/0.6115, allocations: 114.7 MB / 457.3 MB, free: 11.89 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003874/0.6119, allocations: 89.42 kB / 457.4 MB, free: 11.85 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2626/0.8745, allocations: 60.17 MB / 0.5055 GB, free: 3.691 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.8746, allocations: 0 / 0.5055 GB, free: 3.691 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003915/0.875, allocations: 91.88 kB / 0.5056 GB, free: 3.602 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.01151/0.8865, allocations: 2.994 MB / 0.5085 GB, free: 0.543 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.738e-05/0.8866, allocations: 8.031 kB / 0.5085 GB, free: 0.5352 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001771/0.8884, allocations: 425.8 kB / 0.5089 GB, free: 112 kB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002615/0.891, allocations: 415.4 kB / 0.5093 GB, free: 15.7 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008277/0.8994, allocations: 2.22 MB / 0.5115 GB, free: 13.43 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003593/0.8998, allocations: 221.9 kB / 0.5117 GB, free: 13.21 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001295/0.9011, allocations: 299.9 kB / 0.512 GB, free: 12.91 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0122/0.9133, allocations: 3.696 MB / 0.5156 GB, free: 9.07 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001697/0.9135, allocations: 12.28 kB / 0.5156 GB, free: 9.059 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000814/0.9143, allocations: 127.9 kB / 0.5157 GB, free: 8.934 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002411/0.9146, allocations: 141.7 kB / 0.5158 GB, free: 8.793 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01047/0.9251, allocations: 2.967 MB / 0.5187 GB, free: 5.82 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3405/1.266, allocations: 12.19 MB / 0.5306 GB, free: 99.1 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004857/1.271, allocations: 2.071 MB / 0.5327 GB, free: 98.5 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002774/1.273, allocations: 0.9929 MB / 0.5336 GB, free: 98.49 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005231/1.274, allocations: 223.9 kB / 0.5338 GB, free: 98.3 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.813e-05/1.274, allocations: 48.84 kB / 0.5339 GB, free: 98.26 MB / 442.7 MB Notification: Performance of pre-optimization done (n=141): time 4.448e-06/1.274, allocations: 0 / 0.5339 GB, free: 98.26 MB / 442.7 MB Notification: Performance of matching and sorting (n=163): time 0.02561/1.3, allocations: 6.653 MB / 0.5404 GB, free: 97.47 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.269e-05/1.3, allocations: 68.48 kB / 0.5404 GB, free: 97.41 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004954/1.305, allocations: 1.749 MB / 0.5422 GB, free: 97.18 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004665/1.305, allocations: 55.45 kB / 0.5422 GB, free: 97.15 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001315/1.307, allocations: 1.36 MB / 0.5435 GB, free: 96.62 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009283/1.308, allocations: 0.5577 MB / 0.5441 GB, free: 96.33 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002218/1.308, allocations: 41.06 kB / 0.5441 GB, free: 96.33 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001757/1.308, allocations: 393.2 kB / 0.5445 GB, free: 96.01 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002477/1.31, allocations: 0.908 MB / 0.5454 GB, free: 96.01 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003112/1.314, allocations: 1.449 MB / 0.5468 GB, free: 95.38 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002915/1.317, allocations: 1.16 MB / 0.5479 GB, free: 95.36 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.987e-05/1.317, allocations: 7.75 kB / 0.5479 GB, free: 95.36 MB / 442.7 MB Notification: Performance of matching and sorting (n=252) (initialization): time 0.008268/1.325, allocations: 2.959 MB / 0.5508 GB, free: 95.21 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.054e-05/1.325, allocations: 19.25 kB / 0.5508 GB, free: 95.21 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.554e-05/1.325, allocations: 20.83 kB / 0.5509 GB, free: 95.21 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002268/1.327, allocations: 0.5488 MB / 0.5514 GB, free: 95.18 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003517/1.331, allocations: 472 kB / 0.5519 GB, free: 95.18 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01032/1.341, allocations: 6.273 MB / 0.558 GB, free: 92.54 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003157/1.345, allocations: 148.6 kB / 0.5581 GB, free: 92.54 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005065/1.345, allocations: 85.56 kB / 0.5582 GB, free: 92.54 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * Number of states: 0 () * Number of discrete variables: 1 (sinCosEvaluation.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (226): * Single equations (assignments): 223 * 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.0005276/1.346, allocations: 230.3 kB / 0.5584 GB, free: 92.41 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007794/1.346, allocations: 216.6 kB / 0.5586 GB, free: 92.3 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007683/1.354, allocations: 2.797 MB / 0.5614 GB, free: 91.74 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.349e-05/1.354, allocations: 15.98 kB / 0.5614 GB, free: 91.74 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.422e-05/1.354, allocations: 7.594 kB / 0.5614 GB, free: 91.74 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.286e-05/1.354, allocations: 9.656 kB / 0.5614 GB, free: 91.74 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01673/1.371, allocations: 6.003 MB / 0.5673 GB, free: 89.41 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.83e-05/1.371, allocations: 3.719 kB / 0.5673 GB, free: 89.41 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002477/1.374, allocations: 284.1 kB / 0.5675 GB, free: 89.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002574/1.376, allocations: 0.5905 MB / 0.5681 GB, free: 89.24 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003234/1.377, allocations: 40.5 kB / 0.5681 GB, free: 89.22 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01204/1.389, allocations: 7.974 MB / 0.5759 GB, free: 83.69 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/1.389, allocations: 3.594 kB / 0.5759 GB, free: 83.69 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01042/1.399, allocations: 4.293 MB / 0.5801 GB, free: 81.67 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001938/1.401, allocations: 0.495 MB / 0.5806 GB, free: 81.36 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009101/1.402, allocations: 38.38 kB / 0.5806 GB, free: 81.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00269/1.405, allocations: 102 kB / 0.5807 GB, free: 81.32 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005114/1.405, allocations: 123.8 kB / 0.5809 GB, free: 81.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001889/1.405, allocations: 45.55 kB / 0.5809 GB, free: 81.29 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003071/1.409, allocations: 1.331 MB / 0.5822 GB, free: 80.74 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.012e-06/1.409, allocations: 0 / 0.5822 GB, free: 80.74 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004038/1.413, allocations: 0.64 MB / 0.5828 GB, free: 80.67 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],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x,sinCosEvaluation.integrator.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (141): * Single equations (assignments): 138 * 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.01113/1.424, allocations: 5.925 MB / 0.5886 GB, free: 77.39 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006594/1.43, allocations: 2.646 MB / 0.5912 GB, free: 76.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.538e-06/1.431, allocations: 0 / 0.5912 GB, free: 76.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003779/1.434, allocations: 1.586 MB / 0.5927 GB, free: 75.55 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004584/1.439, allocations: 0.5083 MB / 0.5932 GB, free: 75.41 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0172/1.456, allocations: 5.624 MB / 0.5987 GB, free: 73.12 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003375/1.46, allocations: 2.308 MB / 0.601 GB, free: 72.12 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002891/1.463, allocations: 1.198 MB / 0.6022 GB, free: 71.16 MB / 442.7 MB Notification: Performance of SimCode: time 1.503e-06/1.463, allocations: 0 / 0.6022 GB, free: 71.16 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.863/5.325, allocations: 92.67 MB / 0.6927 GB, free: 5.648 MB / 458.7 MB