Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.08/2.08, allocations: 205.8 MB / 218.9 MB, free: 9.266 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.249e-05/4.256e-05, allocations: 8 kB / 269.4 MB, free: 6.301 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1151, allocations: 47.58 MB / 317 MB, free: 6.641 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5115/0.6267, allocations: 115.3 MB / 432.3 MB, free: 5.062 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003177/0.627, allocations: 79.52 kB / 432.4 MB, free: 5.023 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1598/0.7869, allocations: 39.46 MB / 471.9 MB, free: 3.621 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.7869, allocations: 0 / 471.9 MB, free: 3.621 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001386/0.7871, allocations: 36 kB / 471.9 MB, free: 3.586 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.004409/0.7915, allocations: 1.535 MB / 473.4 MB, free: 2.105 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.399e-05/0.7916, allocations: 8.031 kB / 473.5 MB, free: 2.098 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004367/0.792, allocations: 218.2 kB / 473.7 MB, free: 1.965 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00115/0.7932, allocations: 249.5 kB / 473.9 MB, free: 1.719 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003113/0.7963, allocations: 1.059 MB / 475 MB, free: 0.8945 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001116/0.7965, allocations: 112.2 kB / 475.1 MB, free: 0.832 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003323/0.7968, allocations: 154.9 kB / 475.2 MB, free: 0.7305 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003614/0.8004, allocations: 1.343 MB / 476.6 MB, free: 15.62 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.545e-05/0.8005, allocations: 11.84 kB / 476.6 MB, free: 15.61 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001985/0.8008, allocations: 67.94 kB / 476.7 MB, free: 15.55 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.105e-05/0.8008, allocations: 36 kB / 476.7 MB, free: 15.51 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002738/0.8036, allocations: 0.8607 MB / 477.5 MB, free: 14.65 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01304/0.8166, allocations: 6.214 MB / 483.8 MB, free: 8.125 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001684/0.8184, allocations: 0.6235 MB / 484.4 MB, free: 7.453 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005192/0.8189, allocations: 206.2 kB / 484.6 MB, free: 7.25 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.798e-05/0.819, allocations: 4.438 kB / 484.6 MB, free: 7.242 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.57e-05/0.819, allocations: 42.98 kB / 484.6 MB, free: 7.191 MB / 394.7 MB Notification: Performance of pre-optimization done (n=51): time 3.045e-06/0.819, allocations: 4 kB / 484.6 MB, free: 7.188 MB / 394.7 MB Notification: Performance of matching and sorting (n=54): time 0.003571/0.8226, allocations: 1.356 MB / 486 MB, free: 5.773 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.085e-05/0.8227, allocations: 81.55 kB / 486.1 MB, free: 5.676 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002116/0.8249, allocations: 0.9394 MB / 487 MB, free: 4.723 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.921e-05/0.825, allocations: 45.62 kB / 487.1 MB, free: 4.672 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008049/0.8258, allocations: 0.8132 MB / 487.9 MB, free: 3.848 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000236/0.826, allocations: 197.2 kB / 488.1 MB, free: 3.652 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.546e-05/0.8261, allocations: 24 kB / 488.1 MB, free: 3.629 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.8263, allocations: 341.9 kB / 488.4 MB, free: 3.289 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000603/0.8269, allocations: 210 kB / 488.6 MB, free: 3.082 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009042/0.8278, allocations: 0.5803 MB / 489.2 MB, free: 2.32 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000805/0.8286, allocations: 315 kB / 489.5 MB, free: 2.012 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-05/0.8287, allocations: 4 kB / 489.5 MB, free: 2.008 MB / 394.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002392/0.8311, allocations: 0.9013 MB / 490.4 MB, free: 1.094 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002073/0.8332, allocations: 5.14 MB / 495.6 MB, free: 11.56 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.438e-05/0.8332, allocations: 12 kB / 495.6 MB, free: 11.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000284/0.8335, allocations: 52.78 kB / 495.6 MB, free: 11.49 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001634/0.8352, allocations: 227.6 kB / 495.8 MB, free: 11.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001277/0.8365, allocations: 1.284 MB / 497.1 MB, free: 9.852 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001454/0.8379, allocations: 55.88 kB / 497.2 MB, free: 9.797 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001148/0.8381, allocations: 56.08 kB / 497.2 MB, free: 9.742 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.8381, allocations: 4 kB / 497.2 MB, free: 9.738 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001971/0.8401, allocations: 0.7522 MB / 498 MB, free: 8.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.011e-05/0.8401, allocations: 12 kB / 498 MB, free: 8.969 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001677/0.8403, allocations: 36.86 kB / 498 MB, free: 8.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001387/0.8417, allocations: 220.3 kB / 498.3 MB, free: 8.715 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00126/0.843, allocations: 1.295 MB / 499.6 MB, free: 7.289 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001225/0.8442, allocations: 44.14 kB / 499.6 MB, free: 7.246 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001006/0.8444, allocations: 51.94 kB / 499.6 MB, free: 7.195 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 2 (currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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.0003144/0.8447, allocations: 180.4 kB / 499.8 MB, free: 7.012 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002651/0.845, allocations: 114.6 kB / 499.9 MB, free: 6.898 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001534/0.8465, allocations: 0.5009 MB / 0.4887 GB, free: 6.383 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.919e-06/0.8465, allocations: 4 kB / 0.4887 GB, free: 6.379 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.8466, allocations: 8 kB / 0.4887 GB, free: 6.371 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.131e-05/0.8466, allocations: 3.984 kB / 0.4887 GB, free: 6.367 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004476/0.8511, allocations: 1.773 MB / 0.4905 GB, free: 4.512 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.658e-06/0.8511, allocations: 4 kB / 0.4905 GB, free: 4.508 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001056/0.8522, allocations: 107.9 kB / 0.4906 GB, free: 4.402 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001621/0.8524, allocations: 33 kB / 0.4906 GB, free: 4.367 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.764e-05/0.8524, allocations: 12 kB / 0.4906 GB, free: 4.355 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001181/0.8536, allocations: 1.276 MB / 0.4918 GB, free: 2.941 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.8537, allocations: 4.031 kB / 0.4919 GB, free: 2.938 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002046/0.8557, allocations: 0.9163 MB / 0.4927 GB, free: 1.953 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000613/0.8564, allocations: 243.6 kB / 0.493 GB, free: 1.695 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002143/0.8566, allocations: 16 kB / 0.493 GB, free: 1.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009307/0.8575, allocations: 39.98 kB / 0.493 GB, free: 1.641 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001165/0.8577, allocations: 48.36 kB / 0.4931 GB, free: 1.594 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.462e-05/0.8578, allocations: 19.98 kB / 0.4931 GB, free: 1.574 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001643/0.8594, allocations: 0.7023 MB / 0.4938 GB, free: 0.8633 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.4e-07/0.8594, allocations: 0 / 0.4938 GB, free: 0.8633 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002591/0.862, allocations: 0.5116 MB / 0.4943 GB, free: 360 kB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (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,loadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 52 * 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.003054/0.8651, allocations: 2.228 MB / 0.4965 GB, free: 14.05 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002873/0.868, allocations: 1.158 MB / 0.4976 GB, free: 12.89 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.149e-06/0.868, allocations: 0 / 0.4976 GB, free: 12.89 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006656/0.8687, allocations: 319.3 kB / 0.4979 GB, free: 12.56 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002099/0.8708, allocations: 257 kB / 0.4981 GB, free: 12.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00645/0.8773, allocations: 2.082 MB / 0.5002 GB, free: 10.15 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001075/0.8784, allocations: 1.203 MB / 0.5013 GB, free: 8.922 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001652/0.8801, allocations: 201.2 kB / 0.5015 GB, free: 8.723 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001009/0.8811, allocations: 0.5423 MB / 0.5021 GB, free: 8.18 MB / 426.7 MB Notification: Performance of SimCode: time 1.332e-06/0.8811, allocations: 4 kB / 0.5021 GB, free: 8.176 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4047/1.286, allocations: 28.45 MB / 0.5299 GB, free: 116.5 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002045/1.286, allocations: 204.3 kB / 0.53 GB, free: 116.2 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.749/5.035, allocations: 0 / 0.53 GB, free: 116.2 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat does not exist to compare? outputFormat=mat