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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin476
RA = 193.637, Dec = 22.1808
tmin = 362707201, tmax = 362966401
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='986935', job_status='RUN', time_executed='2021-09-06 09:01:26.085712', time_epoch_executed='1630944086.09' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='476'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/986935

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/986935/ft1_4FGL_J1254.5+2210_daily_bin476.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/986935/ft2_4FGL_J1254.5+2210_daily_bin476.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/986935/ft1_4FGL_J1254.5+2210_daily_bin476.fits outfile=/scratch/kocevski/986935/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin476.fits ra=193.637 dec=22.1808 rad=12.0 tmin=362707201.0 tmax=362966401.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.89
user 5.62
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/986935/ft2_4FGL_J1254.5+2210_daily_bin476.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/986935/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin476.fits evtable="EVENTS" outfile="/scratch/kocevski/986935/ft1_filtered_4FGL_J1254.5+2210_daily_bin476.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.52
user 0.32
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/986935/ft1_filtered_4FGL_J1254.5+2210_daily_bin476.fits evtable="EVENTS" scfile=/scratch/kocevski/986935/ft2_4FGL_J1254.5+2210_daily_bin476.fits sctable="SC_DATA" expcube=/scratch/kocevski/986935/ltcube_362707201_362966401_4FGL_J1254.5+2210_daily_bin476.fits outfile=/scratch/kocevski/986935/expmap_362707201_362966401_4FGL_J1254.5+2210_daily_bin476.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/986935/ltcube_362707201_362966401_4FGL_J1254.5+2210_daily_bin476.fits
.....................!
real 191.69
user 184.77
sys 5.16

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/986935/ft1_filtered_4FGL_J1254.5+2210_daily_bin476.fits scfile=/scratch/kocevski/986935/ft2_4FGL_J1254.5+2210_daily_bin476.fits outfile=/scratch/kocevski/986935/cmap_362707201_362966401_4FGL_J1254.5+2210_daily_bin476.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/986935/ft1_filtered_4FGL_J1254.5+2210_daily_bin476.fits scfile=/scratch/kocevski/986935/ft2_4FGL_J1254.5+2210_daily_bin476.fits outfile=/scratch/kocevski/986935/cmap_HighResolution_362707201_362966401_4FGL_J1254.5+2210_daily_bin476.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.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/986935/ft1_filtered_4FGL_J1254.5+2210_daily_bin476.fits', '/scratch/kocevski/986935/ft2_4FGL_J1254.5+2210_daily_bin476.fits', expMap='/scratch/kocevski/986935/expmap_362707201_362966401_4FGL_J1254.5+2210_daily_bin476.fits', expCube='/scratch/kocevski/986935/ltcube_362707201_362966401_4FGL_J1254.5+2210_daily_bin476.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/986935/Model_4FGL_J1254.5+2210_daily_bin476.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/986935/ft1_filtered_4FGL_J1254.5+2210_daily_bin476.fits
Spacecraft file(s): /scratch/kocevski/986935/ft2_4FGL_J1254.5+2210_daily_bin476.fits
Exposure map: /scratch/kocevski/986935/expmap_362707201_362966401_4FGL_J1254.5+2210_daily_bin476.fits
Exposure cube: /scratch/kocevski/986935/ltcube_362707201_362966401_4FGL_J1254.5+2210_daily_bin476.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/986935/Model_4FGL_J1254.5+2210_daily_bin476.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) = 6462.00212052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4625       1.0000         .10000E-03   10000.    
     3 'norm      '    5.6215       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1912       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0785       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8916       1.0000         .10000E-03   10000.    
     7 'norm      '    2.1215       1.0000         .10000E-03   10000.    
     8 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.750       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.857       1.0000         .10000E-03   10000.    
    16 'norm      '    .12360E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.0658       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.6258       1.0000         .10000E-03   10000.    
    20 'norm      '    1.3854       1.0000         .10000E-03   10000.    
    21 'norm      '    6.3208       1.0000         .10000E-03   10000.    
    22 'norm      '    10.508       1.0000         .10000E-03   10000.    
    23 'norm      '    17.140       1.0000         .10000E-03   10000.    
    24 'Prefactor '    49.899       1.0000         .10000E-03   10000.    
    25 'norm      '    .14739E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1351       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0440       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=   6461.648     FROM MIGRAD    STATUS=CONVERGED   1310 CALLS     4341 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9671        .10909E-02** at limit **
   2  Prefactor     2.4614        3.7232        .18249E-03   -.52266E-04
   3  norm          5.6215        2.8617        .93722E-04    .64654E-04
   4  Prefactor     4.1912        2.1530        .81642E-04    .33142E-04
   5  Prefactor     2.0784        1.8770        .10139E-03    .56066E-06
   6  Prefactor     1.8921        4.0251        .22993E-03   -.73324E-04
   7  norm          2.1215        .44202        .22759E-04    .34467E-04
   8  norm          .10000E-03    2.0904        .11319E-02** at limit **
   9  Prefactor     .10000E-03    4.3172        .16298E-02** at limit **
  10  Prefactor     .10000E-03    3.2007        .14037E-02** at limit **
  11  Prefactor     23.754        23.792        .82195E-04   -.16598E-05
  12  Prefactor     .10001E-03    83.515        .18142E-02** at limit **
  13  Prefactor     .10000E-03    26.898        .18142E-02** at limit **
  14  Prefactor     .10000E-03    3.7201        .15113E-02** at limit **
  15  Prefactor     16.856        13.836        .97551E-04    .57105E-05
  16  norm          .10000E-03    5.1727        .24978E-02** at limit **
  17  Prefactor     9.0653        12.380        .13311E-03   -.11359E-04
  18  Prefactor     .10000E-03    14.742        .18142E-02** at limit **
  19  norm          4.6258        3.3577        .12140E-03   -.11069E-03
  20  norm          1.3873        10.203        .22720E-03   -.12279E-03
  21  norm          6.3175        13.041        .15966E-03   -.24011E-03
  22  norm          10.508        15.636        .12360E-03   -.38355E-04
  23  norm          17.142        9.3609        .96742E-04   -.61131E-03
  24  Prefactor     49.900        34.084        .56770E-04   -.12776E-04
  25  norm          .10000E-03    114.47        .41582E-02** at limit **
  26  Prefactor     .10000E-03    17.071        .18142E-02** at limit **
  27  Prefactor     .10000E-03    11.818        .18142E-02** at limit **
  28  Normalizat    1.1352        .24841        .27916E-03   -.23839E-03
  29  Prefactor     1.0440        .24028        .28967E-03   -.96470E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.46139
  norm       = 5.62146
  Prefactor  = 4.19118
  Prefactor  = 2.07835
  Prefactor  = 1.89207
  norm       = 2.12152
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.7538
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.8565
  norm       = 0.000100001
  Prefactor  = 9.06534
  Prefactor  = 0.000100001
  norm       = 4.62583
  norm       = 1.38725
  norm       = 6.31747
  norm       = 10.508
  norm       = 17.1419
  Prefactor  = 49.9002
  norm       = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.13516
  Prefactor  = 1.04397
 **********
 **   18 **HESSE 
 **********

 FCN=   6461.648     FROM HESSE     STATUS=OK           523 CALLS     4864 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9675        .21818E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.4614        3.7228        .72998E-05   -1.5394    
   3  norm          5.6215        2.8617        .37489E-05   -1.5234    
   4  Prefactor     4.1912        2.1530        .32657E-05   -1.5298    
   5  Prefactor     2.0784        1.8769        .40554E-05   -1.5420    
   6  Prefactor     1.8921        4.0249        .91974E-05   -1.5433    
   7  norm          2.1215        .44201        .91037E-06   -1.5417    
   8  norm          .10000E-03    2.0905        .22639E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.3173        .32596E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.2008        .28074E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.754        23.789        .32878E-05   -1.4733    
  12  Prefactor     .10001E-03    83.527        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    26.898        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.7204        .30226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.856        13.834        .39020E-05   -1.4887    
  16  norm          .10000E-03    5.1944        .49957E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.0653        12.380        .53245E-05   -1.5106    
  18  Prefactor     .10000E-03    14.743        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.6258        3.3576        .48560E-05   -1.5278    
  20  norm          1.3873        10.249        .90879E-05   -1.5472    
  21  norm          6.3175        13.071        .63863E-05   -1.5205    
  22  norm          10.508        15.635        .49440E-05   -1.5060    
  23  norm          17.142        9.3173        .38697E-05   -1.4880    
  24  Prefactor     49.900        34.084        .11354E-04   -1.4294    
  25  norm          .10000E-03    118.38        .16633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    17.075        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    11.819        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1352        .24863        .55832E-04   -.88631    
  29  Prefactor     1.0440        .24052        .11587E-04   -.91278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.43642e-10
Minuit parameter uncertainties:
  1  1.21248e-05
  2  3.72313
  3  2.86174
  4  2.15308
  5  1.877
  6  4.02551
  7  0.442011
  8  8.06047e-06
  9  3.14173e-07
  10  1.54089e-06
  11  23.7982
  12  0.00158877
  13  0.000167381
  14  5.14506e-06
  15  13.8367
  16  0.000134257
  17  12.3831
  18  0.000232575
  19  3.35777
  20  7.5429
  21  13.0772
  22  15.6406
  23  9.31813
  24  34.0975
  25  0.00120954
  26  0.000207082
  27  2.34323e-05
  28  0.24889
  29  0.240764
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  5.145e-06  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:  1.044e+00  2.408e-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.135e+00  2.489e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/986935/likelihoodResults_362707201_362966401_4FGL_J1254.5+2210_daily_bin476.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) = 6461.64880683
delta logL = -0.00127556091866

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6461.64753118
delta logL = 8.33670128486e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1036       1.0000          .0000       10.000    
     3 'Normalizat'    1.1352       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0440       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6461.648     FROM MIGRAD    STATUS=FAILED        93 CALLS      249 TOTAL
                     EDM=   .43E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    326.28        .15246E-02** at limit **
   2  Index         2.1187        7.6986        .50000       -.35279E-04
   3  Normalizat    1.1352        .52377E-01    .27916E-03    .20362E-06
   4  Prefactor     1.0440        .52605E-01    .28967E-03    .66328E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6461.648     FROM SIMPLEX   STATUS=UNCHANGED    159 CALLS      408 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    326.28        .35704E-03** at limit **
   2  Index         2.1187        7.6986        .17652E-05   -.35279E-04
   3  Normalizat    1.1352        .52377E-01    .43854E-07    .20362E-06
   4  Prefactor     1.0440        .52605E-01    .41374E-07    .66328E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6461.648     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      442 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    911.55        .30492E-03** at limit **
   2  Index         2.1190        7.9970        .50000       -.35305E-04
   3  Normalizat    1.1352        .22114        .11166E-04   -.26471E-05
   4  Prefactor     1.0440        .22205        .11587E-04    .39247E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.11897
  Normalizat = 1.13516
  Prefactor  = 1.04397
 **********
 **   18 **HESSE 
 **********

 FCN=   6461.648     FROM HESSE     STATUS=OK            29 CALLS      471 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9591        .60985E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1190        6.0540        .50000       -.61408    
   3  Normalizat    1.1352        .23428        .22333E-05   -.88631    
   4  Prefactor     1.0440        .23528        .23173E-05   -.91278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03357e-09
Minuit parameter uncertainties:
  1  0.000270229
  2  4.18003
  3  0.234498
  4  0.235516
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/986935': 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) = 6461.64753102
delta logL = 2.45277078648e-07

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  2.702e-04  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.119e+00  4.180e+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:  1.044e+00  2.355e-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.135e+00  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/986935/cmap_HighResolution_362707201_362966401_4FGL_J1254.5+2210_daily_bin476.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.73e-03', job_status='DONE', photon_flux_upper_limit='6.26e-08', time_completed='2021-09-06 09:16:16.469364', job_id='986935', GAL2='1.04', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630944976.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='476' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:16:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 986935: <4FGL_J1254.5+2210_daily_bin476> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin476> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 09:01:11 2021
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:01: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:01:12 2021
Terminated at Mon Sep  6 09:16:17 2021
Results reported at Mon Sep  6 09:16:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin476 193.637 22.1808 362707201 362966401 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 :                                   875.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            906 sec.

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

