/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 203 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 = 7393
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1208.4+6121_daily_bin75
RA = 182.114, Dec = 61.3559
tmin = 258768001, tmax = 259027201
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='336562', job_status='RUN', time_executed='2021-09-05 00:39:10.353978', time_epoch_executed='1630827550.35' WHERE source_name='4FGL J1208.4+6121' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/336562

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/336562/ft1_4FGL_J1208.4+6121_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/336562/ft2_4FGL_J1208.4+6121_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/336562/ft1_4FGL_J1208.4+6121_daily_bin75.fits outfile=/scratch/kocevski/336562/ft1_filteredMKT_4FGL_J1208.4+6121_daily_bin75.fits ra=182.114 dec=61.3559 rad=12.0 tmin=258768001.0 tmax=259027201.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 1.88
user 0.95
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/336562/ft2_4FGL_J1208.4+6121_daily_bin75.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/336562/ft1_filteredMKT_4FGL_J1208.4+6121_daily_bin75.fits evtable="EVENTS" outfile="/scratch/kocevski/336562/ft1_filtered_4FGL_J1208.4+6121_daily_bin75.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 1.27
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/336562/ft1_filtered_4FGL_J1208.4+6121_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/336562/ft2_4FGL_J1208.4+6121_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/336562/ltcube_258768001_259027201_4FGL_J1208.4+6121_daily_bin75.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/336562/ft2_4FGL_J1208.4+6121_daily_bin75.fits
.....................!
real 9.40
user 8.78
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/336562/ft1_filtered_4FGL_J1208.4+6121_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/336562/ft2_4FGL_J1208.4+6121_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/336562/ltcube_258768001_259027201_4FGL_J1208.4+6121_daily_bin75.fits outfile=/scratch/kocevski/336562/expmap_258768001_259027201_4FGL_J1208.4+6121_daily_bin75.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/336562/ltcube_258768001_259027201_4FGL_J1208.4+6121_daily_bin75.fits
.....................!
real 192.59
user 187.03
sys 5.08

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/336562/ft1_filtered_4FGL_J1208.4+6121_daily_bin75.fits scfile=/scratch/kocevski/336562/ft2_4FGL_J1208.4+6121_daily_bin75.fits outfile=/scratch/kocevski/336562/cmap_258768001_259027201_4FGL_J1208.4+6121_daily_bin75.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/336562/ft1_filtered_4FGL_J1208.4+6121_daily_bin75.fits scfile=/scratch/kocevski/336562/ft2_4FGL_J1208.4+6121_daily_bin75.fits outfile=/scratch/kocevski/336562/cmap_HighResolution_258768001_259027201_4FGL_J1208.4+6121_daily_bin75.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.832       1.0000         .10000E-03   10000.    
     2 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    10.255       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1162       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.516       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.818       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.3838       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.9866       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.6491       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10930E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.2962       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    17.384       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.6734       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    10.125       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2584       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .55406       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=   3233.785     FROM MIGRAD    STATUS=CONVERGED    835 CALLS     4362 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.832        44.705        .14041E-06    .45493E-05
   2  norm          .10000E-03    4.0172        .26526E-07** at limit **
   3  Prefactor     .10000E-03    113.86        .34841E-06** at limit **
   4  norm          .10000E-03    1.6226       -.43273E-07** at limit **
   5  Prefactor     .10000E-03    84.136       -.10875E-05** at limit **
   6  norm          10.255        4.6589       -.93838E-07    .28327E-03
   7  Prefactor     .10000E-03    2.4347       -.66797E-07** at limit **
   8  Prefactor     .10000E-03    22.842        .34753E-06** at limit **
   9  Prefactor     3.1170        10.315        .45745E-05   -.73517E-05
  10  Prefactor     15.533        52.777       -.34374E-05    .35597E-04
  11  Prefactor     .10000E-03    21.498        .19376E-06** at limit **
  12  Prefactor     10.818        6.5604        .46280E-07   -.23735E-04
  13  norm          .10000E-03    7.6404        .10027E-06** at limit **
  14  norm          .10000E-03    4.6169        .31712E-06** at limit **
  15  Prefactor     2.3857        12.756       -.11907E-05   -.18666E-03
  16  Prefactor     .10000E-03    118.18        .97346E-06** at limit **
  17  norm          3.9868        2.9960        .11905E-07    .97483E-05
  18  Prefactor     .10000E-03    100.78       -.52220E-06** at limit **
  19  Prefactor     .10000E-03    29.582        .29130E-06** at limit **
  20  norm          .10000E-03    8.5449       -.22707E-06** at limit **
  21  norm          3.6491        8.1446        .20553E-05   -.78600E-04
  22  Prefactor     .10000E-03    21.654       -.25771E-06** at limit **
  23  norm          6.2968        3.9265        .32481E-07    .47827E-04
  24  norm          .10000E-03    .93630       -.29458E-07** at limit **
  25  Prefactor     17.380        40.259        .38667E-06   -.11923E-04
  26  Prefactor     4.6736        14.694        .29782E-06    .24779E-05
  27  Prefactor     .10000E-03    68.647       -.26792E-09** at limit **
  28  Prefactor     .10000E-03    24.648       -.50874E-06** at limit **
  29  Prefactor     10.126        7.2056        .28100E-06   -.76838E-04
  30  Prefactor     .10000E-03    17.906       -.11958E-05** at limit **
  31  Normalizat    1.2582        .24231       -.13575E-05   -.20101E-04
  32  Prefactor     .55422        .26618        .14345E-05    .16532E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.8317
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 10.2546
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.11696
  Prefactor  = 15.5327
  Prefactor  = 0.0001
  Prefactor  = 10.8177
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.38568
  Prefactor  = 0.0001
  norm       = 3.98678
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.64913
  Prefactor  = 0.0001
  norm       = 6.29676
  norm       = 0.0001
  Prefactor  = 17.3804
  Prefactor  = 4.6736
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1256
  Prefactor  = 0.000100001
  Normalizat = 1.25823
  Prefactor  = 0.554216
 **********
 **   18 **HESSE 
 **********

 FCN=   3233.785     FROM HESSE     STATUS=OK           649 CALLS     5011 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.832        44.511        .51029E-04   -1.4134    
   2  norm          .10000E-03    4.0398        .11064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    113.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.6526        .70730E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    84.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.255        4.6598        .80402E-04   -1.5067    
   7  Prefactor     .10000E-03    2.4396        .86664E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.1170        10.316        .11485E-02   -1.5355    
  10  Prefactor     15.533        53.086        .10168E-03   -1.4920    
  11  Prefactor     .10000E-03    21.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.818        6.5603        .10986E-03   -1.5050    
  13  norm          .10000E-03    7.6432        .15354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.6569        .11940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.3857        12.810        .26530E-03   -1.5399    
  16  Prefactor     .10000E-03    119.20        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.9868        3.0006        .81705E-04   -1.5309    
  18  Prefactor     .10000E-03    104.97        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    29.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    8.8320        .32457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.6491        8.1414        .10573E-02   -1.5326    
  22  Prefactor     .10000E-03    22.511        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.2968        3.9097        .82481E-04   -1.5206    
  24  norm          .10000E-03    .94286        .53738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     17.380        40.259        .96059E-04   -1.4874    
  26  Prefactor     4.6736        14.655        .18616E-03   -1.5276    
  27  Prefactor     .10000E-03    68.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    24.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     10.126        7.2208        .12196E-03   -1.5071    
  30  Prefactor     .10000E-03    18.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2582        .27355        .20476E-03   -.84822    
  32  Prefactor     .55422        .29807        .34599E-03   -1.0955    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.72463e-10
Minuit parameter uncertainties:
  1  44.5354
  2  1.54205e-06
  3  0.000256098
  4  3.213e-06
  5  0.000686811
  6  4.65998
  7  1.49995e-06
  8  0.000159562
  9  10.322
  10  53.2477
  11  9.70694e-05
  12  6.5607
  13  1.4226e-05
  14  3.66692e-05
  15  11.0597
  16  0.000446419
  17  3.00075
  18  0.000464366
  19  0.000101313
  20  4.18649e-05
  21  8.14388
  22  5.15135e-05
  23  3.90983
  24  2.49683e-07
  25  40.3224
  26  14.6661
  27  0.000350685
  28  0.000122429
  29  7.22145
  30  0.000271303
  31  0.273867
  32  0.298919
Done.

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

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  4.464e-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:  5.542e-01  2.989e-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.258e+00  2.739e-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: 8.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/336562/likelihoodResults_258768001_259027201_4FGL_J1208.4+6121_daily_bin75.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) = 3233.7851577
delta logL = -3.99000377911e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3233.78515769
delta logL = -3.9889666823e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96356E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0729       1.0000          .0000       10.000    
     3 'Normalizat'    1.2582       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55421       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=   3233.745     FROM MIGRAD    STATUS=CONVERGED    143 CALLS      291 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.139        1417.2        .90713E-02    .10082E-03
   2  Index         1.3750        5.4931        .42939       -.80209E-05
   3  Normalizat    1.2614        .37638E-01    .33598E-01   -.83787E-04
   4  Prefactor     .54668        .42045E-01    .78595E-01    .21258E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1389
  Index      = 1.375
  Normalizat = 1.26144
  Prefactor  = 0.546675
 **********
 **   18 **HESSE 
 **********

 FCN=   3233.745     FROM HESSE     STATUS=OK            31 CALLS      322 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.139        39.380        .36285E-03   -1.5071    
   2  Index         1.3750        1.3274        .10268E-01   -.81103    
   3  Normalizat    1.2614        .25324        .20451E-03   -.84725    
   4  Prefactor     .54668        .29557        .34807E-03   -1.0988    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03143e-10
Minuit parameter uncertainties:
  1  39.4813
  2  1.36269
  3  0.253484
  4  0.296409
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/336562': 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) = 3233.74532544
delta logL = 0.0397923547644

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  1.014e+01  3.948e+01  1.000e-04  1.000e+04 ( 1.000e-14)
373        Index:  1.375e+00  1.363e+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:  5.467e-01  2.964e-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.261e+00  2.535e-01  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/336562/cmap_HighResolution_258768001_259027201_4FGL_J1208.4+6121_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.55e-03', job_status='DONE', photon_flux_upper_limit='8.68e-08', time_completed='2021-09-05 00:50:44.575703', job_id='336562', GAL2='0.55', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1630828244.58', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.55', dlogl='3.98e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='75' AND source_name='4FGL J1208.4+6121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 00:50:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 336562: <4FGL_J1208.4+6121_daily_bin75> in cluster <slac> Done

Job <4FGL_J1208.4+6121_daily_bin75> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 00:35:35 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 00:35:36 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:35:36 2021
Terminated at Sun Sep  5 00:50:45 2021
Results reported at Sun Sep  5 00:50:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.4+6121_daily_bin75 182.114 61.3559 258768001 259027201 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 :                                   692.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             275.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            910 sec.

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

