Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.902/1.902, allocations: 225.8 MB / 238.8 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.802e-05/2.838e-05, allocations: 0 / 292.2 MB, free: 8.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1015, allocations: 50.4 MB / 342.6 MB, free: 5.797 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4498/0.5514, allocations: 99.5 MB / 442.1 MB, free: 11.01 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003022/0.5517, allocations: 80.95 kB / 442.2 MB, free: 10.97 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1146/0.6663, allocations: 27.52 MB / 469.7 MB, free: 3.488 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.6663, allocations: 0 / 469.7 MB, free: 3.488 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.613e-05/0.6665, allocations: 24 kB / 469.8 MB, free: 3.465 MB / 378.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.002803/0.6693, allocations: 1.15 MB / 470.9 MB, free: 2.266 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/0.6693, allocations: 8.031 kB / 470.9 MB, free: 2.258 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002937/0.6696, allocations: 152.1 kB / 471.1 MB, free: 2.102 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009749/0.6706, allocations: 190.3 kB / 471.3 MB, free: 1.914 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002424/0.6731, allocations: 0.8398 MB / 472.1 MB, free: 1.031 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.565e-05/0.6732, allocations: 74 kB / 472.2 MB, free: 0.9609 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002263/0.6734, allocations: 103.9 kB / 472.3 MB, free: 0.8594 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002275/0.6757, allocations: 0.8991 MB / 473.2 MB, free: 15.91 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.583e-05/0.6758, allocations: 0 / 473.2 MB, free: 15.91 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001368/0.6759, allocations: 44 kB / 473.2 MB, free: 15.87 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.008e-05/0.676, allocations: 24 kB / 473.2 MB, free: 15.85 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001703/0.6777, allocations: 0.5662 MB / 473.8 MB, free: 15.29 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008558/0.6862, allocations: 4.165 MB / 478 MB, free: 10.88 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001273/0.6876, allocations: 343.2 kB / 478.3 MB, free: 10.54 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003547/0.6879, allocations: 144.9 kB / 478.4 MB, free: 10.4 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.478e-05/0.688, allocations: 4 kB / 478.5 MB, free: 10.39 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.35e-05/0.688, allocations: 42.5 kB / 478.5 MB, free: 10.34 MB / 394.7 MB Notification: Performance of pre-optimization done (n=37): time 4.569e-06/0.6881, allocations: 0 / 478.5 MB, free: 10.34 MB / 394.7 MB Notification: Performance of matching and sorting (n=40): time 0.00271/0.6908, allocations: 1.055 MB / 479.5 MB, free: 9.23 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.096e-05/0.6909, allocations: 81.11 kB / 479.6 MB, free: 9.133 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001603/0.6925, allocations: 0.7409 MB / 480.4 MB, free: 8.367 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.279e-05/0.6926, allocations: 33.7 kB / 480.4 MB, free: 8.328 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006248/0.6932, allocations: 0.5992 MB / 481 MB, free: 7.719 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001718/0.6934, allocations: 142 kB / 481.1 MB, free: 7.578 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.475e-05/0.6934, allocations: 16 kB / 481.2 MB, free: 7.562 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.6936, allocations: 334 kB / 481.5 MB, free: 7.23 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000426/0.694, allocations: 145.6 kB / 481.6 MB, free: 7.09 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00072/0.6948, allocations: 461.1 kB / 482.1 MB, free: 6.496 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005887/0.6954, allocations: 224.1 kB / 482.3 MB, free: 6.277 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.114e-06/0.6954, allocations: 0 / 482.3 MB, free: 6.277 MB / 394.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001831/0.6972, allocations: 0.6811 MB / 483 MB, free: 5.586 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001791/0.6991, allocations: 4.095 MB / 487.1 MB, free: 1.172 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.937e-05/0.6991, allocations: 12 kB / 487.1 MB, free: 1.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002568/0.6994, allocations: 36.86 kB / 487.1 MB, free: 1.121 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001204/0.7006, allocations: 167.7 kB / 487.3 MB, free: 0.957 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001267/0.7019, allocations: 1.295 MB / 488.6 MB, free: 15.53 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00102/0.7029, allocations: 35.91 kB / 488.6 MB, free: 15.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.506e-05/0.703, allocations: 39.94 kB / 488.6 MB, free: 15.46 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.7031, allocations: 7.984 kB / 488.7 MB, free: 15.45 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00144/0.7045, allocations: 0.5629 MB / 489.2 MB, free: 14.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.852e-05/0.7045, allocations: 12 kB / 489.2 MB, free: 14.87 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001479/0.7047, allocations: 37.69 kB / 489.3 MB, free: 14.83 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001051/0.7058, allocations: 171.7 kB / 489.4 MB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001123/0.7069, allocations: 1.28 MB / 490.7 MB, free: 13.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000894/0.7078, allocations: 35.89 kB / 490.8 MB, free: 13.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.482e-05/0.7079, allocations: 32 kB / 490.8 MB, free: 13.18 MB / 410.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.0002214/0.7081, allocations: 156.7 kB / 490.9 MB, free: 13.02 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001854/0.7083, allocations: 98.81 kB / 491 MB, free: 12.93 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001088/0.7094, allocations: 395.8 kB / 491.4 MB, free: 12.53 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.155e-06/0.7095, allocations: 4 kB / 491.4 MB, free: 12.53 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.7095, allocations: 0 / 491.4 MB, free: 12.53 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.838e-06/0.7095, allocations: 3.984 kB / 491.4 MB, free: 12.52 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002786/0.7123, allocations: 1.302 MB / 492.7 MB, free: 11.14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.7123, allocations: 0 / 492.7 MB, free: 11.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000717/0.713, allocations: 79.89 kB / 492.8 MB, free: 11.06 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001298/0.7132, allocations: 16.86 kB / 492.8 MB, free: 11.04 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.61e-05/0.7132, allocations: 20.16 kB / 492.8 MB, free: 11.02 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001131/0.7144, allocations: 1.272 MB / 494.1 MB, free: 9.617 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/0.7144, allocations: 8.125 kB / 494.1 MB, free: 9.609 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001504/0.7159, allocations: 0.7373 MB / 494.9 MB, free: 8.785 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004573/0.7164, allocations: 200 kB / 495.1 MB, free: 8.57 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001581/0.7166, allocations: 8 kB / 495.1 MB, free: 8.562 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006595/0.7173, allocations: 23.98 kB / 495.1 MB, free: 8.539 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.275e-05/0.7174, allocations: 27.97 kB / 495.1 MB, free: 8.512 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.337e-05/0.7174, allocations: 8 kB / 495.1 MB, free: 8.504 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001246/0.7187, allocations: 0.5666 MB / 495.7 MB, free: 7.922 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.7187, allocations: 0 / 495.7 MB, free: 7.922 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001897/0.7206, allocations: 383.9 kB / 496.1 MB, free: 7.547 MB / 410.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.002342/0.7229, allocations: 1.975 MB / 498 MB, free: 5.492 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002166/0.7251, allocations: 0.911 MB / 498.9 MB, free: 4.562 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.7252, allocations: 0 / 498.9 MB, free: 4.562 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000531/0.7257, allocations: 263.6 kB / 499.2 MB, free: 4.297 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001787/0.7275, allocations: 216.6 kB / 499.4 MB, free: 4.09 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00445/0.732, allocations: 1.495 MB / 0.4892 GB, free: 2.527 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000803/0.7328, allocations: 1.05 MB / 0.4902 GB, free: 1.449 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001283/0.7341, allocations: 167.4 kB / 0.4904 GB, free: 1.281 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006787/0.7348, allocations: 387.3 kB / 0.4907 GB, free: 0.9023 MB / 410.7 MB Notification: Performance of SimCode: time 1.483e-06/0.7348, allocations: 0 / 0.4907 GB, free: 0.9023 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07354/0.8084, allocations: 21.8 MB / 0.512 GB, free: 11.35 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002705/0.8087, allocations: 201.9 kB / 0.5122 GB, free: 11.12 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.399/4.207, allocations: 7.75 kB / 0.5122 GB, free: 11.12 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat does not exist to compare? outputFormat=mat