Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.931/1.931, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.294e-05/3.302e-05, allocations: 4 kB / 225.1 MB, free: 2.242 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2838/0.2838, allocations: 38.77 MB / 263.9 MB, free: 9.711 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.16/0.4439, allocations: 84.74 MB / 348.6 MB, free: 4.836 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003459/0.4443, allocations: 83.95 kB / 348.7 MB, free: 4.754 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4185/0.8628, allocations: 40.76 MB / 389.5 MB, free: 81.11 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.8629, allocations: 0 / 389.5 MB, free: 81.11 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001027/0.863, allocations: 31.78 kB / 389.5 MB, free: 81.11 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003786/0.8668, allocations: 1.551 MB / 391 MB, free: 80.15 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.8669, allocations: 13.56 kB / 391.1 MB, free: 80.14 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004009/0.8673, allocations: 221.8 kB / 391.3 MB, free: 80 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001166/0.8685, allocations: 257.3 kB / 391.5 MB, free: 79.9 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002832/0.8713, allocations: 1.099 MB / 392.6 MB, free: 79.22 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.265e-05/0.8714, allocations: 115.7 kB / 392.7 MB, free: 79.17 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003176/0.8718, allocations: 160.7 kB / 392.9 MB, free: 79.02 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003227/0.875, allocations: 1.41 MB / 394.3 MB, free: 77.68 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.178e-05/0.8751, allocations: 15.89 kB / 394.3 MB, free: 77.66 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001851/0.8753, allocations: 64 kB / 394.4 MB, free: 77.6 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.546e-05/0.8754, allocations: 36 kB / 394.4 MB, free: 77.57 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002408/0.8778, allocations: 0.8946 MB / 395.3 MB, free: 76.67 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01083/0.8886, allocations: 6.652 MB / 402 MB, free: 69.72 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008665/0.8896, allocations: 359.9 kB / 402.3 MB, free: 69.36 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004612/0.89, allocations: 198.2 kB / 402.5 MB, free: 69.16 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.897e-05/0.8901, allocations: 4.438 kB / 402.5 MB, free: 69.16 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000508/0.8906, allocations: 260.8 kB / 402.8 MB, free: 68.88 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 3.567e-06/0.8906, allocations: 0 / 402.8 MB, free: 68.88 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.003474/0.8941, allocations: 1.618 MB / 404.4 MB, free: 67.2 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.357e-05/0.8942, allocations: 192.5 kB / 404.6 MB, free: 66.96 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00191/0.8962, allocations: 1.061 MB / 405.6 MB, free: 65.89 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.055e-05/0.8963, allocations: 37.7 kB / 405.7 MB, free: 65.85 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006982/0.897, allocations: 0.8704 MB / 406.5 MB, free: 64.97 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001771/0.8972, allocations: 205 kB / 406.7 MB, free: 64.77 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.912e-05/0.8972, allocations: 24 kB / 406.8 MB, free: 64.75 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.596e-05/0.8973, allocations: 353.9 kB / 407.1 MB, free: 64.4 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005314/0.8979, allocations: 210.6 kB / 407.3 MB, free: 64.19 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007996/0.8987, allocations: 0.7775 MB / 408.1 MB, free: 63.13 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007615/0.8995, allocations: 388.6 kB / 408.5 MB, free: 62.75 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.165e-05/0.8995, allocations: 4 kB / 408.5 MB, free: 62.74 MB / 314.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.002355/0.9019, allocations: 1.091 MB / 409.6 MB, free: 61.64 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.94e-05/0.9019, allocations: 41.69 kB / 409.6 MB, free: 61.59 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.518e-05/0.902, allocations: 24 kB / 409.6 MB, free: 61.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002998/0.9023, allocations: 70.23 kB / 409.7 MB, free: 61.49 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001447/0.9037, allocations: 271.6 kB / 410 MB, free: 61.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0018/0.9056, allocations: 2.568 MB / 412.5 MB, free: 58.39 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001683/0.9073, allocations: 72.23 kB / 412.6 MB, free: 58.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001048/0.9074, allocations: 60 kB / 412.7 MB, free: 58.26 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002401/0.9077, allocations: 200.3 kB / 412.9 MB, free: 58.06 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00019/0.9079, allocations: 130.4 kB / 413 MB, free: 57.93 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001252/0.9091, allocations: 0.5096 MB / 413.5 MB, free: 57.4 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.9091, allocations: 11.98 kB / 413.5 MB, free: 57.39 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.9092, allocations: 0 / 413.5 MB, free: 57.39 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.468e-06/0.9092, allocations: 3.953 kB / 413.5 MB, free: 57.39 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003459/0.9126, allocations: 1.882 MB / 415.4 MB, free: 55.4 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.105e-06/0.9127, allocations: 4 kB / 415.4 MB, free: 55.39 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008188/0.9135, allocations: 112.3 kB / 415.5 MB, free: 55.29 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002224/0.9138, allocations: 37.7 kB / 415.5 MB, free: 55.24 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.663e-05/0.9138, allocations: 23.94 kB / 415.6 MB, free: 55.22 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001713/0.9156, allocations: 2.552 MB / 418.1 MB, free: 52.4 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.013e-06/0.9156, allocations: 7.938 kB / 418.1 MB, free: 52.39 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001758/0.9174, allocations: 1.073 MB / 419.2 MB, free: 51.13 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005737/0.918, allocations: 251.5 kB / 419.4 MB, free: 50.87 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002353/0.9182, allocations: 19.95 kB / 419.5 MB, free: 50.85 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009492/0.9192, allocations: 39.97 kB / 419.5 MB, free: 50.81 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000141/0.9193, allocations: 47.88 kB / 419.6 MB, free: 50.76 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.967e-05/0.9194, allocations: 20 kB / 419.6 MB, free: 50.74 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00154/0.9209, allocations: 0.8013 MB / 420.4 MB, free: 49.94 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.921, allocations: 3.938 kB / 420.4 MB, free: 49.93 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001752/0.9227, allocations: 336 kB / 420.7 MB, free: 49.61 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002417/0.9252, allocations: 2.831 MB / 423.5 MB, free: 46.67 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001735/0.9269, allocations: 0.8397 MB / 424.4 MB, free: 45.8 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.262e-06/0.9269, allocations: 5.5 kB / 424.4 MB, free: 45.79 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007818/0.9277, allocations: 432.2 kB / 424.8 MB, free: 45.35 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002302/0.93, allocations: 316.6 kB / 425.1 MB, free: 45.05 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005567/0.9356, allocations: 2.111 MB / 427.2 MB, free: 42.84 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007598/0.9364, allocations: 1.209 MB / 428.4 MB, free: 41.61 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001065/0.9375, allocations: 179.3 kB / 428.6 MB, free: 41.43 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000878/0.9384, allocations: 0.5813 MB / 429.2 MB, free: 40.84 MB / 314.7 MB Notification: Performance of SimCode: time 1.182e-06/0.9384, allocations: 7.938 kB / 429.2 MB, free: 40.84 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0781/1.017, allocations: 28.36 MB / 457.6 MB, free: 12.5 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002155/1.017, allocations: 202.5 kB / 457.8 MB, free: 12.27 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.597/4.614, allocations: 0 / 457.8 MB, free: 12.27 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat does not exist to compare? outputFormat=mat