Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.003/2.003, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.381e-05/3.387e-05, allocations: 0 / 292.2 MB, free: 8.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1072, allocations: 50.42 MB / 342.6 MB, free: 6.285 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4893/0.5966, allocations: 107.9 MB / 450.6 MB, free: 2.539 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002991/0.597, allocations: 89.75 kB / 450.7 MB, free: 2.492 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2225/0.8194, allocations: 50.47 MB / 0.4894 GB, free: 4.176 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.425e-06/0.8195, allocations: 7.938 kB / 0.4894 GB, free: 4.168 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003259/0.8199, allocations: 71.92 kB / 0.4895 GB, free: 4.098 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: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.01072/0.8306, allocations: 2.499 MB / 0.4919 GB, free: 1.539 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.06e-05/0.8307, allocations: 12.03 kB / 0.4919 GB, free: 1.527 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001204/0.8319, allocations: 341.4 kB / 0.4922 GB, free: 1.184 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002195/0.8341, allocations: 336.3 kB / 0.4926 GB, free: 0.8516 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007985/0.8422, allocations: 1.775 MB / 0.4943 GB, free: 15.02 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003228/0.8425, allocations: 176.7 kB / 0.4945 GB, free: 14.84 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001091/0.8436, allocations: 236.6 kB / 0.4947 GB, free: 14.61 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01072/0.8544, allocations: 3.008 MB / 0.4976 GB, free: 11.46 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000113/0.8545, allocations: 7.906 kB / 0.4976 GB, free: 11.45 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004605/0.855, allocations: 104 kB / 0.4977 GB, free: 11.35 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001639/0.8552, allocations: 96.58 kB / 0.4978 GB, free: 11.25 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007661/0.8629, allocations: 2.426 MB / 0.5002 GB, free: 8.82 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02647/0.8894, allocations: 9.751 MB / 0.5097 GB, free: 14.78 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004336/0.8938, allocations: 2.139 MB / 0.5118 GB, free: 12.46 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002408/0.8962, allocations: 0.9371 MB / 0.5127 GB, free: 11.53 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004864/0.8967, allocations: 219.1 kB / 0.5129 GB, free: 11.28 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.248e-05/0.8968, allocations: 44.22 kB / 0.513 GB, free: 11.23 MB / 442.7 MB Notification: Performance of pre-optimization done (n=119): time 5.67e-06/0.8968, allocations: 7.938 kB / 0.513 GB, free: 11.22 MB / 442.7 MB Notification: Performance of matching and sorting (n=141): time 0.02488/0.9217, allocations: 6.485 MB / 0.5193 GB, free: 4.676 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.623e-05/0.9218, allocations: 68.72 kB / 0.5194 GB, free: 4.598 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003496/0.9253, allocations: 1.508 MB / 0.5208 GB, free: 3.09 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002885/0.9256, allocations: 53.7 kB / 0.5209 GB, free: 3.031 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001023/0.9267, allocations: 1.07 MB / 0.5219 GB, free: 1.949 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006314/0.9273, allocations: 488.9 kB / 0.5224 GB, free: 1.465 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000159/0.9275, allocations: 32 kB / 0.5224 GB, free: 1.434 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001932/0.9277, allocations: 378.7 kB / 0.5228 GB, free: 1.055 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002033/0.9297, allocations: 0.7966 MB / 0.5236 GB, free: 264 kB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2898/1.22, allocations: 1.166 MB / 0.5247 GB, free: 112.6 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002989/1.223, allocations: 0.975 MB / 0.5257 GB, free: 112.6 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.798e-05/1.223, allocations: 3.625 kB / 0.5257 GB, free: 112.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=201) (initialization): time 0.007868/1.231, allocations: 2.579 MB / 0.5282 GB, free: 112.5 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.89e-05/1.231, allocations: 9 kB / 0.5282 GB, free: 112.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.39e-05/1.231, allocations: 13.64 kB / 0.5282 GB, free: 112.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002742/1.233, allocations: 0.5754 MB / 0.5288 GB, free: 112.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003044/1.237, allocations: 368.5 kB / 0.5291 GB, free: 112.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01178/1.248, allocations: 6.318 MB / 0.5353 GB, free: 110 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002552/1.251, allocations: 118.7 kB / 0.5354 GB, free: 110 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000233/1.251, allocations: 61.3 kB / 0.5355 GB, free: 110 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: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (172): * Single equations (assignments): 169 * 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.0004393/1.252, allocations: 199 kB / 0.5357 GB, free: 109.8 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004663/1.252, allocations: 186.3 kB / 0.5358 GB, free: 109.8 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007125/1.259, allocations: 2.518 MB / 0.5383 GB, free: 109.7 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.461e-05/1.259, allocations: 13.78 kB / 0.5383 GB, free: 109.7 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.871e-05/1.259, allocations: 10.14 kB / 0.5383 GB, free: 109.7 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.735e-05/1.259, allocations: 6.656 kB / 0.5383 GB, free: 109.7 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01465/1.274, allocations: 5.261 MB / 0.5435 GB, free: 109.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-05/1.274, allocations: 1.469 kB / 0.5435 GB, free: 109.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002061/1.276, allocations: 235.3 kB / 0.5437 GB, free: 109.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002987/1.279, allocations: 0.638 MB / 0.5443 GB, free: 109.2 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003098/1.28, allocations: 36.97 kB / 0.5443 GB, free: 109.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01228/1.292, allocations: 8.042 MB / 0.5522 GB, free: 105.1 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.124e-06/1.292, allocations: 13.12 kB / 0.5522 GB, free: 105.1 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008263/1.3, allocations: 3.828 MB / 0.5559 GB, free: 103.4 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001426/1.302, allocations: 455.8 kB / 0.5564 GB, free: 103.1 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004131/1.302, allocations: 29.66 kB / 0.5564 GB, free: 103.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001796/1.304, allocations: 99.53 kB / 0.5565 GB, free: 103 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000435/1.304, allocations: 134.7 kB / 0.5566 GB, free: 103 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001369/1.305, allocations: 40.3 kB / 0.5567 GB, free: 103 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002394/1.307, allocations: 1.158 MB / 0.5578 GB, free: 102.6 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.71e-07/1.307, allocations: 0 / 0.5578 GB, free: 102.6 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002837/1.31, allocations: 0.5695 MB / 0.5584 GB, free: 102.5 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (111): * Single equations (assignments): 108 * 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.009094/1.319, allocations: 5.26 MB / 0.5635 GB, free: 99.61 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005857/1.325, allocations: 2.434 MB / 0.5659 GB, free: 98.61 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.356e-06/1.325, allocations: 3.5 kB / 0.5659 GB, free: 98.61 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004022/1.329, allocations: 1.594 MB / 0.5674 GB, free: 97.89 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003547/1.333, allocations: 440.9 kB / 0.5678 GB, free: 97.77 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01207/1.345, allocations: 4.826 MB / 0.5726 GB, free: 95.86 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001952/1.347, allocations: 2.036 MB / 0.5745 GB, free: 94.89 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001918/1.349, allocations: 0.9269 MB / 0.5755 GB, free: 94.15 MB / 442.7 MB Notification: Performance of SimCode: time 9.42e-07/1.349, allocations: 0 / 0.5755 GB, free: 94.15 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.736/5.085, allocations: 78.04 MB / 0.6517 GB, free: 33.87 MB / 442.7 MB