Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.988/1.988, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.223e-05/3.229e-05, allocations: 4 kB / 292.8 MB, free: 8.262 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1044, allocations: 50.41 MB / 343.2 MB, free: 5.832 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4994/0.6038, allocations: 116.4 MB / 459.5 MB, free: 10.29 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000299/0.6042, allocations: 80.27 kB / 459.6 MB, free: 10.25 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1571/0.7613, allocations: 39.6 MB / 499.2 MB, free: 6.52 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.7613, allocations: 0 / 499.2 MB, free: 6.52 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001663/0.7615, allocations: 44.12 kB / 499.3 MB, free: 6.477 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: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.004241/0.7658, allocations: 1.529 MB / 0.489 GB, free: 4.895 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5e-05/0.7658, allocations: 12.47 kB / 0.4891 GB, free: 4.883 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004442/0.7663, allocations: 215.5 kB / 0.4893 GB, free: 4.66 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001129/0.7674, allocations: 257.5 kB / 0.4895 GB, free: 4.406 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003087/0.7705, allocations: 1.055 MB / 0.4905 GB, free: 3.309 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001252/0.7707, allocations: 115 kB / 0.4907 GB, free: 3.195 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003502/0.7711, allocations: 155.8 kB / 0.4908 GB, free: 3.043 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003595/0.7747, allocations: 1.343 MB / 0.4921 GB, free: 1.645 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.658e-05/0.7748, allocations: 0 / 0.4921 GB, free: 1.645 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002038/0.775, allocations: 64 kB / 0.4922 GB, free: 1.582 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.935e-05/0.775, allocations: 36 kB / 0.4922 GB, free: 1.547 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002609/0.7776, allocations: 0.8568 MB / 0.493 GB, free: 0.6875 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01348/0.7911, allocations: 6.221 MB / 0.4991 GB, free: 10.16 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001663/0.7929, allocations: 0.6177 MB / 0.4997 GB, free: 9.492 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005122/0.7934, allocations: 206.2 kB / 0.4999 GB, free: 9.289 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.331e-05/0.7935, allocations: 8.438 kB / 0.4999 GB, free: 9.277 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.104e-05/0.7935, allocations: 50.88 kB / 0.5 GB, free: 9.219 MB / 426.7 MB Notification: Performance of pre-optimization done (n=51): time 3.366e-06/0.7936, allocations: 0 / 0.5 GB, free: 9.219 MB / 426.7 MB Notification: Performance of matching and sorting (n=54): time 0.00348/0.797, allocations: 1.344 MB / 0.5013 GB, free: 7.82 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.74e-05/0.7971, allocations: 93.48 kB / 0.5014 GB, free: 7.711 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002129/0.7993, allocations: 0.9391 MB / 0.5023 GB, free: 6.758 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.835e-05/0.7994, allocations: 33.7 kB / 0.5023 GB, free: 6.719 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008229/0.8002, allocations: 0.8092 MB / 0.5031 GB, free: 5.898 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002465/0.8005, allocations: 201.1 kB / 0.5033 GB, free: 5.699 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.292e-05/0.8006, allocations: 16 kB / 0.5033 GB, free: 5.684 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001766/0.8007, allocations: 341.9 kB / 0.5036 GB, free: 5.344 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000613/0.8014, allocations: 214 kB / 0.5039 GB, free: 5.133 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009477/0.8023, allocations: 0.5844 MB / 0.5044 GB, free: 4.371 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008131/0.8032, allocations: 319 kB / 0.5047 GB, free: 4.062 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-05/0.8032, allocations: 4 kB / 0.5047 GB, free: 4.059 MB / 426.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.00241/0.8056, allocations: 0.8973 MB / 0.5056 GB, free: 3.148 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002336/0.808, allocations: 5.14 MB / 0.5106 GB, free: 13.61 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.628e-05/0.808, allocations: 16.03 kB / 0.5106 GB, free: 13.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002837/0.8083, allocations: 44.84 kB / 0.5107 GB, free: 13.55 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001653/0.81, allocations: 227.6 kB / 0.5109 GB, free: 13.33 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001327/0.8113, allocations: 1.292 MB / 0.5122 GB, free: 11.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001328/0.8127, allocations: 56.05 kB / 0.5122 GB, free: 11.85 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.763e-05/0.8128, allocations: 48 kB / 0.5123 GB, free: 11.8 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.124e-05/0.8128, allocations: 4 kB / 0.5123 GB, free: 11.8 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00198/0.8148, allocations: 0.7526 MB / 0.513 GB, free: 11.04 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.909e-05/0.8149, allocations: 16.22 kB / 0.513 GB, free: 11.02 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001681/0.815, allocations: 48.73 kB / 0.5131 GB, free: 10.97 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001358/0.8164, allocations: 219.7 kB / 0.5133 GB, free: 10.76 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001513/0.8179, allocations: 1.284 MB / 0.5145 GB, free: 9.344 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001906/0.8199, allocations: 39.98 kB / 0.5146 GB, free: 9.305 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001606/0.8201, allocations: 52 kB / 0.5146 GB, free: 9.254 MB / 442.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.0004397/0.8205, allocations: 172.5 kB / 0.5148 GB, free: 9.078 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004182/0.821, allocations: 118.7 kB / 0.5149 GB, free: 8.961 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002286/0.8233, allocations: 0.5122 MB / 0.5154 GB, free: 8.438 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.635e-05/0.8233, allocations: 4.047 kB / 0.5154 GB, free: 8.434 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.123e-05/0.8234, allocations: 3.984 kB / 0.5154 GB, free: 8.43 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.84e-05/0.8234, allocations: 7.984 kB / 0.5154 GB, free: 8.422 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005215/0.8286, allocations: 1.765 MB / 0.5171 GB, free: 6.578 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.8287, allocations: 0 / 0.5171 GB, free: 6.578 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001086/0.8298, allocations: 116 kB / 0.5172 GB, free: 6.465 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000156/0.83, allocations: 24.84 kB / 0.5173 GB, free: 6.438 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.594e-05/0.83, allocations: 15.95 kB / 0.5173 GB, free: 6.422 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001213/0.8313, allocations: 1.276 MB / 0.5185 GB, free: 5.008 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/0.8313, allocations: 4 kB / 0.5185 GB, free: 5.004 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001999/0.8333, allocations: 0.9276 MB / 0.5194 GB, free: 4.004 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006223/0.8339, allocations: 239.6 kB / 0.5197 GB, free: 3.75 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002124/0.8342, allocations: 12 kB / 0.5197 GB, free: 3.738 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009316/0.8351, allocations: 43.97 kB / 0.5197 GB, free: 3.695 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001196/0.8352, allocations: 36.39 kB / 0.5198 GB, free: 3.66 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.194e-05/0.8353, allocations: 19.95 kB / 0.5198 GB, free: 3.641 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001651/0.837, allocations: 0.7021 MB / 0.5205 GB, free: 2.93 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.21e-07/0.837, allocations: 0 / 0.5205 GB, free: 2.93 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002785/0.8398, allocations: 0.5039 MB / 0.521 GB, free: 2.426 MB / 442.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.003204/0.843, allocations: 2.255 MB / 0.5232 GB, free: 100 kB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.3025/1.146, allocations: 1.156 MB / 0.5243 GB, free: 120.2 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.256e-06/1.146, allocations: 0 / 0.5243 GB, free: 120.2 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007462/1.146, allocations: 314.6 kB / 0.5246 GB, free: 120.1 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002139/1.149, allocations: 248.3 kB / 0.5248 GB, free: 120.1 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006684/1.155, allocations: 2.089 MB / 0.5269 GB, free: 119.4 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009829/1.156, allocations: 1.201 MB / 0.528 GB, free: 118.7 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001839/1.158, allocations: 209.2 kB / 0.5282 GB, free: 118.7 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008597/1.159, allocations: 0.5407 MB / 0.5288 GB, free: 118.7 MB / 442.7 MB Notification: Performance of SimCode: time 1.543e-06/1.159, allocations: 0 / 0.5288 GB, free: 118.7 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08795/1.247, allocations: 28.39 MB / 0.5565 GB, free: 117 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002427/1.247, allocations: 205.4 kB / 0.5567 GB, free: 116.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.684/4.931, allocations: 0 / 0.5567 GB, free: 116.8 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat does not exist to compare? outputFormat=mat