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


Performing analysis on: 4FGL_J1208.4+6121_daily_bin615
RA = 182.114, Dec = 61.3559
tmin = 398736001, tmax = 398995201
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='341132', job_status='RUN', time_executed='2021-09-05 00:45:47.856513', time_epoch_executed='1630827947.86' WHERE source_name='4FGL J1208.4+6121' and cadence='daily' and bin_id='615'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/341132

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/341132/ft1_4FGL_J1208.4+6121_daily_bin615.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/341132/ft2_4FGL_J1208.4+6121_daily_bin615.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/341132/ft1_4FGL_J1208.4+6121_daily_bin615.fits outfile=/scratch/kocevski/341132/ft1_filteredMKT_4FGL_J1208.4+6121_daily_bin615.fits ra=182.114 dec=61.3559 rad=12.0 tmin=398736001.0 tmax=398995201.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 6.12
user 5.80
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/341132/ft2_4FGL_J1208.4+6121_daily_bin615.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/341132/ft2_4FGL_J1208.4+6121_daily_bin615.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/341132/ft1_filteredMKT_4FGL_J1208.4+6121_daily_bin615.fits evtable="EVENTS" outfile="/scratch/kocevski/341132/ft1_filtered_4FGL_J1208.4+6121_daily_bin615.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/341132/ft1_filtered_4FGL_J1208.4+6121_daily_bin615.fits" evtable="EVENTS" scfile=/scratch/kocevski/341132/ft2_4FGL_J1208.4+6121_daily_bin615.fits sctable="SC_DATA" outfile=/scratch/kocevski/341132/ltcube_398736001_398995201_4FGL_J1208.4+6121_daily_bin615.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/341132/ft2_4FGL_J1208.4+6121_daily_bin615.fits
.....................!
real 12.73
user 12.21
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/341132/ft1_filtered_4FGL_J1208.4+6121_daily_bin615.fits evtable="EVENTS" scfile=/scratch/kocevski/341132/ft2_4FGL_J1208.4+6121_daily_bin615.fits sctable="SC_DATA" expcube=/scratch/kocevski/341132/ltcube_398736001_398995201_4FGL_J1208.4+6121_daily_bin615.fits outfile=/scratch/kocevski/341132/expmap_398736001_398995201_4FGL_J1208.4+6121_daily_bin615.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/341132/ltcube_398736001_398995201_4FGL_J1208.4+6121_daily_bin615.fits
.....................!
real 190.55
user 185.18
sys 4.57

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=/scratch/kocevski/341132/ft1_filtered_4FGL_J1208.4+6121_daily_bin615.fits scfile=/scratch/kocevski/341132/ft2_4FGL_J1208.4+6121_daily_bin615.fits outfile=/scratch/kocevski/341132/cmap_398736001_398995201_4FGL_J1208.4+6121_daily_bin615.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/341132/ft1_filtered_4FGL_J1208.4+6121_daily_bin615.fits scfile=/scratch/kocevski/341132/ft2_4FGL_J1208.4+6121_daily_bin615.fits outfile=/scratch/kocevski/341132/cmap_HighResolution_398736001_398995201_4FGL_J1208.4+6121_daily_bin615.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/341132/ft1_filtered_4FGL_J1208.4+6121_daily_bin615.fits evtable="EVENTS" scfile=/scratch/kocevski/341132/ft2_4FGL_J1208.4+6121_daily_bin615.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/341132/Model_4FGL_J1208.4+6121_daily_bin615.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/341132/ft1_filtered_4FGL_J1208.4+6121_daily_bin615.fits.....................!
real 47.28
user 45.77
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/341132/ft1_filtered_4FGL_J1208.4+6121_daily_bin615.fits', '/scratch/kocevski/341132/ft2_4FGL_J1208.4+6121_daily_bin615.fits', expMap='/scratch/kocevski/341132/expmap_398736001_398995201_4FGL_J1208.4+6121_daily_bin615.fits', expCube='/scratch/kocevski/341132/ltcube_398736001_398995201_4FGL_J1208.4+6121_daily_bin615.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/341132/Model_4FGL_J1208.4+6121_daily_bin615.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  1.000e-04  1.000e+04 ( 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): /scratch/kocevski/341132/ft1_filtered_4FGL_J1208.4+6121_daily_bin615.fits
Spacecraft file(s): /scratch/kocevski/341132/ft2_4FGL_J1208.4+6121_daily_bin615.fits
Exposure map: /scratch/kocevski/341132/expmap_398736001_398995201_4FGL_J1208.4+6121_daily_bin615.fits
Exposure cube: /scratch/kocevski/341132/ltcube_398736001_398995201_4FGL_J1208.4+6121_daily_bin615.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/341132/Model_4FGL_J1208.4+6121_daily_bin615.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) = 4452.78763887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .13328       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.1722       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.6570       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16215E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.630       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.1130       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .28012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11240E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.0115       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    15.706       1.0000         .10000E-03   10000.    
    21 'norm      '    7.1424       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.4719       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .36911       1.0000         .10000E-03   10000.    
    27 'Prefactor '    41.170       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.2800       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .12700E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1679       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .75100       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4452.752     FROM MIGRAD    STATUS=CONVERGED    864 CALLS     3746 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.276        .72879E-06** at limit **
   2  norm          .13324        1.3510       -.51898E-06    .82093E-03
   3  Prefactor     .10000E-03    90.911       -.16186E-05** at limit **
   4  norm          4.1747        2.6515        .76207E-06    .22140E-02
   5  Prefactor     .10000E-03    87.157       -.35593E-05** at limit **
   6  norm          1.6570        1.6462        .50291E-07    .90773E-04
   7  Prefactor     .10013E-03    10.914        .61703E-06** at limit **
   8  Prefactor     16.630        16.194        .95022E-07    .49967E-04
   9  Prefactor     .10000E-03    2.9008       -.17535E-07** at limit **
  10  Prefactor     .10000E-03    17.404        .17711E-05** at limit **
  11  Prefactor     .10000E-03    11.401       -.34611E-06** at limit **
  12  Prefactor     .10000E-03    1.3380       -.59931E-08** at limit **
  13  norm          .10000E-03    4.8534       -.10500E-08** at limit **
  14  norm          6.1096        4.9948       -.49544E-06   -.50274E-03
  15  Prefactor     .10000E-03    7.8570        .72075E-06** at limit **
  16  Prefactor     .10000E-03    52.129       -.62572E-05** at limit **
  17  norm          2.0114        2.5612       -.57339E-06   -.22696E-03
  18  Prefactor     .10000E-03    12.572       -.56809E-06** at limit **
  19  Prefactor     .10000E-03    29.606        .25747E-05** at limit **
  20  norm          15.705        7.2418       -.78708E-06   -.21897E-03
  21  norm          7.1417        10.916       -.48229E-06   -.13242E-04
  22  Prefactor     .10000E-03    2.8987       -.63335E-07** at limit **
  23  norm          7.4745        3.5076        .21880E-06    .51105E-03
  24  norm          .10000E-03    1.0265       -.24792E-07** at limit **
  25  Prefactor     .10000E-03    41.075        .27895E-05** at limit **
  26  Prefactor     .27541        120.32       -.13881E-04    .27823E-03
  27  Prefactor     41.170        40.317        .89924E-07    .18313E-04
  28  Prefactor     .10000E-03    24.847       -.11129E-05** at limit **
  29  Prefactor     6.2837        4.9410       -.58731E-06    .14689E-03
  30  Prefactor     .10000E-03    25.922       -.35834E-05** at limit **
  31  Normalizat    1.1680        .19363        .12776E-05    .39348E-03
  32  Prefactor     .75090        .23448        .32802E-06    .25561E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.133244
  Prefactor  = 0.0001
  norm       = 4.17467
  Prefactor  = 0.000100002
  norm       = 1.65701
  Prefactor  = 0.000100131
  Prefactor  = 16.6298
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.10958
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 2.01144
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 15.7054
  norm       = 7.14173
  Prefactor  = 0.0001
  norm       = 7.47454
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.275409
  Prefactor  = 41.17
  Prefactor  = 0.0001
  Prefactor  = 6.28367
  Prefactor  = 0.0001
  Normalizat = 1.16801
  Prefactor  = 0.750897
 **********
 **   18 **HESSE 
 **********

 FCN=   4452.752     FROM HESSE     STATUS=OK           655 CALLS     4401 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .13324        2.4906        .14563E-02   -1.5635    
   3  Prefactor     .10000E-03    91.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.1747        2.7319        .85930E-04   -1.5299    
   5  Prefactor     .10000E-03    87.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.6570        1.6588        .82828E-04   -1.5451    
   7  Prefactor     .10013E-03    21.523        .24863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.630        16.218        .98213E-04   -1.4892    
   9  Prefactor     .10000E-03    2.9103        .11097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.3399        .75375E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.8546        .14358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.1096        4.7035        .12220E-03   -1.5214    
  15  Prefactor     .10000E-03    15.805        .33666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    53.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.0114        2.5578        .11499E-03   -1.5424    
  18  Prefactor     .10000E-03    12.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    29.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          15.705        7.3040        .50532E-03   -1.4915    
  21  norm          7.1417        10.913        .15010E-03   -1.5173    
  22  Prefactor     .10000E-03    2.9078        .11092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.4745        3.5228        .79079E-04   -1.5161    
  24  norm          .10000E-03    1.0365        .66018E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    41.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .27541        182.91        .38887E-02   -1.5603    
  27  Prefactor     41.170        40.322        .62474E-04   -1.4424    
  28  Prefactor     .10000E-03    24.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     6.2837        4.8309        .12427E-03   -1.5207    
  30  Prefactor     .10000E-03    25.589        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.1680        .22443        .20840E-03   -.87597    
  32  Prefactor     .75090        .27184        .31277E-03   -1.0156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38302e-08
Minuit parameter uncertainties:
  1  7.31609e-05
  2  1.15177
  3  0.000377112
  4  2.73198
  5  0.00086426
  6  1.65889
  7  0.00335786
  8  16.2228
  9  2.55368e-06
  10  0.000171704
  11  2.88616e-05
  12  1.22857e-06
  13  6.43639e-09
  14  4.70375
  15  9.43182e-05
  16  0.000926672
  17  2.55795
  18  5.0309e-05
  19  0.000361936
  20  7.30441
  21  10.9159
  22  1.55106e-06
  23  3.52285
  24  9.69555e-07
  25  0.000434987
  26  14.2362
  27  40.3488
  28  0.000136332
  29  4.83124
  30  7.28378e-05
  31  0.224613
  32  0.27232
Done.

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

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  9.267e-04  1.000e-04  1.000e+04 ( 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:  7.509e-01  2.723e-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:  1.168e+00  2.246e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 182.114 61.356
Photon Flux Upper Limit: 6.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/341132/likelihoodResults_398736001_398995201_4FGL_J1208.4+6121_daily_bin615.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): 102
logL (Free Index) = 4452.75183247
delta logL = -8.86093030203e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4452.75174389
delta logL = -2.53439793596e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11994E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1311       1.0000          .0000       10.000    
     3 'Normalizat'    1.1680       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75090       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.

 FCN=   4452.752     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      252 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1.5420        .90712E-01** at limit **
   2  Index         2.2072        1.3385        .50000       -.12383E-04
   3  Normalizat    1.1680        .15013E-02    .35728E-01   -.70431E-03
   4  Prefactor     .75090        .18555E-02    .70679E-01   -.43906E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Index      = 2.20722
  Normalizat = 1.16801
  Prefactor  = 0.750896
 **********
 **   18 **HESSE 
 **********

 FCN=   4452.752     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      283 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    374.74        .49394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2072        5.4828        .50000       -.59264    
   3  Normalizat    1.1680        .99785E-02    .20840E-03   -.87597    
   4  Prefactor     .75090        .12312E-01    .31277E-03   -1.0156    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.48911e-09
Minuit parameter uncertainties:
  1  0.00386772
  2  9.01987
  3  0.00997851
  4  0.0123118
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/341132': 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): 102
logL (Free Index) = 4452.75174353
delta logL = 3.37909114023e-07

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  3.868e-03  1.000e-04  1.000e+04 ( 1.000e-14)
373        Index:  2.207e+00  9.020e+00  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:  7.509e-01  1.231e-02  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:  1.168e+00  9.979e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 182.114 61.356

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/341132/cmap_HighResolution_398736001_398995201_4FGL_J1208.4+6121_daily_bin615.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.54e-03', job_status='DONE', photon_flux_upper_limit='6.02e-08', time_completed='2021-09-05 00:59:48.613736', job_id='341132', GAL2='0.75', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1630828788.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='3.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='615' AND source_name='4FGL J1208.4+6121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 00:59:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 341132: <4FGL_J1208.4+6121_daily_bin615> in cluster <slac> Done

Job <4FGL_J1208.4+6121_daily_bin615> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 00:45:30 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 00:45:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 00:45:31 2021
Terminated at Sun Sep  5 00:59:49 2021
Results reported at Sun Sep  5 00:59:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.4+6121_daily_bin615 182.114 61.3559 398736001 398995201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1208.4+6121 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   835.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            859 sec.

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

