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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1233
RA = 193.637, Dec = 22.1808
tmin = 558921601, tmax = 559180801
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='991518', job_status='RUN', time_executed='2021-09-06 09:17:08.668378', time_epoch_executed='1630945028.67' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1233'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/991518

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/991518/ft1_4FGL_J1254.5+2210_daily_bin1233.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/991518/ft2_4FGL_J1254.5+2210_daily_bin1233.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/991518/ft1_4FGL_J1254.5+2210_daily_bin1233.fits outfile=/scratch/kocevski/991518/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1233.fits ra=193.637 dec=22.1808 rad=12.0 tmin=558921601.0 tmax=559180801.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.54
user 3.30
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/991518/ft2_4FGL_J1254.5+2210_daily_bin1233.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/991518/ft2_4FGL_J1254.5+2210_daily_bin1233.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/991518/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1233.fits evtable="EVENTS" outfile="/scratch/kocevski/991518/ft1_filtered_4FGL_J1254.5+2210_daily_bin1233.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.56
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/991518/ft1_filtered_4FGL_J1254.5+2210_daily_bin1233.fits" evtable="EVENTS" scfile=/scratch/kocevski/991518/ft2_4FGL_J1254.5+2210_daily_bin1233.fits sctable="SC_DATA" outfile=/scratch/kocevski/991518/ltcube_558921601_559180801_4FGL_J1254.5+2210_daily_bin1233.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/991518/ft2_4FGL_J1254.5+2210_daily_bin1233.fits
.....................!
real 11.80
user 11.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/991518/ft1_filtered_4FGL_J1254.5+2210_daily_bin1233.fits evtable="EVENTS" scfile=/scratch/kocevski/991518/ft2_4FGL_J1254.5+2210_daily_bin1233.fits sctable="SC_DATA" expcube=/scratch/kocevski/991518/ltcube_558921601_559180801_4FGL_J1254.5+2210_daily_bin1233.fits outfile=/scratch/kocevski/991518/expmap_558921601_559180801_4FGL_J1254.5+2210_daily_bin1233.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/991518/ltcube_558921601_559180801_4FGL_J1254.5+2210_daily_bin1233.fits
.....................!
real 192.10
user 186.00
sys 5.38

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 178 point sources and 0 extended sources

Setting source of interest to:
4FGL J1254.5+2210 @ 193.637 22.1808

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/991518/ft1_filtered_4FGL_J1254.5+2210_daily_bin1233.fits scfile=/scratch/kocevski/991518/ft2_4FGL_J1254.5+2210_daily_bin1233.fits outfile=/scratch/kocevski/991518/cmap_558921601_559180801_4FGL_J1254.5+2210_daily_bin1233.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.637 yref=22.1808 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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/991518/ft1_filtered_4FGL_J1254.5+2210_daily_bin1233.fits scfile=/scratch/kocevski/991518/ft2_4FGL_J1254.5+2210_daily_bin1233.fits outfile=/scratch/kocevski/991518/cmap_HighResolution_558921601_559180801_4FGL_J1254.5+2210_daily_bin1233.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.637 yref=22.1808 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/991518/ft1_filtered_4FGL_J1254.5+2210_daily_bin1233.fits evtable="EVENTS" scfile=/scratch/kocevski/991518/ft2_4FGL_J1254.5+2210_daily_bin1233.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/991518/Model_4FGL_J1254.5+2210_daily_bin1233.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/991518/ft1_filtered_4FGL_J1254.5+2210_daily_bin1233.fits.....................!
real 54.39
user 52.81
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/991518/ft1_filtered_4FGL_J1254.5+2210_daily_bin1233.fits', '/scratch/kocevski/991518/ft2_4FGL_J1254.5+2210_daily_bin1233.fits', expMap='/scratch/kocevski/991518/expmap_558921601_559180801_4FGL_J1254.5+2210_daily_bin1233.fits', expCube='/scratch/kocevski/991518/ltcube_558921601_559180801_4FGL_J1254.5+2210_daily_bin1233.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/991518/Model_4FGL_J1254.5+2210_daily_bin1233.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1254.5+2210'

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.787e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/991518/ft1_filtered_4FGL_J1254.5+2210_daily_bin1233.fits
Spacecraft file(s): /scratch/kocevski/991518/ft2_4FGL_J1254.5+2210_daily_bin1233.fits
Exposure map: /scratch/kocevski/991518/expmap_558921601_559180801_4FGL_J1254.5+2210_daily_bin1233.fits
Exposure cube: /scratch/kocevski/991518/ltcube_558921601_559180801_4FGL_J1254.5+2210_daily_bin1233.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/991518/Model_4FGL_J1254.5+2210_daily_bin1233.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) = 5840.23930447

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.3181       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0572       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5278       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .22919E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .32248       1.0000         .10000E-03   10000.    
     8 'norm      '    19.841       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.482       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .37676E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    57.718       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10477E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4477       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .62562E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.4873       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.1937       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.0859       1.0000         .10000E-03   10000.    
    20 'norm      '    1.5560       1.0000         .10000E-03   10000.    
    21 'norm      '    4.1017       1.0000         .10000E-03   10000.    
    22 'norm      '    18.594       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    49.041       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.4407       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3875       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .80755       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5840.234     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     3720 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2098       -.16925E-06** at limit **
   2  Prefactor     .10000E-03    2.4281       -.75510E-07** at limit **
   3  norm          7.3180        3.3247       -.37736E-06   -.40736E-03
   4  Prefactor     3.0569        2.2133        .65882E-07   -.11334E-03
   5  Prefactor     4.5280        2.7517       -.20801E-06   -.17175E-03
   6  Prefactor     .10000E-03    12.813       -.11739E-05** at limit **
   7  norm          .32256        .23530       -.24516E-07    .23076E-03
   8  norm          19.848        6.4771        .83987E-06    .64569E-03
   9  Prefactor     10.477        19.231       -.68368E-06   -.19952E-04
  10  Prefactor     .10001E-03    30.117       -.53646E-05** at limit **
  11  Prefactor     .10000E-03    12.914        .16007E-05** at limit **
  12  Prefactor     57.718        58.502        .49931E-06    .16587E-04
  13  Prefactor     .10000E-03    116.20       -.88378E-06** at limit **
  14  Prefactor     1.4478        6.7599       -.23520E-05    .19885E-03
  15  Prefactor     .10050E-03    74.006       -.85578E-05** at limit **
  16  norm          5.4877        4.0181        .23134E-06    .23415E-03
  17  Prefactor     8.1595        24.481       -.11679E-05    .10598E-04
  18  Prefactor     .10000E-03    41.105       -.30977E-05** at limit **
  19  norm          3.0861        3.1163        .97277E-07    .75918E-04
  20  norm          1.5557        3.8770       -.34717E-06    .16453E-03
  21  norm          4.1024        5.9881        .64184E-08   -.50345E-04
  22  norm          18.595        19.011        .54102E-06    .40481E-04
  23  norm          .10000E-03    2.6806       -.33219E-07** at limit **
  24  Prefactor     49.037        53.075        .22198E-05    .53857E-04
  25  norm          .10000E-03    4.8569       -.10022E-06** at limit **
  26  Prefactor     5.4435        12.709       -.10021E-05   -.14964E-04
  27  Prefactor     .10000E-03    15.602       -.92087E-06** at limit **
  28  Normalizat    1.3872        .20815       -.13889E-06    .81458E-04
  29  Prefactor     .80777        .21481        .16754E-06    .23616E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.31802
  Prefactor  = 3.05693
  Prefactor  = 4.52799
  Prefactor  = 0.000100001
  norm       = 0.322564
  norm       = 19.8477
  Prefactor  = 10.4769
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 57.7178
  Prefactor  = 0.0001
  Prefactor  = 1.44784
  Prefactor  = 0.000100498
  norm       = 5.4877
  Prefactor  = 8.15947
  Prefactor  = 0.0001
  norm       = 3.08613
  norm       = 1.55575
  norm       = 4.10244
  norm       = 18.5948
  norm       = 0.0001
  Prefactor  = 49.0372
  norm       = 0.0001
  Prefactor  = 5.44352
  Prefactor  = 0.0001
  Normalizat = 1.38724
  Prefactor  = 0.807769
 **********
 **   18 **HESSE 
 **********

 FCN=   5840.234     FROM HESSE     STATUS=OK           555 CALLS     4275 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3107        .26724E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.4728        .11625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.3180        3.3398        .86982E-04   -1.5167    
   4  Prefactor     3.0569        2.2110        .89476E-04   -1.5358    
   5  Prefactor     4.5280        2.7152        .91089E-04   -1.5282    
   6  Prefactor     .10000E-03    13.485        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .32256        .23385        .30195E-04   -1.5594    
   8  norm          19.848        6.6017        .89917E-04   -1.4817    
   9  Prefactor     10.477        19.303        .12376E-03   -1.5060    
  10  Prefactor     .10001E-03    38.585        .41614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     57.718        58.580        .52805E-04   -1.4187    
  13  Prefactor     .10000E-03    116.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.4478        7.2831        .35820E-03   -1.5467    
  15  Prefactor     .10050E-03    202.30        .74078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.4877        4.0191        .12497E-03   -1.5239    
  17  Prefactor     8.1595        23.510        .14006E-03   -1.5137    
  18  Prefactor     .10000E-03    41.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.0861        3.1131        .13059E-03   -1.5357    
  20  norm          1.5557        4.2484        .15977E-03   -1.5459    
  21  norm          4.1024        6.6177        .15370E-03   -1.5303    
  22  norm          18.595        19.012        .92884E-04   -1.4845    
  23  norm          .10000E-03    2.6870        .12218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     49.037        53.254        .57263E-04   -1.4306    
  25  norm          .10000E-03    4.8815        .16446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     5.4435        12.699        .17227E-03   -1.5241    
  27  Prefactor     .10000E-03    15.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3872        .24928        .24979E-03   -.80998    
  29  Prefactor     .80777        .25539        .32617E-03   -.99443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02028e-09
Minuit parameter uncertainties:
  1  1.30119e-06
  2  1.65028e-06
  3  3.33984
  4  2.21104
  5  2.71529
  6  0.000204008
  7  0.233847
  8  6.60191
  9  19.3144
  10  0.0013534
  11  8.56545e-05
  12  58.6383
  13  3.39636e-05
  14  6.49554
  15  0.0201493
  16  4.01925
  17  23.5369
  18  0.000287255
  19  3.11329
  20  4.24921
  21  6.61891
  22  19.0181
  23  2.5092e-08
  24  53.3053
  25  1.26513e-07
  26  12.7054
  27  2.38381e-05
  28  0.249494
  29  0.255768
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.448e+00  6.496e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  8.078e-01  2.558e-01  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  1.387e+00  2.495e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 193.637 22.181
Photon Flux Upper Limit: 7.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/991518/likelihoodResults_558921601_559180801_4FGL_J1254.5+2210_daily_bin1233.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) = 5840.22574714
delta logL = 0.00857222188188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5840.22536751
delta logL = 0.00895185259924

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3139       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2881       1.0000          .0000       10.000    
     3 'Normalizat'    1.3860       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80785       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+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=   5840.225     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      255 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3092        7.6390        .32613E-03   -.17381E-03
   2  Index         2.2896        1.6167        .13479E-01   -.35383E-04
   3  Normalizat    1.3859        .23910        .24989E-03   -.55914E-04
   4  Prefactor     .80787        .24734        .32614E-03   -.10287E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.30917
  Index      = 2.28959
  Normalizat = 1.38594
  Prefactor  = 0.807874
 **********
 **   18 **HESSE 
 **********

 FCN=   5840.225     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3092        6.2572        .13045E-04   -1.5479    
   2  Index         2.2896        1.4720        .53917E-03   -.57291    
   3  Normalizat    1.3859        .23919        .49977E-04   -.81036    
   4  Prefactor     .80787        .24733        .13046E-04   -.99439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19679e-10
Minuit parameter uncertainties:
  1  5.72499
  2  1.50393
  3  0.239384
  4  0.247672
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/991518': 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) = 5840.22536691
delta logL = 0.0089524545474

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.309e+00  5.725e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.290e+00  1.504e+00  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  8.079e-01  2.477e-01  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  1.386e+00  2.394e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 193.637 22.181

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/991518/cmap_HighResolution_558921601_559180801_4FGL_J1254.5+2210_daily_bin1233.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.79e-03', job_status='DONE', photon_flux_upper_limit='7.66e-08', time_completed='2021-09-06 09:31:07.630573', job_id='991518', GAL2='0.81', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1630945867.63', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='8.95e-03', ts2='0.07', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1233' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:31:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 991518: <4FGL_J1254.5+2210_daily_bin1233> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin1233> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 09:15:56 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:15:58 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:15:58 2021
Terminated at Mon Sep  6 09:31:08 2021
Results reported at Mon Sep  6 09:31:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1233 193.637 22.1808 558921601 559180801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1254.5+2210 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   771.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            912 sec.

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

