/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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)


Waiting 3 seconds before starting...
Proceeding.

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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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 = 7356
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1208.9+5441_daily_bin1296
RA = 182.226, Dec = 54.6995
tmin = 575251201, tmax = 575510401
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='359877', job_status='RUN', time_executed='2021-09-05 01:32:27.447798', time_epoch_executed='1630830747.45' WHERE source_name='4FGL J1208.9+5441' and cadence='daily' and bin_id='1296'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/359877

Creating custom pfile directory:
/scratch/kocevski/359877/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=575251201.0 && nMetStart<575510401.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=575251201.0 && nMetStart<575510401.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/359877/ft1_4FGL_J1208.9+5441_daily_bin1296.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=575251201.0 && nMetStart<575510401.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/359877/ft2_4FGL_J1208.9+5441_daily_bin1296.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/359877/ft1_4FGL_J1208.9+5441_daily_bin1296.fits outfile=/scratch/kocevski/359877/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin1296.fits ra=182.226 dec=54.6995 rad=12.0 tmin=575251201.0 tmax=575510401.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 5.48
user 5.01
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/359877/ft2_4FGL_J1208.9+5441_daily_bin1296.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/359877/ft2_4FGL_J1208.9+5441_daily_bin1296.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/359877/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin1296.fits evtable="EVENTS" outfile="/scratch/kocevski/359877/ft1_filtered_4FGL_J1208.9+5441_daily_bin1296.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('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/359877/ft1_filtered_4FGL_J1208.9+5441_daily_bin1296.fits" evtable="EVENTS" scfile=/scratch/kocevski/359877/ft2_4FGL_J1208.9+5441_daily_bin1296.fits sctable="SC_DATA" outfile=/scratch/kocevski/359877/ltcube_575251201_575510401_4FGL_J1208.9+5441_daily_bin1296.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 /scratch/kocevski/359877/ft2_4FGL_J1208.9+5441_daily_bin1296.fits
.....................!
real 11.98
user 11.46
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/359877/ft1_filtered_4FGL_J1208.9+5441_daily_bin1296.fits evtable="EVENTS" scfile=/scratch/kocevski/359877/ft2_4FGL_J1208.9+5441_daily_bin1296.fits sctable="SC_DATA" expcube=/scratch/kocevski/359877/ltcube_575251201_575510401_4FGL_J1208.9+5441_daily_bin1296.fits outfile=/scratch/kocevski/359877/expmap_575251201_575510401_4FGL_J1208.9+5441_daily_bin1296.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 /scratch/kocevski/359877/ltcube_575251201_575510401_4FGL_J1208.9+5441_daily_bin1296.fits
.....................!
real 192.52
user 185.68
sys 5.83

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=/scratch/kocevski/359877/ft1_filtered_4FGL_J1208.9+5441_daily_bin1296.fits scfile=/scratch/kocevski/359877/ft2_4FGL_J1208.9+5441_daily_bin1296.fits outfile=/scratch/kocevski/359877/cmap_575251201_575510401_4FGL_J1208.9+5441_daily_bin1296.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/359877/ft1_filtered_4FGL_J1208.9+5441_daily_bin1296.fits scfile=/scratch/kocevski/359877/ft2_4FGL_J1208.9+5441_daily_bin1296.fits outfile=/scratch/kocevski/359877/cmap_HighResolution_575251201_575510401_4FGL_J1208.9+5441_daily_bin1296.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/359877/ft1_filtered_4FGL_J1208.9+5441_daily_bin1296.fits evtable="EVENTS" scfile=/scratch/kocevski/359877/ft2_4FGL_J1208.9+5441_daily_bin1296.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/359877/Model_4FGL_J1208.9+5441_daily_bin1296.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...
/scratch/kocevski/359877/ft1_filtered_4FGL_J1208.9+5441_daily_bin1296.fits.....................!
real 49.56
user 48.20
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/359877/ft1_filtered_4FGL_J1208.9+5441_daily_bin1296.fits', '/scratch/kocevski/359877/ft2_4FGL_J1208.9+5441_daily_bin1296.fits', expMap='/scratch/kocevski/359877/expmap_575251201_575510401_4FGL_J1208.9+5441_daily_bin1296.fits', expCube='/scratch/kocevski/359877/ltcube_575251201_575510401_4FGL_J1208.9+5441_daily_bin1296.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/359877/Model_4FGL_J1208.9+5441_daily_bin1296.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  1.000e-04  1.000e+04 ( 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  0.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): /scratch/kocevski/359877/ft1_filtered_4FGL_J1208.9+5441_daily_bin1296.fits
Spacecraft file(s): /scratch/kocevski/359877/ft2_4FGL_J1208.9+5441_daily_bin1296.fits
Exposure map: /scratch/kocevski/359877/expmap_575251201_575510401_4FGL_J1208.9+5441_daily_bin1296.fits
Exposure cube: /scratch/kocevski/359877/ltcube_575251201_575510401_4FGL_J1208.9+5441_daily_bin1296.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/359877/Model_4FGL_J1208.9+5441_daily_bin1296.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) = 5301.56197828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    88.063       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3134       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.7591       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .32255E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.866       1.0000         .10000E-03   10000.    
     9 'norm      '    .10126E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10462E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.3668       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.2121       1.0000         .10000E-03   10000.    
    16 'Prefactor '    49.728       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.7977       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.5590       1.0000         .10000E-03   10000.    
    21 'norm      '    5.5559       1.0000         .10000E-03   10000.    
    22 'Prefactor '    22.506       1.0000         .10000E-03   10000.    
    23 'norm      '    4.9330       1.0000         .10000E-03   10000.    
    24 'Prefactor '    33.637       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.0251       1.0000         .10000E-03   10000.    
    26 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1080       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .86925       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5301.561     FROM MIGRAD    STATUS=CONVERGED    685 CALLS     3480 TOTAL
                     EDM=   .78E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     88.045        94.592        .52489E-06    .20642E-04
   2  norm          1.3134        1.2758        .42480E-07   -.14448E-03
   3  Prefactor     .10000E-03    63.448       -.24843E-05** at limit **
   4  Prefactor     7.7631        15.239       -.51862E-06    .18989E-04
   5  Prefactor     .10000E-03    344.71        .11604E-04** at limit **
   6  norm          .10000E-03    16.669       -.21259E-06** at limit **
   7  Prefactor     .10000E-03    1.9485        .65662E-08** at limit **
   8  Prefactor     18.861        26.948       -.33214E-06    .31440E-04
   9  norm          .10000E-03    71.310       -.15453E-04** at limit **
  10  Prefactor     .10000E-03    2.0963       -.87470E-06** at limit **
  11  norm          .10000E-03    2.5828       -.82121E-07** at limit **
  12  Prefactor     .10000E-03    7.3384       -.16048E-06** at limit **
  13  Prefactor     7.3667        7.4335       -.52431E-07    .20187E-04
  14  Prefactor     .10000E-03    19.525        .90729E-07** at limit **
  15  norm          3.2115        2.9852       -.28802E-06    .23326E-03
  16  Prefactor     49.729        26.897       -.24486E-06    .11349E-04
  17  Prefactor     .10000E-03    68.230       -.18130E-06** at limit **
  18  norm          .10000E-03    3.0202        .44345E-07** at limit **
  19  Prefactor     3.7984        20.830       -.14553E-05    .26026E-04
  20  Prefactor     8.5588        8.6710        .93020E-07    .16218E-03
  21  norm          5.5558        3.7750        .15675E-06    .32665E-03
  22  Prefactor     22.505        20.354       -.90550E-07    .23778E-04
  23  norm          4.9329        2.7104       -.18708E-07    .95483E-04
  24  Prefactor     33.629        36.922        .38297E-06    .24100E-04
  25  Prefactor     2.0270        15.933       -.39428E-05    .65055E-04
  26  norm          .10000E-03    4.3053       -.23739E-06** at limit **
  27  Normalizat    1.1080        .18212        .93149E-06    .20067E-03
  28  Prefactor     .86916        .21661        .85932E-06    .12366E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 88.0452
  norm       = 1.31345
  Prefactor  = 0.000100001
  Prefactor  = 7.76306
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.8608
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.36674
  Prefactor  = 0.0001
  norm       = 3.21151
  Prefactor  = 49.7292
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.79839
  Prefactor  = 8.55877
  norm       = 5.55583
  Prefactor  = 22.5054
  norm       = 4.93286
  Prefactor  = 33.629
  Prefactor  = 2.02703
  norm       = 0.0001
  Normalizat = 1.108
  Prefactor  = 0.869161
 **********
 **   18 **HESSE 
 **********

 FCN=   5301.561     FROM HESSE     STATUS=OK           523 CALLS     4003 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     88.045        94.728        .21407E-03   -1.3829    
   2  norm          1.3134        1.2966        .78314E-04   -1.5479    
   3  Prefactor     .10000E-03    64.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.7631        15.222        .14396E-03   -1.5151    
   5  Prefactor     .10000E-03    346.51        .21359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    16.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.9544        .99227E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.861        26.930        .92211E-04   -1.4839    
   9  norm          .10000E-03    70.075        .43398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.6188        .19695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.5978        .11418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.3483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.3667        7.4181        .14777E-03   -1.5165    
  14  Prefactor     .10000E-03    19.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.2115        2.9939        .11296E-03   -1.5350    
  16  Prefactor     49.729        26.915        .56868E-04   -1.4296    
  17  Prefactor     .10000E-03    68.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.0262        .12346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.7984        20.772        .20713E-03   -1.5318    
  20  Prefactor     8.5588        8.6578        .13702E-03   -1.5123    
  21  norm          5.5558        3.7612        .10126E-03   -1.5237    
  22  Prefactor     22.505        20.354        .84433E-04   -1.4759    
  23  norm          4.9329        2.7093        .85871E-04   -1.5264    
  24  Prefactor     33.629        36.938        .69093E-04   -1.4548    
  25  Prefactor     2.0270        15.990        .29076E-03   -1.5423    
  26  norm          .10000E-03    4.4578        .29521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1080        .21277        .21670E-03   -.89495    
  28  Prefactor     .86916        .25258        .30308E-03   -.97227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97205e-10
Minuit parameter uncertainties:
  1  94.8912
  2  1.29667
  3  0.000395298
  4  15.2298
  5  0.000677059
  6  1.72768e-05
  7  4.60669e-06
  8  26.9472
  9  0.000273775
  10  0.00014861
  11  8.37498e-06
  12  9.73695e-06
  13  7.41906
  14  1.56879e-05
  15  2.99403
  16  26.9215
  17  7.52971e-05
  18  3.06244e-06
  19  17.7746
  20  8.65907
  21  3.76134
  22  20.3602
  23  2.70935
  24  36.9632
  25  11.3901
  26  1.37073e-05
  27  0.21293
  28  0.252922
Done.

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

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  3.212e+00  2.994e+00  1.000e-04  1.000e+04 ( 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  0.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:  8.692e-01  2.529e-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:  1.108e+00  2.129e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.59
Ra Dec: 182.226 54.700
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 5.03e-08 +/- 4.68e-08
Energy Flux (Fixed Index): 1.33e-05 +/- 1.24e-05

TS (Fixed Index): 1.59
Ra Dec: 182.226 54.700
Photon Flux Upper Limit: 1.45e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.84e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/359877/likelihoodResults_575251201_575510401_4FGL_J1208.9+5441_daily_bin1296.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) = 5297.97626566
delta logL = 3.58457308353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5297.26782831
delta logL = 4.29301043377

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3188       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .93393       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0177       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5297.268     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      277 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3194        .52783        .30652E-04   -.53039E-04
   2  alpha         5.0000        3.1373        .41625E-01** at limit **
   3  Normalizat    .93397        .21100        .23243E-03   -.78702E-04
   4  Prefactor     1.0177        .25982        .28236E-03   -.15381E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.31942
  alpha      = 5
  Normalizat = 0.933969
  Prefactor  = 1.01774
 **********
 **   18 **HESSE 
 **********

 FCN=   5297.268     FROM HESSE     STATUS=OK            23 CALLS      300 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3194        .52335        .12261E-05   -1.5478    
   2  alpha         5.0000        3.1386        .83250E-02    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .93397        .21123        .92970E-05   -.95277    
   4  Prefactor     1.0177        .26010        .11294E-04   -.92141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.8632e-09
Minuit parameter uncertainties:
  1  0.523351
  2  0.000174002
  3  0.211422
  4  0.260422
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/359877': No such file or directory
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) = 5297.26782706
delta logL = 4.29301168167

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  1.319e+00  5.234e-01  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  5.000e+00  1.740e-04  0.000e+00  5.000e+00 ( 1.000e+00)
378         beta:  7.229e-02  0.000e+00  0.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.018e+00  2.604e-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.340e-01  2.114e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.05
Ra Dec: 182.226 54.700
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.86e-07 +/- 7.35e-08
Energy Flux (Free Index): 2.50e-05 +/- 9.89e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/359877/cmap_HighResolution_575251201_575510401_4FGL_J1208.9+5441_daily_bin1296.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/359877

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.84e-05', comment='SUCCESS', photon_flux='5.03e-08', energy_flux2='2.50e-05', photon_flux_error='4.68e-08', dlogl='4.29e+00', energy_flux='1.33e-05', photon_flux2='1.86e-07', job_status='DONE', time_completed='2021-09-05 01:46:33.768257', photon_index_error2='0.00', photon_index2='5.00', ts='1.59', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.45e-07', energy_flux_error2='9.89e-06', EG='1.11', time_epoch_completed='1630831593.77', return_code='0', job_id='359877', GAL2='1.02', EG2='0.93', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='7.35e-08', ts2='11.05', photon_index='2.51' WHERE bin_id='1296' AND source_name='4FGL J1208.9+5441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:46:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 359877: <4FGL_J1208.9+5441_daily_bin1296> in cluster <slac> Done

Job <4FGL_J1208.9+5441_daily_bin1296> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 01:31:57 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 01:31:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 01:31:59 2021
Terminated at Sun Sep  5 01:46:34 2021
Results reported at Sun Sep  5 01:46:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.9+5441_daily_bin1296 182.226 54.6995 575251201 575510401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1208.9+5441 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   836.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             363.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            877 sec.

The output (if any) is above this job summary.

