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


Performing analysis on: 4FGL_J1208.4+6121_daily_bin109
RA = 182.114, Dec = 61.3559
tmin = 267580801, tmax = 267840001
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='336616', job_status='RUN', time_executed='2021-09-05 00:35:59.304942', time_epoch_executed='1630827359.3' WHERE source_name='4FGL J1208.4+6121' and cadence='daily' and bin_id='109'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/336616

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/336616/ft1_4FGL_J1208.4+6121_daily_bin109.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/336616/ft2_4FGL_J1208.4+6121_daily_bin109.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/336616/ft1_4FGL_J1208.4+6121_daily_bin109.fits outfile=/scratch/kocevski/336616/ft1_filteredMKT_4FGL_J1208.4+6121_daily_bin109.fits ra=182.114 dec=61.3559 rad=12.0 tmin=267580801.0 tmax=267840001.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.38
user 1.19
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/336616/ft1_filtered_4FGL_J1208.4+6121_daily_bin109.fits evtable="EVENTS" scfile=/scratch/kocevski/336616/ft2_4FGL_J1208.4+6121_daily_bin109.fits sctable="SC_DATA" expcube=/scratch/kocevski/336616/ltcube_267580801_267840001_4FGL_J1208.4+6121_daily_bin109.fits outfile=/scratch/kocevski/336616/expmap_267580801_267840001_4FGL_J1208.4+6121_daily_bin109.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/336616/ltcube_267580801_267840001_4FGL_J1208.4+6121_daily_bin109.fits
.....................!
real 191.56
user 185.93
sys 5.07

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/336616/ft1_filtered_4FGL_J1208.4+6121_daily_bin109.fits scfile=/scratch/kocevski/336616/ft2_4FGL_J1208.4+6121_daily_bin109.fits outfile=/scratch/kocevski/336616/cmap_267580801_267840001_4FGL_J1208.4+6121_daily_bin109.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.93
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/336616/ft1_filtered_4FGL_J1208.4+6121_daily_bin109.fits scfile=/scratch/kocevski/336616/ft2_4FGL_J1208.4+6121_daily_bin109.fits outfile=/scratch/kocevski/336616/cmap_HighResolution_267580801_267840001_4FGL_J1208.4+6121_daily_bin109.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.89
user 0.35
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.0177       1.0000         .10000E-03   10000.    
     5 'Prefactor '    63.136       1.0000         .10000E-03   10000.    
     6 'norm      '    6.1808       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .24212E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .94077E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.811       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      '    11.342       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.448       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.2442       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.451       1.0000         .10000E-03   10000.    
    19 'Prefactor '    53.463       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    9.9641       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    10.147       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    28.152       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    8.5755       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3005       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .49518       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=   4277.568     FROM MIGRAD    STATUS=CONVERGED    883 CALLS     4372 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.8629        .10360E-07** at limit **
   2  norm          .10000E-03    1.1418       -.54042E-08** at limit **
   3  Prefactor     .10000E-03    52.920        .87642E-06** at limit **
   4  norm          5.0201        3.8501       -.13619E-06   -.62979E-03
   5  Prefactor     63.115        143.74       -.19978E-04    .27765E-05
   6  norm          6.1810        3.5629        .52007E-06   -.11231E-03
   7  Prefactor     .10001E-03    7.2580        .41162E-06** at limit **
   8  Prefactor     .10000E-03    24.777       -.27820E-06** at limit **
   9  Prefactor     .10000E-03    2.4512        .98704E-08** at limit **
  10  Prefactor     .14108E-01    20.440       -.29843E-06    .26700E-04
  11  Prefactor     11.811        11.836        .45481E-07    .20645E-04
  12  Prefactor     .10000E-03    1.0174       -.15320E-08** at limit **
  13  norm          .10000E-03    5.1436        .13015E-07** at limit **
  14  norm          11.342        7.7934       -.11524E-05   -.31988E-04
  15  Prefactor     16.448        13.921       -.16141E-06   -.78417E-05
  16  Prefactor     .10000E-03    13.104        .12850E-06** at limit **
  17  norm          1.2432        3.7551       -.88232E-06   -.76563E-03
  18  Prefactor     18.450        31.255       -.22345E-05   -.60764E-05
  19  Prefactor     53.463        111.81       -.13268E-05    .37612E-05
  20  norm          .10000E-03    2.2464       -.68280E-08** at limit **
  21  norm          9.9633        10.264       -.60362E-07   -.16647E-04
  22  Prefactor     .10000E-03    2.9002       -.84518E-09** at limit **
  23  norm          10.147        4.2341       -.55227E-07    .40802E-04
  24  norm          .10000E-03    1.1592       -.34255E-08** at limit **
  25  Prefactor     28.134        51.437        .14904E-04    .14453E-05
  26  Prefactor     .10000E-03    12.394       -.12759E-06** at limit **
  27  Prefactor     .10000E-03    36.370        .58009E-06** at limit **
  28  Prefactor     .10000E-03    43.808       -.32889E-05** at limit **
  29  Prefactor     .10000E-03    4.3290        .87532E-07** at limit **
  30  Prefactor     8.5759        9.4244       -.20593E-05   -.13785E-05
  31  Normalizat    1.3005        .20823        .83231E-06   -.11969E-04
  32  Prefactor     .49526        .22957       -.34830E-06    .22416E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.02007
  Prefactor  = 63.1152
  norm       = 6.18098
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0141083
  Prefactor  = 11.8112
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.3424
  Prefactor  = 16.448
  Prefactor  = 0.0001
  norm       = 1.24322
  Prefactor  = 18.4497
  Prefactor  = 53.4631
  norm       = 0.0001
  norm       = 9.96331
  Prefactor  = 0.0001
  norm       = 10.1473
  norm       = 0.0001
  Prefactor  = 28.1342
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.57588
  Normalizat = 1.3005
  Prefactor  = 0.495263
 **********
 **   18 **HESSE 
 **********

 FCN=   4277.568     FROM HESSE     STATUS=OK           663 CALLS     5035 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.8762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.1568        .68229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    52.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.0201        2.9572        .82764E-04   -1.5260    
   5  Prefactor     63.115        143.45        .50502E-04   -1.4117    
   6  norm          6.1810        3.5660        .84487E-04   -1.5211    
   7  Prefactor     .10001E-03    41.821        .25848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.4612        .99988E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .14108E-01    20.624        .94125E-01   -1.5684    
  11  Prefactor     11.811        11.838        .11656E-03   -1.5020    
  12  Prefactor     .10000E-03    1.0174        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.1448        .14487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          11.342        7.8001        .11896E-03   -1.5034    
  15  Prefactor     16.448        13.939        .98756E-04   -1.4897    
  16  Prefactor     .10000E-03    13.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.2432        3.8238        .20392E-03   -1.5485    
  18  Prefactor     18.450        31.324        .93241E-04   -1.4849    
  19  Prefactor     53.463        111.89        .54855E-04   -1.4244    
  20  norm          .10000E-03    2.2625        .95717E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.9633        10.257        .12694E-03   -1.5077    
  22  Prefactor     .10000E-03    2.9025        .10876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          10.147        4.2326        .84101E-04   -1.5071    
  24  norm          .10000E-03    1.1716        .68758E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     28.134        50.879        .75506E-04   -1.4647    
  26  Prefactor     .10000E-03    12.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    36.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    43.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    4.4028        .13268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     8.5759        9.4134        .13689E-03   -1.5122    
  31  Normalizat    1.3005        .22987        .20434E-03   -.83551    
  32  Prefactor     .49526        .25060        .36557E-03   -1.1219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.54205e-10
Minuit parameter uncertainties:
  1  2.36843e-06
  2  7.88332e-07
  3  1.09851e-06
  4  2.95729
  5  144.244
  6  3.56608
  7  0.00108078
  8  3.05723e-05
  9  1.74485e-06
  10  1.07537
  11  11.8408
  12  1.54539e-07
  13  2.54235e-06
  14  7.80079
  15  13.9417
  16  1.87016e-05
  17  3.82453
  18  31.3515
  19  112.33
  20  1.24227e-06
  21  10.2593
  22  3.58288e-07
  23  4.23277
  24  4.02853e-07
  25  50.9574
  26  1.83553e-05
  27  1.05797e-07
  28  2.68457e-06
  29  1.88258e-05
  30  9.41499
  31  0.230051
  32  0.25116
Done.

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

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  1.870e-05  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:  4.953e-01  2.512e-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.300e+00  2.301e-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.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/336616/likelihoodResults_267580801_267840001_4FGL_J1208.4+6121_daily_bin109.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) = 4277.56839927
delta logL = -0.000361082670679

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4277.56803879
delta logL = -6.04295564699e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10644E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0506       1.0000          .0000       10.000    
     3 'Normalizat'    1.3007       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49503       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=   4277.568     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      242 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10191E-03    133.74        .18142E-02** at limit **
   2  Index         1.9797        8.1098        .50000        .11260E-04
   3  Normalizat    1.3005        .14885E-01    .20434E-03    .12796E-04
   4  Prefactor     .49526        .17192E-01    .36557E-03    .63751E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101907
  Index      = 1.97971
  Normalizat = 1.3005
  Prefactor  = 0.495263
 **********
 **   18 **HESSE 
 **********

 FCN=   4277.568     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .69E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10191E-03    600.56        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9797        6.5150        .50000       -.64858    
   3  Normalizat    1.3005        .33070E-01    .81736E-05   -.83551    
   4  Prefactor     .49526        .38180E-01    .14623E-04   -1.1219    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.89205e-08
Minuit parameter uncertainties:
  1  0.0683779
  2  936.297
  3  0.0330703
  4  0.0381823
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/336616': 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) = 4277.56803797
delta logL = 2.18989953282e-07

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  1.019e-04  6.838e-02  1.000e-04  1.000e+04 ( 1.000e-14)
373        Index:  1.980e+00  9.363e+02  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:  4.953e-01  3.818e-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.300e+00  3.307e-02  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/336616/cmap_HighResolution_267580801_267840001_4FGL_J1208.4+6121_daily_bin109.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.01e-03', job_status='DONE', photon_flux_upper_limit='6.64e-08', time_completed='2021-09-05 00:49:49.733294', job_id='336616', GAL2='0.50', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1630828189.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.50', dlogl='2.19e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='109' AND source_name='4FGL J1208.4+6121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 00:49:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 336616: <4FGL_J1208.4+6121_daily_bin109> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.4+6121_daily_bin109 182.114 61.3559 267580801 267840001 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 :                                   821.40 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             301.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            851 sec.

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

