/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 19 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 = 7382
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1254.9+1138_daily_bin1325
RA = 193.733, Dec = 11.6495
tmin = 582768001, tmax = 583027201
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='999469', job_status='RUN', time_executed='2021-09-06 09:42:13.891652', time_epoch_executed='1630946533.89' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='1325'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999469

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999469/ft1_4FGL_J1254.9+1138_daily_bin1325.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999469/ft2_4FGL_J1254.9+1138_daily_bin1325.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999469/ft1_4FGL_J1254.9+1138_daily_bin1325.fits outfile=/scratch/kocevski/999469/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1325.fits ra=193.733 dec=11.6495 rad=12.0 tmin=582768001.0 tmax=583027201.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.63
user 3.35
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/999469/ft2_4FGL_J1254.9+1138_daily_bin1325.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/999469/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1325.fits evtable="EVENTS" outfile="/scratch/kocevski/999469/ft1_filtered_4FGL_J1254.9+1138_daily_bin1325.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.52
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/999469/ft1_filtered_4FGL_J1254.9+1138_daily_bin1325.fits" evtable="EVENTS" scfile=/scratch/kocevski/999469/ft2_4FGL_J1254.9+1138_daily_bin1325.fits sctable="SC_DATA" outfile=/scratch/kocevski/999469/ltcube_582768001_583027201_4FGL_J1254.9+1138_daily_bin1325.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/999469/ft2_4FGL_J1254.9+1138_daily_bin1325.fits
.....................!
real 12.06
user 11.62
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999469/ft1_filtered_4FGL_J1254.9+1138_daily_bin1325.fits evtable="EVENTS" scfile=/scratch/kocevski/999469/ft2_4FGL_J1254.9+1138_daily_bin1325.fits sctable="SC_DATA" expcube=/scratch/kocevski/999469/ltcube_582768001_583027201_4FGL_J1254.9+1138_daily_bin1325.fits outfile=/scratch/kocevski/999469/expmap_582768001_583027201_4FGL_J1254.9+1138_daily_bin1325.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/999469/ltcube_582768001_583027201_4FGL_J1254.9+1138_daily_bin1325.fits
.....................!
real 191.47
user 185.93
sys 4.97

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/999469/ft1_filtered_4FGL_J1254.9+1138_daily_bin1325.fits scfile=/scratch/kocevski/999469/ft2_4FGL_J1254.9+1138_daily_bin1325.fits outfile=/scratch/kocevski/999469/cmap_582768001_583027201_4FGL_J1254.9+1138_daily_bin1325.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/999469/ft1_filtered_4FGL_J1254.9+1138_daily_bin1325.fits scfile=/scratch/kocevski/999469/ft2_4FGL_J1254.9+1138_daily_bin1325.fits outfile=/scratch/kocevski/999469/cmap_HighResolution_582768001_583027201_4FGL_J1254.9+1138_daily_bin1325.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.59
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.032       1.0000         .10000E-03   10000.    
     5 'norm      '    .10237E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20703E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .40667       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.7376       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2801       1.0000         .10000E-03   10000.    
    10 'norm      '    .10769E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.436       1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.453       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2660       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13638E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.3300       1.0000         .10000E-03   10000.    
    17 'Prefactor '    65.648       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1249       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1855       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=   6601.510     FROM MIGRAD    STATUS=CONVERGED    415 CALLS     2594 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1052        .79282E-07** at limit **
   2  Prefactor     .10000E-03    15.095       -.14177E-05** at limit **
   3  norm          .10000E-03    1.5800        .26453E-07** at limit **
   4  Prefactor     38.028        30.821       -.23347E-07   -.33262E-04
   5  norm          .10000E-03    19.707        .48531E-06** at limit **
   6  Prefactor     .10000E-03    68.766        .25547E-06** at limit **
   7  norm          .40670        .52410        .16322E-06    .23218E-03
   8  Prefactor     7.7366        11.303        .98736E-07   -.32314E-04
   9  Prefactor     5.2842        57.292        .87800E-06   -.40855E-05
  10  norm          .10000E-03    .97135        .48667E-07** at limit **
  11  Prefactor     17.411        34.685       -.23994E-05   -.93708E-04
  12  Prefactor     25.536        60.949        .51454E-05    .11507E-03
  13  Prefactor     .10000E-03    3.4243        .50306E-07** at limit **
  14  Prefactor     2.2352        39.959        .69641E-05   -.22851E-04
  15  Prefactor     .10000E-03    10.166       -.70465E-06** at limit **
  16  Prefactor     4.3296        10.200        .68425E-05   -.65800E-04
  17  Prefactor     65.648        37.810        .15527E-06   -.13611E-04
  18  Prefactor     .10000E-03    13.889        .11071E-05** at limit **
  19  Normalizat    1.1248        .20777       -.12293E-05   -.13726E-03
  20  Prefactor     1.1857        .17367       -.15913E-05   -.10679E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 38.028
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.406705
  Prefactor  = 7.73655
  Prefactor  = 5.28418
  norm       = 0.0001
  Prefactor  = 17.4105
  Prefactor  = 25.5362
  Prefactor  = 0.0001
  Prefactor  = 2.2352
  Prefactor  = 0.0001
  Prefactor  = 4.32959
  Prefactor  = 65.6484
  Prefactor  = 0.0001
  Normalizat = 1.12478
  Prefactor  = 1.18574
 **********
 **   18 **HESSE 
 **********

 FCN=   6601.510     FROM HESSE     STATUS=OK           289 CALLS     2883 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1616        .23020E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.6107        .99611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     38.028        30.831        .64991E-04   -1.4474    
   5  norm          .10000E-03    19.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    68.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .40670        .49479        .63443E-03   -1.5580    
   8  Prefactor     7.7366        11.164        .14416E-03   -1.5152    
   9  Prefactor     5.2842        55.845        .17492E-03   -1.5248    
  10  norm          .10000E-03    2.2649        .15340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.411        34.863        .95918E-04   -1.4873    
  12  Prefactor     25.536        61.774        .79401E-04   -1.4697    
  13  Prefactor     .10000E-03    3.4407        .14683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.2352        39.219        .27286E-03   -1.5409    
  15  Prefactor     .10000E-03    10.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.3296        10.243        .96792E-03   -1.5292    
  17  Prefactor     65.648        37.823        .49533E-04   -1.4086    
  18  Prefactor     .10000E-03    13.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1248        .24947        .28873E-03   -.88960    
  20  Prefactor     1.1857        .20906        .24252E-03   -.86771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89709e-10
Minuit parameter uncertainties:
  1  7.74092e-06
  2  7.77723e-05
  3  3.15212e-06
  4  30.844
  5  3.75782e-05
  6  5.94967e-05
  7  0.494794
  8  11.1667
  9  34.3974
  10  4.85294e-05
  11  34.9037
  12  61.9288
  13  6.82487e-06
  14  18.7395
  15  3.48098e-05
  16  10.2473
  17  37.8369
  18  7.10508e-05
  19  0.249736
  20  0.209207
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  2.235e+00  1.874e+01  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.186e+00  2.092e-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.125e+00  2.497e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/999469/likelihoodResults_582768001_583027201_4FGL_J1254.9+1138_daily_bin1325.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) = 6601.44641788
delta logL = 0.0636688072236

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6601.43340069
delta logL = 0.0766859939895

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9328       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5172       1.0000          .0000       10.000    
     3 'Normalizat'    1.0983       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1973       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=   6601.433     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      273 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9312        13.288        .20342E-03   -.15537E-03
   2  Index         3.5161        1.9622        .11708E-01   -.59743E-04
   3  Normalizat    1.0984        .25224        .29179E-03   -.93237E-03
   4  Prefactor     1.1973        .20891        .24150E-03   -.77055E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.93122
  Index      = 3.51607
  Normalizat = 1.09839
  Prefactor  = 1.19728
 **********
 **   18 **HESSE 
 **********

 FCN=   6601.433     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9312        11.950        .81369E-05   -1.5311    
   2  Index         3.5161        1.7720        .46831E-03   -.30133    
   3  Normalizat    1.0984        .25276        .58358E-04   -.89804    
   4  Prefactor     1.1973        .20919        .48300E-04   -.86415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75956e-09
Minuit parameter uncertainties:
  1  11.9573
  2  1.81541
  3  0.253043
  4  0.209337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999469': 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) = 6601.43340028
delta logL = 0.0766864051211

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  3.931e+00  1.196e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  3.516e+00  1.815e+00  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.197e+00  2.093e-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.098e+00  2.530e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/999469/cmap_HighResolution_582768001_583027201_4FGL_J1254.9+1138_daily_bin1325.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', job_status='DONE', photon_flux_upper_limit='1.50e-07', time_completed='2021-09-06 09:53:26.338078', job_id='999469', GAL2='1.20', fit_tolerance='1e-08', EG2='1.10', EG='1.12', time_epoch_completed='1630947206.34', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='7.67e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1325' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:53:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 999469: <4FGL_J1254.9+1138_daily_bin1325> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin1325> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 09:41:30 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:41:31 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:41:31 2021
Terminated at Mon Sep  6 09:53:27 2021
Results reported at Mon Sep  6 09:53:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin1325 193.733 11.6495 582768001 583027201 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 :                                   636.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            717 sec.

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

