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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin54
RA = 193.637, Dec = 22.1808
tmin = 253324801, tmax = 253584001
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='985038', job_status='RUN', time_executed='2021-09-06 08:58:10.416087', time_epoch_executed='1630943890.42' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='54'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/985038

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/985038/ft1_4FGL_J1254.5+2210_daily_bin54.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/985038/ft2_4FGL_J1254.5+2210_daily_bin54.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/985038/ft1_4FGL_J1254.5+2210_daily_bin54.fits outfile=/scratch/kocevski/985038/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin54.fits ra=193.637 dec=22.1808 rad=12.0 tmin=253324801.0 tmax=253584001.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.52
user 1.23
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/985038/ft2_4FGL_J1254.5+2210_daily_bin54.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/985038/ft2_4FGL_J1254.5+2210_daily_bin54.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/985038/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin54.fits evtable="EVENTS" outfile="/scratch/kocevski/985038/ft1_filtered_4FGL_J1254.5+2210_daily_bin54.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/985038/ft1_filtered_4FGL_J1254.5+2210_daily_bin54.fits" evtable="EVENTS" scfile=/scratch/kocevski/985038/ft2_4FGL_J1254.5+2210_daily_bin54.fits sctable="SC_DATA" outfile=/scratch/kocevski/985038/ltcube_253324801_253584001_4FGL_J1254.5+2210_daily_bin54.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/985038/ft2_4FGL_J1254.5+2210_daily_bin54.fits
.....................!
real 13.08
user 12.68
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/985038/ft1_filtered_4FGL_J1254.5+2210_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/985038/ft2_4FGL_J1254.5+2210_daily_bin54.fits sctable="SC_DATA" expcube=/scratch/kocevski/985038/ltcube_253324801_253584001_4FGL_J1254.5+2210_daily_bin54.fits outfile=/scratch/kocevski/985038/expmap_253324801_253584001_4FGL_J1254.5+2210_daily_bin54.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/985038/ltcube_253324801_253584001_4FGL_J1254.5+2210_daily_bin54.fits
.....................!
real 191.28
user 185.32
sys 5.46

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 178 point sources and 0 extended sources

Setting source of interest to:
4FGL J1254.5+2210 @ 193.637 22.1808

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/985038/ft1_filtered_4FGL_J1254.5+2210_daily_bin54.fits scfile=/scratch/kocevski/985038/ft2_4FGL_J1254.5+2210_daily_bin54.fits outfile=/scratch/kocevski/985038/cmap_253324801_253584001_4FGL_J1254.5+2210_daily_bin54.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=193.637 yref=22.1808 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.64
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/985038/ft1_filtered_4FGL_J1254.5+2210_daily_bin54.fits scfile=/scratch/kocevski/985038/ft2_4FGL_J1254.5+2210_daily_bin54.fits outfile=/scratch/kocevski/985038/cmap_HighResolution_253324801_253584001_4FGL_J1254.5+2210_daily_bin54.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=193.637 yref=22.1808 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.60
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/985038/ft1_filtered_4FGL_J1254.5+2210_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/985038/ft2_4FGL_J1254.5+2210_daily_bin54.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/985038/Model_4FGL_J1254.5+2210_daily_bin54.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/985038/ft1_filtered_4FGL_J1254.5+2210_daily_bin54.fits.....................!
real 49.70
user 47.10
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/985038/ft1_filtered_4FGL_J1254.5+2210_daily_bin54.fits', '/scratch/kocevski/985038/ft2_4FGL_J1254.5+2210_daily_bin54.fits', expMap='/scratch/kocevski/985038/expmap_253324801_253584001_4FGL_J1254.5+2210_daily_bin54.fits', expCube='/scratch/kocevski/985038/ltcube_253324801_253584001_4FGL_J1254.5+2210_daily_bin54.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/985038/Model_4FGL_J1254.5+2210_daily_bin54.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1254.5+2210'

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.787e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/985038/ft1_filtered_4FGL_J1254.5+2210_daily_bin54.fits
Spacecraft file(s): /scratch/kocevski/985038/ft2_4FGL_J1254.5+2210_daily_bin54.fits
Exposure map: /scratch/kocevski/985038/expmap_253324801_253584001_4FGL_J1254.5+2210_daily_bin54.fits
Exposure cube: /scratch/kocevski/985038/ltcube_253324801_253584001_4FGL_J1254.5+2210_daily_bin54.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/985038/Model_4FGL_J1254.5+2210_daily_bin54.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) = 5257.61031152

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3156       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8473       1.0000         .10000E-03   10000.    
     3 'norm      '    1.4679       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3068       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.7402       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12232E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.6819       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.534       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.3434       1.0000         .10000E-03   10000.    
    20 'norm      '    9.8506       1.0000         .10000E-03   10000.    
    21 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10439E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10777E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    15.229       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.7046       1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.206       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0556       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .88526       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5257.431     FROM MIGRAD    STATUS=CONVERGED    729 CALLS     3158 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3154        2.3361        .99002E-08   -.13029E-03
   2  Prefactor     2.8479        2.8811       -.15740E-07   -.36911E-03
   3  norm          1.4682        3.2720       -.31925E-06   -.61766E-03
   4  Prefactor     3.3064        2.8759        .37634E-07   -.11932E-03
   5  Prefactor     7.7413        3.0623        .31985E-07    .46721E-04
   6  Prefactor     .10000E-03    2.4373        .11949E-07** at limit **
   7  norm          .10000E-03    .79750E-01    .71282E-08** at limit **
   8  norm          .10000E-03    1.5155        .49092E-08** at limit **
   9  Prefactor     .10000E-03    15.519        .41833E-05** at limit **
  10  Prefactor     .10000E-03    9.8390       -.16122E-05** at limit **
  11  Prefactor     8.6279        25.672       -.88138E-05   -.89839E-04
  12  Prefactor     .10000E-03    25.833        .56336E-05** at limit **
  13  Prefactor     .10000E-03    17.176        .24095E-07** at limit **
  14  Prefactor     .10000E-03    2.4628       -.84668E-08** at limit **
  15  Prefactor     .10000E-03    4.6845       -.13910E-07** at limit **
  16  norm          .10000E-03    1.1686        .27139E-08** at limit **
  17  Prefactor     10.524        13.725        .22800E-05   -.44078E-04
  18  Prefactor     .10000E-03    8.8889        .17441E-05** at limit **
  19  norm          3.3425        3.7868        .68875E-07   -.14290E-03
  20  norm          9.8505        4.6968       -.27768E-06   -.36601E-03
  21  norm          .10000E-03    8.5144        .18098E-05** at limit **
  22  norm          .10000E-03    23.299       -.81942E-05** at limit **
  23  norm          .10000E-03    7.9798       -.17570E-05** at limit **
  24  Prefactor     .10000E-03    11.895       -.14051E-05** at limit **
  25  norm          15.238        9.9250        .19068E-06    .10780E-03
  26  Prefactor     2.7042        13.870       -.33884E-05   -.16476E-03
  27  Prefactor     10.188        16.926        .84595E-05   -.89409E-05
  28  Normalizat    1.0556        .18305       -.19812E-06    .51818E-04
  29  Prefactor     .88527        .17978        .11816E-06    .83543E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.31543
  Prefactor  = 2.84791
  norm       = 1.4682
  Prefactor  = 3.30644
  Prefactor  = 7.74131
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 8.6279
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.524
  Prefactor  = 0.0001
  norm       = 3.34253
  norm       = 9.85051
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 15.2382
  Prefactor  = 2.70418
  Prefactor  = 10.1876
  Normalizat = 1.05558
  Prefactor  = 0.885266
 **********
 **   18 **HESSE 
 **********

 FCN=   5257.431     FROM HESSE     STATUS=OK           553 CALLS     3711 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3154        2.3235        .10479E-03   -1.5404    
   2  Prefactor     2.8479        2.8642        .11578E-03   -1.5370    
   3  norm          1.4682        3.2412        .16761E-03   -1.5466    
   4  Prefactor     3.3064        2.8672        .98323E-04   -1.5344    
   5  Prefactor     7.7413        3.0599        .74689E-04   -1.5151    
   6  Prefactor     .10000E-03    2.4533        .11053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .24963        .39691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.5255        .87154E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.181        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.9214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.6279        25.873        .13604E-03   -1.5120    
  12  Prefactor     .10000E-03    25.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.4678        .11111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.7022        .15322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.1701        .76543E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.524        13.680        .12345E-03   -1.5059    
  18  Prefactor     .10000E-03    8.8889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.3425        3.7813        .14400E-03   -1.5342    
  20  norm          9.8505        4.6767        .10364E-03   -1.5080    
  21  norm          .10000E-03    8.6425        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    23.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    8.0807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    11.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          15.238        9.9208        .10263E-03   -1.4927    
  26  Prefactor     2.7042        14.108        .24769E-03   -1.5379    
  27  Prefactor     10.188        16.752        .12542E-03   -1.5069    
  28  Normalizat    1.0556        .20859        .23092E-03   -.91191    
  29  Prefactor     .88527        .20449        .25726E-03   -.96658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.02928e-10
Minuit parameter uncertainties:
  1  2.32358
  2  2.86438
  3  3.24162
  4  2.86727
  5  3.05999
  6  3.89748e-07
  7  3.84836e-07
  8  2.95148e-07
  9  0.000318048
  10  7.11929e-06
  11  25.9061
  12  1.58414e-06
  13  3.96892e-07
  14  9.83046e-08
  15  7.11388e-06
  16  4.31526e-07
  17  13.684
  18  2.89687e-06
  19  3.78154
  20  4.67684
  21  2.71619e-05
  22  1.28083e-05
  23  5.07639e-06
  24  1.37239e-06
  25  9.92187
  26  12.3575
  27  16.7595
  28  0.208748
  29  0.204668
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  9.830e-08  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  8.853e-01  2.047e-01  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  1.056e+00  2.087e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 193.637 22.181
Photon Flux Upper Limit: 4.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/985038/likelihoodResults_253324801_253584001_4FGL_J1254.5+2210_daily_bin54.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) = 5257.43287274
delta logL = -0.0019147349949

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5257.43095799
delta logL = 1.36315065902e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0827       1.0000          .0000       10.000    
     3 'Normalizat'    1.0556       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88528       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5257.431     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      198 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    70.602        .90712E-02** at limit **
   2  Index         2.0763        7.2101        .50000        .20959E-04
   3  Normalizat    1.0556        .24598E-01    .40198E-01    .69318E-05
   4  Prefactor     .88527        .25449E-01    .44817E-01    .11248E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.07633
  Normalizat = 1.05558
  Prefactor  = 0.885267
 **********
 **   18 **HESSE 
 **********

 FCN=   5257.431     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      231 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    286.90        .11130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0763        8.7124        .50000       -.62455    
   3  Normalizat    1.0556        .57040E-01    .23092E-03   -.91191    
   4  Prefactor     .88527        .58998E-01    .25726E-03   -.96658    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.9068e-08
Minuit parameter uncertainties:
  1  2.62788e-05
  2  43.8934
  3  0.0570436
  4  0.0590021
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/985038': 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) = 5257.43095794
delta logL = 6.6891516326e-08

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.628e-05  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.076e+00  4.389e+01  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  8.853e-01  5.900e-02  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  1.056e+00  5.704e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.637 22.181

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/985038/cmap_HighResolution_253324801_253584001_4FGL_J1254.5+2210_daily_bin54.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.67e-03', job_status='DONE', photon_flux_upper_limit='4.85e-08', time_completed='2021-09-06 09:09:35.957782', job_id='985038', GAL2='0.89', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630944575.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='6.69e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='54' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:09:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 985038: <4FGL_J1254.5+2210_daily_bin54> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin54> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 08:55:32 2021
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:55:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 08:55:33 2021
Terminated at Mon Sep  6 09:09:36 2021
Results reported at Mon Sep  6 09:09:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin54 193.637 22.1808 253324801 253584001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1254.5+2210 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   683.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            844 sec.

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

