/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 = 17316
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1208.9+5441_weekly_bin858
RA = 182.226, Dec = 54.6995
tmin = 757900801, tmax = 758505601
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='61724484', job_status='RUN', time_executed='2025-01-14 02:52:10.479381', time_epoch_executed='1736851930.48' WHERE source_name='4FGL J1208.9+5441' and cadence='weekly' and bin_id='858'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/61724484

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/61724484/ft1_4FGL_J1208.9+5441_weekly_bin858.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/61724484/ft2_4FGL_J1208.9+5441_weekly_bin858.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/61724484/ft1_4FGL_J1208.9+5441_weekly_bin858.fits outfile=/lscratch/kocevski/61724484/ft1_filteredMKT_4FGL_J1208.9+5441_weekly_bin858.fits ra=182.226 dec=54.6995 rad=12.0 tmin=757900801.0 tmax=758505601.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.54
user 3.17
sys 0.31

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/61724484/ft2_4FGL_J1208.9+5441_weekly_bin858.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/61724484/ft2_4FGL_J1208.9+5441_weekly_bin858.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/61724484/ft1_filteredMKT_4FGL_J1208.9+5441_weekly_bin858.fits evtable="EVENTS" outfile="/lscratch/kocevski/61724484/ft1_filtered_4FGL_J1208.9+5441_weekly_bin858.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.45
user 0.23
sys 0.17

Number of photons that the gtmktime cut: 1598

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/61724484/ft1_filtered_4FGL_J1208.9+5441_weekly_bin858.fits" evtable="EVENTS" scfile=/lscratch/kocevski/61724484/ft2_4FGL_J1208.9+5441_weekly_bin858.fits sctable="SC_DATA" outfile=/lscratch/kocevski/61724484/ltcube_757900801_758505601_4FGL_J1208.9+5441_weekly_bin858.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/61724484/ft2_4FGL_J1208.9+5441_weekly_bin858.fits
.....................!
real 18.42
user 17.92
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/61724484/ft1_filtered_4FGL_J1208.9+5441_weekly_bin858.fits evtable="EVENTS" scfile=/lscratch/kocevski/61724484/ft2_4FGL_J1208.9+5441_weekly_bin858.fits sctable="SC_DATA" expcube=/lscratch/kocevski/61724484/ltcube_757900801_758505601_4FGL_J1208.9+5441_weekly_bin858.fits outfile=/lscratch/kocevski/61724484/expmap_757900801_758505601_4FGL_J1208.9+5441_weekly_bin858.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/61724484/ltcube_757900801_758505601_4FGL_J1208.9+5441_weekly_bin858.fits
.....................!
real 66.95
user 62.66
sys 3.86

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 221 point sources and 0 extended sources

Setting source of interest to:
4FGL J1208.9+5441 @ 182.226 54.6995

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/61724484/ft1_filtered_4FGL_J1208.9+5441_weekly_bin858.fits scfile=/lscratch/kocevski/61724484/ft2_4FGL_J1208.9+5441_weekly_bin858.fits outfile=/lscratch/kocevski/61724484/cmap_757900801_758505601_4FGL_J1208.9+5441_weekly_bin858.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.226 yref=54.6995 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.45
user 0.26
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/61724484/ft1_filtered_4FGL_J1208.9+5441_weekly_bin858.fits scfile=/lscratch/kocevski/61724484/ft2_4FGL_J1208.9+5441_weekly_bin858.fits outfile=/lscratch/kocevski/61724484/cmap_HighResolution_757900801_758505601_4FGL_J1208.9+5441_weekly_bin858.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.226 yref=54.6995 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.45
user 0.26
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/61724484/ft1_filtered_4FGL_J1208.9+5441_weekly_bin858.fits evtable="EVENTS" scfile=/lscratch/kocevski/61724484/ft2_4FGL_J1208.9+5441_weekly_bin858.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/61724484/Model_4FGL_J1208.9+5441_weekly_bin858.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/61724484/ft1_filtered_4FGL_J1208.9+5441_weekly_bin858.fits.....................!
real 53.02
user 51.55
sys 1.07

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/61724484/ft1_filtered_4FGL_J1208.9+5441_weekly_bin858.fits', '/lscratch/kocevski/61724484/ft2_4FGL_J1208.9+5441_weekly_bin858.fits', expMap='/lscratch/kocevski/61724484/expmap_757900801_758505601_4FGL_J1208.9+5441_weekly_bin858.fits', expCube='/lscratch/kocevski/61724484/ltcube_757900801_758505601_4FGL_J1208.9+5441_weekly_bin858.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/61724484/Model_4FGL_J1208.9+5441_weekly_bin858.xml', optimizer='MINUIT')

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

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  2.729e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
377        alpha:  2.511e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
378         beta:  7.229e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
379           Eb:  3.605e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/61724484/ft1_filtered_4FGL_J1208.9+5441_weekly_bin858.fits
Spacecraft file(s): /lscratch/kocevski/61724484/ft2_4FGL_J1208.9+5441_weekly_bin858.fits
Exposure map: /lscratch/kocevski/61724484/expmap_757900801_758505601_4FGL_J1208.9+5441_weekly_bin858.fits
Exposure cube: /lscratch/kocevski/61724484/ltcube_757900801_758505601_4FGL_J1208.9+5441_weekly_bin858.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/61724484/Model_4FGL_J1208.9+5441_weekly_bin858.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36277E-02   1.0000          .0000       .10000E+07
     2 'norm      '    1.2166       1.0000          .0000       .10000E+07
     3 'Prefactor '    .36157E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .86727E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .33744E-01   1.0000          .0000       .10000E+07
     6 'norm      '    5.3234       1.0000          .0000       .10000E+07
     7 'Prefactor '    .64004E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    4.9773       1.0000          .0000       .10000E+07
     9 'norm      '    2.4198       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.7583       1.0000          .0000       .10000E+07
    11 'norm      '    .14516E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    11.763       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.5186       1.0000          .0000       .10000E+07
    14 'Prefactor '    4.9754       1.0000          .0000       .10000E+07
    15 'norm      '    1.2077       1.0000          .0000       .10000E+07
    16 'Prefactor '    .55378E-06   1.0000          .0000       .10000E+07
    17 'norm      '    .68406E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    .49405E-08   1.0000          .0000       .10000E+07
    19 'Prefactor '    .15121E-03   1.0000          .0000       .10000E+07
    20 'norm      '    1.3243       1.0000          .0000       .10000E+07
    21 'Prefactor '    .51465       1.0000          .0000       .10000E+07
    22 'norm      '    1.5308       1.0000          .0000       .10000E+07
    23 'Prefactor '    .12716E-04   1.0000          .0000       .10000E+07
    24 'Prefactor '    2.3767       1.0000          .0000       .10000E+07
    25 'norm      '    .12990E-07   1.0000          .0000       .10000E+07
    26 'Normalizat'    .97396       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0402       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17659.94     FROM MIGRAD    STATUS=CONVERGED    164 CALLS     1878 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11013E-06    71.406        .16053E-05** at limit **
   2  norm          1.2162        .97507       -.43105E-06    .22790E-02
   3  Prefactor     .10547E-07    13.190        .10344E-05** at limit **
   4  Prefactor     .47112E-06    26.321       -.13454E-04** at limit **
   5  Prefactor     .55511E-10    22.242        .14282E-05** at limit **
   6  norm          5.3112        1.8636       -.28082E-06   -.57765E-01
   7  Prefactor     .13878E-08    3.7322       -.10201E-05** at limit **
   8  Prefactor     5.0314        3.8955        .17274E-05    .98081E-01
   9  norm          2.4200        2.4373        .78340E-07   -.23506E-02
  10  Prefactor     1.7711        1.8507        .10872E-06    .33900E-02
  11  norm           .0000        .49753        .19439E-06** at limit **
  12  Prefactor     11.530        12.343        .12827E-05    .15769E-01
  13  Prefactor     1.5196        1.8850       -.55494E-07   -.36402E-02
  14  Prefactor     4.9557        7.7128        .63915E-06    .13523E-03
  15  norm          1.2078        .96205        .38728E-06    .94284E-02
  16  Prefactor     .16653E-09    4.0045        .12509E-05** at limit **
  17  norm          .55511E-10    1.6163        .55247E-06** at limit **
  18  Prefactor     .44409E-09    3.4868        .62476E-06** at limit **
  19  Prefactor      .0000        2.7409       -.23004E-05** at limit **
  20  norm          1.3245        .77159        .16671E-06    .19926E-02
  21  Prefactor     .55712        .64396        .13971E-06    .72566E-03
  22  norm          1.5305        .85036       -.40995E-06   -.21730E-02
  23  Prefactor     .62544E-06    32.222        .37537E-05** at limit **
  24  Prefactor     2.3733        2.7321        .55614E-07    .51697E-03
  25  norm           .0000        .53015        .14204E-06** at limit **
  26  Normalizat    .97402        .10304        .54588E-05    .44464E-03
  27  Prefactor     1.0402        .12964       -.22616E-04    .44643E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.10134e-07
  norm       = 1.21624
  Prefactor  = 1.05471e-08
  Prefactor  = 4.71123e-07
  Prefactor  = 5.55112e-11
  norm       = 5.3112
  Prefactor  = 1.38778e-09
  Prefactor  = 5.0314
  norm       = 2.42004
  Prefactor  = 1.77108
  norm       = 0
  Prefactor  = 11.5302
  Prefactor  = 1.51965
  Prefactor  = 4.95569
  norm       = 1.20784
  Prefactor  = 1.66533e-10
  norm       = 5.55112e-11
  Prefactor  = 4.44089e-10
  Prefactor  = 0
  norm       = 1.32448
  Prefactor  = 0.557116
  norm       = 1.53046
  Prefactor  = 6.25444e-07
  Prefactor  = 2.37328
  norm       = 0
  Normalizat = 0.974022
  Prefactor  = 1.04023
 **********
 **   18 **HESSE 
 **********

 FCN=   17659.94     FROM HESSE     STATUS=OK           542 CALLS     2420 TOTAL
                     EDM=   .58E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11013E-06    71.842        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2162        .99615        .10234E-02   -1.5686    
   3  Prefactor     .10547E-07    13.240        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .47112E-06    27.064        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .55511E-10    22.166        .16259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.3112        11.762        .43536E-03   -1.5662    
   7  Prefactor     .13878E-08    3.7040        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.0314        15.140        .45054E-03   -1.5663    
   9  norm          2.4200        2.4271        .65772E-03   -1.5677    
  10  Prefactor     1.7711        1.8941        .79001E-03   -1.5681    
  11  norm           .0000        .49835        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.530        12.609        .29183E-03   -1.5640    
  13  Prefactor     1.5196        1.9070        .86689E-03   -1.5683    
  14  Prefactor     4.9557        7.7540        .45063E-03   -1.5663    
  15  norm          1.2078        .96942        .10301E-02   -1.5686    
  16  Prefactor     .16653E-09    4.0090        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .55511E-10    1.6035        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .44409E-09    3.4921        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        2.6867        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.3245        .76856        .95511E-03   -1.5685    
  21  Prefactor     .55712        12.470        .77249E-03   -1.5693    
  22  norm          1.5305        .85308        .86230E-03   -1.5683    
  23  Prefactor     .62544E-06    33.000        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.3733        2.7452        .66425E-03   -1.5677    
  25  norm           .0000        .53138        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .97402        .87733E-01    .45840E-01   -.93906    
  27  Prefactor     1.0402        .10898        .59605E-01   -.91400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.75609e-07
Minuit parameter uncertainties:
  1  0.00562583
  2  0.996153
  3  0.000747068
  4  0.00714168
  5  8.51774e-05
  6  11.7621
  7  0.000142047
  8  15.1404
  9  2.42708
  10  1.89407
  11  5.47959e-06
  12  12.609
  13  1.90701
  14  7.75404
  15  0.969422
  16  5.39677e-05
  17  1.92999e-05
  18  7.89776e-05
  19  9.41294e-06
  20  0.768562
  21  5.27162
  22  0.85308
  23  0.00908641
  24  2.7452
  25  3.56779e-06
  26  0.0877461
  27  0.109004
Done.

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

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  1.208e+00  9.694e-01  0.000e+00  1.000e+06 ( 1.000e-11)
377        alpha:  2.511e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
378         beta:  7.229e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
379           Eb:  3.605e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  1.040e+00  1.090e-01  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  9.740e-01  8.775e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.22
Ra Dec: 182.226 54.700
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 1.89e-08 +/- 1.52e-08
Energy Flux (Fixed Index): 5.00e-06 +/- 4.01e-06

TS (Fixed Index): 3.22
Ra Dec: 182.226 54.700
Photon Flux Upper Limit: 5.16468544654e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.36522034109e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/61724484/likelihoodResults_757900801_758505601_4FGL_J1208.9+5441_weekly_bin858.txt

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) = 17659.6707715
delta logL = 0.272537158511

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17659.6102771
delta logL = 0.333031586735

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .79335       1.0000          .0000       .10000E+07
     2 'alpha     '    1.8776       1.0000          .0000       5.0000    
     3 'Normalizat'    .98591       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0325       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   17659.61     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      214 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .79122        .70502        .53432E-03    .34681E-02
   2  alpha         1.8754        .41057        .42892       -.10172E-03
   3  Normalizat    .98604        .85060E-01    .45990E-01    .16039E-04
   4  Prefactor     1.0323        .10841        .59805E-01    .23969E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.791222
  alpha      = 1.87537
  Normalizat = 0.986041
  Prefactor  = 1.03229
 **********
 **   18 **HESSE 
 **********

 FCN=   17659.61     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .79122        1.0255        .10132E-04   -1.5690    
   2  alpha         1.8754        .75052        .21934E-01   -.25253    
   3  Normalizat    .98604        .10204        .21264E-03   -.93500    
   4  Prefactor     1.0323        .12952        .26447E-03   -.91661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71858e-08
Minuit parameter uncertainties:
  1  1.02555
  2  0.763092
  3  0.102062
  4  0.129558
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) = 17659.6102725
delta logL = 0.33303618844

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  7.912e-01  1.026e+00  0.000e+00  1.000e+06 ( 1.000e-11)
377        alpha:  1.875e+00  7.631e-01  0.000e+00  5.000e+00 ( 1.000e+00)
378         beta:  7.229e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
379           Eb:  3.605e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  1.032e+00  1.296e-01  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  9.860e-01  1.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.88
Ra Dec: 182.226 54.700
Photon Index (Free Index): 1.88 +/- 0.76
Photon Flux (Free Index): 9.26e-09 +/- 1.33e-08
Energy Flux (Free Index): 5.42e-06 +/- 5.01e-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/61724484/cmap_HighResolution_757900801_758505601_4FGL_J1208.9+5441_weekly_bin858.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.37e-05', comment='SUCCESS', photon_flux='1.89e-08', energy_flux2='5.42e-06', photon_flux_error='1.52e-08', dlogl='3.33e-01', energy_flux='5.00e-06', photon_flux2='9.26e-09', job_status='DONE', time_completed='2025-01-14 03:03:09.258754', photon_index_error2='0.76', photon_index2='1.88', ts='3.22', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='5.16e-08', energy_flux_error2='5.01e-06', EG='0.97', time_epoch_completed='1736852589.26', return_code='0', job_id='61724484', GAL2='1.03', EG2='0.99', return_code2='0', energy_flux_error='4.01e-06', photon_flux_error2='1.33e-08', ts2='3.88', photon_index='2.51' WHERE bin_id='858' AND source_name='4FGL J1208.9+5441' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 14 03:03:09 PST 2025

