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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin882
RA = 193.733, Dec = 11.6495
tmin = 467942401, tmax = 468201601
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='997554', job_status='RUN', time_executed='2021-09-06 09:36:15.713848', time_epoch_executed='1630946175.71' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='882'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/997554

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/997554/ft1_4FGL_J1254.9+1138_daily_bin882.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/997554/ft2_4FGL_J1254.9+1138_daily_bin882.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/997554/ft1_4FGL_J1254.9+1138_daily_bin882.fits outfile=/scratch/kocevski/997554/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin882.fits ra=193.733 dec=11.6495 rad=12.0 tmin=467942401.0 tmax=468201601.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.57
user 3.35
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/997554/ft2_4FGL_J1254.9+1138_daily_bin882.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/997554/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin882.fits evtable="EVENTS" outfile="/scratch/kocevski/997554/ft1_filtered_4FGL_J1254.9+1138_daily_bin882.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/997554/ft1_filtered_4FGL_J1254.9+1138_daily_bin882.fits" evtable="EVENTS" scfile=/scratch/kocevski/997554/ft2_4FGL_J1254.9+1138_daily_bin882.fits sctable="SC_DATA" outfile=/scratch/kocevski/997554/ltcube_467942401_468201601_4FGL_J1254.9+1138_daily_bin882.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/997554/ft2_4FGL_J1254.9+1138_daily_bin882.fits
.....................!
real 11.71
user 11.37
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/997554/ft1_filtered_4FGL_J1254.9+1138_daily_bin882.fits evtable="EVENTS" scfile=/scratch/kocevski/997554/ft2_4FGL_J1254.9+1138_daily_bin882.fits sctable="SC_DATA" expcube=/scratch/kocevski/997554/ltcube_467942401_468201601_4FGL_J1254.9+1138_daily_bin882.fits outfile=/scratch/kocevski/997554/expmap_467942401_468201601_4FGL_J1254.9+1138_daily_bin882.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/997554/ltcube_467942401_468201601_4FGL_J1254.9+1138_daily_bin882.fits
.....................!
real 192.21
user 187.33
sys 4.33

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/997554/ft1_filtered_4FGL_J1254.9+1138_daily_bin882.fits scfile=/scratch/kocevski/997554/ft2_4FGL_J1254.9+1138_daily_bin882.fits outfile=/scratch/kocevski/997554/cmap_467942401_468201601_4FGL_J1254.9+1138_daily_bin882.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.62
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/997554/ft1_filtered_4FGL_J1254.9+1138_daily_bin882.fits scfile=/scratch/kocevski/997554/ft2_4FGL_J1254.9+1138_daily_bin882.fits outfile=/scratch/kocevski/997554/cmap_HighResolution_467942401_468201601_4FGL_J1254.9+1138_daily_bin882.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.87
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/997554/ft1_filtered_4FGL_J1254.9+1138_daily_bin882.fits', '/scratch/kocevski/997554/ft2_4FGL_J1254.9+1138_daily_bin882.fits', expMap='/scratch/kocevski/997554/expmap_467942401_468201601_4FGL_J1254.9+1138_daily_bin882.fits', expCube='/scratch/kocevski/997554/ltcube_467942401_468201601_4FGL_J1254.9+1138_daily_bin882.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/997554/Model_4FGL_J1254.9+1138_daily_bin882.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/997554/ft1_filtered_4FGL_J1254.9+1138_daily_bin882.fits
Spacecraft file(s): /scratch/kocevski/997554/ft2_4FGL_J1254.9+1138_daily_bin882.fits
Exposure map: /scratch/kocevski/997554/expmap_467942401_468201601_4FGL_J1254.9+1138_daily_bin882.fits
Exposure cube: /scratch/kocevski/997554/ltcube_467942401_468201601_4FGL_J1254.9+1138_daily_bin882.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/997554/Model_4FGL_J1254.9+1138_daily_bin882.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) = 7179.8230118

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4719       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16812       1.0000         .10000E-03   10000.    
     3 'norm      '    7.3778       1.0000         .10000E-03   10000.    
     4 'Prefactor '    45.107       1.0000         .10000E-03   10000.    
     5 'norm      '    8.0702       1.0000         .10000E-03   10000.    
     6 'Prefactor '    63.637       1.0000         .10000E-03   10000.    
     7 'norm      '    3.6038       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5620       1.0000         .10000E-03   10000.    
     9 'Prefactor '    45.518       1.0000         .10000E-03   10000.    
    10 'norm      '    .49880       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10468E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.716       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.9382       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.5856       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.1588       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .96690       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0166       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=   7179.655     FROM MIGRAD    STATUS=CONVERGED    440 CALLS     2152 TOTAL
                     EDM=   .56E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4718        2.6065        .11020E-06    .94939E-05
   2  Prefactor     .49325E-03    11.355        .46568E-06** at limit **
   3  norm          7.3867        4.6308       -.10088E-06   -.42695E-04
   4  Prefactor     45.129        34.537       -.25552E-05   -.85654E-05
   5  norm          8.0623        41.821       -.11517E-05   -.29701E-05
   6  Prefactor     63.096        140.16        .24213E-04   -.28922E-05
   7  norm          3.6037        .87213        .12082E-07   -.16056E-03
   8  Prefactor     1.5556        10.580        .65227E-05    .19918E-04
   9  Prefactor     45.528        28.838        .12172E-05    .38436E-04
  10  norm          .49700        .78823       -.22047E-07   -.19366E-04
  11  Prefactor     .10000E-03    18.586        .79781E-07** at limit **
  12  Prefactor     .10000E-03    42.191        .13013E-06** at limit **
  13  Prefactor     20.714        11.226        .90212E-07   -.42517E-05
  14  Prefactor     7.9336        8.9913        .67930E-07   -.44456E-05
  15  Prefactor     4.5750        11.535        .33082E-06   -.12918E-05
  16  Prefactor     5.1538        11.663        .15054E-06    .49621E-07
  17  Prefactor     .10000E-03    22.115       -.77197E-07** at limit **
  18  Prefactor     .10000E-03    15.492       -.20521E-07** at limit **
  19  Normalizat    .96659        .19473       -.16078E-05    .39563E-04
  20  Prefactor     1.0170        .16081        .68703E-06   -.20366E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.47178
  Prefactor  = 0.000493246
  norm       = 7.38674
  Prefactor  = 45.129
  norm       = 8.0623
  Prefactor  = 63.0962
  norm       = 3.60371
  Prefactor  = 1.55561
  Prefactor  = 45.5278
  norm       = 0.497004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.7143
  Prefactor  = 7.93362
  Prefactor  = 4.57499
  Prefactor  = 5.15382
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.966591
  Prefactor  = 1.01697
 **********
 **   18 **HESSE 
 **********

 FCN=   7179.655     FROM HESSE     STATUS=OK           311 CALLS     2463 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4718        2.6069        .57405E-03   -1.5335    
   2  Prefactor     .49325E-03    14.873        .10930       -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.3867        4.6304        .12335E-03   -1.5164    
   4  Prefactor     45.129        34.530        .59696E-04   -1.4363    
   5  norm          8.0623        41.818        .14113E-03   -1.5140    
   6  Prefactor     63.096        140.43        .25152E-03   -1.4118    
   7  norm          3.6037        .87769        .34865E-04   -1.5328    
   8  Prefactor     1.5556        10.643        .17021E-02   -1.5459    
   9  Prefactor     45.528        28.962        .59428E-04   -1.4357    
  10  norm          .49700        .78753        .45064E-04   -1.5567    
  11  Prefactor     .10000E-03    18.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    42.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.714        11.241        .87999E-04   -1.4797    
  14  Prefactor     7.9336        8.9879        .14231E-03   -1.5145    
  15  Prefactor     4.5750        11.515        .18797E-03   -1.5280    
  16  Prefactor     5.1538        11.660        .17700E-03   -1.5254    
  17  Prefactor     .10000E-03    22.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .96659        .22795        .29524E-03   -.94158    
  20  Prefactor     1.0170        .18859        .24429E-03   -.92166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56721e-10
Minuit parameter uncertainties:
  1  2.60696
  2  0.152991
  3  4.63065
  4  34.5456
  5  36.7633
  6  141.18
  7  0.877694
  8  8.13973
  9  28.9714
  10  0.787549
  11  1.94005e-06
  12  1.7122e-05
  13  11.2421
  14  8.98938
  15  11.5207
  16  11.6646
  17  3.83163e-06
  18  1.58486e-06
  19  0.228181
  20  0.188708
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  7.934e+00  8.989e+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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.017e+00  1.887e-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:  9.666e-01  2.282e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.39
Ra Dec: 193.733 11.649
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 3.13e-08 +/- 3.54e-08
Energy Flux (Fixed Index): 7.05e-06 +/- 7.98e-06

TS (Fixed Index): 1.39
Ra Dec: 193.733 11.649
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/997554/likelihoodResults_467942401_468201601_4FGL_J1254.9+1138_daily_bin882.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): 0
logL (Free Index) = 7179.52643615
delta logL = 0.128091931877

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7179.51965312
delta logL = 0.134874968078

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6402       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2816       1.0000          .0000       10.000    
     3 'Normalizat'    .97956       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0076       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=   7179.520     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      270 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6422        10.597        .12907E-03   -.77602E-04
   2  Index         2.2826        .85334        .13155E-01   -.25315E-04
   3  Normalizat    .97963        .21900        .29343E-03   -.40860E-03
   4  Prefactor     1.0075        .18579        .24527E-03   -.47795E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.64222
  Index      = 2.2826
  Normalizat = 0.979631
  Prefactor  = 1.00746
 **********
 **   18 **HESSE 
 **********

 FCN=   7179.520     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6422        10.607        .51627E-05   -1.5087    
   2  Index         2.2826        .85444        .52618E-03   -.57458    
   3  Normalizat    .97963        .21918        .58686E-04   -.93716    
   4  Prefactor     1.0075        .18592        .49055E-04   -.92481    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29853e-10
Minuit parameter uncertainties:
  1  10.6092
  2  0.860451
  3  0.219386
  4  0.186038
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/997554': 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): 0
logL (Free Index) = 7179.5196522
delta logL = 0.134875882546

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  9.642e+00  1.061e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.283e+00  8.605e-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.007e+00  1.860e-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:  9.796e-01  2.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.65
Ra Dec: 193.733 11.649
Photon Index (Free Index): 2.28 +/- 0.86
Photon Flux (Free Index): 2.44e-08 +/- 3.17e-08
Energy Flux (Free Index): 9.51e-06 +/- 1.24e-05

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/997554/cmap_HighResolution_467942401_468201601_4FGL_J1254.9+1138_daily_bin882.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.41e-03', comment='SUCCESS', photon_flux='3.13e-08', energy_flux2='9.51e-06', photon_flux_error='3.54e-08', dlogl='1.35e-01', energy_flux='7.05e-06', photon_flux2='2.44e-08', job_status='DONE', time_completed='2021-09-06 09:47:03.893858', photon_index_error2='0.86', photon_index2='2.28', ts='1.39', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='1.24e-05', EG='0.97', time_epoch_completed='1630946823.89', return_code='0', job_id='997554', GAL2='1.01', EG2='0.98', return_code2='0', energy_flux_error='7.98e-06', photon_flux_error2='3.17e-08', ts2='1.65', photon_index='2.79' WHERE bin_id='882' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:47:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 997554: <4FGL_J1254.9+1138_daily_bin882> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin882> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 09:35:55 2021
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:35:56 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:35:56 2021
Terminated at Mon Sep  6 09:47:04 2021
Results reported at Mon Sep  6 09:47:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin882 193.733 11.6495 467942401 468201601 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 :                                   638.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             370.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   668 sec.
    Turnaround time :                            669 sec.

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

