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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin1142
RA = 193.733, Dec = 11.6495
tmin = 535334401, tmax = 535593601
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='999173', job_status='RUN', time_executed='2021-09-06 09:45:00.936404', time_epoch_executed='1630946700.94' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='1142'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999173

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999173/ft1_4FGL_J1254.9+1138_daily_bin1142.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999173/ft2_4FGL_J1254.9+1138_daily_bin1142.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999173/ft1_4FGL_J1254.9+1138_daily_bin1142.fits outfile=/scratch/kocevski/999173/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1142.fits ra=193.733 dec=11.6495 rad=12.0 tmin=535334401.0 tmax=535593601.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 5.42
user 4.88
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/999173/ft1_filtered_4FGL_J1254.9+1138_daily_bin1142.fits" evtable="EVENTS" scfile=/scratch/kocevski/999173/ft2_4FGL_J1254.9+1138_daily_bin1142.fits sctable="SC_DATA" outfile=/scratch/kocevski/999173/ltcube_535334401_535593601_4FGL_J1254.9+1138_daily_bin1142.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/999173/ft2_4FGL_J1254.9+1138_daily_bin1142.fits
.....................!
real 11.70
user 11.36
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999173/ft1_filtered_4FGL_J1254.9+1138_daily_bin1142.fits evtable="EVENTS" scfile=/scratch/kocevski/999173/ft2_4FGL_J1254.9+1138_daily_bin1142.fits sctable="SC_DATA" expcube=/scratch/kocevski/999173/ltcube_535334401_535593601_4FGL_J1254.9+1138_daily_bin1142.fits outfile=/scratch/kocevski/999173/expmap_535334401_535593601_4FGL_J1254.9+1138_daily_bin1142.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/999173/ltcube_535334401_535593601_4FGL_J1254.9+1138_daily_bin1142.fits
.....................!
real 191.06
user 185.86
sys 4.42

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/999173/ft1_filtered_4FGL_J1254.9+1138_daily_bin1142.fits scfile=/scratch/kocevski/999173/ft2_4FGL_J1254.9+1138_daily_bin1142.fits outfile=/scratch/kocevski/999173/cmap_535334401_535593601_4FGL_J1254.9+1138_daily_bin1142.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=193.733 yref=11.6495 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/999173/ft1_filtered_4FGL_J1254.9+1138_daily_bin1142.fits scfile=/scratch/kocevski/999173/ft2_4FGL_J1254.9+1138_daily_bin1142.fits outfile=/scratch/kocevski/999173/cmap_HighResolution_535334401_535593601_4FGL_J1254.9+1138_daily_bin1142.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .28079E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    114.67       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20111E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .46218       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.353       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11185E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.3852       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4632       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12633E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10564E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4668       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .64567       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=   6119.698     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     1744 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    1.5967       -.60043E-06** at limit **
   2  Prefactor     .10000E-03    12.165        .27035E-05** at limit **
   3  norm          .10000E-03    2.5140       -.46266E-06** at limit **
   4  Prefactor     .10000E-03    19.487        .28381E-05** at limit **
   5  norm          114.68        58.457        .28416E-05    .12919E-03
   6  Prefactor     .10000E-03    110.07       -.19673E-05** at limit **
   7  norm          .46155        .60063       -.17571E-06   -.92334E-03
   8  Prefactor     15.365        11.907        .17760E-06    .13513E-03
   9  Prefactor     .10000E-03    25.740       -.10584E-04** at limit **
  10  norm          7.3823        2.2743       -.15276E-07    .36849E-03
  11  Prefactor     .10000E-03    10.019       -.63039E-06** at limit **
  12  Prefactor     .10000E-03    31.810        .34849E-05** at limit **
  13  Prefactor     .10000E-03    3.7313       -.84244E-08** at limit **
  14  Prefactor     5.4800        12.630       -.12411E-05   -.13277E-03
  15  Prefactor     .10000E-03    31.130        .29884E-05** at limit **
  16  Prefactor     .10000E-03    8.7675        .17100E-06** at limit **
  17  Prefactor     .10000E-03    19.421        .29352E-05** at limit **
  18  Prefactor     .10000E-03    17.630        .24800E-05** at limit **
  19  Normalizat    1.4664        .19822        .49714E-06    .16351E-03
  20  Prefactor     .64585        .15798       -.31415E-06    .11391E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100062
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 114.676
  Prefactor  = 0.0001
  norm       = 0.461555
  Prefactor  = 15.3646
  Prefactor  = 0.0001
  norm       = 7.38225
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.48004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.4664
  Prefactor  = 0.645855
 **********
 **   18 **HESSE 
 **********

 FCN=   6119.698     FROM HESSE     STATUS=OK           287 CALLS     2031 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    14.374        .18875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.7892        .21741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          114.68        56.292        .18785E-03   -1.3562    
   6  Prefactor     .10000E-03    110.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .46155        .55151        .62392E-03   -1.5572    
   8  Prefactor     15.365        11.912        .10222E-03   -1.4924    
   9  Prefactor     .10000E-03    25.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.3823        2.2556        .61125E-04   -1.5164    
  11  Prefactor     .10000E-03    10.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    31.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.7539        .14756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.4800        12.779        .17191E-03   -1.5240    
  15  Prefactor     .10000E-03    31.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.8323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4664        .23429        .23856E-03   -.78727    
  20  Prefactor     .64585        .18678        .28140E-03   -1.0569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45024e-09
Minuit parameter uncertainties:
  1  0.00188764
  2  2.52165e-06
  3  0.000125185
  4  3.57293e-06
  5  56.3185
  6  1.49741e-05
  7  0.551514
  8  11.9138
  9  2.07668e-05
  10  2.25559
  11  2.92548e-07
  12  3.29688e-05
  13  7.19242e-07
  14  12.7852
  15  5.85075e-05
  16  2.75671e-06
  17  3.07698e-06
  18  1.24107e-06
  19  0.234464
  20  0.186958
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  5.480e+00  1.279e+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:  6.459e-01  1.870e-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.466e+00  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/999173/likelihoodResults_535334401_535593601_4FGL_J1254.9+1138_daily_bin1142.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) = 6119.57276384
delta logL = 0.12504644925

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6119.56350288
delta logL = 0.134307410292

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4311       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5186       1.0000          .0000       10.000    
     3 'Normalizat'    1.4476       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65549       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6119.564     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      265 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4263        12.326        .95651E-03   -.35324E-04
   2  Index         3.5191        1.8987        .10961E-01    .19042E-03
   3  Normalizat    1.4475        .23404        .23984E-03    .66361E-06
   4  Prefactor     .65551        .18771        .27948E-03   -.17898E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.42632
  Index      = 3.51911
  Normalizat = 1.44754
  Prefactor  = 0.655509
 **********
 **   18 **HESSE 
 **********

 FCN=   6119.564     FROM HESSE     STATUS=OK            27 CALLS      292 TOTAL
                     EDM=   .43E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4263        10.014        .38261E-04   -1.5287    
   2  Index         3.5191        1.5573        .21921E-02   -.30069    
   3  Normalizat    1.4475        .23437        .95937E-05   -.79263    
   4  Prefactor     .65551        .18793        .11179E-04   -1.0530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.31586e-12
Minuit parameter uncertainties:
  1  10.0182
  2  1.58634
  3  0.234542
  4  0.188114
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999173': 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) = 6119.56350275
delta logL = 0.134307546758

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  4.426e+00  1.002e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  3.519e+00  1.586e+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:  6.555e-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.448e+00  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.22
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/999173/cmap_HighResolution_535334401_535593601_4FGL_J1254.9+1138_daily_bin1142.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', job_status='DONE', photon_flux_upper_limit='1.31e-07', time_completed='2021-09-06 09:56:03.326978', job_id='999173', GAL2='0.66', fit_tolerance='1e-08', EG2='1.45', EG='1.47', time_epoch_completed='1630947363.33', return_code2='0', ts='0.22', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='1.34e-01', ts2='0.53', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1142' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:56:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 999173: <4FGL_J1254.9+1138_daily_bin1142> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin1142 193.733 11.6495 535334401 535593601 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 :                                   568.08 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             256.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            904 sec.

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

