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 2.057/2.057, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.708e-05/3.712e-05, allocations: 4 kB / 255.5 MB, free: 3.082 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09873/0.09881, allocations: 44.5 MB / 300 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5491/0.648, allocations: 90.19 MB / 390.1 MB, free: 12.42 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002796/0.6483, allocations: 79.14 kB / 390.2 MB, free: 12.42 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1738/0.8221, allocations: 44.54 MB / 434.8 MB, free: 13.8 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.8222, allocations: 3.938 kB / 434.8 MB, free: 13.8 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001742/0.8223, allocations: 39.94 kB / 434.8 MB, free: 13.76 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.005615/0.828, allocations: 1.596 MB / 436.4 MB, free: 12.23 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.488e-05/0.828, allocations: 8.031 kB / 436.4 MB, free: 12.22 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006209/0.8287, allocations: 220.2 kB / 436.6 MB, free: 12.09 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001567/0.8302, allocations: 285.5 kB / 436.9 MB, free: 11.8 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004167/0.8344, allocations: 1.204 MB / 438.1 MB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001258/0.8346, allocations: 118.4 kB / 438.2 MB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004815/0.8351, allocations: 164.6 kB / 438.4 MB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004396/0.8395, allocations: 1.414 MB / 439.8 MB, free: 9.707 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.119e-05/0.8396, allocations: 7.844 kB / 439.8 MB, free: 9.699 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002029/0.8399, allocations: 73.64 kB / 439.9 MB, free: 9.676 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.047e-05/0.8399, allocations: 40 kB / 439.9 MB, free: 9.637 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00348/0.8434, allocations: 0.9386 MB / 440.9 MB, free: 9.051 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01633/0.8598, allocations: 6.401 MB / 447.3 MB, free: 2.926 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002312/0.8622, allocations: 0.5556 MB / 447.8 MB, free: 2.359 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001377/0.8636, allocations: 415 kB / 448.2 MB, free: 1.953 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.926e-05/0.8637, allocations: 12.33 kB / 448.2 MB, free: 1.945 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.15e-05/0.8638, allocations: 47.06 kB / 448.3 MB, free: 1.887 MB / 330.7 MB Notification: Performance of pre-optimization done (n=66): time 3.596e-06/0.8638, allocations: 0 / 448.3 MB, free: 1.887 MB / 330.7 MB Notification: Performance of matching and sorting (n=72): time 0.00589/0.8697, allocations: 1.795 MB / 450.1 MB, free: 40 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001114/0.8698, allocations: 111.6 kB / 450.2 MB, free: 15.91 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002977/0.8728, allocations: 1.086 MB / 451.3 MB, free: 14.81 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001744/0.873, allocations: 37.7 kB / 451.3 MB, free: 14.77 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008907/0.8739, allocations: 0.8464 MB / 452.1 MB, free: 13.92 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003686/0.8743, allocations: 256 kB / 452.4 MB, free: 13.67 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.796e-05/0.8744, allocations: 24 kB / 452.4 MB, free: 13.64 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002425/0.8747, allocations: 354.8 kB / 452.8 MB, free: 13.29 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008155/0.8755, allocations: 250.6 kB / 453 MB, free: 13.04 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001117/0.8767, allocations: 0.6968 MB / 453.7 MB, free: 12.12 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001044/0.8777, allocations: 377.9 kB / 454.1 MB, free: 11.75 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.426e-05/0.8778, allocations: 4 kB / 454.1 MB, free: 11.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.00323/0.881, allocations: 1.081 MB / 455.2 MB, free: 10.66 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.003e-05/0.8811, allocations: 14.34 kB / 455.2 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.182e-05/0.8811, allocations: 16 kB / 455.2 MB, free: 10.63 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006756/0.8818, allocations: 118.7 kB / 455.3 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001846/0.8837, allocations: 263.6 kB / 455.6 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005077/0.8888, allocations: 4.211 MB / 459.8 MB, free: 5.633 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001955/0.8908, allocations: 67.94 kB / 459.8 MB, free: 5.566 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002467/0.8911, allocations: 56 kB / 459.9 MB, free: 5.512 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.0003077/0.8914, allocations: 176.5 kB / 460.1 MB, free: 5.332 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004619/0.8919, allocations: 138.3 kB / 460.2 MB, free: 5.195 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00267/0.8946, allocations: 0.7819 MB / 461 MB, free: 4.391 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.581e-05/0.8946, allocations: 12 kB / 461 MB, free: 4.379 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.8946, allocations: 0 / 461 MB, free: 4.379 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.646e-05/0.8947, allocations: 7.984 kB / 461 MB, free: 4.371 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00666/0.9013, allocations: 2.256 MB / 463.3 MB, free: 2.012 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-05/0.9014, allocations: 8.125 kB / 463.3 MB, free: 2.004 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001225/0.9026, allocations: 135.7 kB / 463.4 MB, free: 1.871 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006476/0.9033, allocations: 118.7 kB / 463.5 MB, free: 1.746 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.475e-05/0.9034, allocations: 16 kB / 463.5 MB, free: 1.73 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005244/0.9087, allocations: 4.32 MB / 467.9 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.091e-05/0.9087, allocations: 12 kB / 467.9 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003596/0.9123, allocations: 1.434 MB / 469.3 MB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009653/0.9133, allocations: 275.4 kB / 469.6 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003286/0.9137, allocations: 23.98 kB / 469.6 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001238/0.9149, allocations: 43.97 kB / 469.6 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002144/0.9152, allocations: 60.38 kB / 469.7 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.243e-05/0.9153, allocations: 24 kB / 469.7 MB, free: 10.94 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002085/0.9173, allocations: 0.8179 MB / 470.5 MB, free: 10.12 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.32e-07/0.9174, allocations: 0 / 470.5 MB, free: 10.12 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002504/0.9199, allocations: 379.9 kB / 470.9 MB, free: 9.75 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.004868/0.9248, allocations: 3.255 MB / 474.2 MB, free: 6.402 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002597/0.9275, allocations: 1.004 MB / 475.2 MB, free: 5.371 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.148e-05/0.9275, allocations: 4.25 kB / 475.2 MB, free: 5.367 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001452/0.929, allocations: 0.6476 MB / 475.8 MB, free: 4.691 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002984/0.932, allocations: 337.9 kB / 476.1 MB, free: 4.363 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009976/0.942, allocations: 2.594 MB / 478.7 MB, free: 1.664 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001319/0.9434, allocations: 1.245 MB / 480 MB, free: 400 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00154/0.9449, allocations: 0.6388 MB / 480.6 MB, free: 15.8 MB / 378.7 MB Notification: Performance of SimCode: time 1.343e-06/0.945, allocations: 0 / 480.6 MB, free: 15.8 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.568/4.513, allocations: 46.87 MB / 0.5151 GB, free: 0.9062 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