/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 5 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 = 7477
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1208.4+6121_daily_bin392
RA = 182.114, Dec = 61.3559
tmin = 340934401, tmax = 341193601
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='339658', job_status='RUN', time_executed='2021-09-05 00:41:18.187445', time_epoch_executed='1630827678.19' WHERE source_name='4FGL J1208.4+6121' and cadence='daily' and bin_id='392'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/339658

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/339658/ft1_4FGL_J1208.4+6121_daily_bin392.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/339658/ft2_4FGL_J1208.4+6121_daily_bin392.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/339658/ft1_4FGL_J1208.4+6121_daily_bin392.fits outfile=/scratch/kocevski/339658/ft1_filteredMKT_4FGL_J1208.4+6121_daily_bin392.fits ra=182.114 dec=61.3559 rad=12.0 tmin=340934401.0 tmax=341193601.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.37
user 3.16
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/339658/ft1_filtered_4FGL_J1208.4+6121_daily_bin392.fits" evtable="EVENTS" scfile=/scratch/kocevski/339658/ft2_4FGL_J1208.4+6121_daily_bin392.fits sctable="SC_DATA" outfile=/scratch/kocevski/339658/ltcube_340934401_341193601_4FGL_J1208.4+6121_daily_bin392.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/339658/ft2_4FGL_J1208.4+6121_daily_bin392.fits
.....................!
real 12.14
user 11.75
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/339658/ft1_filtered_4FGL_J1208.4+6121_daily_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/339658/ft2_4FGL_J1208.4+6121_daily_bin392.fits sctable="SC_DATA" expcube=/scratch/kocevski/339658/ltcube_340934401_341193601_4FGL_J1208.4+6121_daily_bin392.fits outfile=/scratch/kocevski/339658/expmap_340934401_341193601_4FGL_J1208.4+6121_daily_bin392.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/339658/ltcube_340934401_341193601_4FGL_J1208.4+6121_daily_bin392.fits
.....................!
real 193.93
user 189.74
sys 3.78

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/339658/ft1_filtered_4FGL_J1208.4+6121_daily_bin392.fits scfile=/scratch/kocevski/339658/ft2_4FGL_J1208.4+6121_daily_bin392.fits outfile=/scratch/kocevski/339658/cmap_340934401_341193601_4FGL_J1208.4+6121_daily_bin392.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/339658/ft1_filtered_4FGL_J1208.4+6121_daily_bin392.fits scfile=/scratch/kocevski/339658/ft2_4FGL_J1208.4+6121_daily_bin392.fits outfile=/scratch/kocevski/339658/cmap_HighResolution_340934401_341193601_4FGL_J1208.4+6121_daily_bin392.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/339658/ft1_filtered_4FGL_J1208.4+6121_daily_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/339658/ft2_4FGL_J1208.4+6121_daily_bin392.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/339658/Model_4FGL_J1208.4+6121_daily_bin392.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/339658/ft1_filtered_4FGL_J1208.4+6121_daily_bin392.fits.....................!
real 57.27
user 55.98
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/339658/ft1_filtered_4FGL_J1208.4+6121_daily_bin392.fits', '/scratch/kocevski/339658/ft2_4FGL_J1208.4+6121_daily_bin392.fits', expMap='/scratch/kocevski/339658/expmap_340934401_341193601_4FGL_J1208.4+6121_daily_bin392.fits', expCube='/scratch/kocevski/339658/ltcube_340934401_341193601_4FGL_J1208.4+6121_daily_bin392.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/339658/Model_4FGL_J1208.4+6121_daily_bin392.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/339658/ft1_filtered_4FGL_J1208.4+6121_daily_bin392.fits
Spacecraft file(s): /scratch/kocevski/339658/ft2_4FGL_J1208.4+6121_daily_bin392.fits
Exposure map: /scratch/kocevski/339658/expmap_340934401_341193601_4FGL_J1208.4+6121_daily_bin392.fits
Exposure cube: /scratch/kocevski/339658/ltcube_340934401_341193601_4FGL_J1208.4+6121_daily_bin392.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/339658/Model_4FGL_J1208.4+6121_daily_bin392.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) = 6211.67467308

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.4972       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-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      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.5990       1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.984       1.0000         .10000E-03   10000.    
    17 'norm      '    1.9910       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.930       1.0000         .10000E-03   10000.    
    19 'Prefactor '    71.233       1.0000         .10000E-03   10000.    
    20 'norm      '    .12576E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.345       1.0000         .10000E-03   10000.    
    23 'norm      '    5.0996       1.0000         .10000E-03   10000.    
    24 'norm      '    2.9306       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.7901       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .63486       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.3510       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=   6211.674     FROM MIGRAD    STATUS=CONVERGED    827 CALLS     4286 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.524        .60218E-05** at limit **
   2  norm          8.4970        2.6868       -.34029E-09   -.29905E-03
   3  Prefactor     .10000E-03    41.671       -.11413E-04** at limit **
   4  norm          .10000E-03    .59094       -.19805E-08** at limit **
   5  Prefactor     .10000E-03    42.852       -.18921E-04** at limit **
   6  norm          .10000E-03    .82953        .71485E-07** at limit **
   7  Prefactor     .10000E-03    1.4957       -.65057E-08** at limit **
   8  Prefactor     .10000E-03    18.181       -.12882E-04** at limit **
   9  Prefactor     .10000E-03    2.5590       -.12578E-06** at limit **
  10  Prefactor     .10000E-03    8.6496       -.44936E-05** at limit **
  11  Prefactor     .10000E-03    9.3572        .28766E-05** at limit **
  12  Prefactor     .10000E-03    1.2177       -.64211E-08** at limit **
  13  norm          .10000E-03    3.7748       -.41127E-07** at limit **
  14  norm          .10000E-03    5.1349        .12547E-05** at limit **
  15  Prefactor     5.6001        6.8442       -.28286E-06   -.19318E-03
  16  Prefactor     27.986        24.176        .10584E-05   -.32386E-04
  17  norm          1.9907        2.0334       -.59327E-07   -.60011E-03
  18  Prefactor     10.929        15.501       -.30442E-06   -.42759E-04
  19  Prefactor     71.232        80.113       -.17239E-05   -.19353E-04
  20  norm          .10000E-03    2.5170        .78200E-07** at limit **
  21  norm          .10000E-03    2.4712        .92807E-07** at limit **
  22  Prefactor     11.345        7.2788       -.12962E-07   -.68526E-04
  23  norm          5.0997        2.7850        .17851E-06   -.92842E-04
  24  norm          2.9305        2.0070        .14438E-07   -.12114E-04
  25  Prefactor     .10000E-03    29.156        .19537E-04** at limit **
  26  Prefactor     .10000E-03    4.7871       -.84127E-06** at limit **
  27  Prefactor     .10000E-03    33.878        .19132E-04** at limit **
  28  Prefactor     .10000E-03    21.565       -.51436E-05** at limit **
  29  Prefactor     2.7870        4.0207        .16937E-05   -.57649E-03
  30  Prefactor     .10000E-03    13.332        .18732E-06** at limit **
  31  Normalizat    .63482        .15327       -.22858E-06   -.49676E-04
  32  Prefactor     1.3512        .19324       -.14487E-06   -.51718E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 8.49702
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.6001
  Prefactor  = 27.9856
  norm       = 1.9907
  Prefactor  = 10.9288
  Prefactor  = 71.2315
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.3454
  norm       = 5.0997
  norm       = 2.93054
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.78699
  Prefactor  = 0.000100001
  Normalizat = 0.634821
  Prefactor  = 1.35116
 **********
 **   18 **HESSE 
 **********

 FCN=   6211.674     FROM HESSE     STATUS=OK           649 CALLS     4935 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.4970        2.6843        .70540E-04   -1.5125    
   3  Prefactor     .10000E-03    41.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .59618        .59153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    42.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.3935        .13980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.5032        .94116E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.5808        .12308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.6706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.3710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.2218        .84928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.7767        .14955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.3168        .34727E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.6001        6.8128        .16978E-03   -1.5235    
  16  Prefactor     27.986        24.149        .75733E-04   -1.4649    
  17  norm          1.9907        2.0219        .10763E-03   -1.5426    
  18  Prefactor     10.929        15.500        .12119E-03   -1.5047    
  19  Prefactor     71.232        80.078        .47565E-04   -1.4018    
  20  norm          .10000E-03    4.8625        .24227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.4827        .12100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.345        7.2831        .11894E-03   -1.5034    
  23  norm          5.0997        2.7845        .89428E-04   -1.5256    
  24  norm          2.9305        2.0082        .89742E-04   -1.5366    
  25  Prefactor     .10000E-03    29.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    4.8059        .16835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    33.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    21.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.7870        3.9605        .18023E-03   -1.5374    
  30  Prefactor     .10000E-03    13.543        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .63482        .18315        .26172E-03   -1.0653    
  32  Prefactor     1.3512        .23195        .24120E-03   -.81798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73824e-10
Minuit parameter uncertainties:
  1  3.76134e-06
  2  2.68432
  3  1.26972e-06
  4  2.55287e-07
  5  7.18256e-06
  6  7.58916e-06
  7  5.07426e-07
  8  8.07522e-05
  9  3.84984e-06
  10  7.10839e-06
  11  5.25822e-07
  12  2.34122e-07
  13  1.92092e-07
  14  6.53323e-08
  15  6.81377
  16  24.1577
  17  2.022
  18  15.5052
  19  80.1997
  20  8.70528e-06
  21  5.13778e-07
  22  7.28364
  23  2.78455
  24  2.00827
  25  2.74058e-05
  26  1.58329e-06
  27  3.79714e-05
  28  7.06335e-06
  29  3.96084
  30  0.000205667
  31  0.183323
  32  0.232129
Done.

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

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  2.799e+01  2.416e+01  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:  1.351e+00  2.321e-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:  6.348e-01  1.833e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.67
Ra Dec: 182.114 61.356
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 2.96e-08 +/- 2.56e-08
Energy Flux (Fixed Index): 1.72e-05 +/- 1.49e-05

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) = 6211.67033754
delta logL = 0.00336563140627

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6211.66738043
delta logL = 0.00632274371128

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6211.667     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      277 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.846        30.360        .78800E-04   -.14854E-03
   2  Index         2.1349        .59406        .59383E-02   -.32270E-04
   3  Normalizat    .63270        .17908        .26210E-03   -.17914E-04
   4  Prefactor     1.3523        .23183        .24109E-03   -.90066E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.8456
  Index      = 2.13491
  Normalizat = 0.632702
  Prefactor  = 1.35231
 **********
 **   18 **HESSE 
 **********

 FCN=   6211.667     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.846        28.134        .15760E-04   -1.4691    
   2  Index         2.1349        .55036        .23753E-03   -.61018    
   3  Normalizat    .63270        .17905        .10484E-04   -1.0661    
   4  Prefactor     1.3523        .23199        .96436E-05   -.81765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73417e-11
Minuit parameter uncertainties:
  1  28.1483
  2  0.552023
  3  0.179215
  4  0.23217
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/339658': 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) = 6211.66737984
delta logL = 0.00632333881822

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  2.585e+01  2.815e+01  1.000e-04  1.000e+04 ( 1.000e-14)
373        Index:  2.135e+00  5.520e-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:  1.352e+00  2.322e-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:  6.327e-01  1.792e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.69
Ra Dec: 182.114 61.356
Photon Index (Free Index): 2.13 +/- 0.55
Photon Flux (Free Index): 3.19e-08 +/- 3.20e-08
Energy Flux (Free Index): 1.63e-05 +/- 1.51e-05

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/339658/cmap_HighResolution_340934401_341193601_4FGL_J1208.4+6121_daily_bin392.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.96e-08', energy_flux2='1.63e-05', photon_flux_error='2.56e-08', dlogl='6.32e-03', energy_flux='1.72e-05', photon_flux2='3.19e-08', job_status='DONE', time_completed='2021-09-05 00:56:52.595673', photon_index_error2='0.55', photon_index2='2.13', ts='4.67', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', energy_flux_error2='1.51e-05', EG='0.63', time_epoch_completed='1630828612.6', return_code='0', job_id='339658', GAL2='1.35', EG2='0.63', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='3.20e-08', ts2='4.69', photon_index='2.07' WHERE bin_id='392' AND source_name='4FGL J1208.4+6121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 00:56:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 339658: <4FGL_J1208.4+6121_daily_bin392> in cluster <slac> Done

Job <4FGL_J1208.4+6121_daily_bin392> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 00:40:59 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 00:41:00 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:41:00 2021
Terminated at Sun Sep  5 00:56:52 2021
Results reported at Sun Sep  5 00:56:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.4+6121_daily_bin392 182.114 61.3559 340934401 341193601 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 :                                   914.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             303.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            953 sec.

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

