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


Performing analysis on: 4FGL_J2254.8-2725_daily_bin98
RA = 343.718, Dec = -27.4171
tmin = 264729601, tmax = 264988801
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='581685', job_status='RUN', time_executed='2021-09-29 02:13:34.769457', time_epoch_executed='1632906814.77' WHERE source_name='4FGL J2254.8-2725' and cadence='daily' and bin_id='98'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/581685

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/581685/ft1_4FGL_J2254.8-2725_daily_bin98.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/581685/ft2_4FGL_J2254.8-2725_daily_bin98.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/581685/ft1_4FGL_J2254.8-2725_daily_bin98.fits outfile=/scratch/kocevski/581685/ft1_filteredMKT_4FGL_J2254.8-2725_daily_bin98.fits ra=343.718 dec=-27.4171 rad=12.0 tmin=264729601.0 tmax=264988801.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.44
user 1.26
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/581685/ft2_4FGL_J2254.8-2725_daily_bin98.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/581685/ft2_4FGL_J2254.8-2725_daily_bin98.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/581685/ft1_filteredMKT_4FGL_J2254.8-2725_daily_bin98.fits evtable="EVENTS" outfile="/scratch/kocevski/581685/ft1_filtered_4FGL_J2254.8-2725_daily_bin98.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.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/581685/ft1_filtered_4FGL_J2254.8-2725_daily_bin98.fits" evtable="EVENTS" scfile=/scratch/kocevski/581685/ft2_4FGL_J2254.8-2725_daily_bin98.fits sctable="SC_DATA" outfile=/scratch/kocevski/581685/ltcube_264729601_264988801_4FGL_J2254.8-2725_daily_bin98.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/581685/ft2_4FGL_J2254.8-2725_daily_bin98.fits
.....................!
real 12.93
user 12.57
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/581685/ft1_filtered_4FGL_J2254.8-2725_daily_bin98.fits evtable="EVENTS" scfile=/scratch/kocevski/581685/ft2_4FGL_J2254.8-2725_daily_bin98.fits sctable="SC_DATA" expcube=/scratch/kocevski/581685/ltcube_264729601_264988801_4FGL_J2254.8-2725_daily_bin98.fits outfile=/scratch/kocevski/581685/expmap_264729601_264988801_4FGL_J2254.8-2725_daily_bin98.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/581685/ltcube_264729601_264988801_4FGL_J2254.8-2725_daily_bin98.fits
.....................!
real 190.43
user 184.89
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 172 point sources and 0 extended sources

Setting source of interest to:
4FGL J2254.8-2725 @ 343.718 -27.4171

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/581685/ft1_filtered_4FGL_J2254.8-2725_daily_bin98.fits scfile=/scratch/kocevski/581685/ft2_4FGL_J2254.8-2725_daily_bin98.fits outfile=/scratch/kocevski/581685/cmap_264729601_264988801_4FGL_J2254.8-2725_daily_bin98.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=343.718 yref=-27.4171 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/581685/ft1_filtered_4FGL_J2254.8-2725_daily_bin98.fits scfile=/scratch/kocevski/581685/ft2_4FGL_J2254.8-2725_daily_bin98.fits outfile=/scratch/kocevski/581685/cmap_HighResolution_264729601_264988801_4FGL_J2254.8-2725_daily_bin98.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=343.718 yref=-27.4171 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/581685/ft1_filtered_4FGL_J2254.8-2725_daily_bin98.fits evtable="EVENTS" scfile=/scratch/kocevski/581685/ft2_4FGL_J2254.8-2725_daily_bin98.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/581685/Model_4FGL_J2254.8-2725_daily_bin98.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/581685/ft1_filtered_4FGL_J2254.8-2725_daily_bin98.fits.....................!
real 54.06
user 52.78
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/581685/ft1_filtered_4FGL_J2254.8-2725_daily_bin98.fits', '/scratch/kocevski/581685/ft2_4FGL_J2254.8-2725_daily_bin98.fits', expMap='/scratch/kocevski/581685/expmap_264729601_264988801_4FGL_J2254.8-2725_daily_bin98.fits', expCube='/scratch/kocevski/581685/ltcube_264729601_264988801_4FGL_J2254.8-2725_daily_bin98.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/581685/Model_4FGL_J2254.8-2725_daily_bin98.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2254.8-2725'

4FGL J2254.8-2725
   Spectrum: PowerLaw
324    Prefactor:  1.706e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
325        Index:  2.012e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  4.538e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/581685/ft1_filtered_4FGL_J2254.8-2725_daily_bin98.fits
Spacecraft file(s): /scratch/kocevski/581685/ft2_4FGL_J2254.8-2725_daily_bin98.fits
Exposure map: /scratch/kocevski/581685/expmap_264729601_264988801_4FGL_J2254.8-2725_daily_bin98.fits
Exposure cube: /scratch/kocevski/581685/ltcube_264729601_264988801_4FGL_J2254.8-2725_daily_bin98.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/581685/Model_4FGL_J2254.8-2725_daily_bin98.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) = 6924.73501112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7567       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2089       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.310       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.583       1.0000         .10000E-03   10000.    
     6 'norm      '    2.1272       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.0964       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.0919       1.0000         .10000E-03   10000.    
    12 'norm      '    .45735       1.0000         .10000E-03   10000.    
    13 'Prefactor '    61.396       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.8712       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    39.895       1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.571       1.0000         .10000E-03   10000.    
    18 'norm      '    17.024       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10301E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1214       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87781       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6924.734     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2365 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7584        13.974         .0000       -.46850E-04
   2  Prefactor     1.2105        8.7622         .0000        .24818E-01
   3  norm          .10000E-03    14.821         .0000    ** at limit **
   4  Prefactor     28.307        22.160         .0000       -.74470E-03
   5  Prefactor     19.584        10.757         .0000        .19367E-03
   6  norm          2.1271        1.6241         .0000       -.27286E-04
   7  Prefactor     .10000E-03    16.242         .0000    ** at limit **
   8  Prefactor     .10000E-03    25.957         .0000    ** at limit **
   9  norm          3.0964        2.9129         .0000       -.11400E-03
  10  Prefactor     .10000E-03    4.7419         .0000    ** at limit **
  11  Prefactor     7.0931        8.9560         .0000        .25152E-03
  12  norm          .45717        .55283         .0000        .87235E-03
  13  Prefactor     61.394        41.548         .0000        .26057E-03
  14  Prefactor     6.8722        6.3712         .0000        .41839E-02
  15  Prefactor     .10000E-03    4.0812         .0000    ** at limit **
  16  norm          39.896        12.578         .0000       -.12692E-03
  17  Prefactor     35.574        46.607         .0000       -.48458E-03
  18  norm          17.022        4.7364         .0000       -.72884E-03
  19  Prefactor     .10000E-03    41.967         .0000    ** at limit **
  20  Prefactor     .10000E-03    198.36         .0000    ** at limit **
  21  Normalizat    1.1213        .18474         .0000       -.60732E-05
  22  Prefactor     .87783        .16764         .0000        .38832E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.75843
  Prefactor  = 1.21055
  norm       = 0.0001
  Prefactor  = 28.3065
  Prefactor  = 19.5842
  norm       = 2.12713
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.0964
  Prefactor  = 0.0001
  Prefactor  = 7.09309
  norm       = 0.457172
  Prefactor  = 61.3944
  Prefactor  = 6.87219
  Prefactor  = 0.0001
  norm       = 39.8961
  Prefactor  = 35.5736
  norm       = 17.0223
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Normalizat = 1.12129
  Prefactor  = 0.877827
 **********
 **   18 **HESSE 
 **********

 FCN=   6924.734     FROM HESSE     STATUS=OK           342 CALLS     2707 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7584        13.974        .13545E-03   -1.5116    
   2  Prefactor     1.2105        8.8349        .20586E-02   -1.5488    
   3  norm          .10000E-03    14.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     28.307        22.119        .75297E-04   -1.4643    
   5  Prefactor     19.584        10.766        .90509E-04   -1.4823    
   6  norm          2.1271        1.6217        .89762E-04   -1.5416    
   7  Prefactor     .10000E-03    16.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.769        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.0964        2.9070        .12898E-03   -1.5356    
  10  Prefactor     .10000E-03    4.7436        .17681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.0931        8.7671        .15063E-03   -1.5175    
  12  norm          .45717        .50207        .54836E-03   -1.5573    
  13  Prefactor     61.394        41.573        .51209E-04   -1.4139    
  14  Prefactor     6.8722        6.3722        .15306E-03   -1.5184    
  15  Prefactor     .10000E-03    4.1016        .16401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          39.896        12.583        .63460E-04   -1.4444    
  17  Prefactor     35.574        46.727        .67194E-04   -1.4514    
  18  norm          17.022        4.7468        .91048E-04   -1.4883    
  19  Prefactor     .10000E-03    42.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    199.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1213        .22287        .25114E-03   -.89071    
  22  Prefactor     .87783        .20091        .26595E-03   -.96920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43501e-08
Minuit parameter uncertainties:
  1  13.9796
  2  6.54176
  3  0.000131063
  4  22.1253
  5  10.7667
  6  1.62171
  7  0.00017273
  8  0.000161057
  9  2.90712
  10  1.71698e-06
  11  8.76868
  12  0.502074
  13  41.5929
  14  6.37278
  15  1.57599e-06
  16  12.5843
  17  46.7755
  18  4.74688
  19  0.000236128
  20  0.00147358
  21  0.223058
  22  0.201077
Done.

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

Extracting fit parameters...

4FGL J2254.8-2725
   Spectrum: PowerLaw
324    Prefactor:  1.000e-04  1.717e-06  1.000e-04  1.000e+04 ( 1.000e-14)
325        Index:  2.012e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  4.538e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  8.778e-01  2.011e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  1.121e+00  2.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 343.718 -27.417
Photon Flux Upper Limit: 4.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/581685/likelihoodResults_264729601_264988801_4FGL_J2254.8-2725_daily_bin98.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) = 6924.73485064
delta logL = -0.00100065862898

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6924.7338499
delta logL = 8.61900844029e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6924.734     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.1237        .90712E-02** at limit **
   2  Index         1.9727        5.8167        .50000        .31904E-04
   3  Normalizat    1.1213        .56066E-02    .56791E-01   -.14408E-04
   4  Prefactor     .87783        .53484E-02    .44721E-01   -.12494E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.97271
  Normalizat = 1.12129
  Prefactor  = 0.877827
 **********
 **   18 **HESSE 
 **********

 FCN=   6924.734     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      238 TOTAL
                     EDM=   .83E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    418.29        .17963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9727        7.8096        .50000       -.65034    
   3  Normalizat    1.1213        .45183E-01    .25114E-03   -.89071    
   4  Prefactor     .87783        .43108E-01    .26595E-03   -.96920    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.26591e-08
Minuit parameter uncertainties:
  1  9.64323e-05
  2  37.0855
  3  0.0451845
  4  0.0431096
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/581685': 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) = 6924.73384966
delta logL = 3.24032953358e-07

Extracting fit parameters...

4FGL J2254.8-2725
   Spectrum: PowerLaw
324    Prefactor:  1.000e-04  9.643e-05  1.000e-04  1.000e+04 ( 1.000e-14)
325        Index:  1.973e+00  3.709e+01  0.000e+00  1.000e+01 (-1.000e+00)
326        Scale:  4.538e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  8.778e-01  4.311e-02  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  1.121e+00  4.518e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 343.718 -27.417

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/581685/cmap_HighResolution_264729601_264988801_4FGL_J2254.8-2725_daily_bin98.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.49e-03', job_status='DONE', photon_flux_upper_limit='4.65e-08', time_completed='2021-09-29 02:24:17.560909', job_id='581685', GAL2='0.88', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1632907457.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='3.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='98' AND source_name='4FGL J2254.8-2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:24:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 581685: <4FGL_J2254.8-2725_daily_bin98> in cluster <slac> Done

Job <4FGL_J2254.8-2725_daily_bin98> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep 29 02:10:45 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:10:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 02:10:46 2021
Terminated at Wed Sep 29 02:24:18 2021
Results reported at Wed Sep 29 02:24:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2254.8-2725_daily_bin98 343.718 -27.4171 264729601 264988801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2254.8-2725 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   642.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            813 sec.

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

