Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.031/2.031, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.794e-05/2.803e-05, allocations: 4 kB / 292.7 MB, free: 8.258 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1031, allocations: 50.41 MB / 343.2 MB, free: 5.828 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4763/0.5794, allocations: 118.3 MB / 461.5 MB, free: 7.945 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003071/0.5798, allocations: 82.27 kB / 461.6 MB, free: 7.902 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.192/0.7718, allocations: 47.23 MB / 0.4969 GB, free: 12.78 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.7718, allocations: 0 / 0.4969 GB, free: 12.78 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002402/0.7721, allocations: 47.98 kB / 0.4969 GB, free: 12.73 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 473 * Number of variables: 473 Notification: Performance of Generate backend data structure: time 0.006909/0.779, allocations: 1.933 MB / 0.4988 GB, free: 10.75 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.746e-05/0.7791, allocations: 12.03 kB / 0.4988 GB, free: 10.74 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009374/0.78, allocations: 266 kB / 0.4991 GB, free: 10.47 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001495/0.7815, allocations: 305 kB / 0.4994 GB, free: 10.17 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004486/0.7861, allocations: 1.253 MB / 0.5006 GB, free: 8.859 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005302/0.7866, allocations: 264.8 kB / 0.5008 GB, free: 8.582 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007192/0.7874, allocations: 191.9 kB / 0.501 GB, free: 8.395 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005983/0.7934, allocations: 1.743 MB / 0.5027 GB, free: 6.598 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.935e-05/0.7935, allocations: 11.84 kB / 0.5027 GB, free: 6.586 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000314/0.7939, allocations: 76 kB / 0.5028 GB, free: 6.512 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.839e-05/0.7939, allocations: 47.95 kB / 0.5029 GB, free: 6.465 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005202/0.7991, allocations: 1.346 MB / 0.5042 GB, free: 5.117 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01842/0.8176, allocations: 7.471 MB / 0.5115 GB, free: 13.32 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003348/0.821, allocations: 1.13 MB / 0.5126 GB, free: 12.12 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009967/0.822, allocations: 375.1 kB / 0.5129 GB, free: 11.75 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001043/0.8222, allocations: 12.77 kB / 0.5129 GB, free: 11.73 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.783e-05/0.8222, allocations: 43.34 kB / 0.513 GB, free: 11.68 MB / 442.7 MB Notification: Performance of pre-optimization done (n=84): time 3.506e-06/0.8222, allocations: 0 / 0.513 GB, free: 11.68 MB / 442.7 MB Notification: Performance of matching and sorting (n=111): time 0.0191/0.8413, allocations: 4.61 MB / 0.5175 GB, free: 6.977 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.537e-05/0.8415, allocations: 94.05 kB / 0.5176 GB, free: 6.867 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002833/0.8443, allocations: 1.194 MB / 0.5187 GB, free: 5.668 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001856/0.8445, allocations: 49.7 kB / 0.5188 GB, free: 5.613 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00101/0.8455, allocations: 0.9786 MB / 0.5198 GB, free: 4.621 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005056/0.8461, allocations: 394.3 kB / 0.5201 GB, free: 4.23 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001479/0.8462, allocations: 32 kB / 0.5202 GB, free: 4.199 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002057/0.8464, allocations: 361.9 kB / 0.5205 GB, free: 3.84 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001603/0.848, allocations: 0.543 MB / 0.521 GB, free: 3.297 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001991/0.8501, allocations: 0.9694 MB / 0.522 GB, free: 2.133 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001622/0.8517, allocations: 0.5866 MB / 0.5226 GB, free: 1.543 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.189e-05/0.8517, allocations: 7.938 kB / 0.5226 GB, free: 1.535 MB / 442.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.2911/1.143, allocations: 1.647 MB / 0.5242 GB, free: 113.7 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001126/1.144, allocations: 5.404 MB / 0.5294 GB, free: 108.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.42e-05/1.144, allocations: 16.06 kB / 0.5295 GB, free: 108.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002959/1.144, allocations: 42.75 kB / 0.5295 GB, free: 108.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003787/1.148, allocations: 439.9 kB / 0.5299 GB, free: 108.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001064/1.149, allocations: 1.296 MB / 0.5312 GB, free: 106.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002916/1.152, allocations: 170.5 kB / 0.5313 GB, free: 106.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001897/1.152, allocations: 64.61 kB / 0.5314 GB, free: 106.9 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/1.152, allocations: 3.188 kB / 0.5314 GB, free: 106.9 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00421/1.157, allocations: 1.462 MB / 0.5328 GB, free: 106.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.364e-05/1.157, allocations: 15.84 kB / 0.5329 GB, free: 106.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001742/1.157, allocations: 41.33 kB / 0.5329 GB, free: 106.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00326/1.16, allocations: 420.3 kB / 0.5333 GB, free: 106.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009263/1.161, allocations: 1.292 MB / 0.5346 GB, free: 105.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00255/1.164, allocations: 141.7 kB / 0.5347 GB, free: 105.7 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001734/1.164, allocations: 61.72 kB / 0.5348 GB, free: 105.7 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: 6 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase,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 (194): * Single equations (assignments): 193 * 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.0005164/1.164, allocations: 201.6 kB / 0.5349 GB, free: 105.6 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003626/1.165, allocations: 163.4 kB / 0.5351 GB, free: 105.6 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003256/1.168, allocations: 1.172 MB / 0.5362 GB, free: 105.5 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.725e-05/1.168, allocations: 10.98 kB / 0.5363 GB, free: 105.5 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/1.168, allocations: 0 / 0.5363 GB, free: 105.5 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.639e-05/1.168, allocations: 6.734 kB / 0.5363 GB, free: 105.5 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009933/1.178, allocations: 3.539 MB / 0.5397 GB, free: 104.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.875e-05/1.178, allocations: 13.25 kB / 0.5397 GB, free: 104.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002347/1.181, allocations: 289.6 kB / 0.54 GB, free: 104.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001617/1.181, allocations: 35.09 kB / 0.54 GB, free: 104.8 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001138/1.181, allocations: 35.03 kB / 0.5401 GB, free: 104.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009153/1.182, allocations: 1.294 MB / 0.5413 GB, free: 103.5 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.509e-05/1.182, allocations: 17.72 kB / 0.5414 GB, free: 103.5 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004078/1.186, allocations: 2.37 MB / 0.5437 GB, free: 102.1 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009184/1.187, allocations: 335.3 kB / 0.544 GB, free: 102 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003139/1.187, allocations: 35.11 kB / 0.544 GB, free: 102 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002021/1.189, allocations: 148 kB / 0.5442 GB, free: 102 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004189/1.19, allocations: 136.3 kB / 0.5443 GB, free: 102 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001132/1.19, allocations: 41.5 kB / 0.5443 GB, free: 102 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002024/1.192, allocations: 0.8917 MB / 0.5452 GB, free: 101.9 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.31e-07/1.192, allocations: 0 / 0.5452 GB, free: 101.9 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003528/1.195, allocations: 0.6891 MB / 0.5459 GB, free: 101.9 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 11 (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) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 109 * 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.00544/1.201, allocations: 6.005 MB / 0.5517 GB, free: 97.26 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005765/1.207, allocations: 2.315 MB / 0.554 GB, free: 97 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.428e-05/1.207, allocations: 1.125 kB / 0.554 GB, free: 97 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001515/1.208, allocations: 0.5489 MB / 0.5545 GB, free: 96.86 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002578/1.211, allocations: 340.5 kB / 0.5549 GB, free: 96.84 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008946/1.22, allocations: 3.06 MB / 0.5579 GB, free: 95.62 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001078/1.221, allocations: 1.385 MB / 0.5592 GB, free: 94.88 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00312/1.224, allocations: 348 kB / 0.5595 GB, free: 94.78 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001333/1.225, allocations: 0.7357 MB / 0.5603 GB, free: 94.77 MB / 442.7 MB Notification: Performance of SimCode: time 1.703e-06/1.225, allocations: 3.375 kB / 0.5603 GB, free: 94.77 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1017/1.327, allocations: 38.84 MB / 0.5982 GB, free: 86.28 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002218/1.327, allocations: 202.7 kB / 0.5984 GB, free: 86.05 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.34/5.668, allocations: 0 / 0.5984 GB, free: 86.05 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat does not exist to compare? outputFormat=mat