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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin1129
RA = 193.733, Dec = 11.6495
tmin = 531964801, tmax = 532224001
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='999152', job_status='RUN', time_executed='2021-09-06 09:44:24.882777', time_epoch_executed='1630946664.88' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='1129'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999152

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999152/ft1_4FGL_J1254.9+1138_daily_bin1129.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999152/ft2_4FGL_J1254.9+1138_daily_bin1129.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999152/ft1_4FGL_J1254.9+1138_daily_bin1129.fits outfile=/scratch/kocevski/999152/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1129.fits ra=193.733 dec=11.6495 rad=12.0 tmin=531964801.0 tmax=532224001.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.53
user 3.29
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/999152/ft2_4FGL_J1254.9+1138_daily_bin1129.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/999152/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1129.fits evtable="EVENTS" outfile="/scratch/kocevski/999152/ft1_filtered_4FGL_J1254.9+1138_daily_bin1129.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.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/999152/ft1_filtered_4FGL_J1254.9+1138_daily_bin1129.fits" evtable="EVENTS" scfile=/scratch/kocevski/999152/ft2_4FGL_J1254.9+1138_daily_bin1129.fits sctable="SC_DATA" outfile=/scratch/kocevski/999152/ltcube_531964801_532224001_4FGL_J1254.9+1138_daily_bin1129.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/999152/ft2_4FGL_J1254.9+1138_daily_bin1129.fits
.....................!
real 11.74
user 11.32
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999152/ft1_filtered_4FGL_J1254.9+1138_daily_bin1129.fits evtable="EVENTS" scfile=/scratch/kocevski/999152/ft2_4FGL_J1254.9+1138_daily_bin1129.fits sctable="SC_DATA" expcube=/scratch/kocevski/999152/ltcube_531964801_532224001_4FGL_J1254.9+1138_daily_bin1129.fits outfile=/scratch/kocevski/999152/expmap_531964801_532224001_4FGL_J1254.9+1138_daily_bin1129.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/999152/ltcube_531964801_532224001_4FGL_J1254.9+1138_daily_bin1129.fits
.....................!
real 190.61
user 185.51
sys 4.62

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/999152/ft1_filtered_4FGL_J1254.9+1138_daily_bin1129.fits scfile=/scratch/kocevski/999152/ft2_4FGL_J1254.9+1138_daily_bin1129.fits outfile=/scratch/kocevski/999152/cmap_531964801_532224001_4FGL_J1254.9+1138_daily_bin1129.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.56
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15296       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .17808E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    100.66       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.5893       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.566       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.6469       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .22793E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.391       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0749       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0285       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.8370       1.0000         .10000E-03   10000.    
    18 'Prefactor '    83.956       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .83169       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2069       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=   7612.389     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     2067 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16403        1.2656        .39040E-08    .14239E-03
   2  Prefactor     .10000E-03    13.279        .10002E-05** at limit **
   3  norm          .10000E-03    2.2531        .13341E-06** at limit **
   4  Prefactor     .10000E-03    7.5071       -.40187E-07** at limit **
   5  norm          100.66        48.897       -.17378E-07   -.39967E-04
   6  Prefactor     .10000E-03    60.721       -.14367E-05** at limit **
   7  norm          1.5895        .67691        .41599E-07   -.34097E-03
   8  Prefactor     11.563        9.0063        .27746E-06    .21203E-04
   9  Prefactor     .10000E-03    23.072       -.81156E-05** at limit **
  10  norm          4.6471        1.6483        .71176E-07   -.95816E-04
  11  Prefactor     .10000E-03    12.818       -.19515E-05** at limit **
  12  Prefactor     .10000E-03    14.493        .21595E-05** at limit **
  13  Prefactor     .10016E-03    4.4294        .19769E-05** at limit **
  14  Prefactor     25.397        13.252       -.15968E-06   -.71902E-04
  15  Prefactor     3.0712        9.5520        .16619E-05   -.90480E-03
  16  Prefactor     3.0295        6.6806        .49414E-06   -.13273E-02
  17  Prefactor     4.8434        63.946        .12258E-04    .21001E-04
  18  Prefactor     83.972        71.429        .11252E-04    .10004E-03
  19  Normalizat    .83160        .18700       -.15668E-05   -.24504E-03
  20  Prefactor     1.2068        .15794       -.73459E-06   -.25235E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.164029
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 100.657
  Prefactor  = 0.0001
  norm       = 1.58948
  Prefactor  = 11.5629
  Prefactor  = 0.0001
  norm       = 4.64712
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100165
  Prefactor  = 25.3966
  Prefactor  = 3.07122
  Prefactor  = 3.02952
  Prefactor  = 4.8434
  Prefactor  = 83.9715
  Normalizat = 0.831604
  Prefactor  = 1.20685
 **********
 **   18 **HESSE 
 **********

 FCN=   7612.389     FROM HESSE     STATUS=OK           295 CALLS     2362 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16403        9.1816        .18927E-02   -1.5627    
   2  Prefactor     .10000E-03    13.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.9166        .23443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.5096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          100.66        46.412        .40072E-04   -1.3698    
   6  Prefactor     .10000E-03    60.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.5895        .67005        .42459E-04   -1.5456    
   8  Prefactor     11.563        9.0168        .58898E-03   -1.5028    
   9  Prefactor     .10000E-03    23.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.6471        1.6463        .63287E-04   -1.5277    
  11  Prefactor     .10000E-03    12.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10016E-03    25.745        .34274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.397        13.322        .79497E-04   -1.4700    
  15  Prefactor     3.0712        11.830        .11566E-02   -1.5357    
  16  Prefactor     3.0295        9.0211        .11659E-02   -1.5360    
  17  Prefactor     4.8434        64.053        .18291E-03   -1.5268    
  18  Prefactor     83.972        71.831        .43840E-04   -1.3873    
  19  Normalizat    .83160        .21972        .31344E-03   -.98907    
  20  Prefactor     1.2068        .18918        .23097E-03   -.86121    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47468e-08
Minuit parameter uncertainties:
  1  2.45408
  2  3.02228e-05
  3  2.94655e-05
  4  2.65834e-06
  5  46.4284
  6  4.79409e-05
  7  0.67005
  8  9.01783
  9  0.000169529
  10  1.64636
  11  3.23313e-05
  12  5.78401e-05
  13  0.00412171
  14  13.3235
  15  11.8392
  16  9.02513
  17  35.2727
  18  71.9054
  19  0.219957
  20  0.189287
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  2.540e+01  1.332e+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.207e+00  1.893e-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:  8.316e-01  2.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.16
Ra Dec: 193.733 11.649
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 1.00e-07 +/- 5.25e-08
Energy Flux (Fixed Index): 2.26e-05 +/- 1.18e-05

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) = 7612.35429542
delta logL = 0.0346472713209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7612.35099759
delta logL = 0.0379451018161

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.879       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9670       1.0000          .0000       10.000    
     3 'Normalizat'    .81869       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2163       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=   7612.351     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      296 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.886        16.459        .83742E-04    .90687E-04
   2  Index         2.9674        .70567        .73155E-02    .30299E-03
   3  Normalizat    .81890        .22105        .31565E-03   -.47182E-04
   4  Prefactor     1.2160        .18986        .23025E-03    .12146E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.8862
  Index      = 2.96745
  Normalizat = 0.818895
  Prefactor  = 1.21597
 **********
 **   18 **HESSE 
 **********

 FCN=   7612.351     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.886        15.759        .33497E-05   -1.4751    
   2  Index         2.9674        .67526        .14631E-02   -.41863    
   3  Normalizat    .81890        .22103        .12626E-04   -.99372    
   4  Prefactor     1.2160        .18976        .92099E-05   -.85841    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76869e-11
Minuit parameter uncertainties:
  1  15.762
  2  0.677747
  3  0.221268
  4  0.189868
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999152': 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) = 7612.35099519
delta logL = 0.0379475072596

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  2.289e+01  1.576e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.967e+00  6.777e-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.216e+00  1.899e-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:  8.189e-01  2.213e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.25
Ra Dec: 193.733 11.649
Photon Index (Free Index): 2.97 +/- 0.68
Photon Flux (Free Index): 1.08e-07 +/- 5.94e-08
Energy Flux (Free Index): 2.18e-05 +/- 1.14e-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/999152/cmap_HighResolution_531964801_532224001_4FGL_J1254.9+1138_daily_bin1129.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.00e-07', energy_flux2='2.18e-05', photon_flux_error='5.25e-08', dlogl='3.79e-02', energy_flux='2.26e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-09-06 09:56:05.174426', photon_index_error2='0.68', photon_index2='2.97', ts='6.16', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', energy_flux_error2='1.14e-05', EG='0.83', time_epoch_completed='1630947365.17', return_code='0', job_id='999152', GAL2='1.22', EG2='0.82', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='5.94e-08', ts2='6.25', photon_index='2.79' WHERE bin_id='1129' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:56:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 999152: <4FGL_J1254.9+1138_daily_bin1129> in cluster <slac> Done

Job <4FGL_J1254.9+1138_daily_bin1129> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 09:40:58 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:40:59 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:59 2021
Terminated at Mon Sep  6 09:56:05 2021
Results reported at Mon Sep  6 09:56:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin1129 193.733 11.6495 531964801 532224001 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 :                                   591.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             274.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            907 sec.

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

