Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.839/1.839, allocations: 171.2 MB / 183.3 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.615e-05/4.623e-05, allocations: 4 kB / 225.1 MB, free: 2.242 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3475/0.3476, allocations: 38.77 MB / 263.9 MB, free: 9.699 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1514/0.4991, allocations: 85.06 MB / 348.9 MB, free: 4.508 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003095/0.4995, allocations: 87.89 kB / 349 MB, free: 4.422 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4293/0.9288, allocations: 42.84 MB / 391.9 MB, free: 80.28 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.504e-06/0.9288, allocations: 0 / 391.9 MB, free: 80.28 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001554/0.929, allocations: 31.16 kB / 391.9 MB, free: 80.28 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.006152/0.9352, allocations: 1.598 MB / 393.5 MB, free: 78.66 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.797e-05/0.9353, allocations: 12.03 kB / 393.5 MB, free: 78.65 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008084/0.9361, allocations: 215.9 kB / 393.7 MB, free: 78.43 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002132/0.9383, allocations: 293.4 kB / 394 MB, free: 78.14 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005362/0.9437, allocations: 1.202 MB / 395.2 MB, free: 76.91 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001385/0.9439, allocations: 115.1 kB / 395.3 MB, free: 76.79 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005928/0.9445, allocations: 155.9 kB / 395.5 MB, free: 76.64 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005056/0.9496, allocations: 1.42 MB / 396.9 MB, free: 75.16 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.566e-05/0.9497, allocations: 7.906 kB / 396.9 MB, free: 75.15 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002707/0.95, allocations: 75.92 kB / 397 MB, free: 75.08 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.566e-05/0.9501, allocations: 36 kB / 397 MB, free: 75.04 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003653/0.9537, allocations: 0.9466 MB / 398 MB, free: 74.09 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01548/0.9692, allocations: 6.432 MB / 404.4 MB, free: 67.41 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002325/0.9716, allocations: 0.5556 MB / 404.9 MB, free: 66.84 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001547/0.9732, allocations: 426.9 kB / 405.4 MB, free: 66.41 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.152e-05/0.9733, allocations: 14.42 kB / 405.4 MB, free: 66.4 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.668e-05/0.9733, allocations: 39.12 kB / 405.4 MB, free: 66.36 MB / 314.7 MB Notification: Performance of pre-optimization done (n=66): time 4.889e-06/0.9734, allocations: 0 / 405.4 MB, free: 66.36 MB / 314.7 MB Notification: Performance of matching and sorting (n=72): time 0.006508/0.9799, allocations: 1.806 MB / 407.2 MB, free: 64.49 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.147e-05/0.98, allocations: 115.6 kB / 407.3 MB, free: 64.35 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003113/0.9831, allocations: 1.086 MB / 408.4 MB, free: 63.25 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001751/0.9834, allocations: 37.7 kB / 408.5 MB, free: 63.21 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009313/0.9843, allocations: 0.8568 MB / 409.3 MB, free: 62.35 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003295/0.9847, allocations: 268.5 kB / 409.6 MB, free: 62.09 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001499/0.9848, allocations: 20 kB / 409.6 MB, free: 62.07 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.985, allocations: 353.9 kB / 409.9 MB, free: 61.72 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001099/0.9861, allocations: 250.6 kB / 410.2 MB, free: 61.47 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001416/0.9876, allocations: 0.6968 MB / 410.9 MB, free: 60.57 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001412/0.989, allocations: 381.8 kB / 411.3 MB, free: 60.2 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.781e-05/0.989, allocations: 8 kB / 411.3 MB, free: 60.19 MB / 314.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.00495/0.994, allocations: 1.177 MB / 412.4 MB, free: 58.99 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.654e-05/0.9941, allocations: 12 kB / 412.4 MB, free: 58.98 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.82e-05/0.9941, allocations: 16.59 kB / 412.5 MB, free: 58.96 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000771/0.9949, allocations: 122.5 kB / 412.6 MB, free: 58.83 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002744/0.9977, allocations: 259.6 kB / 412.8 MB, free: 58.58 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006705/1.004, allocations: 4.211 MB / 417.1 MB, free: 53.96 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002769/1.007, allocations: 63.94 kB / 417.1 MB, free: 53.9 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001562/1.007, allocations: 55.98 kB / 417.2 MB, free: 53.84 MB / 314.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.0003186/1.008, allocations: 184.5 kB / 417.3 MB, free: 53.66 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003561/1.008, allocations: 142.2 kB / 417.5 MB, free: 53.52 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00318/1.011, allocations: 0.7819 MB / 418.3 MB, free: 52.71 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.391e-05/1.011, allocations: 8 kB / 418.3 MB, free: 52.7 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/1.011, allocations: 0 / 418.3 MB, free: 52.7 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.627e-05/1.011, allocations: 11.94 kB / 418.3 MB, free: 52.69 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007552/1.019, allocations: 2.275 MB / 420.6 MB, free: 50.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.24e-05/1.019, allocations: 4 kB / 420.6 MB, free: 50.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001451/1.02, allocations: 140.3 kB / 420.7 MB, free: 50.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007038/1.021, allocations: 110.5 kB / 420.8 MB, free: 50.06 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.35e-05/1.021, allocations: 32 kB / 420.8 MB, free: 50.03 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005382/1.027, allocations: 4.314 MB / 425.2 MB, free: 45.32 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.534e-06/1.027, allocations: 4 kB / 425.2 MB, free: 45.32 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004261/1.031, allocations: 1.449 MB / 426.6 MB, free: 43.68 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009163/1.032, allocations: 283.4 kB / 426.9 MB, free: 43.39 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003918/1.032, allocations: 20 kB / 426.9 MB, free: 43.37 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001667/1.034, allocations: 44.11 kB / 426.9 MB, free: 43.32 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001985/1.034, allocations: 64.42 kB / 427 MB, free: 43.26 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.986e-05/1.034, allocations: 24 kB / 427 MB, free: 43.23 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002316/1.037, allocations: 0.814 MB / 427.8 MB, free: 42.42 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.11e-07/1.037, allocations: 0 / 427.8 MB, free: 42.42 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002788/1.04, allocations: 376 kB / 428.2 MB, free: 42.05 MB / 314.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.005105/1.045, allocations: 3.266 MB / 431.5 MB, free: 38.7 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002923/1.048, allocations: 1.019 MB / 432.5 MB, free: 37.65 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.846e-06/1.048, allocations: 0 / 432.5 MB, free: 37.65 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001528/1.049, allocations: 0.6451 MB / 433.1 MB, free: 36.98 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003415/1.053, allocations: 329 kB / 433.5 MB, free: 36.66 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01062/1.063, allocations: 2.544 MB / 436 MB, free: 34.02 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008326/1.064, allocations: 1.253 MB / 437.3 MB, free: 32.74 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001262/1.066, allocations: 179.7 kB / 437.4 MB, free: 32.56 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001092/1.067, allocations: 0.6125 MB / 438.1 MB, free: 31.95 MB / 314.7 MB Notification: Performance of SimCode: time 1.092e-06/1.067, allocations: 0 / 438.1 MB, free: 31.95 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08355/1.15, allocations: 32.67 MB / 470.7 MB, free: 15.28 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002356/1.151, allocations: 196.1 kB / 470.9 MB, free: 15.05 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.824/4.975, allocations: 0 / 470.9 MB, free: 15.05 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat does not exist to compare? outputFormat=mat