Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.073/2.073, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.257e-05/3.266e-05, allocations: 4 kB / 292.2 MB, free: 8.719 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1051, allocations: 50.41 MB / 342.6 MB, free: 6.289 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5261/0.6312, allocations: 110.4 MB / 453.1 MB, free: 164 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003227/0.6316, allocations: 84.02 kB / 453.1 MB, free: 120 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2308/0.8625, allocations: 53.17 MB / 0.4945 GB, free: 15.04 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.414e-06/0.8625, allocations: 4 kB / 0.4945 GB, free: 15.04 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003441/0.8629, allocations: 75.88 kB / 0.4945 GB, free: 14.96 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.009902/0.8728, allocations: 2.601 MB / 0.4971 GB, free: 12.3 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.63e-05/0.8729, allocations: 12.02 kB / 0.4971 GB, free: 12.29 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001411/0.8743, allocations: 358.8 kB / 0.4974 GB, free: 11.93 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002094/0.8764, allocations: 348 kB / 0.4978 GB, free: 11.59 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00708/0.8835, allocations: 1.912 MB / 0.4996 GB, free: 9.617 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002393/0.8838, allocations: 185 kB / 0.4998 GB, free: 9.434 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009065/0.8847, allocations: 251.9 kB / 0.5 GB, free: 9.188 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009744/0.8945, allocations: 3.164 MB / 0.5031 GB, free: 5.879 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000118/0.8947, allocations: 8.25 kB / 0.5031 GB, free: 5.871 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004602/0.8952, allocations: 111.9 kB / 0.5032 GB, free: 5.762 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001945/0.8954, allocations: 116.9 kB / 0.5034 GB, free: 5.645 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008522/0.9039, allocations: 2.489 MB / 0.5058 GB, free: 3.148 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03006/0.934, allocations: 10.47 MB / 0.516 GB, free: 8.328 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003451/0.9375, allocations: 1.413 MB / 0.5174 GB, free: 6.848 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00202/0.9396, allocations: 0.7574 MB / 0.5181 GB, free: 6.09 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004928/0.9401, allocations: 215.1 kB / 0.5183 GB, free: 5.844 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.913e-05/0.9401, allocations: 43.56 kB / 0.5184 GB, free: 5.793 MB / 442.7 MB Notification: Performance of pre-optimization done (n=104): time 3.877e-06/0.9402, allocations: 0 / 0.5184 GB, free: 5.793 MB / 442.7 MB Notification: Performance of matching and sorting (n=132): time 0.3209/1.261, allocations: 6.164 MB / 0.5244 GB, free: 110.3 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.891e-05/1.261, allocations: 65.25 kB / 0.5245 GB, free: 110.3 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004419/1.266, allocations: 1.532 MB / 0.526 GB, free: 110.1 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003316/1.266, allocations: 49.3 kB / 0.526 GB, free: 110.1 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001075/1.267, allocations: 1.2 MB / 0.5272 GB, free: 109.9 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000731/1.268, allocations: 459.9 kB / 0.5276 GB, free: 109.6 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001652/1.268, allocations: 32.16 kB / 0.5276 GB, free: 109.6 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001782/1.268, allocations: 382.7 kB / 0.528 GB, free: 109.3 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00199/1.27, allocations: 0.7736 MB / 0.5288 GB, free: 109.3 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002329/1.273, allocations: 1.275 MB / 0.53 GB, free: 108.7 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002616/1.275, allocations: 1.002 MB / 0.531 GB, free: 108.7 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.617e-05/1.275, allocations: 7.594 kB / 0.531 GB, free: 108.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=211) (initialization): time 0.006644/1.282, allocations: 2.327 MB / 0.5333 GB, free: 108.6 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.473e-05/1.282, allocations: 11.28 kB / 0.5333 GB, free: 108.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.311e-05/1.282, allocations: 16.78 kB / 0.5333 GB, free: 108.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009904/1.283, allocations: 245.3 kB / 0.5335 GB, free: 108.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003395/1.286, allocations: 444.3 kB / 0.5339 GB, free: 108.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003223/1.29, allocations: 2.979 MB / 0.5369 GB, free: 106.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002791/1.293, allocations: 137.6 kB / 0.537 GB, free: 106.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002523/1.293, allocations: 72.97 kB / 0.5371 GB, free: 106.1 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (206): * Single equations (assignments): 202 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004381/1.293, allocations: 206.5 kB / 0.5373 GB, free: 106 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000474/1.294, allocations: 189.1 kB / 0.5374 GB, free: 105.9 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005557/1.299, allocations: 2.101 MB / 0.5395 GB, free: 105.7 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.143e-05/1.299, allocations: 16.25 kB / 0.5395 GB, free: 105.7 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.083e-05/1.299, allocations: 6.078 kB / 0.5395 GB, free: 105.7 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.287e-05/1.3, allocations: 8.469 kB / 0.5395 GB, free: 105.7 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01308/1.313, allocations: 4.831 MB / 0.5442 GB, free: 105.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.159e-05/1.313, allocations: 2.656 kB / 0.5442 GB, free: 105.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002392/1.315, allocations: 289 kB / 0.5445 GB, free: 105.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008913/1.316, allocations: 207 kB / 0.5447 GB, free: 105.2 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000134/1.316, allocations: 36.72 kB / 0.5447 GB, free: 105.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002816/1.319, allocations: 2.964 MB / 0.5476 GB, free: 102.7 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.471e-06/1.319, allocations: 2.75 kB / 0.5476 GB, free: 102.7 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007211/1.326, allocations: 3.362 MB / 0.5509 GB, free: 102.1 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001487/1.328, allocations: 447.2 kB / 0.5514 GB, free: 101.9 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005355/1.328, allocations: 27.19 kB / 0.5514 GB, free: 101.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002006/1.33, allocations: 94.69 kB / 0.5515 GB, free: 101.9 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003019/1.331, allocations: 90.86 kB / 0.5516 GB, free: 101.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001327/1.331, allocations: 36.47 kB / 0.5516 GB, free: 101.9 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002681/1.334, allocations: 1.171 MB / 0.5527 GB, free: 101.8 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.11e-07/1.334, allocations: 3.344 kB / 0.5527 GB, free: 101.8 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002945/1.337, allocations: 0.5332 MB / 0.5533 GB, free: 101.8 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 126 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008132/1.345, allocations: 4.797 MB / 0.5579 GB, free: 99.32 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00533/1.35, allocations: 2.324 MB / 0.5602 GB, free: 98.32 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.358e-06/1.35, allocations: 0 / 0.5602 GB, free: 98.32 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002883/1.353, allocations: 1.339 MB / 0.5615 GB, free: 97.62 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003749/1.357, allocations: 459.7 kB / 0.562 GB, free: 97.49 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01317/1.37, allocations: 4.641 MB / 0.5665 GB, free: 95.68 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002187/1.372, allocations: 2.035 MB / 0.5685 GB, free: 94.74 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002201/1.375, allocations: 1 MB / 0.5695 GB, free: 93.95 MB / 442.7 MB Notification: Performance of SimCode: time 2.464e-06/1.375, allocations: 0 / 0.5695 GB, free: 93.95 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.738/5.113, allocations: 92.55 MB / 0.6598 GB, free: 25.82 MB / 442.7 MB