Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.978/1.978, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.841e-05/3.846e-05, allocations: 0 / 255.5 MB, free: 2.613 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09644/0.09653, allocations: 44.52 MB / 300 MB, free: 6.031 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4495/0.5461, allocations: 90.18 MB / 390.2 MB, free: 12.3 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002895/0.5464, allocations: 83.3 kB / 390.3 MB, free: 12.3 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1739/0.7203, allocations: 44.55 MB / 434.8 MB, free: 13.51 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.7204, allocations: 4 kB / 434.8 MB, free: 13.5 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001411/0.7205, allocations: 39.94 kB / 434.8 MB, free: 13.46 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.005253/0.7258, allocations: 1.596 MB / 436.4 MB, free: 11.93 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.444e-05/0.7259, allocations: 12.03 kB / 436.4 MB, free: 11.92 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006329/0.7265, allocations: 217.5 kB / 436.7 MB, free: 11.79 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001611/0.7282, allocations: 285.5 kB / 436.9 MB, free: 11.51 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004326/0.7325, allocations: 1.204 MB / 438.1 MB, free: 10.56 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001547/0.7327, allocations: 115.4 kB / 438.3 MB, free: 10.49 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004518/0.7332, allocations: 160.2 kB / 438.4 MB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003951/0.7371, allocations: 1.411 MB / 439.8 MB, free: 9.418 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.899e-05/0.7373, allocations: 23.81 kB / 439.8 MB, free: 9.395 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001971/0.7375, allocations: 65.89 kB / 439.9 MB, free: 9.379 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.857e-05/0.7376, allocations: 40 kB / 439.9 MB, free: 9.34 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003493/0.7411, allocations: 0.9414 MB / 440.9 MB, free: 8.754 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01481/0.7559, allocations: 6.401 MB / 447.3 MB, free: 2.578 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002151/0.7581, allocations: 0.5517 MB / 447.8 MB, free: 2.012 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001251/0.7594, allocations: 420.7 kB / 448.3 MB, free: 1.602 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.786e-05/0.7595, allocations: 12.31 kB / 448.3 MB, free: 1.594 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.152e-05/0.7596, allocations: 39.06 kB / 448.3 MB, free: 1.543 MB / 330.7 MB Notification: Performance of pre-optimization done (n=66): time 6.242e-06/0.7596, allocations: 8 kB / 448.3 MB, free: 1.535 MB / 330.7 MB Notification: Performance of matching and sorting (n=72): time 0.005261/0.7648, allocations: 1.795 MB / 450.1 MB, free: 15.69 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.979e-05/0.765, allocations: 111.6 kB / 450.2 MB, free: 15.55 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002502/0.7675, allocations: 1.086 MB / 451.3 MB, free: 14.46 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001209/0.7676, allocations: 41.7 kB / 451.3 MB, free: 14.41 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009455/0.7686, allocations: 0.8602 MB / 452.2 MB, free: 13.55 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003339/0.7689, allocations: 260 kB / 452.5 MB, free: 13.29 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.898e-05/0.769, allocations: 24 kB / 452.5 MB, free: 13.27 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.7692, allocations: 353.9 kB / 452.8 MB, free: 12.92 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007345/0.77, allocations: 246.6 kB / 453.1 MB, free: 12.68 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001112/0.7711, allocations: 0.6929 MB / 453.8 MB, free: 11.76 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009844/0.7721, allocations: 385.9 kB / 454.1 MB, free: 11.38 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.239e-05/0.7721, allocations: 4 kB / 454.1 MB, free: 11.38 MB / 346.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.003526/0.7757, allocations: 1.169 MB / 455.3 MB, free: 10.2 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.787e-05/0.7757, allocations: 18.02 kB / 455.3 MB, free: 10.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.475e-05/0.7758, allocations: 12 kB / 455.3 MB, free: 10.17 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006239/0.7764, allocations: 118.8 kB / 455.5 MB, free: 10.04 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002586/0.779, allocations: 259.6 kB / 455.7 MB, free: 9.789 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00516/0.7842, allocations: 4.208 MB / 459.9 MB, free: 5.18 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001804/0.7861, allocations: 75.94 kB / 460 MB, free: 5.105 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001303/0.7862, allocations: 52 kB / 460 MB, free: 5.055 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 136 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003091/0.7865, allocations: 180.5 kB / 460.2 MB, free: 4.871 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003107/0.7869, allocations: 138.3 kB / 460.4 MB, free: 4.734 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00257/0.7895, allocations: 0.7858 MB / 461.1 MB, free: 3.926 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-05/0.7895, allocations: 8 kB / 461.1 MB, free: 3.918 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.7895, allocations: 0 / 461.1 MB, free: 3.918 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.205e-05/0.7895, allocations: 3.984 kB / 461.1 MB, free: 3.914 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006081/0.7956, allocations: 2.255 MB / 463.4 MB, free: 1.555 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.446e-06/0.7957, allocations: 7.938 kB / 463.4 MB, free: 1.547 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001196/0.7969, allocations: 135.8 kB / 463.5 MB, free: 1.414 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006089/0.7975, allocations: 114.9 kB / 463.7 MB, free: 1.293 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.711e-05/0.7976, allocations: 23.98 kB / 463.7 MB, free: 1.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005377/0.803, allocations: 4.32 MB / 468 MB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.207e-06/0.803, allocations: 12.09 kB / 468 MB, free: 12.54 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003635/0.8067, allocations: 1.434 MB / 469.4 MB, free: 10.92 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009012/0.8077, allocations: 275.4 kB / 469.7 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002882/0.808, allocations: 19.98 kB / 469.7 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001202/0.8092, allocations: 43.97 kB / 469.8 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001962/0.8094, allocations: 68.38 kB / 469.8 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.837e-05/0.8095, allocations: 20 kB / 469.9 MB, free: 10.48 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002103/0.8116, allocations: 0.8178 MB / 470.7 MB, free: 9.66 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.82e-07/0.8116, allocations: 4 kB / 470.7 MB, free: 9.656 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002392/0.814, allocations: 379.9 kB / 471.1 MB, free: 9.285 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.004902/0.819, allocations: 3.24 MB / 474.3 MB, free: 5.949 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002509/0.8215, allocations: 1.004 MB / 475.3 MB, free: 4.918 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.699e-06/0.8216, allocations: 7.984 kB / 475.3 MB, free: 4.91 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001383/0.823, allocations: 0.6437 MB / 476 MB, free: 4.238 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002829/0.8258, allocations: 349 kB / 476.3 MB, free: 3.902 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00927/0.8351, allocations: 2.549 MB / 478.8 MB, free: 1.254 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001242/0.8364, allocations: 1.245 MB / 480.1 MB, free: 15.98 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001345/0.8378, allocations: 183.8 kB / 480.3 MB, free: 15.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00122/0.839, allocations: 0.6203 MB / 480.9 MB, free: 15.18 MB / 378.7 MB Notification: Performance of SimCode: time 1.072e-06/0.8391, allocations: 0 / 480.9 MB, free: 15.18 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1262/0.9653, allocations: 32.5 MB / 0.5014 GB, free: 14.7 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003005/0.9657, allocations: 208.5 kB / 0.5016 GB, free: 14.46 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.87/4.836, allocations: 7.938 kB / 0.5016 GB, free: 14.45 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat does not exist to compare? outputFormat=mat