Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.703/1.703, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.363e-05/3.37e-05, allocations: 4 kB / 225.1 MB, free: 2.605 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2748/0.2749, allocations: 38.77 MB / 263.9 MB, free: 9.758 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1523/0.4272, allocations: 88.8 MB / 352.7 MB, free: 0.8164 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003095/0.4276, allocations: 75.95 kB / 352.7 MB, free: 0.7422 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3374/0.765, allocations: 28.69 MB / 381.4 MB, free: 84.7 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.385e-06/0.7651, allocations: 0 / 381.4 MB, free: 84.7 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001422/0.7652, allocations: 30.72 kB / 381.5 MB, free: 84.69 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.004341/0.7696, allocations: 1.134 MB / 382.6 MB, free: 84.03 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.102e-05/0.7697, allocations: 10.84 kB / 382.6 MB, free: 84.03 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005589/0.7703, allocations: 152 kB / 382.7 MB, free: 83.98 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002271/0.7726, allocations: 191.2 kB / 382.9 MB, free: 83.92 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003922/0.7767, allocations: 0.801 MB / 383.7 MB, free: 83.48 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.837e-05/0.7768, allocations: 71.94 kB / 383.8 MB, free: 83.45 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002046/0.777, allocations: 100.3 kB / 383.9 MB, free: 83.41 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00214/0.7792, allocations: 0.8936 MB / 384.8 MB, free: 82.98 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.722e-05/0.7793, allocations: 3.422 kB / 384.8 MB, free: 82.98 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001284/0.7794, allocations: 46.05 kB / 384.8 MB, free: 82.95 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.907e-05/0.7794, allocations: 23.94 kB / 384.9 MB, free: 82.95 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001655/0.7811, allocations: 0.5806 MB / 385.4 MB, free: 82.72 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01048/0.7916, allocations: 3.951 MB / 389.4 MB, free: 80.13 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001882/0.7936, allocations: 436 kB / 389.8 MB, free: 79.86 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001733/0.7954, allocations: 251 kB / 390.1 MB, free: 79.78 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.636e-05/0.7955, allocations: 3.781 kB / 390.1 MB, free: 79.78 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.703e-05/0.7956, allocations: 39.88 kB / 390.1 MB, free: 79.73 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 6.733e-06/0.7956, allocations: 0 / 390.1 MB, free: 79.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=48): time 0.003615/0.7992, allocations: 1.225 MB / 391.3 MB, free: 78.98 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.383e-05/0.7993, allocations: 85.39 kB / 391.4 MB, free: 78.89 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001329/0.8006, allocations: 0.7047 MB / 392.1 MB, free: 78.49 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.761e-05/0.8007, allocations: 33.7 kB / 392.2 MB, free: 78.45 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003428/0.8011, allocations: 0.572 MB / 392.7 MB, free: 77.92 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001529/0.8013, allocations: 173.2 kB / 392.9 MB, free: 77.77 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.217e-05/0.8013, allocations: 20 kB / 392.9 MB, free: 77.75 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.932e-05/0.8014, allocations: 340.2 kB / 393.2 MB, free: 77.41 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004013/0.8018, allocations: 153.6 kB / 393.4 MB, free: 77.27 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005297/0.8024, allocations: 446.4 kB / 393.8 MB, free: 76.7 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005273/0.8029, allocations: 235.2 kB / 394.1 MB, free: 76.49 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.782e-06/0.8029, allocations: 0 / 394.1 MB, free: 76.49 MB / 314.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001634/0.8046, allocations: 0.6898 MB / 394.8 MB, free: 75.84 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.707e-05/0.8046, allocations: 8 kB / 394.8 MB, free: 75.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.765e-05/0.8047, allocations: 12 kB / 394.8 MB, free: 75.82 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004356/0.8051, allocations: 95.31 kB / 394.9 MB, free: 75.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009967/0.8061, allocations: 164.7 kB / 395 MB, free: 75.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002659/0.8088, allocations: 2.999 MB / 398 MB, free: 72.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00111/0.81, allocations: 43.77 kB / 398.1 MB, free: 72.39 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.894e-05/0.8101, allocations: 36 kB / 398.1 MB, free: 72.35 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 84 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001753/0.8102, allocations: 144.7 kB / 398.2 MB, free: 72.2 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000171/0.8104, allocations: 90.92 kB / 398.3 MB, free: 72.11 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001302/0.8117, allocations: 0.5027 MB / 398.8 MB, free: 71.65 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/0.8118, allocations: 4 kB / 398.8 MB, free: 71.65 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.8118, allocations: 0 / 398.8 MB, free: 71.65 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.926e-06/0.8118, allocations: 7.641 kB / 398.8 MB, free: 71.64 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003033/0.8149, allocations: 1.45 MB / 400.3 MB, free: 70.37 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.294e-06/0.8149, allocations: 4 kB / 400.3 MB, free: 70.37 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006416/0.8156, allocations: 77.55 kB / 400.4 MB, free: 70.3 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003702/0.8159, allocations: 91.98 kB / 400.5 MB, free: 70.22 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.323e-05/0.816, allocations: 12 kB / 400.5 MB, free: 70.21 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002568/0.8186, allocations: 2.969 MB / 403.4 MB, free: 67.06 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.8186, allocations: 4.031 kB / 403.5 MB, free: 67.05 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001691/0.8203, allocations: 0.8739 MB / 404.3 MB, free: 66.12 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004835/0.8209, allocations: 202.1 kB / 404.5 MB, free: 65.93 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001665/0.821, allocations: 12 kB / 404.5 MB, free: 65.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007842/0.8218, allocations: 35.83 kB / 404.6 MB, free: 65.89 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/0.822, allocations: 38.77 kB / 404.6 MB, free: 65.86 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.91e-05/0.822, allocations: 19.56 kB / 404.6 MB, free: 65.84 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009856/0.823, allocations: 0.533 MB / 405.2 MB, free: 65.35 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.823, allocations: 0 / 405.2 MB, free: 65.35 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001472/0.8245, allocations: 248 kB / 405.4 MB, free: 65.11 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 38 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002353/0.8269, allocations: 2.079 MB / 407.5 MB, free: 63.04 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001448/0.8284, allocations: 0.6585 MB / 408.1 MB, free: 62.38 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.8284, allocations: 0 / 408.1 MB, free: 62.38 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009114/0.8294, allocations: 430.9 kB / 408.6 MB, free: 61.96 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001689/0.8311, allocations: 208.2 kB / 408.8 MB, free: 61.79 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004184/0.8353, allocations: 1.49 MB / 410.3 MB, free: 60.36 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005378/0.8359, allocations: 1.044 MB / 411.3 MB, free: 59.29 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007023/0.8366, allocations: 395.3 kB / 411.7 MB, free: 58.91 MB / 314.7 MB Notification: Performance of SimCode: time 1.112e-06/0.8366, allocations: 0 / 411.7 MB, free: 58.91 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.369/4.205, allocations: 25.81 MB / 437.5 MB, free: 33.1 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat does not exist to compare? outputFormat=mat