Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.749/1.749, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.174e-05/3.184e-05, allocations: 4 kB / 225.1 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2689/0.2689, allocations: 38.76 MB / 263.8 MB, free: 9.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1723/0.4412, allocations: 85.05 MB / 348.9 MB, free: 4.684 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003065/0.4416, allocations: 79.95 kB / 349 MB, free: 4.605 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3971/0.8387, allocations: 42.85 MB / 391.8 MB, free: 80.42 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.218e-06/0.8387, allocations: 0 / 391.8 MB, free: 80.42 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001085/0.8388, allocations: 39.08 kB / 391.9 MB, free: 80.41 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.003622/0.8425, allocations: 1.59 MB / 393.4 MB, free: 78.88 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/0.8425, allocations: 12.03 kB / 393.5 MB, free: 78.87 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003444/0.8429, allocations: 223.9 kB / 393.7 MB, free: 78.64 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001259/0.8442, allocations: 285.4 kB / 393.9 MB, free: 78.36 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003165/0.8473, allocations: 1.195 MB / 395.1 MB, free: 77.12 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.167e-05/0.8475, allocations: 123 kB / 395.3 MB, free: 77 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002921/0.8478, allocations: 163.9 kB / 395.4 MB, free: 76.84 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003245/0.851, allocations: 1.426 MB / 396.9 MB, free: 75.36 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.754e-05/0.8511, allocations: 19.83 kB / 396.9 MB, free: 75.34 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001854/0.8513, allocations: 60 kB / 396.9 MB, free: 75.28 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.478e-05/0.8513, allocations: 43.94 kB / 397 MB, free: 75.23 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002467/0.8538, allocations: 0.9637 MB / 397.9 MB, free: 74.27 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01078/0.8646, allocations: 6.427 MB / 404.4 MB, free: 67.58 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00163/0.8663, allocations: 0.5686 MB / 404.9 MB, free: 67 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001036/0.8674, allocations: 419 kB / 405.3 MB, free: 66.59 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.042e-05/0.8674, allocations: 17.75 kB / 405.4 MB, free: 66.57 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.395e-05/0.8675, allocations: 39.12 kB / 405.4 MB, free: 66.52 MB / 314.7 MB Notification: Performance of pre-optimization done (n=66): time 3.046e-06/0.8675, allocations: 0 / 405.4 MB, free: 66.52 MB / 314.7 MB Notification: Performance of matching and sorting (n=72): time 0.004337/0.8718, allocations: 1.809 MB / 407.2 MB, free: 64.65 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.919e-05/0.8719, allocations: 111.6 kB / 407.3 MB, free: 64.52 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001976/0.8739, allocations: 1.086 MB / 408.4 MB, free: 63.42 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.273e-05/0.874, allocations: 37.7 kB / 408.4 MB, free: 63.38 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005373/0.8745, allocations: 0.84 MB / 409.3 MB, free: 62.54 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001951/0.8747, allocations: 260 kB / 409.5 MB, free: 62.29 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.721e-05/0.8748, allocations: 24 kB / 409.6 MB, free: 62.26 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001009/0.8749, allocations: 358.8 kB / 409.9 MB, free: 61.9 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006365/0.8756, allocations: 250.6 kB / 410.1 MB, free: 61.66 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008428/0.8764, allocations: 0.7032 MB / 410.9 MB, free: 60.74 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008111/0.8773, allocations: 377.9 kB / 411.2 MB, free: 60.38 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.004e-05/0.8773, allocations: 4 kB / 411.2 MB, free: 60.37 MB / 314.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.002704/0.88, allocations: 1.131 MB / 412.4 MB, free: 59.22 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.612e-05/0.88, allocations: 15.95 kB / 412.4 MB, free: 59.2 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.006e-05/0.8801, allocations: 16 kB / 412.4 MB, free: 59.19 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005704/0.8807, allocations: 127 kB / 412.5 MB, free: 59.05 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001547/0.8822, allocations: 259.6 kB / 412.8 MB, free: 58.8 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003553/0.8858, allocations: 4.221 MB / 417 MB, free: 54.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001655/0.8875, allocations: 60.09 kB / 417 MB, free: 54.12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.81e-05/0.8876, allocations: 63.98 kB / 417.1 MB, free: 54.05 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.0002357/0.8878, allocations: 176.5 kB / 417.3 MB, free: 53.88 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000223/0.8881, allocations: 142.2 kB / 417.4 MB, free: 53.73 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002183/0.8903, allocations: 0.7897 MB / 418.2 MB, free: 52.92 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.235e-06/0.8903, allocations: 8 kB / 418.2 MB, free: 52.91 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.9e-06/0.8903, allocations: 0 / 418.2 MB, free: 52.91 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.206e-05/0.8903, allocations: 11.94 kB / 418.2 MB, free: 52.9 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004727/0.8951, allocations: 2.274 MB / 420.5 MB, free: 50.53 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.635e-06/0.8951, allocations: 7.938 kB / 420.5 MB, free: 50.52 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001068/0.8962, allocations: 136.3 kB / 420.6 MB, free: 50.39 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005129/0.8967, allocations: 110.5 kB / 420.8 MB, free: 50.27 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.772e-05/0.8968, allocations: 20.06 kB / 420.8 MB, free: 50.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003844/0.9006, allocations: 4.328 MB / 425.1 MB, free: 45.53 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.052e-06/0.9007, allocations: 7.938 kB / 425.1 MB, free: 45.52 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002852/0.9035, allocations: 1.442 MB / 426.5 MB, free: 43.89 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006282/0.9042, allocations: 283.5 kB / 426.8 MB, free: 43.59 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002435/0.9044, allocations: 23.98 kB / 426.8 MB, free: 43.57 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/0.9055, allocations: 44.16 kB / 426.9 MB, free: 43.53 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001548/0.9057, allocations: 68.38 kB / 427 MB, free: 43.46 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.441e-05/0.9058, allocations: 24 kB / 427 MB, free: 43.44 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001563/0.9073, allocations: 0.814 MB / 427.8 MB, free: 42.62 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.9074, allocations: 0 / 427.8 MB, free: 42.62 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001663/0.909, allocations: 383.9 kB / 428.2 MB, free: 42.25 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.003561/0.9126, allocations: 3.259 MB / 431.4 MB, free: 38.89 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002217/0.9149, allocations: 1.064 MB / 432.5 MB, free: 37.79 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.692e-06/0.9149, allocations: 3.938 kB / 432.5 MB, free: 37.79 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001124/0.916, allocations: 0.6523 MB / 433.1 MB, free: 37.09 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002724/0.9188, allocations: 341 kB / 433.5 MB, free: 36.77 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008114/0.9269, allocations: 2.59 MB / 436.1 MB, free: 34.07 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007981/0.9278, allocations: 1.253 MB / 437.3 MB, free: 32.79 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001139/0.9289, allocations: 0.6282 MB / 438 MB, free: 32.16 MB / 314.7 MB Notification: Performance of SimCode: time 1.162e-06/0.9289, allocations: 0 / 438 MB, free: 32.16 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.253/4.182, allocations: 47.02 MB / 485 MB, free: 1.105 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat does not exist to compare? outputFormat=mat