Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.909/1.909, allocations: 194.9 MB / 208.4 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.612e-05/3.629e-05, allocations: 7.094 kB / 255.4 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09896/0.09903, allocations: 44.5 MB / 299.9 MB, free: 6.535 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4575/0.5566, allocations: 90.18 MB / 390.1 MB, free: 12.3 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002804/0.557, allocations: 82.77 kB / 390.2 MB, free: 12.3 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1776/0.7346, allocations: 44.53 MB / 434.7 MB, free: 13.79 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.7347, allocations: 0 / 434.7 MB, free: 13.79 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.000164/0.7348, allocations: 39.94 kB / 434.8 MB, free: 13.75 MB / 330.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.005318/0.7402, allocations: 1.603 MB / 436.4 MB, free: 12.21 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.682e-05/0.7402, allocations: 8.031 kB / 436.4 MB, free: 12.2 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006089/0.7409, allocations: 217.3 kB / 436.6 MB, free: 12.07 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001572/0.7425, allocations: 285.5 kB / 436.9 MB, free: 11.79 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004134/0.7466, allocations: 1.205 MB / 438.1 MB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001146/0.7468, allocations: 113.2 kB / 438.2 MB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003975/0.7472, allocations: 156.6 kB / 438.3 MB, free: 10.67 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004136/0.7513, allocations: 1.434 MB / 439.8 MB, free: 9.676 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.805e-05/0.7515, allocations: 15.58 kB / 439.8 MB, free: 9.664 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002106/0.7517, allocations: 69.14 kB / 439.9 MB, free: 9.645 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.157e-05/0.7518, allocations: 36 kB / 439.9 MB, free: 9.609 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003606/0.7554, allocations: 0.9633 MB / 440.9 MB, free: 8.996 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01526/0.7707, allocations: 6.407 MB / 447.3 MB, free: 2.855 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002197/0.773, allocations: 0.5648 MB / 447.8 MB, free: 2.281 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001338/0.7743, allocations: 426.7 kB / 448.2 MB, free: 1.867 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.307e-05/0.7745, allocations: 8.562 kB / 448.2 MB, free: 1.855 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.416e-05/0.7745, allocations: 39.12 kB / 448.3 MB, free: 1.809 MB / 330.7 MB Notification: Performance of pre-optimization done (n=66): time 3.737e-06/0.7745, allocations: 4 kB / 448.3 MB, free: 1.805 MB / 330.7 MB Notification: Performance of matching and sorting (n=72): time 0.005565/0.7801, allocations: 1.789 MB / 450.1 MB, free: 15.96 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.131e-05/0.7802, allocations: 111.6 kB / 450.2 MB, free: 15.83 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002639/0.7829, allocations: 1.09 MB / 451.3 MB, free: 14.73 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001786/0.7831, allocations: 37.7 kB / 451.3 MB, free: 14.68 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008183/0.7839, allocations: 0.8425 MB / 452.2 MB, free: 13.84 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003592/0.7843, allocations: 260.2 kB / 452.4 MB, free: 13.59 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.83e-05/0.7844, allocations: 20 kB / 452.4 MB, free: 13.57 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001738/0.7846, allocations: 358.8 kB / 452.8 MB, free: 13.21 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000754/0.7854, allocations: 246.6 kB / 453 MB, free: 12.96 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001114/0.7865, allocations: 0.6993 MB / 453.7 MB, free: 12.05 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001042/0.7876, allocations: 385.8 kB / 454.1 MB, free: 11.67 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.181e-05/0.7876, allocations: 4 kB / 454.1 MB, free: 11.67 MB / 346.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.003194/0.7908, allocations: 1.112 MB / 455.2 MB, free: 10.54 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.843e-05/0.7909, allocations: 12 kB / 455.2 MB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.092e-05/0.7909, allocations: 19.98 kB / 455.2 MB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006329/0.7916, allocations: 126.9 kB / 455.4 MB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001758/0.7933, allocations: 259.6 kB / 455.6 MB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004868/0.7982, allocations: 4.219 MB / 459.8 MB, free: 5.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001821/0.8001, allocations: 68.03 kB / 459.9 MB, free: 5.434 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001592/0.8003, allocations: 52.14 kB / 460 MB, free: 5.383 MB / 346.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.0003126/0.8006, allocations: 184.5 kB / 460.1 MB, free: 5.195 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003385/0.801, allocations: 138.3 kB / 460.3 MB, free: 5.059 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002552/0.8035, allocations: 0.782 MB / 461.1 MB, free: 4.254 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.708e-05/0.8036, allocations: 8 kB / 461.1 MB, free: 4.246 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.727e-06/0.8036, allocations: 128 / 461.1 MB, free: 4.246 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.608e-05/0.8036, allocations: 11.92 kB / 461.1 MB, free: 4.234 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006167/0.8098, allocations: 2.267 MB / 463.3 MB, free: 1.863 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.186e-05/0.8099, allocations: 4 kB / 463.3 MB, free: 1.859 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00116/0.811, allocations: 127.9 kB / 463.5 MB, free: 1.734 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006139/0.8117, allocations: 118.9 kB / 463.6 MB, free: 1.609 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.547e-05/0.8118, allocations: 19.98 kB / 463.6 MB, free: 1.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005037/0.8168, allocations: 4.335 MB / 467.9 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.494e-06/0.8169, allocations: 4.156 kB / 467.9 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003446/0.8203, allocations: 1.434 MB / 469.4 MB, free: 11.24 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008508/0.8212, allocations: 275.3 kB / 469.7 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002719/0.8215, allocations: 23.98 kB / 469.7 MB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00129/0.8228, allocations: 47.97 kB / 469.7 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002497/0.8231, allocations: 60.52 kB / 469.8 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.073e-05/0.8232, allocations: 24 kB / 469.8 MB, free: 10.8 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002279/0.8255, allocations: 0.8218 MB / 470.6 MB, free: 9.973 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.02e-07/0.8256, allocations: 0 / 470.6 MB, free: 9.973 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002321/0.8279, allocations: 371.9 kB / 471 MB, free: 9.609 MB / 362.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.004787/0.8328, allocations: 3.245 MB / 474.2 MB, free: 6.27 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00259/0.8354, allocations: 1.059 MB / 475.3 MB, free: 5.176 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.159e-05/0.8355, allocations: 4.938 kB / 475.3 MB, free: 5.172 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001468/0.8369, allocations: 0.6707 MB / 476 MB, free: 4.457 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002891/0.8399, allocations: 337.7 kB / 476.3 MB, free: 4.129 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009663/0.8496, allocations: 2.591 MB / 478.9 MB, free: 1.438 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001175/0.8508, allocations: 1.253 MB / 480.1 MB, free: 156 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001623/0.8524, allocations: 0.6367 MB / 480.8 MB, free: 15.57 MB / 378.7 MB Notification: Performance of SimCode: time 1.793e-06/0.8525, allocations: 0 / 480.8 MB, free: 15.57 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.313/4.165, allocations: 46.98 MB / 0.5154 GB, free: 0.5625 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat does not exist to compare? outputFormat=mat