Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.918/1.918, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.05e-05/3.068e-05, allocations: 4 kB / 292.2 MB, free: 8.246 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1036, allocations: 50.4 MB / 342.7 MB, free: 5.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4936/0.5973, allocations: 99.98 MB / 442.6 MB, free: 10.16 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002858/0.5976, allocations: 82.39 kB / 442.7 MB, free: 10.12 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1276/0.7252, allocations: 30.64 MB / 473.4 MB, free: 15.77 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.7253, allocations: 0 / 473.4 MB, free: 15.77 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.761e-05/0.7254, allocations: 27.94 kB / 473.4 MB, free: 15.75 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.003469/0.7289, allocations: 1.367 MB / 474.8 MB, free: 14.32 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/0.7289, allocations: 12.03 kB / 474.8 MB, free: 14.3 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002814/0.7292, allocations: 168.7 kB / 474.9 MB, free: 14.13 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008374/0.7301, allocations: 194.1 kB / 475.1 MB, free: 13.94 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002297/0.7324, allocations: 0.8516 MB / 476 MB, free: 13.04 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001961/0.7326, allocations: 107.8 kB / 476.1 MB, free: 12.93 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002555/0.7329, allocations: 115.9 kB / 476.2 MB, free: 12.82 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002677/0.7356, allocations: 1.072 MB / 477.3 MB, free: 11.66 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.024e-05/0.7356, allocations: 7.984 kB / 477.3 MB, free: 11.65 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000153/0.7358, allocations: 44 kB / 477.3 MB, free: 11.61 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.57e-05/0.7358, allocations: 28 kB / 477.3 MB, free: 11.58 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002051/0.7379, allocations: 0.6756 MB / 478 MB, free: 10.9 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009155/0.7471, allocations: 3.942 MB / 482 MB, free: 6.762 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002246/0.7494, allocations: 0.5373 MB / 482.5 MB, free: 6.207 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000618/0.75, allocations: 246.8 kB / 482.7 MB, free: 5.969 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.332e-05/0.7501, allocations: 4.562 kB / 482.7 MB, free: 5.965 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006941/0.7508, allocations: 270 kB / 483 MB, free: 5.691 MB / 394.7 MB Notification: Performance of pre-optimization done (n=63): time 3.065e-06/0.7508, allocations: 0 / 483 MB, free: 5.691 MB / 394.7 MB Notification: Performance of matching and sorting (n=66): time 0.004142/0.755, allocations: 1.493 MB / 484.5 MB, free: 4.145 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000231/0.7552, allocations: 487.2 kB / 485 MB, free: 3.555 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001994/0.7572, allocations: 0.9171 MB / 485.9 MB, free: 2.625 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001138/0.7574, allocations: 45.64 kB / 485.9 MB, free: 2.574 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007337/0.7581, allocations: 0.6428 MB / 486.6 MB, free: 1.922 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002871/0.7584, allocations: 240.6 kB / 486.8 MB, free: 1.684 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.815e-05/0.7585, allocations: 20 kB / 486.8 MB, free: 1.664 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.7587, allocations: 345.9 kB / 487.2 MB, free: 1.32 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006695/0.7594, allocations: 222.6 kB / 487.4 MB, free: 1.105 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00106/0.7604, allocations: 0.6717 MB / 488.1 MB, free: 228 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000915/0.7614, allocations: 383.4 kB / 488.4 MB, free: 15.84 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-05/0.7614, allocations: 4 kB / 488.4 MB, free: 15.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002905/0.7643, allocations: 1.055 MB / 489.5 MB, free: 14.76 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.2e-05/0.7644, allocations: 63.41 kB / 489.6 MB, free: 14.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.275e-05/0.7644, allocations: 12 kB / 489.6 MB, free: 14.67 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008389/0.7653, allocations: 173.8 kB / 489.7 MB, free: 14.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001391/0.7667, allocations: 207.7 kB / 489.9 MB, free: 14.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006032/0.7727, allocations: 3.546 MB / 493.5 MB, free: 10.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001722/0.7745, allocations: 79.98 kB / 493.6 MB, free: 10.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001108/0.7746, allocations: 44 kB / 493.6 MB, free: 10.36 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 2 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {6 9} Notification: Performance of prepare postOptimizeDAE: time 0.0003047/0.775, allocations: 176.8 kB / 493.8 MB, free: 10.18 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002336/0.7752, allocations: 130.4 kB / 493.9 MB, free: 10.05 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002044/0.7773, allocations: 0.6609 MB / 494.6 MB, free: 9.371 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.165e-05/0.7773, allocations: 11.94 kB / 494.6 MB, free: 9.359 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.7773, allocations: 0 / 494.6 MB, free: 9.359 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001552/0.7789, allocations: 0.8905 MB / 495.5 MB, free: 8.355 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004329/0.7832, allocations: 1.735 MB / 497.2 MB, free: 6.539 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.257e-06/0.7833, allocations: 3.984 kB / 497.2 MB, free: 6.535 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009874/0.7843, allocations: 111.9 kB / 497.3 MB, free: 6.426 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006658/0.7849, allocations: 130 kB / 497.4 MB, free: 6.293 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.69e-05/0.785, allocations: 12 kB / 497.5 MB, free: 6.281 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004433/0.7895, allocations: 3.256 MB / 0.489 GB, free: 2.758 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.7895, allocations: 3.938 kB / 0.489 GB, free: 2.754 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002599/0.7921, allocations: 1.099 MB / 0.4901 GB, free: 1.578 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006248/0.7927, allocations: 255.6 kB / 0.4903 GB, free: 1.309 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002386/0.793, allocations: 19.98 kB / 0.4903 GB, free: 1.289 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001045/0.7941, allocations: 47.97 kB / 0.4904 GB, free: 1.242 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002/0.7943, allocations: 60.44 kB / 0.4904 GB, free: 1.184 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.952e-05/0.7943, allocations: 16 kB / 0.4904 GB, free: 1.168 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001514/0.7959, allocations: 0.703 MB / 0.4911 GB, free: 468 kB / 410.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.7959, allocations: 0 / 0.4911 GB, free: 468 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.001689/0.7976, allocations: 356 kB / 0.4915 GB, free: 112 kB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i,armature.T,core.T) * 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 (53): * Single equations (assignments): 49 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.003497/0.8011, allocations: 2.375 MB / 0.4938 GB, free: 13.66 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002554/0.8037, allocations: 0.9983 MB / 0.4948 GB, free: 12.62 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.8037, allocations: 1 kB / 0.4948 GB, free: 12.62 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001203/0.8049, allocations: 0.4979 MB / 0.4952 GB, free: 12.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002186/0.8071, allocations: 292.4 kB / 0.4955 GB, free: 11.82 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005321/0.8124, allocations: 1.815 MB / 0.4973 GB, free: 9.934 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008729/0.8133, allocations: 1.113 MB / 0.4984 GB, free: 8.793 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0009236/0.8143, allocations: 153.8 kB / 0.4985 GB, free: 8.641 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008458/0.8151, allocations: 471.3 kB / 0.499 GB, free: 8.18 MB / 426.7 MB Notification: Performance of SimCode: time 1.653e-06/0.8152, allocations: 0 / 0.499 GB, free: 8.18 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3702/1.185, allocations: 29.81 MB / 0.5281 GB, free: 128.2 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002371/1.186, allocations: 195.4 kB / 0.5283 GB, free: 128 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.696/4.881, allocations: 0 / 0.5283 GB, free: 128 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_Cooling_res.mat does not exist to compare? outputFormat=mat