Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.089/2.089, allocations: 205.8 MB / 218.9 MB, free: 9.262 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.507e-05/3.508e-05, allocations: 4 kB / 269.5 MB, free: 6.305 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1165, allocations: 47.57 MB / 317 MB, free: 6.648 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4576/0.5743, allocations: 116.1 MB / 433.1 MB, free: 3.98 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003188/0.5747, allocations: 83.95 kB / 433.2 MB, free: 3.938 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1724/0.7471, allocations: 42.69 MB / 475.9 MB, free: 15.8 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.7472, allocations: 0 / 475.9 MB, free: 15.8 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000176/0.7474, allocations: 40.19 kB / 475.9 MB, free: 15.76 MB / 394.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.00533/0.7527, allocations: 1.697 MB / 477.6 MB, free: 14.12 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.211e-05/0.7528, allocations: 12.03 kB / 477.6 MB, free: 14.11 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005928/0.7534, allocations: 237.9 kB / 477.9 MB, free: 13.97 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00127/0.7547, allocations: 269.8 kB / 478.1 MB, free: 13.71 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003694/0.7584, allocations: 1.171 MB / 479.3 MB, free: 12.78 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001398/0.7586, allocations: 125.8 kB / 479.4 MB, free: 12.71 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003924/0.759, allocations: 171.3 kB / 479.6 MB, free: 12.56 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004577/0.7636, allocations: 1.482 MB / 481.1 MB, free: 11.02 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.389e-05/0.7637, allocations: 11.84 kB / 481.1 MB, free: 11 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002379/0.764, allocations: 68 kB / 481.1 MB, free: 10.94 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.919e-05/0.764, allocations: 40 kB / 481.2 MB, free: 10.9 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003981/0.768, allocations: 0.9511 MB / 482.1 MB, free: 9.945 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01663/0.7847, allocations: 6.751 MB / 488.9 MB, free: 2.883 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002566/0.7874, allocations: 0.8777 MB / 489.8 MB, free: 1.941 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006522/0.788, allocations: 254.5 kB / 490 MB, free: 1.691 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.999e-05/0.7881, allocations: 12.55 kB / 490 MB, free: 1.68 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.584e-05/0.7882, allocations: 43.06 kB / 490.1 MB, free: 1.625 MB / 394.7 MB Notification: Performance of pre-optimization done (n=61): time 3.847e-06/0.7882, allocations: 0 / 490.1 MB, free: 1.625 MB / 394.7 MB Notification: Performance of matching and sorting (n=64): time 0.004344/0.7926, allocations: 1.55 MB / 491.6 MB, free: 16 kB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.494e-05/0.7927, allocations: 81.67 kB / 491.7 MB, free: 15.92 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002499/0.7952, allocations: 1.07 MB / 492.8 MB, free: 14.84 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001276/0.7954, allocations: 37.7 kB / 492.8 MB, free: 14.79 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009465/0.7963, allocations: 0.8959 MB / 493.7 MB, free: 13.89 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003099/0.7967, allocations: 240.6 kB / 493.9 MB, free: 13.65 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.488e-05/0.7967, allocations: 24 kB / 494 MB, free: 13.62 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.7969, allocations: 349.9 kB / 494.3 MB, free: 13.28 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000736/0.7977, allocations: 242.6 kB / 494.5 MB, free: 13.04 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001082/0.7988, allocations: 0.6432 MB / 495.2 MB, free: 12.21 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009595/0.7998, allocations: 353.9 kB / 495.5 MB, free: 11.86 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.271e-05/0.7998, allocations: 4 kB / 495.5 MB, free: 11.86 MB / 410.7 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002929/0.8027, allocations: 1.019 MB / 496.5 MB, free: 10.83 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002407/0.8052, allocations: 5.369 MB / 0.4902 GB, free: 5.102 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.512e-05/0.8053, allocations: 16 kB / 0.4902 GB, free: 5.086 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003212/0.8056, allocations: 40.84 kB / 0.4902 GB, free: 5.043 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00201/0.8076, allocations: 275.6 kB / 0.4905 GB, free: 4.773 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001455/0.8091, allocations: 1.295 MB / 0.4917 GB, free: 3.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001742/0.8109, allocations: 76.03 kB / 0.4918 GB, free: 3.266 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001514/0.8111, allocations: 51.98 kB / 0.4919 GB, free: 3.215 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.8111, allocations: 6.344 kB / 0.4919 GB, free: 3.211 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00241/0.8135, allocations: 0.8513 MB / 0.4927 GB, free: 2.355 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.559e-05/0.8136, allocations: 16 kB / 0.4927 GB, free: 2.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001828/0.8138, allocations: 40.84 kB / 0.4927 GB, free: 2.297 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001705/0.8155, allocations: 256 kB / 0.493 GB, free: 2.047 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001338/0.8169, allocations: 1.288 MB / 0.4942 GB, free: 0.6289 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001614/0.8185, allocations: 68.03 kB / 0.4943 GB, free: 0.5625 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001463/0.8187, allocations: 48 kB / 0.4944 GB, free: 0.5156 MB / 410.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.0003674/0.8191, allocations: 176.5 kB / 0.4945 GB, free: 344 kB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003295/0.8194, allocations: 130.4 kB / 0.4947 GB, free: 212 kB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00186/0.8213, allocations: 0.5956 MB / 0.4952 GB, free: 15.6 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-05/0.8213, allocations: 4 kB / 0.4952 GB, free: 15.59 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.8214, allocations: 11.94 kB / 0.4952 GB, free: 15.58 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.362e-05/0.8214, allocations: 3.984 kB / 0.4953 GB, free: 15.58 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005264/0.8267, allocations: 1.999 MB / 0.4972 GB, free: 13.49 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.905e-06/0.8267, allocations: 0 / 0.4972 GB, free: 13.49 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0013/0.828, allocations: 148 kB / 0.4973 GB, free: 13.35 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001604/0.8282, allocations: 28.8 kB / 0.4974 GB, free: 13.32 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.669e-05/0.8283, allocations: 15.94 kB / 0.4974 GB, free: 13.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001204/0.8295, allocations: 1.276 MB / 0.4986 GB, free: 11.89 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.103e-06/0.8295, allocations: 8.016 kB / 0.4986 GB, free: 11.88 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002411/0.832, allocations: 1.066 MB / 0.4997 GB, free: 10.72 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007973/0.8328, allocations: 267.3 kB / 0.4999 GB, free: 10.44 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002509/0.8331, allocations: 12 kB / 0.4999 GB, free: 10.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001125/0.8342, allocations: 59.95 kB / 0.5 GB, free: 10.37 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001445/0.8344, allocations: 48.45 kB / 0.5001 GB, free: 10.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.949e-05/0.8344, allocations: 20 kB / 0.5001 GB, free: 10.3 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00193/0.8364, allocations: 0.7938 MB / 0.5008 GB, free: 9.508 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.61e-07/0.8364, allocations: 4 kB / 0.5009 GB, free: 9.504 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003215/0.8396, allocations: 0.5547 MB / 0.5014 GB, free: 8.949 MB / 426.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.004285/0.844, allocations: 2.365 MB / 0.5037 GB, free: 6.523 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003511/0.8475, allocations: 1.31 MB / 0.505 GB, free: 5.195 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.794e-06/0.8476, allocations: 0 / 0.505 GB, free: 5.195 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008942/0.8485, allocations: 353.3 kB / 0.5053 GB, free: 4.844 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002614/0.8511, allocations: 300.9 kB / 0.5056 GB, free: 4.551 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008168/0.8593, allocations: 2.37 MB / 0.5079 GB, free: 2.098 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001252/0.8606, allocations: 1.278 MB / 0.5092 GB, free: 0.7891 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001968/0.8626, allocations: 226.4 kB / 0.5094 GB, free: 0.5625 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2847/1.147, allocations: 0.6266 MB / 0.51 GB, free: 114.9 MB / 426.7 MB Notification: Performance of SimCode: time 2.175e-06/1.147, allocations: 0 / 0.51 GB, free: 114.9 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1605/1.308, allocations: 31.86 MB / 0.5411 GB, free: 113.1 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003003/1.308, allocations: 200 kB / 0.5413 GB, free: 112.8 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.115/5.423, allocations: 0 / 0.5413 GB, free: 112.8 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat does not exist to compare? outputFormat=mat