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


Performing analysis on: 4FGL_J1208.4+6121_daily_bin1524
RA = 182.114, Dec = 61.3559
tmin = 634348801, tmax = 634608001
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='351044', job_status='RUN', time_executed='2021-09-05 01:08:56.643310', time_epoch_executed='1630829336.64' WHERE source_name='4FGL J1208.4+6121' and cadence='daily' and bin_id='1524'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351044

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351044/ft1_4FGL_J1208.4+6121_daily_bin1524.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351044/ft2_4FGL_J1208.4+6121_daily_bin1524.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351044/ft1_4FGL_J1208.4+6121_daily_bin1524.fits outfile=/scratch/kocevski/351044/ft1_filteredMKT_4FGL_J1208.4+6121_daily_bin1524.fits ra=182.114 dec=61.3559 rad=12.0 tmin=634348801.0 tmax=634608001.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.92
user 3.61
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351044/ft1_filtered_4FGL_J1208.4+6121_daily_bin1524.fits" evtable="EVENTS" scfile=/scratch/kocevski/351044/ft2_4FGL_J1208.4+6121_daily_bin1524.fits sctable="SC_DATA" outfile=/scratch/kocevski/351044/ltcube_634348801_634608001_4FGL_J1208.4+6121_daily_bin1524.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/351044/ft2_4FGL_J1208.4+6121_daily_bin1524.fits
.....................!
real 11.99
user 11.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351044/ft1_filtered_4FGL_J1208.4+6121_daily_bin1524.fits evtable="EVENTS" scfile=/scratch/kocevski/351044/ft2_4FGL_J1208.4+6121_daily_bin1524.fits sctable="SC_DATA" expcube=/scratch/kocevski/351044/ltcube_634348801_634608001_4FGL_J1208.4+6121_daily_bin1524.fits outfile=/scratch/kocevski/351044/expmap_634348801_634608001_4FGL_J1208.4+6121_daily_bin1524.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/351044/ltcube_634348801_634608001_4FGL_J1208.4+6121_daily_bin1524.fits
.....................!
real 190.37
user 185.48
sys 4.38

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/351044/ft1_filtered_4FGL_J1208.4+6121_daily_bin1524.fits scfile=/scratch/kocevski/351044/ft2_4FGL_J1208.4+6121_daily_bin1524.fits outfile=/scratch/kocevski/351044/cmap_634348801_634608001_4FGL_J1208.4+6121_daily_bin1524.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351044/ft1_filtered_4FGL_J1208.4+6121_daily_bin1524.fits scfile=/scratch/kocevski/351044/ft2_4FGL_J1208.4+6121_daily_bin1524.fits outfile=/scratch/kocevski/351044/cmap_HighResolution_634348801_634608001_4FGL_J1208.4+6121_daily_bin1524.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.8735       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .83025       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.456       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .13454E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.527       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.4740       1.0000         .10000E-03   10000.    
    21 'norm      '    72.602       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.9014       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .16533E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    19.770       1.0000         .10000E-03   10000.    
    27 'Prefactor '    22.174       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0472       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .92761       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=   2725.353     FROM MIGRAD    STATUS=CONVERGED    830 CALLS     4290 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.470       -.55898E-05** at limit **
   2  norm          2.8732        3.0260       -.23036E-07    .98603E-04
   3  Prefactor     .10000E-03    92.060        .27116E-04** at limit **
   4  norm          .10000E-03    .75703       -.70268E-08** at limit **
   5  Prefactor     .10000E-03    91.054        .29284E-04** at limit **
   6  norm          .83492        2.9267       -.66801E-06   -.67095E-03
   7  Prefactor     .10000E-03    1.7996       -.77028E-08** at limit **
   8  Prefactor     .10000E-03    17.710        .14098E-05** at limit **
   9  Prefactor     31.450        16.844       -.11373E-06    .65413E-04
  10  Prefactor     .10000E-03    17.505        .53331E-07** at limit **
  11  Prefactor     .10000E-03    13.466        .23078E-05** at limit **
  12  Prefactor     .10000E-03    1.3863        .14166E-07** at limit **
  13  norm          .10000E-03    8.7453        .49752E-05** at limit **
  14  norm          .10000E-03    5.2749        .14251E-08** at limit **
  15  Prefactor     .10000E-03    10.050        .53573E-05** at limit **
  16  Prefactor     .10000E-03    30.747       -.13456E-04** at limit **
  17  norm          .10000E-03    8.6431       -.34447E-05** at limit **
  18  Prefactor     28.516        42.050       -.93887E-05    .25138E-04
  19  Prefactor     .10000E-03    51.635       -.31912E-05** at limit **
  20  norm          2.4737        6.5410       -.16230E-05   -.32708E-03
  21  norm          72.606        27.452        .36886E-06    .59404E-04
  22  Prefactor     6.9022        9.3460       -.80155E-06   -.53889E-03
  23  norm          .10000E-03    1.7502        .13447E-07** at limit **
  24  norm          .10000E-03    3.4531       -.20506E-06** at limit **
  25  Prefactor     .10000E-03    119.35       -.61235E-04** at limit **
  26  Prefactor     19.769        20.519       -.31073E-06    .29173E-04
  27  Prefactor     22.161        34.602       -.86249E-05    .15997E-04
  28  Prefactor     .10000E-03    26.029        .10997E-04** at limit **
  29  Prefactor     .10000E-03    2.6578        .27003E-07** at limit **
  30  Prefactor     .10000E-03    9.1488       -.57771E-05** at limit **
  31  Normalizat    1.0474        .25136        .23317E-05    .19420E-03
  32  Prefactor     .92745        .29458        .59441E-06    .16725E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.87321
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.834919
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.4499
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 28.516
  Prefactor  = 0.0001
  norm       = 2.47366
  norm       = 72.6064
  Prefactor  = 6.90216
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.7689
  Prefactor  = 22.1606
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04737
  Prefactor  = 0.927447
 **********
 **   18 **HESSE 
 **********

 FCN=   2725.353     FROM HESSE     STATUS=OK           643 CALLS     4933 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.8732        3.0294        .90867E-04   -1.5369    
   3  Prefactor     .10000E-03    91.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .75866        .44359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    90.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .83492        2.6392        .16312E-02   -1.5525    
   7  Prefactor     .10000E-03    1.8019        .68396E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     31.450        16.891        .71441E-04   -1.4586    
  10  Prefactor     .10000E-03    17.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.3870        .60032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.7419        .15077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.2942        .11708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.094        .16163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    30.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    9.0033        .29924E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     28.516        42.143        .75011E-04   -1.4639    
  19  Prefactor     .10000E-03    51.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.4737        6.5411        .20420E-03   -1.5393    
  21  norm          72.606        27.456        .47117E-04   -1.4002    
  22  Prefactor     6.9022        9.3671        .76359E-03   -1.5182    
  23  norm          .10000E-03    1.7523        .67439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.1596        .18839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    118.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     19.769        20.545        .90081E-04   -1.4818    
  27  Prefactor     22.161        34.598        .85061E-04   -1.4766    
  28  Prefactor     .10000E-03    26.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    2.7089        .82992E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    9.2869        .15401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0474        .29556        .22170E-03   -.91460    
  32  Prefactor     .92745        .34526        .28115E-03   -.95189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10297e-09
Minuit parameter uncertainties:
  1  4.2366e-06
  2  3.02961
  3  8.93511e-06
  4  6.00084e-07
  5  3.78887e-07
  6  2.63961
  7  1.0054e-06
  8  1.15921e-07
  9  16.8936
  10  2.42637e-06
  11  2.646e-07
  12  2.42905e-08
  13  9.9855e-07
  14  2.0964e-06
  15  9.69993e-06
  16  3.23679e-05
  17  5.9197e-06
  18  42.1866
  19  2.22507e-05
  20  6.54299
  21  27.4604
  22  9.36905
  23  3.24888e-07
  24  3.47489e-05
  25  9.46752e-05
  26  20.5523
  27  34.6291
  28  4.48748e-06
  29  5.25876e-06
  30  2.03547e-05
  31  0.296029
  32  0.346083
Done.

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

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  3.237e-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:  9.274e-01  3.461e-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.047e+00  2.960e-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: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/351044/likelihoodResults_634348801_634608001_4FGL_J1208.4+6121_daily_bin1524.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) = 2725.35328876
delta logL = -0.000154607233071

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2725.35313452
delta logL = -3.62226273865e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11995E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1485       1.0000          .0000       10.000    
     3 'Normalizat'    1.0474       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92745       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=   2725.353     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      227 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    270.88        .90712E-02** at limit **
   2  Index         2.1430        7.6198        .50000        .14850E-05
   3  Normalizat    1.0474        .18095E-01    .40736E-01   -.33238E-04
   4  Prefactor     .92745        .21830E-01    .45354E-01    .29259E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.143
  Normalizat = 1.04736
  Prefactor  = 0.927448
 **********
 **   18 **HESSE 
 **********

 FCN=   2725.353     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      260 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7455.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1430        5.5291        .50000       -.60821    
   3  Normalizat    1.0474        .13509        .22170E-03   -.91460    
   4  Prefactor     .92745        .16286        .28115E-03   -.95188    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.84428e-09
Minuit parameter uncertainties:
  1  0.00548632
  2  58.2687
  3  0.135137
  4  0.162944
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351044': 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) = 2725.35313419
delta logL = -3.00906322082e-08

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  5.486e-03  1.000e-04  1.000e+04 ( 1.000e-14)
373        Index:  2.143e+00  5.827e+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:  9.274e-01  1.629e-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.047e+00  1.351e-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/351044/cmap_HighResolution_634348801_634608001_4FGL_J1208.4+6121_daily_bin1524.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.79e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-05 01:20:43.917310', job_id='351044', GAL2='0.93', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630830043.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='-3.01e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1524' AND source_name='4FGL J1208.4+6121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:20:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 351044: <4FGL_J1208.4+6121_daily_bin1524> in cluster <slac> Done

Job <4FGL_J1208.4+6121_daily_bin1524> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Sep  5 01:05:37 2021
Job was executed on host(s) <bullet0241>, 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:20:44 2021
Results reported at Sun Sep  5 01:20:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.4+6121_daily_bin1524 182.114 61.3559 634348801 634608001 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 :                                   644.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            907 sec.

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

