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


Performing analysis on: 4FGL_J1208.4+6121_daily_bin3
RA = 182.114, Dec = 61.3559
tmin = 240105601, tmax = 240364801
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='336448', job_status='RUN', time_executed='2021-09-05 00:37:53.656005', time_epoch_executed='1630827473.66' WHERE source_name='4FGL J1208.4+6121' and cadence='daily' and bin_id='3'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/336448

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/336448/ft1_4FGL_J1208.4+6121_daily_bin3.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/336448/ft2_4FGL_J1208.4+6121_daily_bin3.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/336448/ft1_4FGL_J1208.4+6121_daily_bin3.fits outfile=/scratch/kocevski/336448/ft1_filteredMKT_4FGL_J1208.4+6121_daily_bin3.fits ra=182.114 dec=61.3559 rad=12.0 tmin=240105601.0 tmax=240364801.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.45
user 1.25
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/336448/ft1_filtered_4FGL_J1208.4+6121_daily_bin3.fits" evtable="EVENTS" scfile=/scratch/kocevski/336448/ft2_4FGL_J1208.4+6121_daily_bin3.fits sctable="SC_DATA" outfile=/scratch/kocevski/336448/ltcube_240105601_240364801_4FGL_J1208.4+6121_daily_bin3.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/336448/ft2_4FGL_J1208.4+6121_daily_bin3.fits
.....................!
real 12.54
user 12.13
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/336448/ft1_filtered_4FGL_J1208.4+6121_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/336448/ft2_4FGL_J1208.4+6121_daily_bin3.fits sctable="SC_DATA" expcube=/scratch/kocevski/336448/ltcube_240105601_240364801_4FGL_J1208.4+6121_daily_bin3.fits outfile=/scratch/kocevski/336448/expmap_240105601_240364801_4FGL_J1208.4+6121_daily_bin3.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/336448/ltcube_240105601_240364801_4FGL_J1208.4+6121_daily_bin3.fits
.....................!
real 190.89
user 184.99
sys 5.22

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/336448/ft1_filtered_4FGL_J1208.4+6121_daily_bin3.fits scfile=/scratch/kocevski/336448/ft2_4FGL_J1208.4+6121_daily_bin3.fits outfile=/scratch/kocevski/336448/cmap_240105601_240364801_4FGL_J1208.4+6121_daily_bin3.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.72
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/336448/ft1_filtered_4FGL_J1208.4+6121_daily_bin3.fits scfile=/scratch/kocevski/336448/ft2_4FGL_J1208.4+6121_daily_bin3.fits outfile=/scratch/kocevski/336448/cmap_HighResolution_240105601_240364801_4FGL_J1208.4+6121_daily_bin3.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.65
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.100       1.0000         .10000E-03   10000.    
     2 'norm      '    .10376E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12225E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.0142       1.0000         .10000E-03   10000.    
     5 'Prefactor '    59.131       1.0000         .10000E-03   10000.    
     6 'norm      '    2.7262       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.979       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1582       1.0000         .10000E-03   10000.    
    13 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .15578E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.111       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.7919       1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.189       1.0000         .10000E-03   10000.    
    19 'Prefactor '    49.633       1.0000         .10000E-03   10000.    
    20 'norm      '    1.7946       1.0000         .10000E-03   10000.    
    21 'norm      '    .12517E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.967       1.0000         .10000E-03   10000.    
    23 'norm      '    .27729       1.0000         .10000E-03   10000.    
    24 'norm      '    2.7448       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    83.391       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .12000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.5630       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3285       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .54660       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=   4185.033     FROM MIGRAD    STATUS=CONVERGED    849 CALLS     4370 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.092        21.948        .51420E-07   -.74264E-04
   2  norm          .10000E-03    2.1268        .37400E-06** at limit **
   3  Prefactor     .10000E-03    133.79       -.82393E-06** at limit **
   4  norm          1.0142        1.5228       -.22810E-06   -.95566E-03
   5  Prefactor     59.339        155.41        .10407E-05    .38089E-04
   6  norm          2.7257        2.6290        .31717E-06    .61173E-03
   7  Prefactor     .10000E-03    2.1748       -.14921E-06** at limit **
   8  Prefactor     .10001E-03    32.446        .23029E-05** at limit **
   9  Prefactor     .10000E-03    7.0290        .56030E-06** at limit **
  10  Prefactor     .10000E-03    20.437        .25950E-06** at limit **
  11  Prefactor     23.984        25.854        .19021E-06   -.28801E-05
  12  Prefactor     7.1588        4.7983        .12291E-07   -.64969E-04
  13  norm          .10000E-03    6.8583       -.68705E-07** at limit **
  14  norm          .10006E-03    21.933       -.98968E-05** at limit **
  15  Prefactor     12.116        11.636       -.11375E-05   -.22217E-03
  16  Prefactor     .10000E-03    35.286        .16441E-05** at limit **
  17  norm          2.7927        3.2611        .31233E-06    .26321E-03
  18  Prefactor     32.198        26.307       -.27078E-07   -.39944E-04
  19  Prefactor     49.652        66.528        .21311E-06    .23876E-04
  20  norm          1.7951        4.0927        .14561E-05    .85301E-03
  21  norm          .10001E-03    7.0139        .23182E-05** at limit **
  22  Prefactor     13.961        9.5859       -.58122E-06   -.69319E-03
  23  norm          .28565        3.4275        .15743E-05    .33348E-04
  24  norm          2.7452        3.1965        .40278E-06    .44375E-03
  25  Prefactor     .10000E-03    23.715       -.21786E-06** at limit **
  26  Prefactor     .10000E-03    3.5464       -.86804E-07** at limit **
  27  Prefactor     83.415        92.245        .11730E-05    .48127E-04
  28  Prefactor     .10001E-03    120.24        .27754E-05** at limit **
  29  Prefactor     6.5647        6.6203        .35401E-06    .13291E-03
  30  Prefactor     .10000E-03    14.474        .54223E-06** at limit **
  31  Normalizat    1.3283        .21087       -.41946E-05   -.36663E-03
  32  Prefactor     .54672        .23978        .46686E-05   -.16207E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.0924
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.01418
  Prefactor  = 59.3395
  norm       = 2.7257
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.9845
  Prefactor  = 7.15881
  norm       = 0.0001
  norm       = 0.000100059
  Prefactor  = 12.1161
  Prefactor  = 0.000100004
  norm       = 2.79274
  Prefactor  = 32.198
  Prefactor  = 49.6515
  norm       = 1.79514
  norm       = 0.000100012
  Prefactor  = 13.9612
  norm       = 0.285653
  norm       = 2.74522
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 83.4155
  Prefactor  = 0.000100008
  Prefactor  = 6.56468
  Prefactor  = 0.0001
  Normalizat = 1.32832
  Prefactor  = 0.546722
 **********
 **   18 **HESSE 
 **********

 FCN=   4185.033     FROM HESSE     STATUS=OK           659 CALLS     5029 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.092        21.510        .11516E-03   -1.5012    
   2  norm          .10000E-03    2.1511        .18091E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    133.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.0142        1.3487        .95392E-03   -1.5507    
   5  Prefactor     59.339        155.34        .26087E-03   -1.4166    
   6  norm          2.7257        2.6422        .98793E-04   -1.5378    
   7  Prefactor     .10000E-03    2.1802        .93126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    32.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.0957        .16777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.984        25.840        .81802E-04   -1.4728    
  12  Prefactor     7.1588        4.7925        .11202E-03   -1.5173    
  13  norm          .10000E-03    6.8594        .16547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10006E-03    25.626        .33854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.116        11.225        .11511E-03   -1.5012    
  16  Prefactor     .10000E-03    35.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.7927        3.2598        .11983E-03   -1.5374    
  18  Prefactor     32.198        26.313        .70625E-04   -1.4572    
  19  Prefactor     49.652        66.425        .56922E-04   -1.4298    
  20  norm          1.7951        4.1682        .19472E-03   -1.5440    
  21  norm          .10001E-03    34.103        .31480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.961        9.5764        .10717E-03   -1.4960    
  23  norm          .28565        7.2761        .20334E-02   -1.5601    
  24  norm          2.7452        3.1943        .11996E-03   -1.5377    
  25  Prefactor     .10000E-03    23.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.5480        .11897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     83.415        92.161        .43987E-04   -1.3879    
  28  Prefactor     .10001E-03    121.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     6.5647        6.5924        .15475E-03   -1.5195    
  30  Prefactor     .10000E-03    14.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.3283        .23820        .21011E-03   -.82725    
  32  Prefactor     .54672        .26649        .36113E-03   -1.0988    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56875e-09
Minuit parameter uncertainties:
  1  21.5241
  2  3.48001e-05
  3  0.000799015
  4  1.34872
  5  156.418
  6  2.64229
  7  1.15681e-05
  8  0.000840948
  9  0.00011362
  10  0.000147298
  11  25.8524
  12  4.79272
  13  7.48601e-06
  14  0.00245403
  15  11.227
  16  0.000774605
  17  3.26003
  18  26.3226
  19  66.524
  20  4.16892
  21  0.00126056
  22  9.57744
  23  2.88324
  24  3.19449
  25  7.98471e-05
  26  1.00084e-05
  27  92.3193
  28  0.00203057
  29  6.59316
  30  0.000116119
  31  0.238394
  32  0.267103
Done.

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

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  7.746e-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.467e-01  2.671e-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.328e+00  2.384e-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: 9.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/336448/likelihoodResults_240105601_240364801_4FGL_J1208.4+6121_daily_bin3.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) = 4185.03282427
delta logL = -0.000133716872369

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4184.83480821
delta logL = 0.19788234409

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25611       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9280       1.0000          .0000       10.000    
     3 'Normalizat'    1.2856       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57388       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=   4184.835     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      289 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25324        7.1405        .10231E-01    .10177E-02
   2  Index         3.9319        2.4304        .92173E-01    .66494E-04
   3  Normalizat    1.2855        .35002E-01    .48143E-01   -.90485E-04
   4  Prefactor     .57388        .40466E-01    .79678E-01   -.13888E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.253236
  Index      = 3.93187
  Normalizat = 1.28547
  Prefactor  = 0.573877
 **********
 **   18 **HESSE 
 **********

 FCN=   4184.835     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      320 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25324        32.722        .50978E-04   -1.5607    
   2  Index         3.9319        6.9123        .49669E-02   -.21529    
   3  Normalizat    1.2855        .19049        .21283E-03   -.84001    
   4  Prefactor     .57388        .21359        .35288E-03   -1.0870    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.11985e-10
Minuit parameter uncertainties:
  1  5.75932
  2  7.63494
  3  0.190589
  4  0.213896
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/336448': 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) = 4184.83480638
delta logL = 0.197884174072

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  2.532e-01  5.759e+00  1.000e-04  1.000e+04 ( 1.000e-14)
373        Index:  3.932e+00  7.635e+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.739e-01  2.139e-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.285e+00  1.906e-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/336448/cmap_HighResolution_240105601_240364801_4FGL_J1208.4+6121_daily_bin3.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.88e-03', job_status='DONE', photon_flux_upper_limit='9.11e-08', time_completed='2021-09-05 00:51:30.338294', job_id='336448', GAL2='0.57', fit_tolerance='1e-08', EG2='1.29', EG='1.33', time_epoch_completed='1630828290.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.55', dlogl='1.98e-01', ts2='0.42', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='3' AND source_name='4FGL J1208.4+6121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 00:51:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 336448: <4FGL_J1208.4+6121_daily_bin3> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.4+6121_daily_bin3 182.114 61.3559 240105601 240364801 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 :                                   812.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             296.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            965 sec.

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

