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


Performing analysis on: 4FGL_J1208.4+6121_daily_bin1528
RA = 182.114, Dec = 61.3559
tmin = 635385601, tmax = 635644801
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='351054', job_status='RUN', time_executed='2021-09-05 01:06:06.161682', time_epoch_executed='1630829166.16' WHERE source_name='4FGL J1208.4+6121' and cadence='daily' and bin_id='1528'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351054

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351054/ft1_4FGL_J1208.4+6121_daily_bin1528.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351054/ft2_4FGL_J1208.4+6121_daily_bin1528.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351054/ft1_4FGL_J1208.4+6121_daily_bin1528.fits outfile=/scratch/kocevski/351054/ft1_filteredMKT_4FGL_J1208.4+6121_daily_bin1528.fits ra=182.114 dec=61.3559 rad=12.0 tmin=635385601.0 tmax=635644801.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.57
user 2.58
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351054/ft1_filtered_4FGL_J1208.4+6121_daily_bin1528.fits" evtable="EVENTS" scfile=/scratch/kocevski/351054/ft2_4FGL_J1208.4+6121_daily_bin1528.fits sctable="SC_DATA" outfile=/scratch/kocevski/351054/ltcube_635385601_635644801_4FGL_J1208.4+6121_daily_bin1528.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/351054/ft2_4FGL_J1208.4+6121_daily_bin1528.fits
.....................!
real 12.49
user 12.15
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351054/ft1_filtered_4FGL_J1208.4+6121_daily_bin1528.fits evtable="EVENTS" scfile=/scratch/kocevski/351054/ft2_4FGL_J1208.4+6121_daily_bin1528.fits sctable="SC_DATA" expcube=/scratch/kocevski/351054/ltcube_635385601_635644801_4FGL_J1208.4+6121_daily_bin1528.fits outfile=/scratch/kocevski/351054/expmap_635385601_635644801_4FGL_J1208.4+6121_daily_bin1528.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/351054/ltcube_635385601_635644801_4FGL_J1208.4+6121_daily_bin1528.fits
.....................!
real 192.62
user 187.98
sys 4.21

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/351054/ft1_filtered_4FGL_J1208.4+6121_daily_bin1528.fits scfile=/scratch/kocevski/351054/ft2_4FGL_J1208.4+6121_daily_bin1528.fits outfile=/scratch/kocevski/351054/cmap_635385601_635644801_4FGL_J1208.4+6121_daily_bin1528.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351054/ft1_filtered_4FGL_J1208.4+6121_daily_bin1528.fits scfile=/scratch/kocevski/351054/ft2_4FGL_J1208.4+6121_daily_bin1528.fits outfile=/scratch/kocevski/351054/cmap_HighResolution_635385601_635644801_4FGL_J1208.4+6121_daily_bin1528.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.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.701       1.0000         .10000E-03   10000.    
     2 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    96.718       1.0000         .10000E-03   10000.    
     4 'norm      '    1.4223       1.0000         .10000E-03   10000.    
     5 'Prefactor '    388.38       1.0000         .10000E-03   10000.    
     6 'norm      '    .10643E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.018       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.431       1.0000         .10000E-03   10000.    
    10 'Prefactor '    36.606       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5502       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10379E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.2329       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.982       1.0000         .10000E-03   10000.    
    19 'Prefactor '    184.09       1.0000         .10000E-03   10000.    
    20 'norm      '    .10335E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .11242E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.0475       1.0000         .10000E-03   10000.    
    24 'norm      '    1.4631       1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.166       1.0000         .10000E-03   10000.    
    26 'Prefactor '    13.327       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    22.013       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .30200E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10408E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0168       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1032       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=   4704.712     FROM MIGRAD    STATUS=CONVERGED    872 CALLS     5314 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.723        56.783       -.79154E-07    .15789E-04
   2  norm          .10000E-03    2.5792       -.15089E-06** at limit **
   3  Prefactor     96.165        277.08        .25930E-05    .74709E-05
   4  norm          1.4237        2.1408        .13584E-05    .60603E-03
   5  Prefactor     389.07        447.11       -.10926E-05    .34268E-04
   6  norm          .10111E-03    12.350       -.27392E-05** at limit **
   7  Prefactor     .10000E-03    2.8909        .10450E-05** at limit **
   8  Prefactor     17.975        49.649       -.88889E-06    .35052E-04
   9  Prefactor     18.423        19.725        .18060E-06    .58901E-04
  10  Prefactor     36.614        46.262        .29386E-06    .16691E-04
  11  Prefactor     1.5495        37.953       -.21004E-05   -.30799E-04
  12  Prefactor     .10000E-03    1.9641        .70762E-07** at limit **
  13  norm          .10000E-03    8.2575       -.10069E-07** at limit **
  14  norm          6.2306        7.7947       -.33063E-06   -.71764E-04
  15  Prefactor     .10000E-03    4.7811        .24137E-06** at limit **
  16  Prefactor     .10000E-03    36.869        .71355E-06** at limit **
  17  norm          .10000E-03    1.2029        .52125E-07** at limit **
  18  Prefactor     15.978        26.935        .12161E-06   -.11212E-04
  19  Prefactor     184.08        120.28       -.11346E-05   -.28461E-04
  20  norm          .10000E-03    5.9932       -.73997E-06** at limit **
  21  norm          .10002E-03    95.664        .89390E-05** at limit **
  22  Prefactor     .10000E-03    2.0293       -.20265E-07** at limit **
  23  norm          2.0481        1.8579        .54024E-07    .22093E-04
  24  norm          1.4629        1.4514        .67309E-07    .55881E-04
  25  Prefactor     10.166        45.794        .63469E-06    .34645E-05
  26  Prefactor     13.325        11.511        .78158E-07    .63133E-05
  27  Prefactor     .10000E-03    41.785       -.98842E-07** at limit **
  28  Prefactor     22.008        32.966        .63821E-06    .17306E-04
  29  Prefactor     .10000E-03    2.4262        .40968E-06** at limit **
  30  Prefactor     .10000E-03    13.966       -.29309E-06** at limit **
  31  Normalizat    1.0168        .22229        .29830E-05   -.11995E-03
  32  Prefactor     1.1034        .25337       -.43118E-05    .71681E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.7234
  norm       = 0.0001
  Prefactor  = 96.1646
  norm       = 1.42374
  Prefactor  = 389.068
  norm       = 0.00010111
  Prefactor  = 0.0001
  Prefactor  = 17.9747
  Prefactor  = 18.4235
  Prefactor  = 36.6141
  Prefactor  = 1.54948
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.23061
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.9777
  Prefactor  = 184.077
  norm       = 0.0001
  norm       = 0.000100022
  Prefactor  = 0.0001
  norm       = 2.04811
  norm       = 1.46294
  Prefactor  = 10.1659
  Prefactor  = 13.3255
  Prefactor  = 0.0001
  Prefactor  = 22.008
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 1.01684
  Prefactor  = 1.10336
 **********
 **   18 **HESSE 
 **********

 FCN=   4704.712     FROM HESSE     STATUS=OK           675 CALLS     5989 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.723        56.798        .82279E-04   -1.4733    
   2  norm          .10000E-03    2.5831        .10746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     96.165        277.16        .20436E-03   -1.3744    
   4  norm          1.4237        2.1495        .11998E-03   -1.5469    
   5  Prefactor     389.07        510.17        .10352E-03   -1.1737    
   6  norm          .10111E-03    7.1276        .49091E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.8434        .11257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.975        49.987        .94356E-04   -1.4860    
   9  Prefactor     18.423        19.752        .93292E-04   -1.4849    
  10  Prefactor     36.614        46.231        .66240E-04   -1.4497    
  11  Prefactor     1.5495        38.383        .34211E-03   -1.5459    
  12  Prefactor     .10000E-03    3.4463        .18684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.2705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.2306        7.7679        .16079E-03   -1.5209    
  15  Prefactor     .10000E-03    4.7882        .14646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    37.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.2120        .73437E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.978        26.921        .10018E-03   -1.4908    
  19  Prefactor     184.08        120.07        .29757E-04   -1.2986    
  20  norm          .10000E-03    6.2102        .32709E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10002E-03    98.882        .43142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.0317        .95412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.0481        1.8576        .86175E-04   -1.5422    
  24  norm          1.4629        1.4717        .80247E-04   -1.5466    
  25  Prefactor     10.166        45.839        .12567E-03   -1.5070    
  26  Prefactor     13.325        11.507        .10972E-03   -1.4978    
  27  Prefactor     .10000E-03    41.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     22.008        32.966        .85372E-04   -1.4769    
  29  Prefactor     .10000E-03    14.762        .18833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    14.360        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0168        .24345        .24495E-03   -.92469    
  32  Prefactor     1.1034        .27591        .28084E-03   -.89359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03593e-09
Minuit parameter uncertainties:
  1  56.9283
  2  3.78149e-06
  3  281.028
  4  2.14958
  5  516.285
  6  0.00562662
  7  6.81548e-07
  8  50.1042
  9  19.7588
  10  46.2766
  11  15.4344
  12  4.63399e-07
  13  6.14351e-06
  14  7.76916
  15  1.40551e-05
  16  0.00011836
  17  4.14536e-07
  18  26.9414
  19  120.226
  20  1.29063e-05
  21  0.00296634
  22  2.1526e-07
  23  1.85767
  24  1.47169
  25  43.2289
  26  11.5093
  27  1.74386e-05
  28  32.9934
  29  0.000345233
  30  2.62375e-06
  31  0.243721
  32  0.276268
Done.

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

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  1.184e-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:  1.103e+00  2.763e-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.017e+00  2.437e-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: 7.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/351054/likelihoodResults_635385601_635644801_4FGL_J1208.4+6121_daily_bin1528.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) = 4704.71190667
delta logL = -0.000128479580781

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4704.71178128
delta logL = -3.09463030135e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41379E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1959       1.0000          .0000       10.000    
     3 'Normalizat'    1.0168       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1034       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=   4704.712     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      238 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.0621        .10624E-01** at limit **
   2  Index         2.1976        8.0076        .50000       -.10019E-04
   3  Normalizat    1.0168        .20602E-02    .43859E-01    .62628E-04
   4  Prefactor     1.1034        .24606E-02    .63493E-01    .65555E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.19761
  Normalizat = 1.01684
  Prefactor  = 1.10335
 **********
 **   18 **HESSE 
 **********

 FCN=   4704.712     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      271 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    72.810        .21248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1976        5.8242        .50000       -.59496    
   3  Normalizat    1.0168        .61471E-02    .24495E-03   -.92468    
   4  Prefactor     1.1034        .73379E-02    .28083E-03   -.89359    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.34205e-08
Minuit parameter uncertainties:
  1  0.000370523
  2  61.6162
  3  0.00614713
  4  0.00733788
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351054': 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) = 4704.71177791
delta logL = 2.77935214399e-07

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  3.705e-04  1.000e-04  1.000e+04 ( 1.000e-14)
373        Index:  2.198e+00  6.162e+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.103e+00  7.338e-03  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.017e+00  6.147e-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/351054/cmap_HighResolution_635385601_635644801_4FGL_J1208.4+6121_daily_bin1528.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.98e-03', job_status='DONE', photon_flux_upper_limit='7.92e-08', time_completed='2021-09-05 01:21:54.314611', job_id='351054', GAL2='1.10', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630830114.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='2.78e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1528' AND source_name='4FGL J1208.4+6121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:21:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 351054: <4FGL_J1208.4+6121_daily_bin1528> in cluster <slac> Done

Job <4FGL_J1208.4+6121_daily_bin1528> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Sep  5 01:05:38 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 01:05:39 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:05:39 2021
Terminated at Sun Sep  5 01:21:55 2021
Results reported at Sun Sep  5 01:21:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.4+6121_daily_bin1528 182.114 61.3559 635385601 635644801 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 :                                   939.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            977 sec.

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

