/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 17322
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1208.4+6121_weekly_bin853
RA = 182.114, Dec = 61.3559
tmin = 754876801, tmax = 755481601
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='59977450', job_status='RUN', time_executed='2024-12-10 00:31:32.456972', time_epoch_executed='1733819492.46' WHERE source_name='4FGL J1208.4+6121' and cadence='weekly' and bin_id='853'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/59977450

Creating custom pfile directory:
/lscratch/kocevski/59977450/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=754876801.0 && nMetStart<755481601.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=754876801.0 && nMetStart<755481601.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/59977450/ft1_4FGL_J1208.4+6121_weekly_bin853.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=754876801.0 && nMetStart<755481601.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/59977450/ft2_4FGL_J1208.4+6121_weekly_bin853.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/59977450/ft1_4FGL_J1208.4+6121_weekly_bin853.fits outfile=/lscratch/kocevski/59977450/ft1_filteredMKT_4FGL_J1208.4+6121_weekly_bin853.fits ra=182.114 dec=61.3559 rad=12.0 tmin=754876801.0 tmax=755481601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.68
user 3.21
sys 0.29

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/59977450/ft2_4FGL_J1208.4+6121_weekly_bin853.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/59977450/ft2_4FGL_J1208.4+6121_weekly_bin853.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/59977450/ft1_filteredMKT_4FGL_J1208.4+6121_weekly_bin853.fits evtable="EVENTS" outfile="/lscratch/kocevski/59977450/ft1_filtered_4FGL_J1208.4+6121_weekly_bin853.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.56
user 0.25
sys 0.13

Number of photons that the gtmktime cut: 1755

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/59977450/ft1_filtered_4FGL_J1208.4+6121_weekly_bin853.fits" evtable="EVENTS" scfile=/lscratch/kocevski/59977450/ft2_4FGL_J1208.4+6121_weekly_bin853.fits sctable="SC_DATA" outfile=/lscratch/kocevski/59977450/ltcube_754876801_755481601_4FGL_J1208.4+6121_weekly_bin853.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /lscratch/kocevski/59977450/ft2_4FGL_J1208.4+6121_weekly_bin853.fits
.....................!
real 22.15
user 20.89
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/59977450/ft1_filtered_4FGL_J1208.4+6121_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59977450/ft2_4FGL_J1208.4+6121_weekly_bin853.fits sctable="SC_DATA" expcube=/lscratch/kocevski/59977450/ltcube_754876801_755481601_4FGL_J1208.4+6121_weekly_bin853.fits outfile=/lscratch/kocevski/59977450/expmap_754876801_755481601_4FGL_J1208.4+6121_weekly_bin853.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/59977450/ltcube_754876801_755481601_4FGL_J1208.4+6121_weekly_bin853.fits
.....................!
real 73.08
user 67.41
sys 3.93

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 222 point sources and 0 extended sources

Setting source of interest to:
4FGL J1208.4+6121 @ 182.114 61.3559

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/59977450/ft1_filtered_4FGL_J1208.4+6121_weekly_bin853.fits scfile=/lscratch/kocevski/59977450/ft2_4FGL_J1208.4+6121_weekly_bin853.fits outfile=/lscratch/kocevski/59977450/cmap_754876801_755481601_4FGL_J1208.4+6121_weekly_bin853.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=182.114 yref=61.3559 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.52
user 0.25
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/59977450/ft1_filtered_4FGL_J1208.4+6121_weekly_bin853.fits scfile=/lscratch/kocevski/59977450/ft2_4FGL_J1208.4+6121_weekly_bin853.fits outfile=/lscratch/kocevski/59977450/cmap_HighResolution_754876801_755481601_4FGL_J1208.4+6121_weekly_bin853.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=182.114 yref=61.3559 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.46
user 0.27
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/59977450/ft1_filtered_4FGL_J1208.4+6121_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59977450/ft2_4FGL_J1208.4+6121_weekly_bin853.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/59977450/Model_4FGL_J1208.4+6121_weekly_bin853.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/59977450/ft1_filtered_4FGL_J1208.4+6121_weekly_bin853.fits.....................!
real 63.79
user 62.09
sys 1.05

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/59977450/ft1_filtered_4FGL_J1208.4+6121_weekly_bin853.fits', '/lscratch/kocevski/59977450/ft2_4FGL_J1208.4+6121_weekly_bin853.fits', expMap='/lscratch/kocevski/59977450/expmap_754876801_755481601_4FGL_J1208.4+6121_weekly_bin853.fits', expCube='/lscratch/kocevski/59977450/ltcube_754876801_755481601_4FGL_J1208.4+6121_weekly_bin853.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/59977450/Model_4FGL_J1208.4+6121_weekly_bin853.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1208.4+6121'

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  1.772e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  2.073e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  2.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/59977450/ft1_filtered_4FGL_J1208.4+6121_weekly_bin853.fits
Spacecraft file(s): /lscratch/kocevski/59977450/ft2_4FGL_J1208.4+6121_weekly_bin853.fits
Exposure map: /lscratch/kocevski/59977450/expmap_754876801_755481601_4FGL_J1208.4+6121_weekly_bin853.fits
Exposure cube: /lscratch/kocevski/59977450/ltcube_754876801_755481601_4FGL_J1208.4+6121_weekly_bin853.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/59977450/Model_4FGL_J1208.4+6121_weekly_bin853.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 19154.1406043

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 19154.0940004

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9511       1.0000          .0000       .10000E+07
     2 'norm      '    1.0046       1.0000          .0000       .10000E+07
     3 'Prefactor '    26.800       1.0000          .0000       .10000E+07
     4 'norm      '    .87944       1.0000          .0000       .10000E+07
     5 'Prefactor '    .94466E-02   1.0000          .0000       .10000E+07
     6 'norm      '    .79097       1.0000          .0000       .10000E+07
     7 'Prefactor '    6.1051       1.0000          .0000       .10000E+07
     8 'Prefactor '    5.1589       1.0000          .0000       .10000E+07
     9 'Prefactor '    20.870       1.0000          .0000       .10000E+07
    10 'Prefactor '    .32144E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .57621E-07   1.0000          .0000       .10000E+07
    12 'norm      '    .44573E-05   1.0000          .0000       .10000E+07
    13 'norm      '    2.7917       1.0000          .0000       .10000E+07
    14 'Prefactor '    .49960E-09   1.0000          .0000       .10000E+07
    15 'Prefactor '    26.335       1.0000          .0000       .10000E+07
    16 'norm      '    1.2574       1.0000          .0000       .10000E+07
    17 'Prefactor '    23.139       1.0000          .0000       .10000E+07
    18 'norm      '    3.7588       1.0000          .0000       .10000E+07
    19 'norm      '    1.7499       1.0000          .0000       .10000E+07
    20 'Prefactor '    .75495E-08   1.0000          .0000       .10000E+07
    21 'norm      '    4.3038       1.0000          .0000       .10000E+07
    22 'norm      '    3.8164       1.0000          .0000       .10000E+07
    23 'Prefactor '    .30792E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    6.8095       1.0000          .0000       .10000E+07
    25 'Prefactor '    .93691E-04   1.0000          .0000       .10000E+07
    26 'Prefactor '    16.957       1.0000          .0000       .10000E+07
    27 'Prefactor '    .27331       1.0000          .0000       .10000E+07
    28 'Normalizat'    .98961       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .87633       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   19154.09     FROM MIGRAD    STATUS=CONVERGED    174 CALLS     2110 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9353        8.7765       -.47534E-05   -.16209E-01
   2  norm          1.0040        1.1017        .40604E-06    .13651E-01
   3  Prefactor     28.617        36.368       -.50387E-05    .23263E-01
   4  norm          .87981        .85601        .39583E-07   -.15690E-02
   5  Prefactor     .33845E-06    69.605       -.27828E-05** at limit **
   6  norm          .79081        1.0868       -.22993E-06   -.15468E-01
   7  Prefactor     6.1256        5.4428        .17415E-05    .20756E-02
   8  Prefactor     5.1515        3.4799       -.17261E-06    .48057E-02
   9  Prefactor     20.768        4.6932        .13521E-06   -.66549E-01
  10  Prefactor      .0000        3.3076       -.50508E-06** at limit **
  11  Prefactor      .0000        .79511       -.13038E-06** at limit **
  12  norm          .55511E-10    1.7176       -.99612E-07** at limit **
  13  norm          2.7966        2.2642        .27307E-07   -.57850E-02
  14  Prefactor     .16653E-09    3.8262       -.19560E-06** at limit **
  15  Prefactor     26.329        13.176        .16492E-06   -.20618E-01
  16  norm          1.2580        1.0927        .13710E-06   -.17218E-01
  17  Prefactor     23.140        11.600        .48675E-06    .22325E-01
  18  norm          3.7665        2.4252        .19366E-06    .81599E-02
  19  norm          1.7580        3.2390        .20022E-06   -.39997E-02
  20  Prefactor      .0000        .55018        .10864E-06** at limit **
  21  norm          4.3051        1.1903        .24187E-07   -.81428E-03
  22  norm          3.8166        1.2304        .28563E-07    .68150E-02
  23  Prefactor     .61062E-09    4.6998       -.21617E-07** at limit **
  24  Prefactor     6.8080        4.1084       -.44073E-07    .10481E-04
  25  Prefactor     .19984E-08    27.740        .51659E-06** at limit **
  26  Prefactor     16.969        5.7407       -.35210E-06   -.10868    
  27  Prefactor     .26136        3.0678       -.58044E-06   -.38013E-02
  28  Normalizat    .98988        .10692       -.19246E-06   -.71742E-03
  29  Prefactor     .87599        .12666       -.44609E-05   -.43733E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.93534
  norm       = 1.00399
  Prefactor  = 28.6165
  norm       = 0.879807
  Prefactor  = 3.38451e-07
  norm       = 0.790813
  Prefactor  = 6.1256
  Prefactor  = 5.15153
  Prefactor  = 20.7681
  Prefactor  = 0
  Prefactor  = 0
  norm       = 5.55112e-11
  norm       = 2.7966
  Prefactor  = 1.66533e-10
  Prefactor  = 26.3288
  norm       = 1.258
  Prefactor  = 23.1396
  norm       = 3.76654
  norm       = 1.75804
  Prefactor  = 0
  norm       = 4.30514
  norm       = 3.8166
  Prefactor  = 6.10623e-10
  Prefactor  = 6.80798
  Prefactor  = 1.9984e-09
  Prefactor  = 16.9691
  Prefactor  = 0.26136
  Normalizat = 0.989879
  Prefactor  = 0.875985
 **********
 **   18 **HESSE 
 **********

 FCN=   19154.09     FROM HESSE     STATUS=OK           625 CALLS     2735 TOTAL
                     EDM=   .33E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9353        13.789        .74262E-03   -1.5680    
   2  norm          1.0040        1.2150        .43929E-03   -1.5688    
   3  Prefactor     28.617        38.266        .19320E-03   -1.5601    
   4  norm          .87981        .85982        .47192E-03   -1.5689    
   5  Prefactor     .33845E-06    70.621        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .79081        1.1377        .53610E-03   -1.5690    
   7  Prefactor     6.1256        10.267        .40609E-03   -1.5658    
   8  Prefactor     5.1515        3.5465        .44237E-03   -1.5663    
   9  Prefactor     20.768        13.885        .21896E-03   -1.5617    
  10  Prefactor      .0000        3.3080        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        .79497        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55511E-10    1.7197        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.7966        2.2950        .60868E-03   -1.5675    
  14  Prefactor     .16653E-09    3.7808        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     26.329        13.554        .19490E-03   -1.5605    
  16  norm          1.2580        1.1068        .99510E-03   -1.5686    
  17  Prefactor     23.140        11.669        .20794E-03   -1.5612    
  18  norm          3.7665        2.4272        .52051E-03   -1.5669    
  19  norm          1.7580        3.2616        .79231E-03   -1.5681    
  20  Prefactor      .0000        .55094        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.3051        1.1930        .48536E-03   -1.5666    
  22  norm          3.8166        1.2325        .51642E-03   -1.5669    
  23  Prefactor     .61062E-09    4.7177        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.8080        4.1154        .38426E-03   -1.5656    
  25  Prefactor     .19984E-08    27.710        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     16.969        16.399        .24295E-03   -1.5626    
  27  Prefactor     .26136        .79031        .61600E-02   -1.5698    
  28  Normalizat    .98988        .91748E-01    .46037E-01   -.93370    
  29  Prefactor     .87599        .10809        .44703E-01   -.96985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28167e-06
Minuit parameter uncertainties:
  1  10.3317
  2  1.21496
  3  38.2665
  4  0.85982
  5  0.00977841
  6  1.13766
  7  10.2672
  8  3.54646
  9  13.8848
  10  8.21572e-06
  11  1.40669e-06
  12  2.0407e-05
  13  2.29503
  14  4.74201e-05
  15  13.5539
  16  1.10675
  17  11.6692
  18  2.42718
  19  3.26156
  20  1.96093e-06
  21  1.19298
  22  1.23254
  23  0.000105374
  24  4.11544
  25  0.000467763
  26  16.3988
  27  0.790313
  28  0.0917624
  29  0.108115
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 19154.0926713

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  2.633e+01  1.355e+01  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  2.073e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  2.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  8.760e-01  1.081e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  9.899e-01  9.176e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.75
Ra Dec: 182.114 61.356
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 2.79e-08 +/- 1.43e-08
Energy Flux (Fixed Index): 1.62e-05 +/- 8.35e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 19153.7898238
delta logL = 0.302847506973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 19153.7808783
delta logL = 0.311793053726

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.495       1.0000          .0000       .10000E+07
     2 'Index     '    2.3660       1.0000          .0000       10.000    
     3 'Normalizat'    .97830       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88461       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   19153.78     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      297 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.492        18.841        .98534E-05    .14538E-02
   2  Index         2.3662        .49810        .51066E-02    .16152E-03
   3  Normalizat    .97834        .10355        .21676E-03   -.14685E-05
   4  Prefactor     .88456        .12693        .27989E-03    .16247E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.4916
  Index      = 2.36618
  Normalizat = 0.978336
  Prefactor  = 0.884562
 **********
 **   18 **HESSE 
 **********

 FCN=   19153.78     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.492        14.704        .39414E-06   -1.5627    
   2  Index         2.3662        .38877        .20426E-03   -.55479    
   3  Normalizat    .97834        .10299        .86706E-05   -.93760    
   4  Prefactor     .88456        .12650        .11196E-04   -.96683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46309e-11
Minuit parameter uncertainties:
  1  14.7038
  2  0.38931
  3  0.103006
  4  0.126543
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 19153.7808781
delta logL = 0.311793213503

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  1.649e+01  1.470e+01  0.000e+00  1.000e+06 ( 1.000e-14)
373        Index:  2.366e+00  3.893e-01  0.000e+00  1.000e+01 (-1.000e+00)
374        Scale:  2.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  8.846e-01  1.265e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  9.783e-01  1.030e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.37
Ra Dec: 182.114 61.356
Photon Index (Free Index): 2.37 +/- 0.39
Photon Flux (Free Index): 3.71e-08 +/- 1.99e-08
Energy Flux (Free Index): 1.27e-05 +/- 6.82e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/59977450/cmap_HighResolution_754876801_755481601_4FGL_J1208.4+6121_weekly_bin853.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.79e-08', energy_flux2='1.27e-05', photon_flux_error='1.43e-08', dlogl='3.12e-01', energy_flux='1.62e-05', photon_flux2='3.71e-08', job_status='DONE', time_completed='2024-12-10 00:43:06.031939', photon_index_error2='0.39', photon_index2='2.37', ts='7.75', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='6.82e-06', EG='0.99', time_epoch_completed='1733820186.03', return_code='0', job_id='59977450', GAL2='0.88', EG2='0.98', return_code2='0', energy_flux_error='8.35e-06', photon_flux_error2='1.99e-08', ts2='8.37', photon_index='2.07' WHERE bin_id='853' AND source_name='4FGL J1208.4+6121' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 10 00:43:06 PST 2024

