Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.945/1.945, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.401e-05/4.406e-05, allocations: 4 kB / 292.2 MB, free: 8.258 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1112, allocations: 50.42 MB / 342.7 MB, free: 5.824 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.481/0.5922, allocations: 117.2 MB / 459.8 MB, free: 9.094 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003016/0.5926, allocations: 83.14 kB / 459.9 MB, free: 9.051 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1794/0.772, allocations: 42.84 MB / 0.4909 GB, free: 2.344 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.7721, allocations: 0 / 0.4909 GB, free: 2.344 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000177/0.7723, allocations: 43.98 kB / 0.491 GB, free: 2.301 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.004886/0.7772, allocations: 1.703 MB / 0.4927 GB, free: 0.5469 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.372e-05/0.7772, allocations: 8.031 kB / 0.4927 GB, free: 0.5391 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005365/0.7778, allocations: 236.5 kB / 0.4929 GB, free: 304 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001213/0.779, allocations: 269.3 kB / 0.4931 GB, free: 32 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003453/0.7825, allocations: 1.15 MB / 0.4943 GB, free: 14.82 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001394/0.7826, allocations: 123.3 kB / 0.4944 GB, free: 14.7 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003896/0.7831, allocations: 171.9 kB / 0.4945 GB, free: 14.54 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003991/0.7871, allocations: 1.486 MB / 0.496 GB, free: 12.99 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.353e-05/0.7872, allocations: 3.906 kB / 0.496 GB, free: 12.98 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002195/0.7874, allocations: 72 kB / 0.4961 GB, free: 12.91 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.464e-05/0.7875, allocations: 40 kB / 0.4961 GB, free: 12.88 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002995/0.7905, allocations: 0.9472 MB / 0.497 GB, free: 11.93 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01546/0.806, allocations: 6.759 MB / 0.5036 GB, free: 4.855 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002582/0.8086, allocations: 0.8849 MB / 0.5045 GB, free: 3.906 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006409/0.8093, allocations: 254.4 kB / 0.5047 GB, free: 3.656 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.706e-05/0.8093, allocations: 12.53 kB / 0.5048 GB, free: 3.645 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.466e-05/0.8094, allocations: 43.12 kB / 0.5048 GB, free: 3.59 MB / 426.7 MB Notification: Performance of pre-optimization done (n=61): time 5.119e-06/0.8094, allocations: 3.984 kB / 0.5048 GB, free: 3.586 MB / 426.7 MB Notification: Performance of matching and sorting (n=64): time 0.004146/0.8136, allocations: 1.542 MB / 0.5063 GB, free: 1.996 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.048e-05/0.8137, allocations: 93.55 kB / 0.5064 GB, free: 1.887 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002548/0.8163, allocations: 1.054 MB / 0.5074 GB, free: 0.8203 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001059/0.8164, allocations: 37.7 kB / 0.5075 GB, free: 0.7773 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009336/0.8173, allocations: 0.8959 MB / 0.5083 GB, free: 15.87 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002945/0.8176, allocations: 240.6 kB / 0.5086 GB, free: 15.63 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.127e-05/0.8177, allocations: 20 kB / 0.5086 GB, free: 15.61 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.8179, allocations: 353.9 kB / 0.5089 GB, free: 15.26 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007168/0.8186, allocations: 238.6 kB / 0.5091 GB, free: 15.03 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001043/0.8197, allocations: 0.6393 MB / 0.5098 GB, free: 14.2 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009458/0.8207, allocations: 354.1 kB / 0.5101 GB, free: 13.86 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.564e-05/0.8207, allocations: 4 kB / 0.5101 GB, free: 13.85 MB / 442.7 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002731/0.8234, allocations: 1.02 MB / 0.5111 GB, free: 12.82 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002394/0.8259, allocations: 5.367 MB / 0.5164 GB, free: 7.098 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.156e-05/0.8259, allocations: 12 kB / 0.5164 GB, free: 7.086 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002842/0.8262, allocations: 44.84 kB / 0.5164 GB, free: 7.039 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001971/0.8282, allocations: 275.6 kB / 0.5167 GB, free: 6.77 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001338/0.8296, allocations: 1.295 MB / 0.5179 GB, free: 5.336 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001558/0.8311, allocations: 68.06 kB / 0.518 GB, free: 5.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001108/0.8313, allocations: 56 kB / 0.5181 GB, free: 5.215 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.8313, allocations: 7.594 kB / 0.5181 GB, free: 5.211 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00224/0.8335, allocations: 0.8509 MB / 0.5189 GB, free: 4.355 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.164e-05/0.8336, allocations: 12 kB / 0.5189 GB, free: 4.344 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001699/0.8338, allocations: 45.66 kB / 0.5189 GB, free: 4.297 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001647/0.8354, allocations: 255.6 kB / 0.5192 GB, free: 4.047 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001254/0.8367, allocations: 1.296 MB / 0.5205 GB, free: 2.621 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001326/0.838, allocations: 47.92 kB / 0.5205 GB, free: 2.574 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000104/0.8382, allocations: 52 kB / 0.5205 GB, free: 2.523 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.0003183/0.8385, allocations: 184.2 kB / 0.5207 GB, free: 2.34 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002781/0.8388, allocations: 138.4 kB / 0.5209 GB, free: 2.203 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001705/0.8405, allocations: 0.5956 MB / 0.5214 GB, free: 1.59 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.361e-05/0.8405, allocations: 8 kB / 0.5214 GB, free: 1.582 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.8406, allocations: 7.891 kB / 0.5215 GB, free: 1.574 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.8406, allocations: 3.984 kB / 0.5215 GB, free: 1.57 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2881/1.129, allocations: 1.988 MB / 0.5234 GB, free: 116.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.736e-06/1.129, allocations: 2.812 kB / 0.5234 GB, free: 116.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001312/1.13, allocations: 145.7 kB / 0.5235 GB, free: 116.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001477/1.13, allocations: 23.94 kB / 0.5236 GB, free: 116.1 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.492e-05/1.13, allocations: 17.11 kB / 0.5236 GB, free: 116.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009199/1.131, allocations: 1.273 MB / 0.5248 GB, free: 114.8 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-06/1.131, allocations: 3.438 kB / 0.5248 GB, free: 114.8 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002301/1.134, allocations: 1.06 MB / 0.5259 GB, free: 114.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007086/1.134, allocations: 266.8 kB / 0.5261 GB, free: 114.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002427/1.135, allocations: 21.97 kB / 0.5261 GB, free: 114.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001098/1.136, allocations: 57.88 kB / 0.5262 GB, free: 114.4 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001575/1.136, allocations: 48.48 kB / 0.5262 GB, free: 114.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.21e-05/1.136, allocations: 22.72 kB / 0.5263 GB, free: 114.4 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001938/1.138, allocations: 0.793 MB / 0.527 GB, free: 114.3 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.713e-06/1.138, allocations: 0 / 0.527 GB, free: 114.3 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00273/1.141, allocations: 0.5553 MB / 0.5276 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.002969/1.144, allocations: 2.36 MB / 0.5299 GB, free: 112.9 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003105/1.147, allocations: 1.309 MB / 0.5312 GB, free: 112.7 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.246e-06/1.147, allocations: 1.094 kB / 0.5312 GB, free: 112.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000775/1.148, allocations: 353 kB / 0.5315 GB, free: 112.6 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002356/1.15, allocations: 297.5 kB / 0.5318 GB, free: 112.6 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007184/1.157, allocations: 2.363 MB / 0.5341 GB, free: 111.9 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001116/1.158, allocations: 1.272 MB / 0.5353 GB, free: 111.1 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001992/1.16, allocations: 227.5 kB / 0.5355 GB, free: 111.1 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009844/1.161, allocations: 0.6341 MB / 0.5362 GB, free: 111.1 MB / 442.7 MB Notification: Performance of SimCode: time 1.833e-06/1.161, allocations: 3.375 kB / 0.5362 GB, free: 111.1 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08743/1.249, allocations: 31.78 MB / 0.5672 GB, free: 109.1 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002488/1.249, allocations: 199.6 kB / 0.5674 GB, free: 108.9 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.798/5.047, allocations: 3.938 kB / 0.5674 GB, free: 108.9 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat does not exist to compare? outputFormat=mat