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


Performing analysis on: 4FGL_J1254.9+1138_daily_bin1184
RA = 193.733, Dec = 11.6495
tmin = 546220801, tmax = 546480001
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='999250', job_status='RUN', time_executed='2021-09-06 09:42:15.613435', time_epoch_executed='1630946535.61' WHERE source_name='4FGL J1254.9+1138' and cadence='daily' and bin_id='1184'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999250

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999250/ft1_4FGL_J1254.9+1138_daily_bin1184.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999250/ft2_4FGL_J1254.9+1138_daily_bin1184.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999250/ft1_4FGL_J1254.9+1138_daily_bin1184.fits outfile=/scratch/kocevski/999250/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1184.fits ra=193.733 dec=11.6495 rad=12.0 tmin=546220801.0 tmax=546480001.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.96
user 3.68
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/999250/ft2_4FGL_J1254.9+1138_daily_bin1184.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/999250/ft1_filteredMKT_4FGL_J1254.9+1138_daily_bin1184.fits evtable="EVENTS" outfile="/scratch/kocevski/999250/ft1_filtered_4FGL_J1254.9+1138_daily_bin1184.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.69
user 0.34
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/999250/ft1_filtered_4FGL_J1254.9+1138_daily_bin1184.fits" evtable="EVENTS" scfile=/scratch/kocevski/999250/ft2_4FGL_J1254.9+1138_daily_bin1184.fits sctable="SC_DATA" outfile=/scratch/kocevski/999250/ltcube_546220801_546480001_4FGL_J1254.9+1138_daily_bin1184.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/999250/ft2_4FGL_J1254.9+1138_daily_bin1184.fits
.....................!
real 12.92
user 12.36
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999250/ft1_filtered_4FGL_J1254.9+1138_daily_bin1184.fits evtable="EVENTS" scfile=/scratch/kocevski/999250/ft2_4FGL_J1254.9+1138_daily_bin1184.fits sctable="SC_DATA" expcube=/scratch/kocevski/999250/ltcube_546220801_546480001_4FGL_J1254.9+1138_daily_bin1184.fits outfile=/scratch/kocevski/999250/expmap_546220801_546480001_4FGL_J1254.9+1138_daily_bin1184.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/999250/ltcube_546220801_546480001_4FGL_J1254.9+1138_daily_bin1184.fits
.....................!
real 192.11
user 185.02
sys 6.08

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/999250/ft1_filtered_4FGL_J1254.9+1138_daily_bin1184.fits scfile=/scratch/kocevski/999250/ft2_4FGL_J1254.9+1138_daily_bin1184.fits outfile=/scratch/kocevski/999250/cmap_546220801_546480001_4FGL_J1254.9+1138_daily_bin1184.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.55
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/999250/ft1_filtered_4FGL_J1254.9+1138_daily_bin1184.fits scfile=/scratch/kocevski/999250/ft2_4FGL_J1254.9+1138_daily_bin1184.fits outfile=/scratch/kocevski/999250/cmap_HighResolution_546220801_546480001_4FGL_J1254.9+1138_daily_bin1184.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 1.01
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7901       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .43967E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10312E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    79.039       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.5328       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11448E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.292       1.0000         .10000E-03   10000.    
    10 'norm      '    3.1483       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .21443E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0129       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .32209E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    54.022       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.5904       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .48995       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=   6118.787     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     2091 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7882        3.2668       -.47746E-06   -.66859E-03
   2  Prefactor     .10216E-03    18.604        .48704E-05** at limit **
   3  norm          .10000E-03    1.7119       -.10155E-06** at limit **
   4  Prefactor     .10000E-03    18.954        .42784E-06** at limit **
   5  norm          79.042        36.996        .57556E-06   -.54183E-04
   6  Prefactor     .10000E-03    58.077       -.37907E-06** at limit **
   7  norm          1.5327        .58607       -.57848E-07   -.90560E-03
   8  Prefactor     .10000E-03    16.821       -.16150E-06** at limit **
   9  Prefactor     31.252        28.233       -.28599E-05   -.45966E-04
  10  norm          3.1477        1.5646       -.95809E-07   -.38332E-03
  11  Prefactor     .10000E-03    12.363        .64498E-07** at limit **
  12  Prefactor     .10011E-03    23.014       -.11730E-05** at limit **
  13  Prefactor     4.0126        6.7355        .28749E-06   -.69129E-04
  14  Prefactor     .10000E-03    4.0663        .17986E-07** at limit **
  15  Prefactor     .10021E-03    11.312       -.20040E-05** at limit **
  16  Prefactor     .10000E-03    4.4721        .12695E-07** at limit **
  17  Prefactor     .10000E-03    11.304       -.14045E-07** at limit **
  18  Prefactor     54.005        61.530       -.17210E-04   -.16530E-03
  19  Normalizat    1.5902        .21115        .75794E-06    .46752E-04
  20  Prefactor     .49033        .16373        .89255E-06    .51780E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.78817
  Prefactor  = 0.000102162
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 79.0418
  Prefactor  = 0.0001
  norm       = 1.53272
  Prefactor  = 0.0001
  Prefactor  = 31.2521
  norm       = 3.14775
  Prefactor  = 0.0001
  Prefactor  = 0.000100109
  Prefactor  = 4.01257
  Prefactor  = 0.0001
  Prefactor  = 0.000100208
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.005
  Normalizat = 1.59018
  Prefactor  = 0.490327
 **********
 **   18 **HESSE 
 **********

 FCN=   6118.787     FROM HESSE     STATUS=OK           293 CALLS     2384 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7882        3.2744        .18566E-03   -1.5441    
   2  Prefactor     .10216E-03    115.08        .62915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.7456        .19912E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          79.042        37.064        .45172E-04   -1.3928    
   6  Prefactor     .10000E-03    58.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.5327        .58398        .33832E-04   -1.5460    
   8  Prefactor     .10000E-03    17.173        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     31.252        28.178        .71628E-04   -1.4589    
  10  norm          3.1477        1.5598        .63992E-04   -1.5353    
  11  Prefactor     .10000E-03    12.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10011E-03    180.93        .72510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.0126        6.7197        .20132E-03   -1.5307    
  14  Prefactor     .10000E-03    4.0713        .15401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10021E-03    71.748        .49396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.4850        .16154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     54.005        61.631        .54572E-04   -1.4237    
  19  Normalizat    1.5902        .24635        .23545E-03   -.75275    
  20  Prefactor     .49033        .19067        .31679E-03   -1.1242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15176e-08
Minuit parameter uncertainties:
  1  3.27476
  2  0.0316099
  3  1.32047e-05
  4  1.31421e-05
  5  37.0753
  6  4.6949e-05
  7  0.583981
  8  0.000101358
  9  28.1897
  10  1.55978
  11  4.95563e-06
  12  0.00889876
  13  6.72094
  14  3.54374e-06
  15  0.00773931
  16  1.84059e-06
  17  4.05296e-06
  18  61.7036
  19  0.246536
  20  0.190922
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  3.544e-06  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:  4.903e-01  1.909e-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.590e+00  2.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 193.733 11.649
Photon Flux Upper Limit: 7.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/999250/likelihoodResults_546220801_546480001_4FGL_J1254.9+1138_daily_bin1184.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): 102
logL (Free Index) = 6118.78814353
delta logL = -0.00116141400213

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6118.78698201
delta logL = 1.10600012704e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7725       1.0000          .0000       10.000    
     3 'Normalizat'    1.5902       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49034       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=   6118.787     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      263 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    108.98        .15628E-01** at limit **
   2  Index         1.8776        5.2807        .50000       -.17897E-06
   3  Normalizat    1.5902        .20563E-01    .23545E-03   -.19757E-03
   4  Prefactor     .49033        .16356E-01    .31679E-03   -.13612E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 1.87764
  Normalizat = 1.59018
  Prefactor  = 0.490327
 **********
 **   18 **HESSE 
 **********

 FCN=   6118.787     FROM HESSE     STATUS=OK            29 CALLS      292 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.089        .39666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8776        5.2287        .50000       -.67446    
   3  Normalizat    1.5902        .23821        .47090E-04   -.75275    
   4  Prefactor     .49033        .18934        .12672E-04   -1.1242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66993e-09
Minuit parameter uncertainties:
  1  0.000498027
  2  123.169
  3  0.238377
  4  0.189582
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999250': 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) = 6118.78697706
delta logL = 5.05632488057e-06

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  4.980e-04  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  1.878e+00  1.232e+02  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:  4.903e-01  1.896e-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.590e+00  2.384e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/999250/cmap_HighResolution_546220801_546480001_4FGL_J1254.9+1138_daily_bin1184.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.09e-03', job_status='DONE', photon_flux_upper_limit='7.70e-08', time_completed='2021-09-06 09:53:23.280579', job_id='999250', GAL2='0.49', fit_tolerance='1e-08', EG2='1.59', EG='1.59', time_epoch_completed='1630947203.28', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.49', dlogl='5.06e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1184' AND source_name='4FGL J1254.9+1138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:53:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 999250: <4FGL_J1254.9+1138_daily_bin1184> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_daily_bin1184 193.733 11.6495 546220801 546480001 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 :                                   590.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             317.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            733 sec.

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

