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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin1083
RA = 193.733, Dec = 11.6495
tmin = 520041601, tmax = 520300801
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='999081', job_status='RUN', time_executed='2021-09-06 09:41:46.891102', time_epoch_executed='1630946506.89' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='1083'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999081

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999081/ft1_4FGL_J1254.9+1138_daily_bin1083.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999081/ft2_4FGL_J1254.9+1138_daily_bin1083.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999081/ft1_4FGL_J1254.9+1138_daily_bin1083.fits outfile=/scratch/kocevski/999081/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1083.fits ra=193.733 dec=11.6495 rad=12.0 tmin=520041601.0 tmax=520300801.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.39
user 3.15
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/999081/ft2_4FGL_J1254.9+1138_daily_bin1083.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/999081/ft2_4FGL_J1254.9+1138_daily_bin1083.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/999081/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1083.fits evtable="EVENTS" outfile="/scratch/kocevski/999081/ft1_filtered_4FGL_J1254.9+1138_daily_bin1083.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.43
user 0.28
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/999081/ft1_filtered_4FGL_J1254.9+1138_daily_bin1083.fits" evtable="EVENTS" scfile=/scratch/kocevski/999081/ft2_4FGL_J1254.9+1138_daily_bin1083.fits sctable="SC_DATA" outfile=/scratch/kocevski/999081/ltcube_520041601_520300801_4FGL_J1254.9+1138_daily_bin1083.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/999081/ft2_4FGL_J1254.9+1138_daily_bin1083.fits
.....................!
real 9.89
user 9.58
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999081/ft1_filtered_4FGL_J1254.9+1138_daily_bin1083.fits evtable="EVENTS" scfile=/scratch/kocevski/999081/ft2_4FGL_J1254.9+1138_daily_bin1083.fits sctable="SC_DATA" expcube=/scratch/kocevski/999081/ltcube_520041601_520300801_4FGL_J1254.9+1138_daily_bin1083.fits outfile=/scratch/kocevski/999081/expmap_520041601_520300801_4FGL_J1254.9+1138_daily_bin1083.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/999081/ltcube_520041601_520300801_4FGL_J1254.9+1138_daily_bin1083.fits
.....................!
real 146.22
user 141.90
sys 4.08

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

Setting source of interest to:
4FGL J1254.9+1138 @ 193.733 11.6495

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/999081/ft1_filtered_4FGL_J1254.9+1138_daily_bin1083.fits scfile=/scratch/kocevski/999081/ft2_4FGL_J1254.9+1138_daily_bin1083.fits outfile=/scratch/kocevski/999081/cmap_520041601_520300801_4FGL_J1254.9+1138_daily_bin1083.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.733 yref=11.6495 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.52
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/999081/ft1_filtered_4FGL_J1254.9+1138_daily_bin1083.fits scfile=/scratch/kocevski/999081/ft2_4FGL_J1254.9+1138_daily_bin1083.fits outfile=/scratch/kocevski/999081/cmap_HighResolution_520041601_520300801_4FGL_J1254.9+1138_daily_bin1083.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.733 yref=11.6495 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.50
user 0.30
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/999081/ft1_filtered_4FGL_J1254.9+1138_daily_bin1083.fits evtable="EVENTS" scfile=/scratch/kocevski/999081/ft2_4FGL_J1254.9+1138_daily_bin1083.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/999081/Model_4FGL_J1254.9+1138_daily_bin1083.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/999081/ft1_filtered_4FGL_J1254.9+1138_daily_bin1083.fits....................!
real 34.45
user 33.03
sys 0.99

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/999081/ft1_filtered_4FGL_J1254.9+1138_daily_bin1083.fits', '/scratch/kocevski/999081/ft2_4FGL_J1254.9+1138_daily_bin1083.fits', expMap='/scratch/kocevski/999081/expmap_520041601_520300801_4FGL_J1254.9+1138_daily_bin1083.fits', expCube='/scratch/kocevski/999081/ltcube_520041601_520300801_4FGL_J1254.9+1138_daily_bin1083.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/999081/Model_4FGL_J1254.9+1138_daily_bin1083.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1254.9+1138'

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  3.627e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.791e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  4.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/999081/ft1_filtered_4FGL_J1254.9+1138_daily_bin1083.fits
Spacecraft file(s): /scratch/kocevski/999081/ft2_4FGL_J1254.9+1138_daily_bin1083.fits
Exposure map: /scratch/kocevski/999081/expmap_520041601_520300801_4FGL_J1254.9+1138_daily_bin1083.fits
Exposure cube: /scratch/kocevski/999081/ltcube_520041601_520300801_4FGL_J1254.9+1138_daily_bin1083.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/999081/Model_4FGL_J1254.9+1138_daily_bin1083.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) = 4982.94149635

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .88495       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.9570       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10234E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.962       1.0000         .10000E-03   10000.    
     7 'norm      '    .67979       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6721       1.0000         .10000E-03   10000.    
     9 'Prefactor '    41.427       1.0000         .10000E-03   10000.    
    10 'norm      '    2.6080       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.5003       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10445E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0417       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1251       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4982.836     FROM MIGRAD    STATUS=CONVERGED    432 CALLS     2141 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .88352        2.5948       -.63876E-06   -.96064E-03
   2  Prefactor     .10000E-03    17.015       -.85000E-06** at limit **
   3  norm          3.9582        4.3746       -.11012E-05   -.64863E-03
   4  Prefactor     .10001E-03    102.23        .57587E-04** at limit **
   5  norm          .10000E-03    43.406        .78998E-05** at limit **
   6  Prefactor     17.023        166.74        .12621E-03   -.96512E-05
   7  norm          .67952        .70549        .15876E-07   -.55591E-03
   8  Prefactor     3.6692        6.2170       -.15089E-06   -.16374E-03
   9  Prefactor     41.418        28.234        .19955E-06   -.10900E-04
  10  norm          2.6074        1.7955       -.30862E-06   -.15159E-03
  11  Prefactor     .10000E-03    183.73       -.44879E-04** at limit **
  12  Prefactor     .10000E-03    70.276       -.36016E-04** at limit **
  13  Prefactor     .10000E-03    2.2893        .18065E-06** at limit **
  14  Prefactor     .10000E-03    9.2081        .40717E-06** at limit **
  15  Prefactor     .10001E-03    7.1511        .29577E-06** at limit **
  16  Prefactor     5.5034        11.185        .19336E-06   -.89922E-04
  17  Prefactor     .10000E-03    20.051        .53355E-06** at limit **
  18  Prefactor     .10000E-03    25.451       -.20566E-05** at limit **
  19  Normalizat    1.0418        .21364        .16685E-06   -.71744E-04
  20  Prefactor     1.1250        .18676       -.18075E-05    .58233E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.883517
  Prefactor  = 0.0001
  norm       = 3.95819
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 17.0233
  norm       = 0.679517
  Prefactor  = 3.66918
  Prefactor  = 41.4185
  norm       = 2.6074
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 5.50336
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04178
  Prefactor  = 1.12505
 **********
 **   18 **HESSE 
 **********

 FCN=   4982.836     FROM HESSE     STATUS=OK           297 CALLS     2438 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .88352        2.5661        .18796E-03   -1.5520    
   2  Prefactor     .10000E-03    17.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.9582        4.3234        .14139E-03   -1.5310    
   4  Prefactor     .10001E-03    102.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    43.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.023        165.99        .97249E-04   -1.4883    
   7  norm          .67952        .66316        .55015E-03   -1.5543    
   8  Prefactor     3.6692        6.1997        .21078E-03   -1.5325    
   9  Prefactor     41.418        28.269        .62280E-04   -1.4420    
  10  norm          2.6074        1.7845        .74476E-04   -1.5385    
  11  Prefactor     .10000E-03    186.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    70.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.2948        .10431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.3130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    78.591        .36193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.5034        11.175        .17132E-03   -1.5239    
  17  Prefactor     .10000E-03    20.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    25.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0418        .25354        .27098E-03   -.91644    
  20  Prefactor     1.1250        .22362        .23348E-03   -.88670    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14163e-09
Minuit parameter uncertainties:
  1  2.56646
  2  1.38796e-05
  3  4.32372
  4  0.0014859
  5  6.69905e-05
  6  106.703
  7  0.663168
  8  6.20082
  9  28.2782
  10  1.7845
  11  0.00173055
  12  0.000205694
  13  1.40739e-06
  14  3.00261e-05
  15  0.00126728
  16  11.1794
  17  1.28033e-05
  18  1.21428e-05
  19  0.253836
  20  0.223803
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  3.003e-05  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.791e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  4.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.125e+00  2.238e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.042e+00  2.538e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 193.733 11.649
Photon Flux Upper Limit: 9.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/999081/likelihoodResults_520041601_520300801_4FGL_J1254.9+1138_daily_bin1083.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) = 4982.83674378
delta logL = -0.000511665711201

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4982.83623224
delta logL = -1.2390773918e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4982.830     FROM MIGRAD    STATUS=CONVERGED    144 CALLS      302 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .39170E-01    2.2979        .13235E-01    .25219E-02
   2  Index         5.9143        4.0961        .50000       -.22705E-04
   3  Normalizat    1.0325        .35867        .27098E-03    .25911E-03
   4  Prefactor     1.1302        .26517        .23348E-03    .33626E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0391699
  Index      = 5.91429
  Normalizat = 1.03246
  Prefactor  = 1.13021
 **********
 **   18 **HESSE 
 **********

 FCN=   4982.830     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      333 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .39170E-01    145.16        .69827E-03   -1.5668    
   2  Index         5.9143        7.5168        .24997E-01    2.9577    
   3  Normalizat    1.0325        .35670        .54197E-04   -.91951    
   4  Prefactor     1.1302        .24726        .46696E-04   -.88507    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.0483e-10
Minuit parameter uncertainties:
  1  4.77448
  2  81.0708
  3  0.357533
  4  0.247508
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999081': 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) = 4982.82980681
delta logL = 0.00642530627101

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  3.917e-02  4.774e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  5.914e+00  8.107e+01  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  4.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.130e+00  2.475e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.032e+00  3.575e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.733 11.649

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/999081/cmap_HighResolution_520041601_520300801_4FGL_J1254.9+1138_daily_bin1083.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.28e-03', job_status='DONE', photon_flux_upper_limit='9.20e-08', time_completed='2021-09-06 09:49:15.425088', job_id='999081', GAL2='1.13', fit_tolerance='1e-08', EG2='1.03', EG='1.04', time_epoch_completed='1630946955.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='6.43e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1083' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:49:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 999081: <4FGL_J1254.9+1138_daily_bin1083> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin1083> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 09:40:51 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:40:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 09:40:53 2021
Terminated at Mon Sep  6 09:49:16 2021
Results reported at Mon Sep  6 09:49:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin1083 193.733 11.6495 520041601 520300801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1254.9+1138 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   419.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   502 sec.
    Turnaround time :                            505 sec.

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

