Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.04/2.04, allocations: 205.8 MB / 218.9 MB, free: 9.262 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.228e-05/3.237e-05, allocations: 0 / 269.4 MB, free: 6.297 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1049, allocations: 47.58 MB / 317 MB, free: 6.633 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4451/0.5501, allocations: 98.25 MB / 415.3 MB, free: 5.711 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003177/0.5505, allocations: 83.45 kB / 415.4 MB, free: 5.668 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1208/0.6713, allocations: 27.57 MB / 442.9 MB, free: 14.43 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.845e-06/0.6714, allocations: 4 kB / 442.9 MB, free: 14.43 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001467/0.6715, allocations: 31.84 kB / 443 MB, free: 14.4 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.003317/0.6749, allocations: 1.147 MB / 444.1 MB, free: 13.27 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.599e-05/0.6749, allocations: 8.031 kB / 444.1 MB, free: 13.27 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003776/0.6753, allocations: 153.9 kB / 444.3 MB, free: 13.17 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001066/0.6764, allocations: 190.3 kB / 444.5 MB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002828/0.6793, allocations: 0.849 MB / 445.3 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.942e-05/0.6794, allocations: 69.25 kB / 445.4 MB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002425/0.6796, allocations: 97.06 kB / 445.5 MB, free: 12.17 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002381/0.682, allocations: 0.897 MB / 446.4 MB, free: 11.54 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.453e-05/0.6821, allocations: 7.906 kB / 446.4 MB, free: 11.53 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001276/0.6823, allocations: 44.75 kB / 446.4 MB, free: 11.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.382e-05/0.6823, allocations: 24 kB / 446.4 MB, free: 11.5 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001839/0.6842, allocations: 0.5695 MB / 447 MB, free: 11.14 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009262/0.6935, allocations: 4.165 MB / 451.2 MB, free: 7.574 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001332/0.6948, allocations: 356.6 kB / 451.5 MB, free: 7.336 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003704/0.6953, allocations: 145.6 kB / 451.7 MB, free: 7.246 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.223e-05/0.6953, allocations: 7.984 kB / 451.7 MB, free: 7.238 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.256e-05/0.6954, allocations: 38.36 kB / 451.7 MB, free: 7.195 MB / 362.7 MB Notification: Performance of pre-optimization done (n=37): time 3.366e-06/0.6954, allocations: 4 kB / 451.7 MB, free: 7.191 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.002962/0.6983, allocations: 1.049 MB / 452.8 MB, free: 6.266 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.802e-05/0.6985, allocations: 81.11 kB / 452.8 MB, free: 6.168 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001703/0.7002, allocations: 0.7441 MB / 453.6 MB, free: 5.59 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.731e-05/0.7003, allocations: 32.58 kB / 453.6 MB, free: 5.559 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005931/0.7009, allocations: 0.5977 MB / 454.2 MB, free: 5.133 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002611/0.7012, allocations: 144 kB / 454.4 MB, free: 5.012 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.124e-05/0.7013, allocations: 15 kB / 454.4 MB, free: 5.008 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002055/0.7015, allocations: 336.5 kB / 454.7 MB, free: 4.688 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00061/0.7021, allocations: 155.7 kB / 454.9 MB, free: 4.59 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009668/0.7031, allocations: 448.3 kB / 455.3 MB, free: 4.078 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009189/0.7041, allocations: 226.5 kB / 455.5 MB, free: 3.926 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.476e-05/0.7041, allocations: 4 kB / 455.5 MB, free: 3.922 MB / 362.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002581/0.7067, allocations: 0.6827 MB / 456.2 MB, free: 3.367 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002499/0.7092, allocations: 4.096 MB / 460.3 MB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.551e-05/0.7093, allocations: 12 kB / 460.3 MB, free: 15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003191/0.7096, allocations: 32.84 kB / 460.3 MB, free: 14.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001723/0.7114, allocations: 167.7 kB / 460.5 MB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001849/0.7132, allocations: 1.288 MB / 461.8 MB, free: 13.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001378/0.7147, allocations: 31.94 kB / 461.8 MB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001094/0.7148, allocations: 40 kB / 461.9 MB, free: 13.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.403e-05/0.7148, allocations: 8.156 kB / 461.9 MB, free: 13.31 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002139/0.717, allocations: 0.5596 MB / 462.4 MB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.617e-05/0.717, allocations: 12.06 kB / 462.4 MB, free: 12.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001645/0.7172, allocations: 40.84 kB / 462.5 MB, free: 12.69 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001072/0.7183, allocations: 163.8 kB / 462.6 MB, free: 12.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001318/0.7196, allocations: 1.292 MB / 463.9 MB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009371/0.7206, allocations: 28 kB / 464 MB, free: 11.08 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.452e-05/0.7207, allocations: 44 kB / 464 MB, free: 11.04 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 90 * 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.0002569/0.7209, allocations: 152.7 kB / 464.2 MB, free: 10.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001902/0.7211, allocations: 102.8 kB / 464.3 MB, free: 10.78 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001159/0.7223, allocations: 395.3 kB / 464.6 MB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.678e-06/0.7223, allocations: 4 kB / 464.6 MB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.7224, allocations: 0 / 464.6 MB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.7224, allocations: 3.938 kB / 464.6 MB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002976/0.7254, allocations: 1.305 MB / 465.9 MB, free: 8.988 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.7254, allocations: 0 / 465.9 MB, free: 8.988 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007218/0.7261, allocations: 72.12 kB / 466 MB, free: 8.918 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001533/0.7263, allocations: 28.84 kB / 466 MB, free: 8.887 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.149e-05/0.7264, allocations: 12 kB / 466.1 MB, free: 8.875 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001302/0.7277, allocations: 1.268 MB / 467.3 MB, free: 7.473 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.7277, allocations: 4 kB / 467.3 MB, free: 7.469 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001633/0.7293, allocations: 0.753 MB / 468.1 MB, free: 6.629 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004795/0.7298, allocations: 207.9 kB / 468.3 MB, free: 6.406 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001613/0.73, allocations: 8 kB / 468.3 MB, free: 6.398 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006706/0.7307, allocations: 19.92 kB / 468.3 MB, free: 6.379 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/0.7308, allocations: 31.92 kB / 468.3 MB, free: 6.348 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.664e-05/0.7309, allocations: 12 kB / 468.4 MB, free: 6.336 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001356/0.7322, allocations: 0.5668 MB / 468.9 MB, free: 5.754 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.7322, allocations: 3.938 kB / 468.9 MB, free: 5.75 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002079/0.7343, allocations: 383.9 kB / 469.3 MB, free: 5.375 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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.00267/0.737, allocations: 1.953 MB / 471.3 MB, free: 3.348 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00234/0.7394, allocations: 0.9175 MB / 472.2 MB, free: 2.41 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.774e-06/0.7395, allocations: 5.438 kB / 472.2 MB, free: 2.406 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005864/0.7401, allocations: 258.1 kB / 472.4 MB, free: 2.145 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001945/0.7421, allocations: 226.7 kB / 472.7 MB, free: 1.926 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005286/0.7474, allocations: 1.492 MB / 474.1 MB, free: 376 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008858/0.7484, allocations: 1.05 MB / 475.2 MB, free: 15.29 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001382/0.7498, allocations: 163.4 kB / 475.4 MB, free: 15.12 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007141/0.7505, allocations: 391.3 kB / 475.7 MB, free: 14.74 MB / 394.7 MB Notification: Performance of SimCode: time 1.142e-06/0.7505, allocations: 0 / 475.7 MB, free: 14.74 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07658/0.8271, allocations: 21.89 MB / 497.6 MB, free: 8.918 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002854/0.8274, allocations: 201.1 kB / 497.8 MB, free: 8.688 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.584/4.412, allocations: 0 / 497.8 MB, free: 8.688 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat does not exist to compare? outputFormat=mat