Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.939/1.939, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.874e-05/2.883e-05, allocations: 8 kB / 255.5 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09226/0.09231, allocations: 44.49 MB / 300 MB, free: 6.535 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4872/0.5796, allocations: 94.4 MB / 394.4 MB, free: 12.32 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003857/0.58, allocations: 81.89 kB / 394.4 MB, free: 12.32 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1188/0.6988, allocations: 30.27 MB / 424.7 MB, free: 2.336 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.6988, allocations: 0 / 424.7 MB, free: 2.336 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.281e-05/0.6989, allocations: 22.88 kB / 424.7 MB, free: 2.336 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.003102/0.702, allocations: 1.36 MB / 426.1 MB, free: 1.395 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.7021, allocations: 11.75 kB / 426.1 MB, free: 1.395 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002659/0.7024, allocations: 161.5 kB / 426.3 MB, free: 1.328 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007951/0.7032, allocations: 201.1 kB / 426.4 MB, free: 1.234 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002042/0.7053, allocations: 0.8272 MB / 427.3 MB, free: 0.7852 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001615/0.7054, allocations: 121 kB / 427.4 MB, free: 0.7422 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002187/0.7057, allocations: 112.3 kB / 427.5 MB, free: 0.7383 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002358/0.708, allocations: 1.07 MB / 428.6 MB, free: 388 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.365e-05/0.7081, allocations: 3.812 kB / 428.6 MB, free: 388 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001423/0.7083, allocations: 50.64 kB / 428.6 MB, free: 384 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.436e-05/0.7083, allocations: 28.44 kB / 428.7 MB, free: 380 kB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001938/0.7103, allocations: 0.6775 MB / 429.3 MB, free: 348 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009008/0.7193, allocations: 3.94 MB / 433.3 MB, free: 14.2 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002134/0.7215, allocations: 0.541 MB / 433.8 MB, free: 14.12 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006243/0.7221, allocations: 245.2 kB / 434.1 MB, free: 14.05 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.239e-05/0.7222, allocations: 15.83 kB / 434.1 MB, free: 14.04 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006873/0.7229, allocations: 267 kB / 434.3 MB, free: 13.85 MB / 330.7 MB Notification: Performance of pre-optimization done (n=63): time 3.206e-06/0.7229, allocations: 4 kB / 434.3 MB, free: 13.84 MB / 330.7 MB Notification: Performance of matching and sorting (n=66): time 0.004373/0.7273, allocations: 1.475 MB / 435.8 MB, free: 12.61 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002703/0.7276, allocations: 474.4 kB / 436.3 MB, free: 12.04 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00209/0.7297, allocations: 0.9125 MB / 437.2 MB, free: 11.35 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001789/0.7299, allocations: 44.27 kB / 437.2 MB, free: 11.31 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006378/0.7306, allocations: 0.6198 MB / 437.8 MB, free: 10.88 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003542/0.731, allocations: 241.8 kB / 438.1 MB, free: 10.68 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.085e-05/0.7311, allocations: 21.56 kB / 438.1 MB, free: 10.68 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001716/0.7312, allocations: 348.5 kB / 438.4 MB, free: 10.34 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006604/0.7319, allocations: 221.8 kB / 438.7 MB, free: 10.2 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001151/0.7331, allocations: 0.6706 MB / 439.3 MB, free: 9.441 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009884/0.7341, allocations: 381.5 kB / 439.7 MB, free: 9.156 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.334e-05/0.7341, allocations: 4 kB / 439.7 MB, free: 9.152 MB / 330.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002698/0.7368, allocations: 0.9838 MB / 440.7 MB, free: 8.367 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.45e-05/0.737, allocations: 67.34 kB / 440.8 MB, free: 8.289 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.405e-05/0.737, allocations: 12 kB / 440.8 MB, free: 8.277 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008685/0.7379, allocations: 174.3 kB / 440.9 MB, free: 8.129 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001459/0.7394, allocations: 214.4 kB / 441.1 MB, free: 7.926 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005976/0.7454, allocations: 3.548 MB / 444.7 MB, free: 4.562 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00173/0.7471, allocations: 82.86 kB / 444.8 MB, free: 4.496 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001251/0.7473, allocations: 48.3 kB / 444.8 MB, free: 4.457 MB / 330.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.000296/0.7476, allocations: 179.6 kB / 445 MB, free: 4.305 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002343/0.7478, allocations: 118.6 kB / 445.1 MB, free: 4.188 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002107/0.7499, allocations: 0.6633 MB / 445.8 MB, free: 3.68 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.31e-05/0.75, allocations: 4 kB / 445.8 MB, free: 3.676 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.75, allocations: 4 kB / 445.8 MB, free: 3.672 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001538/0.7516, allocations: 0.8828 MB / 446.7 MB, free: 2.68 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004538/0.7561, allocations: 1.721 MB / 448.4 MB, free: 0.8867 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.024e-05/0.7562, allocations: 12.16 kB / 448.4 MB, free: 0.875 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001011/0.7572, allocations: 107.9 kB / 448.5 MB, free: 0.7695 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006948/0.7579, allocations: 129.6 kB / 448.6 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.68e-05/0.758, allocations: 16 kB / 448.7 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004796/0.7628, allocations: 3.27 MB / 451.9 MB, free: 13.09 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.7629, allocations: 4.031 kB / 451.9 MB, free: 13.08 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002785/0.7657, allocations: 1.082 MB / 453 MB, free: 11.92 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008055/0.7665, allocations: 247.6 kB / 453.2 MB, free: 11.66 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002502/0.7668, allocations: 23.94 kB / 453.3 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001084/0.7679, allocations: 51.88 kB / 453.3 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002084/0.7681, allocations: 56.47 kB / 453.4 MB, free: 11.53 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.679e-05/0.7682, allocations: 16 kB / 453.4 MB, free: 11.52 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001636/0.7698, allocations: 0.6904 MB / 454.1 MB, free: 10.82 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.62e-07/0.7698, allocations: 0 / 454.1 MB, free: 10.82 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002238/0.7721, allocations: 351.9 kB / 454.4 MB, free: 10.47 MB / 346.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.003725/0.7759, allocations: 2.348 MB / 456.8 MB, free: 8.078 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002873/0.7788, allocations: 0.9951 MB / 457.8 MB, free: 7.043 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.285e-06/0.7788, allocations: 4 kB / 457.8 MB, free: 7.039 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001346/0.7802, allocations: 0.5058 MB / 458.3 MB, free: 6.512 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002496/0.7827, allocations: 296.7 kB / 458.6 MB, free: 6.223 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006678/0.7894, allocations: 1.829 MB / 460.4 MB, free: 4.32 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009264/0.7904, allocations: 1.105 MB / 461.5 MB, free: 3.188 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001009/0.7914, allocations: 467.3 kB / 462 MB, free: 2.73 MB / 346.7 MB Notification: Performance of SimCode: time 1.002e-06/0.7914, allocations: 0 / 462 MB, free: 2.73 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.496/4.287, allocations: 30.94 MB / 492.9 MB, free: 3.789 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat does not exist to compare? outputFormat=mat