Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.997/1.997, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.306e-05/3.307e-05, allocations: 4 kB / 292.8 MB, free: 8.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1049, allocations: 50.41 MB / 343.2 MB, free: 5.812 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5/0.6049, allocations: 117.2 MB / 460.3 MB, free: 9.098 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003294/0.6053, allocations: 86.02 kB / 460.4 MB, free: 9.055 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1742/0.7796, allocations: 42.84 MB / 0.4915 GB, free: 2.32 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.7796, allocations: 0 / 0.4915 GB, free: 2.32 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001691/0.7798, allocations: 40 kB / 0.4915 GB, free: 2.281 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: 417 * Number of variables: 417 Notification: Performance of Generate backend data structure: time 0.005003/0.7848, allocations: 1.706 MB / 0.4932 GB, free: 0.5234 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.182e-05/0.7849, allocations: 12.03 kB / 0.4932 GB, free: 0.5117 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005834/0.7855, allocations: 232.5 kB / 0.4934 GB, free: 280 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00122/0.7867, allocations: 269.3 kB / 0.4936 GB, free: 8 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003535/0.7903, allocations: 1.15 MB / 0.4948 GB, free: 14.8 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000145/0.7905, allocations: 127.3 kB / 0.4949 GB, free: 14.68 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003972/0.7909, allocations: 171.9 kB / 0.4951 GB, free: 14.51 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003995/0.7949, allocations: 1.482 MB / 0.4965 GB, free: 12.96 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.428e-05/0.795, allocations: 7.906 kB / 0.4965 GB, free: 12.96 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002157/0.7952, allocations: 68 kB / 0.4966 GB, free: 12.89 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.821e-05/0.7953, allocations: 40 kB / 0.4966 GB, free: 12.85 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003044/0.7983, allocations: 0.9511 MB / 0.4975 GB, free: 11.9 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01519/0.8135, allocations: 6.759 MB / 0.5041 GB, free: 4.828 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002483/0.8161, allocations: 0.8842 MB / 0.505 GB, free: 3.879 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006268/0.8167, allocations: 258.4 kB / 0.5053 GB, free: 3.625 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.368e-05/0.8168, allocations: 12.56 kB / 0.5053 GB, free: 3.613 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.952e-05/0.8168, allocations: 35.12 kB / 0.5053 GB, free: 3.566 MB / 426.7 MB Notification: Performance of pre-optimization done (n=61): time 3.276e-06/0.8169, allocations: 8 kB / 0.5053 GB, free: 3.559 MB / 426.7 MB Notification: Performance of matching and sorting (n=64): time 0.004097/0.821, allocations: 1.538 MB / 0.5068 GB, free: 1.973 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.541e-05/0.8211, allocations: 89.61 kB / 0.5069 GB, free: 1.867 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002454/0.8235, allocations: 1.05 MB / 0.5079 GB, free: 0.8047 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001502/0.8237, allocations: 41.7 kB / 0.508 GB, free: 0.7578 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008997/0.8246, allocations: 0.8959 MB / 0.5088 GB, free: 15.85 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003041/0.825, allocations: 240.6 kB / 0.5091 GB, free: 15.61 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.245e-05/0.825, allocations: 20 kB / 0.5091 GB, free: 15.59 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.8252, allocations: 349.9 kB / 0.5094 GB, free: 15.24 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007038/0.8259, allocations: 242.6 kB / 0.5096 GB, free: 15.01 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001002/0.827, allocations: 0.6354 MB / 0.5103 GB, free: 14.18 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009011/0.8279, allocations: 354.1 kB / 0.5106 GB, free: 13.84 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.167e-05/0.8279, allocations: 4 kB / 0.5106 GB, free: 13.83 MB / 442.7 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002734/0.8306, allocations: 1.019 MB / 0.5116 GB, free: 12.8 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002209/0.8329, allocations: 5.367 MB / 0.5168 GB, free: 7.082 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.044e-05/0.833, allocations: 12 kB / 0.5169 GB, free: 7.07 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003105/0.8333, allocations: 48.84 kB / 0.5169 GB, free: 7.02 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001921/0.8352, allocations: 275.6 kB / 0.5172 GB, free: 6.75 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001247/0.8365, allocations: 1.299 MB / 0.5184 GB, free: 5.312 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001551/0.838, allocations: 68.12 kB / 0.5185 GB, free: 5.246 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001152/0.8382, allocations: 56 kB / 0.5186 GB, free: 5.191 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/0.8382, allocations: 4 kB / 0.5186 GB, free: 5.188 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00215/0.8404, allocations: 0.8515 MB / 0.5194 GB, free: 4.332 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.107e-05/0.8404, allocations: 12.19 kB / 0.5194 GB, free: 4.32 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001628/0.8406, allocations: 44.86 kB / 0.5194 GB, free: 4.273 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001616/0.8422, allocations: 255.6 kB / 0.5197 GB, free: 4.023 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001151/0.8434, allocations: 1.288 MB / 0.5209 GB, free: 2.605 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001333/0.8447, allocations: 43.98 kB / 0.521 GB, free: 2.562 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001023/0.8449, allocations: 52 kB / 0.521 GB, free: 2.512 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 3 (speedController.integrator.local_reset,currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 139 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003035/0.8452, allocations: 188.6 kB / 0.5212 GB, free: 2.32 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002752/0.8455, allocations: 138.3 kB / 0.5213 GB, free: 2.184 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001663/0.8471, allocations: 0.5917 MB / 0.5219 GB, free: 1.574 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.318e-05/0.8472, allocations: 8 kB / 0.5219 GB, free: 1.566 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.8472, allocations: 7.891 kB / 0.5219 GB, free: 1.559 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.037e-05/0.8472, allocations: 3.984 kB / 0.5219 GB, free: 1.555 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2887/1.136, allocations: 2.001 MB / 0.5239 GB, free: 116.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.588e-06/1.136, allocations: 2.688 kB / 0.5239 GB, free: 116.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001351/1.137, allocations: 143.8 kB / 0.524 GB, free: 116.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001652/1.138, allocations: 23.09 kB / 0.5241 GB, free: 116.1 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.96e-05/1.138, allocations: 17.17 kB / 0.5241 GB, free: 116.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009472/1.139, allocations: 1.276 MB / 0.5253 GB, free: 114.9 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/1.139, allocations: 2.094 kB / 0.5253 GB, free: 114.9 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002417/1.141, allocations: 1.057 MB / 0.5264 GB, free: 114.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008164/1.142, allocations: 269.6 kB / 0.5266 GB, free: 114.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002737/1.142, allocations: 16.62 kB / 0.5266 GB, free: 114.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001133/1.143, allocations: 58.98 kB / 0.5267 GB, free: 114.4 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001757/1.144, allocations: 50.3 kB / 0.5267 GB, free: 114.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.383e-05/1.144, allocations: 19.02 kB / 0.5268 GB, free: 114.4 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002168/1.146, allocations: 0.7927 MB / 0.5275 GB, free: 114.3 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.262e-06/1.146, allocations: 2.062 kB / 0.5275 GB, free: 114.3 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003038/1.149, allocations: 0.5517 MB / 0.5281 GB, free: 114.3 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 13 (loadInertia.phi,loadInertia.w,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,currentController.integrator.y,speedController.integrator.y,preFilter.y,slewRateLimiter.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 62 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003399/1.152, allocations: 2.374 MB / 0.5304 GB, free: 113 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003468/1.156, allocations: 1.307 MB / 0.5317 GB, free: 112.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.06e-05/1.156, allocations: 1 kB / 0.5317 GB, free: 112.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008638/1.157, allocations: 355.1 kB / 0.532 GB, free: 112.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002605/1.159, allocations: 285 kB / 0.5323 GB, free: 112.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007919/1.167, allocations: 2.368 MB / 0.5346 GB, free: 111.9 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001163/1.169, allocations: 1.272 MB / 0.5358 GB, free: 111.2 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002079/1.171, allocations: 228.9 kB / 0.536 GB, free: 111.2 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00114/1.172, allocations: 0.628 MB / 0.5367 GB, free: 111.2 MB / 442.7 MB Notification: Performance of SimCode: time 2.525e-06/1.172, allocations: 0 / 0.5367 GB, free: 111.2 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09637/1.268, allocations: 31.8 MB / 0.5677 GB, free: 109.2 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002463/1.269, allocations: 199.5 kB / 0.5679 GB, free: 109 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.804/5.072, allocations: 4 kB / 0.5679 GB, free: 109 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat does not exist to compare? outputFormat=mat