Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.176/2.176, allocations: 205.8 MB / 218.9 MB, free: 9.254 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.807e-05/4.82e-05, allocations: 4 kB / 269.5 MB, free: 6.301 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1331/0.1332, allocations: 47.57 MB / 317 MB, free: 6.641 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6677/0.801, allocations: 117.2 MB / 434.3 MB, free: 2.82 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004795/0.8015, allocations: 80.89 kB / 434.4 MB, free: 2.777 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2331/1.035, allocations: 47.08 MB / 481.4 MB, free: 10.82 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.244e-06/1.035, allocations: 0 / 481.4 MB, free: 10.82 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000196/1.035, allocations: 44 kB / 481.5 MB, free: 10.78 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: 473 * Number of variables: 473 Notification: Performance of Generate backend data structure: time 0.006657/1.042, allocations: 1.937 MB / 483.4 MB, free: 8.789 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.785e-05/1.042, allocations: 8.031 kB / 483.4 MB, free: 8.781 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007265/1.042, allocations: 274 kB / 483.7 MB, free: 8.504 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001369/1.044, allocations: 297 kB / 484 MB, free: 8.211 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004143/1.048, allocations: 1.253 MB / 485.2 MB, free: 6.902 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000473/1.048, allocations: 272.7 kB / 485.5 MB, free: 6.617 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004896/1.049, allocations: 191.9 kB / 485.7 MB, free: 6.43 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005149/1.054, allocations: 1.75 MB / 487.4 MB, free: 4.625 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.486e-05/1.054, allocations: 4 kB / 487.4 MB, free: 4.621 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002691/1.055, allocations: 79.98 kB / 487.5 MB, free: 4.543 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.904e-05/1.055, allocations: 44 kB / 487.6 MB, free: 4.5 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004506/1.059, allocations: 1.346 MB / 488.9 MB, free: 3.152 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02023/1.079, allocations: 7.48 MB / 496.4 MB, free: 11.35 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003553/1.083, allocations: 1.126 MB / 497.5 MB, free: 10.14 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001115/1.084, allocations: 367.2 kB / 497.9 MB, free: 9.781 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001037/1.084, allocations: 8.781 kB / 497.9 MB, free: 9.773 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.981e-05/1.084, allocations: 47.28 kB / 497.9 MB, free: 9.715 MB / 410.7 MB Notification: Performance of pre-optimization done (n=84): time 3.336e-06/1.084, allocations: 0 / 497.9 MB, free: 9.715 MB / 410.7 MB Notification: Performance of matching and sorting (n=111): time 0.01934/1.104, allocations: 4.63 MB / 0.4908 GB, free: 4.992 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.223e-05/1.104, allocations: 98.05 kB / 0.4909 GB, free: 4.879 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003175/1.107, allocations: 1.198 MB / 0.492 GB, free: 3.676 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002888/1.107, allocations: 45.7 kB / 0.4921 GB, free: 3.625 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001096/1.108, allocations: 0.9826 MB / 0.493 GB, free: 2.629 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005992/1.109, allocations: 390.4 kB / 0.4934 GB, free: 2.242 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001791/1.109, allocations: 32 kB / 0.4934 GB, free: 2.211 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002065/1.109, allocations: 365.9 kB / 0.4938 GB, free: 1.848 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001659/1.111, allocations: 0.543 MB / 0.4943 GB, free: 1.305 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002114/1.113, allocations: 0.9733 MB / 0.4953 GB, free: 140 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00175/1.115, allocations: 0.5867 MB / 0.4958 GB, free: 15.54 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.57e-05/1.115, allocations: 4 kB / 0.4959 GB, free: 15.54 MB / 426.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004993/1.12, allocations: 1.644 MB / 0.4975 GB, free: 13.88 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002556/1.123, allocations: 5.415 MB / 0.5027 GB, free: 8.152 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.772e-05/1.123, allocations: 19.98 kB / 0.5028 GB, free: 8.133 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003194/1.123, allocations: 44.84 kB / 0.5028 GB, free: 8.086 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003914/1.127, allocations: 435.4 kB / 0.5032 GB, free: 7.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001437/1.129, allocations: 1.292 MB / 0.5045 GB, free: 6.234 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00432/1.133, allocations: 179.9 kB / 0.5047 GB, free: 6.059 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004243/1.133, allocations: 60 kB / 0.5047 GB, free: 6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/1.133, allocations: 4 kB / 0.5047 GB, free: 5.996 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004689/1.138, allocations: 1.465 MB / 0.5061 GB, free: 4.527 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-05/1.138, allocations: 12 kB / 0.5062 GB, free: 4.516 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002053/1.138, allocations: 44.84 kB / 0.5062 GB, free: 4.469 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003703/1.142, allocations: 411.6 kB / 0.5066 GB, free: 4.066 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001388/1.144, allocations: 1.292 MB / 0.5079 GB, free: 2.645 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002977/1.147, allocations: 147.9 kB / 0.508 GB, free: 2.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002998/1.147, allocations: 63.94 kB / 0.5081 GB, free: 2.438 MB / 426.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.0005314/1.148, allocations: 204.4 kB / 0.5083 GB, free: 2.23 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000508/1.148, allocations: 166 kB / 0.5084 GB, free: 2.066 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003761/1.152, allocations: 1.171 MB / 0.5096 GB, free: 0.8789 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.158e-05/1.152, allocations: 8 kB / 0.5096 GB, free: 0.8711 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.167e-06/1.152, allocations: 7.922 kB / 0.5096 GB, free: 0.8633 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.653e-05/1.152, allocations: 7.984 kB / 0.5096 GB, free: 0.8555 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2952/1.447, allocations: 3.527 MB / 0.513 GB, free: 112.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.331e-05/1.447, allocations: 14.06 kB / 0.513 GB, free: 112.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002452/1.45, allocations: 289.6 kB / 0.5133 GB, free: 112.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001896/1.45, allocations: 37.77 kB / 0.5133 GB, free: 112.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001386/1.45, allocations: 34 kB / 0.5134 GB, free: 112.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009934/1.451, allocations: 1.292 MB / 0.5146 GB, free: 111.7 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.748e-05/1.451, allocations: 18.81 kB / 0.5147 GB, free: 111.7 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004381/1.455, allocations: 2.367 MB / 0.517 GB, free: 110.3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00102/1.457, allocations: 337.8 kB / 0.5173 GB, free: 110.2 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003221/1.457, allocations: 42.42 kB / 0.5173 GB, free: 110.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002092/1.459, allocations: 148 kB / 0.5175 GB, free: 110.2 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004295/1.459, allocations: 135.8 kB / 0.5176 GB, free: 110.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001154/1.46, allocations: 42.02 kB / 0.5176 GB, free: 110.2 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002247/1.462, allocations: 0.9012 MB / 0.5185 GB, free: 110.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.72e-07/1.462, allocations: 0 / 0.5185 GB, free: 110.1 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003941/1.466, allocations: 0.688 MB / 0.5192 GB, free: 110.1 MB / 426.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.006496/1.472, allocations: 5.998 MB / 0.5251 GB, free: 105.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006577/1.479, allocations: 2.301 MB / 0.5273 GB, free: 105.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.21e-05/1.479, allocations: 5.125 kB / 0.5273 GB, free: 105.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001722/1.481, allocations: 0.5515 MB / 0.5278 GB, free: 105.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002957/1.484, allocations: 333.9 kB / 0.5282 GB, free: 105.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01071/1.495, allocations: 3.075 MB / 0.5312 GB, free: 104.1 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001346/1.496, allocations: 1.383 MB / 0.5325 GB, free: 103.4 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00369/1.5, allocations: 354.5 kB / 0.5329 GB, free: 103.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001719/1.501, allocations: 0.7373 MB / 0.5336 GB, free: 103.3 MB / 426.7 MB Notification: Performance of SimCode: time 1.553e-06/1.501, allocations: 0 / 0.5336 GB, free: 103.3 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1018/1.603, allocations: 38.96 MB / 0.5716 GB, free: 95.48 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002703/1.604, allocations: 205.6 kB / 0.5718 GB, free: 95.25 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.591/6.195, allocations: 1.5 kB / 0.5718 GB, free: 95.25 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat does not exist to compare? outputFormat=mat