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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin1011
RA = 193.733, Dec = 11.6495
tmin = 501379201, tmax = 501638401
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='998962', job_status='RUN', time_executed='2021-09-06 09:44:42.608349', time_epoch_executed='1630946682.61' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='1011'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998962

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998962/ft1_4FGL_J1254.9+1138_daily_bin1011.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998962/ft2_4FGL_J1254.9+1138_daily_bin1011.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998962/ft1_4FGL_J1254.9+1138_daily_bin1011.fits outfile=/scratch/kocevski/998962/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1011.fits ra=193.733 dec=11.6495 rad=12.0 tmin=501379201.0 tmax=501638401.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.60
user 3.32
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/998962/ft2_4FGL_J1254.9+1138_daily_bin1011.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/998962/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1011.fits evtable="EVENTS" outfile="/scratch/kocevski/998962/ft1_filtered_4FGL_J1254.9+1138_daily_bin1011.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/998962/ft1_filtered_4FGL_J1254.9+1138_daily_bin1011.fits" evtable="EVENTS" scfile=/scratch/kocevski/998962/ft2_4FGL_J1254.9+1138_daily_bin1011.fits sctable="SC_DATA" outfile=/scratch/kocevski/998962/ltcube_501379201_501638401_4FGL_J1254.9+1138_daily_bin1011.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/998962/ft2_4FGL_J1254.9+1138_daily_bin1011.fits
.....................!
real 12.34
user 11.93
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998962/ft1_filtered_4FGL_J1254.9+1138_daily_bin1011.fits evtable="EVENTS" scfile=/scratch/kocevski/998962/ft2_4FGL_J1254.9+1138_daily_bin1011.fits sctable="SC_DATA" expcube=/scratch/kocevski/998962/ltcube_501379201_501638401_4FGL_J1254.9+1138_daily_bin1011.fits outfile=/scratch/kocevski/998962/expmap_501379201_501638401_4FGL_J1254.9+1138_daily_bin1011.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/998962/ltcube_501379201_501638401_4FGL_J1254.9+1138_daily_bin1011.fits
.....................!
real 190.31
user 185.14
sys 4.56

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/998962/ft1_filtered_4FGL_J1254.9+1138_daily_bin1011.fits scfile=/scratch/kocevski/998962/ft2_4FGL_J1254.9+1138_daily_bin1011.fits outfile=/scratch/kocevski/998962/cmap_501379201_501638401_4FGL_J1254.9+1138_daily_bin1011.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.88
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998962/ft1_filtered_4FGL_J1254.9+1138_daily_bin1011.fits scfile=/scratch/kocevski/998962/ft2_4FGL_J1254.9+1138_daily_bin1011.fits outfile=/scratch/kocevski/998962/cmap_HighResolution_501379201_501638401_4FGL_J1254.9+1138_daily_bin1011.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.86
user 0.41
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8359       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11321E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.8636       1.0000         .10000E-03   10000.    
     4 'Prefactor '    40.473       1.0000         .10000E-03   10000.    
     5 'norm      '    .10208E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.4632       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.600       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.1537       1.0000         .10000E-03   10000.    
    10 'norm      '    4.3102       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5317       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.890       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.646       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1068       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .78874       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=   6035.558     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     2059 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8357        3.6508       -.91028E-07   -.11866E-03
   2  Prefactor     .10000E-03    48.064        .12759E-04** at limit **
   3  norm          5.8605        4.4831       -.89098E-07   -.66393E-03
   4  Prefactor     40.466        32.838       -.42805E-05    .10259E-03
   5  norm          .10000E-03    48.166        .12782E-04** at limit **
   6  Prefactor     .10000E-03    67.090       -.13506E-04** at limit **
   7  norm          2.4631        .80385       -.60010E-07   -.26077E-02
   8  Prefactor     14.600        11.370       -.55171E-06   -.65625E-03
   9  Prefactor     9.1534        23.620       -.74947E-07   -.60618E-05
  10  norm          4.3100        1.8655       -.17614E-07   -.12373E-03
  11  Prefactor     .10000E-03    12.356       -.20565E-06** at limit **
  12  Prefactor     .10000E-03    39.386       -.14828E-04** at limit **
  13  Prefactor     1.5331        7.6777       -.36973E-05   -.57429E-03
  14  Prefactor     15.889        12.236       -.80935E-06   -.68496E-03
  15  Prefactor     .10000E-03    7.7292        .11569E-07** at limit **
  16  Prefactor     11.645        11.700       -.32464E-06   -.35287E-04
  17  Prefactor     .10000E-03    22.734        .12769E-05** at limit **
  18  Prefactor     .10000E-03    10.784        .88497E-07** at limit **
  19  Normalizat    1.1069        .19469        .86041E-06    .16996E-04
  20  Prefactor     .78867        .16018        .57568E-06    .40106E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.83566
  Prefactor  = 0.000100002
  norm       = 5.86053
  Prefactor  = 40.4661
  norm       = 0.000100002
  Prefactor  = 0.000100003
  norm       = 2.46311
  Prefactor  = 14.5995
  Prefactor  = 9.15337
  norm       = 4.31
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 1.53312
  Prefactor  = 15.8895
  Prefactor  = 0.0001
  Prefactor  = 11.6453
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.10691
  Prefactor  = 0.788672
 **********
 **   18 **HESSE 
 **********

 FCN=   6035.558     FROM HESSE     STATUS=OK           293 CALLS     2352 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8357        3.6594        .10425E-03   -1.5185    
   2  Prefactor     .10000E-03    47.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.8605        4.5030        .13048E-03   -1.5224    
   4  Prefactor     40.466        32.671        .63008E-04   -1.4435    
   5  norm          .10000E-03    47.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    66.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.4631        .80744        .18221E-03   -1.5394    
   8  Prefactor     14.600        11.471        .52412E-03   -1.4944    
   9  Prefactor     9.1534        23.590        .13247E-03   -1.5103    
  10  norm          4.3100        1.8636        .66183E-04   -1.5293    
  11  Prefactor     .10000E-03    12.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    38.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.5331        8.5860        .34482E-03   -1.5460    
  14  Prefactor     15.889        12.521        .50238E-03   -1.4911    
  15  Prefactor     .10000E-03    7.7823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.645        11.735        .11739E-03   -1.5025    
  17  Prefactor     .10000E-03    22.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1069        .23062        .25609E-03   -.89530    
  20  Prefactor     .78867        .18797        .25415E-03   -1.0015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66673e-09
Minuit parameter uncertainties:
  1  3.65957
  2  0.000629321
  3  4.50324
  4  32.6856
  5  0.000649374
  6  0.000843867
  7  0.807439
  8  11.4723
  9  23.6144
  10  1.86364
  11  2.26707e-06
  12  0.000718655
  13  7.25762
  14  12.5234
  15  8.71717e-07
  16  11.7377
  17  6.39289e-05
  18  3.70177e-06
  19  0.230833
  20  0.18812
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.589e+01  1.252e+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:  7.887e-01  1.881e-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.107e+00  2.308e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.56
Ra Dec: 193.733 11.649
Photon Index (Fixed Index): 2.79 +/- 0.00
Photon Flux (Fixed Index): 6.27e-08 +/- 4.93e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 1.11e-05

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

Saving results to:
/scratch/kocevski/998962/likelihoodResults_501379201_501638401_4FGL_J1254.9+1138_daily_bin1011.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) = 6035.06213605
delta logL = 0.495858827801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6035.04942482
delta logL = 0.508570058388

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9657       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0755       1.0000          .0000       10.000    
     3 'Normalizat'    1.0512       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82600       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.

 FCN=   6035.049     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      249 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9247        69.460        .41100E-02    .26937E-03
   2  Index         4.0806        4.0192        .17264        .10180E-03
   3  Normalizat    1.0511        .65410E-01    .59203E-01    .87174E-05
   4  Prefactor     .82610        .56229E-01    .44055E-01    .11597E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.92465
  Index      = 4.08057
  Normalizat = 1.0511
  Prefactor  = 0.826095
 **********
 **   18 **HESSE 
 **********

 FCN=   6035.049     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      282 TOTAL
                     EDM=   .35E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9247        114.24        .11295E-03   -1.5221    
   2  Index         4.0806        7.0354        .64767E-02   -.18494    
   3  Normalizat    1.0511        .20982        .26182E-03   -.91338    
   4  Prefactor     .82610        .18881        .24911E-03   -.98773    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.52181e-07
Minuit parameter uncertainties:
  1  52.1476
  2  7.11917
  3  0.209981
  4  0.188955
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998962': 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) = 6035.04942083
delta logL = 0.508574047263

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  5.925e+00  5.215e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  4.081e+00  7.119e+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:  8.261e-01  1.890e-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.051e+00  2.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.81
Ra Dec: 193.733 11.649
Photon Index (Free Index): 4.08 +/- 7.12
Photon Flux (Free Index): 9.73e-08 +/- 6.55e-08
Energy Flux (Free Index): 1.44e-05 +/- 2.13e-05

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/998962/cmap_HighResolution_501379201_501638401_4FGL_J1254.9+1138_daily_bin1011.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-02', comment='SUCCESS', photon_flux='6.27e-08', energy_flux2='1.44e-05', photon_flux_error='4.93e-08', dlogl='5.09e-01', energy_flux='1.41e-05', photon_flux2='9.73e-08', job_status='DONE', time_completed='2021-09-06 09:54:37.445326', photon_index_error2='7.12', photon_index2='4.08', ts='2.56', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.63e-07', energy_flux_error2='2.13e-05', EG='1.11', time_epoch_completed='1630947277.45', return_code='0', job_id='998962', GAL2='0.83', EG2='1.05', return_code2='102', energy_flux_error='1.11e-05', photon_flux_error2='6.55e-08', ts2='3.81', photon_index='2.79' WHERE bin_id='1011' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:54:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 998962: <4FGL_J1254.9+1138_daily_bin1011> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin1011 193.733 11.6495 501379201 501638401 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 :                                   588.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            835 sec.

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

