Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.833/1.833, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.228e-05/3.245e-05, allocations: 4 kB / 225.1 MB, free: 2.238 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2853/0.2854, allocations: 38.77 MB / 263.9 MB, free: 9.707 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2031/0.4885, allocations: 89.24 MB / 353.1 MB, free: 340 kB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002922/0.4889, allocations: 83.95 kB / 353.2 MB, free: 256 kB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3736/0.8625, allocations: 30.32 MB / 383.5 MB, free: 84.04 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.8626, allocations: 0 / 383.5 MB, free: 84.04 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001406/0.8628, allocations: 25.72 kB / 383.5 MB, free: 84.04 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.005001/0.8678, allocations: 1.346 MB / 384.9 MB, free: 83.16 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.009e-05/0.8679, allocations: 10.47 kB / 384.9 MB, free: 83.16 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004553/0.8683, allocations: 169.5 kB / 385.1 MB, free: 83.04 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001269/0.8696, allocations: 196 kB / 385.3 MB, free: 82.96 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003277/0.8729, allocations: 0.8423 MB / 386.1 MB, free: 82.43 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002438/0.8732, allocations: 111.6 kB / 386.2 MB, free: 82.36 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003273/0.8736, allocations: 106.7 kB / 386.3 MB, free: 82.32 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003092/0.8767, allocations: 1.086 MB / 387.4 MB, free: 81.71 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.357e-05/0.8768, allocations: 7.281 kB / 387.4 MB, free: 81.71 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001523/0.8769, allocations: 46.06 kB / 387.4 MB, free: 81.67 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.657e-05/0.877, allocations: 24.78 kB / 387.5 MB, free: 81.67 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002075/0.879, allocations: 0.6727 MB / 388.1 MB, free: 81.42 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008277/0.8874, allocations: 3.915 MB / 392.1 MB, free: 79.01 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002095/0.8895, allocations: 0.5368 MB / 392.6 MB, free: 78.64 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005521/0.8901, allocations: 241.7 kB / 392.8 MB, free: 78.41 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.758e-05/0.8902, allocations: 12.47 kB / 392.8 MB, free: 78.4 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006296/0.8908, allocations: 272.2 kB / 393.1 MB, free: 78.16 MB / 314.7 MB Notification: Performance of pre-optimization done (n=63): time 3.196e-06/0.8908, allocations: 0 / 393.1 MB, free: 78.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=66): time 0.003702/0.8945, allocations: 1.479 MB / 394.6 MB, free: 76.7 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001271/0.8947, allocations: 483.2 kB / 395.1 MB, free: 76.12 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001645/0.8964, allocations: 0.9064 MB / 396 MB, free: 75.27 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001048/0.8965, allocations: 41.7 kB / 396 MB, free: 75.22 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005375/0.897, allocations: 0.6426 MB / 396.7 MB, free: 74.63 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002172/0.8973, allocations: 234.2 kB / 396.9 MB, free: 74.43 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.444e-05/0.8974, allocations: 20 kB / 396.9 MB, free: 74.41 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.891e-05/0.8975, allocations: 341.1 kB / 397.2 MB, free: 74.08 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005923/0.8981, allocations: 222.1 kB / 397.5 MB, free: 73.87 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008403/0.8989, allocations: 0.6733 MB / 398.1 MB, free: 73.01 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007685/0.8997, allocations: 373.8 kB / 398.5 MB, free: 72.66 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.787e-06/0.8997, allocations: 8 kB / 398.5 MB, free: 72.65 MB / 314.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002577/0.9023, allocations: 1.057 MB / 399.6 MB, free: 71.64 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.725e-05/0.9024, allocations: 75.3 kB / 399.6 MB, free: 71.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.96e-05/0.9024, allocations: 14.81 kB / 399.6 MB, free: 71.54 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007792/0.9032, allocations: 168.1 kB / 399.8 MB, free: 71.38 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001316/0.9045, allocations: 215.6 kB / 400 MB, free: 71.17 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005065/0.9096, allocations: 3.526 MB / 403.5 MB, free: 67.38 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00172/0.9115, allocations: 87.89 kB / 403.6 MB, free: 67.29 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000147/0.9117, allocations: 47.95 kB / 403.7 MB, free: 67.24 MB / 314.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 {5 10} Notification: Performance of prepare postOptimizeDAE: time 0.0002687/0.9119, allocations: 180.7 kB / 403.9 MB, free: 67.06 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002254/0.9122, allocations: 118.6 kB / 404 MB, free: 66.94 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001917/0.9141, allocations: 0.6607 MB / 404.6 MB, free: 66.27 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.438e-06/0.9142, allocations: 4 kB / 404.6 MB, free: 66.26 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.9142, allocations: 4 kB / 404.6 MB, free: 66.26 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001307/0.9155, allocations: 0.8827 MB / 405.5 MB, free: 65.26 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00402/0.9195, allocations: 1.718 MB / 407.2 MB, free: 63.48 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.576e-06/0.9196, allocations: 7.938 kB / 407.2 MB, free: 63.47 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009462/0.9206, allocations: 111.8 kB / 407.4 MB, free: 63.36 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006423/0.9212, allocations: 133.8 kB / 407.5 MB, free: 63.22 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.262e-05/0.9213, allocations: 19.98 kB / 407.5 MB, free: 63.2 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003719/0.925, allocations: 3.263 MB / 410.8 MB, free: 59.67 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.9251, allocations: 7.969 kB / 410.8 MB, free: 59.66 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002341/0.9274, allocations: 1.086 MB / 411.9 MB, free: 58.5 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000685/0.9282, allocations: 239.7 kB / 412.1 MB, free: 58.25 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002379/0.9284, allocations: 20 kB / 412.1 MB, free: 58.23 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001026/0.9295, allocations: 47.95 kB / 412.2 MB, free: 58.18 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002093/0.9297, allocations: 64.36 kB / 412.2 MB, free: 58.12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.291e-05/0.9298, allocations: 19.95 kB / 412.2 MB, free: 58.1 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001318/0.9311, allocations: 0.6904 MB / 412.9 MB, free: 57.4 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.9311, allocations: 0 / 412.9 MB, free: 57.4 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001861/0.933, allocations: 355.9 kB / 413.3 MB, free: 57.05 MB / 314.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.003085/0.9361, allocations: 2.352 MB / 415.6 MB, free: 54.66 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002369/0.9385, allocations: 0.9953 MB / 416.6 MB, free: 53.62 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.017e-06/0.9386, allocations: 0 / 416.6 MB, free: 53.62 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001162/0.9397, allocations: 0.5103 MB / 417.1 MB, free: 53.1 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002302/0.9421, allocations: 305.1 kB / 417.4 MB, free: 52.8 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005721/0.9478, allocations: 1.815 MB / 419.3 MB, free: 50.92 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006002/0.9485, allocations: 1.101 MB / 420.4 MB, free: 49.79 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0009957/0.9495, allocations: 145.8 kB / 420.5 MB, free: 49.64 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007501/0.9503, allocations: 459.3 kB / 420.9 MB, free: 49.19 MB / 314.7 MB Notification: Performance of SimCode: time 1.122e-06/0.9503, allocations: 0 / 420.9 MB, free: 49.19 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1027/1.053, allocations: 29.42 MB / 450.4 MB, free: 19.79 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002914/1.053, allocations: 201 kB / 450.6 MB, free: 19.55 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.969/5.022, allocations: 0 / 450.6 MB, free: 19.55 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_Cooling_res.mat does not exist to compare? outputFormat=mat