Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.007/2.007, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.245e-05/3.255e-05, allocations: 4 kB / 292.2 MB, free: 8.738 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1038, allocations: 50.42 MB / 342.6 MB, free: 6.293 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4655/0.5693, allocations: 105.9 MB / 448.6 MB, free: 4.605 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003174/0.5697, allocations: 84.38 kB / 448.6 MB, free: 4.562 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1974/0.7671, allocations: 46.29 MB / 494.9 MB, free: 10.48 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.7672, allocations: 0 / 494.9 MB, free: 10.48 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002387/0.7674, allocations: 67.88 kB / 495 MB, free: 10.41 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.008207/0.7756, allocations: 2.251 MB / 497.3 MB, free: 8.105 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.364e-05/0.7757, allocations: 12.03 kB / 497.3 MB, free: 8.094 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001028/0.7768, allocations: 312 kB / 497.6 MB, free: 7.777 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001534/0.7783, allocations: 300.7 kB / 497.9 MB, free: 7.48 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005647/0.784, allocations: 1.588 MB / 499.5 MB, free: 5.832 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002213/0.7843, allocations: 156.2 kB / 499.6 MB, free: 5.676 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007724/0.785, allocations: 215.9 kB / 499.8 MB, free: 5.465 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008174/0.7932, allocations: 2.683 MB / 0.4907 GB, free: 2.645 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.797e-05/0.7934, allocations: 3.906 kB / 0.4907 GB, free: 2.641 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003683/0.7938, allocations: 88 kB / 0.4908 GB, free: 2.555 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001684/0.7939, allocations: 100.2 kB / 0.4909 GB, free: 2.453 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007085/0.801, allocations: 2.105 MB / 0.493 GB, free: 348 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02451/0.8256, allocations: 8.632 MB / 0.5014 GB, free: 7.461 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00394/0.8296, allocations: 1.671 MB / 0.503 GB, free: 5.668 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002113/0.8318, allocations: 0.7809 MB / 0.5038 GB, free: 4.891 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004903/0.8323, allocations: 223.1 kB / 0.504 GB, free: 4.633 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.115e-05/0.8323, allocations: 43.56 kB / 0.504 GB, free: 4.582 MB / 426.7 MB Notification: Performance of pre-optimization done (n=104): time 3.697e-06/0.8324, allocations: 0 / 0.504 GB, free: 4.582 MB / 426.7 MB Notification: Performance of matching and sorting (n=126): time 0.02401/0.8564, allocations: 5.982 MB / 0.5099 GB, free: 14.55 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.563e-05/0.8565, allocations: 64.41 kB / 0.5099 GB, free: 14.47 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003015/0.8595, allocations: 1.233 MB / 0.5111 GB, free: 13.23 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003259/0.8599, allocations: 45.7 kB / 0.5112 GB, free: 13.18 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000963/0.8608, allocations: 0.9876 MB / 0.5122 GB, free: 12.18 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006579/0.8615, allocations: 441.7 kB / 0.5126 GB, free: 11.74 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001479/0.8617, allocations: 28 kB / 0.5126 GB, free: 11.71 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002008/0.8619, allocations: 374.8 kB / 0.513 GB, free: 11.34 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001859/0.8638, allocations: 0.699 MB / 0.5136 GB, free: 10.64 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002126/0.8659, allocations: 1.06 MB / 0.5147 GB, free: 9.426 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002267/0.8682, allocations: 0.8716 MB / 0.5155 GB, free: 8.555 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.245e-05/0.8683, allocations: 8 kB / 0.5155 GB, free: 8.547 MB / 442.7 MB Notification: Performance of matching and sorting (n=187) (initialization): time 0.006842/0.8751, allocations: 2.377 MB / 0.5179 GB, free: 6.152 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.63e-05/0.8752, allocations: 8.25 kB / 0.5179 GB, free: 6.145 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.807e-05/0.8752, allocations: 16 kB / 0.5179 GB, free: 6.129 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002581/0.8778, allocations: 0.5792 MB / 0.5184 GB, free: 5.543 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00263/0.8805, allocations: 339.5 kB / 0.5188 GB, free: 5.211 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.298/1.178, allocations: 6.315 MB / 0.5249 GB, free: 114.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002324/1.181, allocations: 114 kB / 0.525 GB, free: 114.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002704/1.181, allocations: 62.14 kB / 0.5251 GB, free: 114.5 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (158): * Single equations (assignments): 155 * 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%) 22,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003858/1.182, allocations: 187.3 kB / 0.5253 GB, free: 114.4 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005139/1.182, allocations: 163.8 kB / 0.5254 GB, free: 114.4 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006921/1.189, allocations: 2.293 MB / 0.5277 GB, free: 114.3 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.622e-05/1.189, allocations: 13.09 kB / 0.5277 GB, free: 114.3 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-05/1.189, allocations: 6.406 kB / 0.5277 GB, free: 114.3 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.305e-05/1.189, allocations: 10.81 kB / 0.5277 GB, free: 114.3 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0143/1.204, allocations: 4.726 MB / 0.5323 GB, free: 113.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-05/1.204, allocations: 3.719 kB / 0.5323 GB, free: 113.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001907/1.206, allocations: 210.5 kB / 0.5325 GB, free: 113.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003077/1.209, allocations: 0.6305 MB / 0.5331 GB, free: 113.8 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003/1.209, allocations: 33.73 kB / 0.5332 GB, free: 113.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01399/1.223, allocations: 8.051 MB / 0.541 GB, free: 110.1 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.745e-06/1.223, allocations: 7.391 kB / 0.541 GB, free: 110 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008661/1.232, allocations: 3.424 MB / 0.5444 GB, free: 109.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00136/1.233, allocations: 395.9 kB / 0.5448 GB, free: 109.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004494/1.234, allocations: 29.06 kB / 0.5448 GB, free: 109.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001874/1.235, allocations: 97.05 kB / 0.5449 GB, free: 109.4 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004199/1.236, allocations: 104.8 kB / 0.545 GB, free: 109.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001428/1.236, allocations: 39.52 kB / 0.545 GB, free: 109.3 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00236/1.238, allocations: 0.9509 MB / 0.546 GB, free: 109.2 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.062e-06/1.239, allocations: 0 / 0.546 GB, free: 109.2 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002882/1.241, allocations: 0.5263 MB / 0.5465 GB, free: 109.2 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 96 * 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,75.0%) 22,(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.008637/1.25, allocations: 4.849 MB / 0.5512 GB, free: 107.4 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005349/1.255, allocations: 2.219 MB / 0.5534 GB, free: 106.4 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.266e-06/1.256, allocations: 0 / 0.5534 GB, free: 106.4 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00372/1.259, allocations: 1.451 MB / 0.5548 GB, free: 105.8 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003187/1.263, allocations: 378.1 kB / 0.5551 GB, free: 105.6 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01182/1.274, allocations: 4.307 MB / 0.5594 GB, free: 103.9 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001771/1.276, allocations: 1.85 MB / 0.5612 GB, free: 103 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001701/1.278, allocations: 0.834 MB / 0.562 GB, free: 102.4 MB / 442.7 MB Notification: Performance of SimCode: time 1.112e-06/1.278, allocations: 0 / 0.562 GB, free: 102.4 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.577/4.855, allocations: 68.02 MB / 0.6284 GB, free: 57.67 MB / 442.7 MB