/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 147 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 = 7487
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1254.5+2210_daily_bin319
RA = 193.637, Dec = 22.1808
tmin = 322012801, tmax = 322272001
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='986732', job_status='RUN', time_executed='2021-09-06 09:03:37.015291', time_epoch_executed='1630944217.02' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='319'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/986732

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/986732/ft1_4FGL_J1254.5+2210_daily_bin319.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/986732/ft2_4FGL_J1254.5+2210_daily_bin319.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/986732/ft1_4FGL_J1254.5+2210_daily_bin319.fits outfile=/scratch/kocevski/986732/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin319.fits ra=193.637 dec=22.1808 rad=12.0 tmin=322012801.0 tmax=322272001.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.37
user 3.15
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/986732/ft2_4FGL_J1254.5+2210_daily_bin319.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/986732/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin319.fits evtable="EVENTS" outfile="/scratch/kocevski/986732/ft1_filtered_4FGL_J1254.5+2210_daily_bin319.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/986732/ft1_filtered_4FGL_J1254.5+2210_daily_bin319.fits evtable="EVENTS" scfile=/scratch/kocevski/986732/ft2_4FGL_J1254.5+2210_daily_bin319.fits sctable="SC_DATA" expcube=/scratch/kocevski/986732/ltcube_322012801_322272001_4FGL_J1254.5+2210_daily_bin319.fits outfile=/scratch/kocevski/986732/expmap_322012801_322272001_4FGL_J1254.5+2210_daily_bin319.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/986732/ltcube_322012801_322272001_4FGL_J1254.5+2210_daily_bin319.fits
.....................!
real 189.51
user 185.26
sys 3.87

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/986732/ft1_filtered_4FGL_J1254.5+2210_daily_bin319.fits scfile=/scratch/kocevski/986732/ft2_4FGL_J1254.5+2210_daily_bin319.fits outfile=/scratch/kocevski/986732/cmap_322012801_322272001_4FGL_J1254.5+2210_daily_bin319.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.59
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/986732/ft1_filtered_4FGL_J1254.5+2210_daily_bin319.fits scfile=/scratch/kocevski/986732/ft2_4FGL_J1254.5+2210_daily_bin319.fits outfile=/scratch/kocevski/986732/cmap_HighResolution_322012801_322272001_4FGL_J1254.5+2210_daily_bin319.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.57
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6956       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.8363       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5903       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4580       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.7692       1.0000         .10000E-03   10000.    
     7 'norm      '    2.9305       1.0000         .10000E-03   10000.    
     8 'norm      '    10.281       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    44.480       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.701       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.8340       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.7039       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    24.592       1.0000         .10000E-03   10000.    
    26 'Prefactor '    35.729       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0349       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .91905       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=   6394.001     FROM MIGRAD    STATUS=CONVERGED    711 CALLS     3646 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6959        2.5817       -.12285E-06   -.56117E-03
   2  Prefactor     .10000E-03    1.5590       -.14732E-06** at limit **
   3  norm          7.8363        3.4877        .29030E-06    .66682E-04
   4  Prefactor     1.5904        2.1237       -.28099E-06   -.39023E-03
   5  Prefactor     1.4581        1.4028        .27935E-07    .71578E-04
   6  Prefactor     7.7697        7.5179       -.52700E-07   -.81532E-04
   7  norm          2.9304        .45661        .36622E-07   -.27231E-03
   8  norm          10.281        6.7497       -.40713E-07   -.66011E-04
   9  Prefactor     .10000E-03    3.5244        .25603E-06** at limit **
  10  Prefactor     .10000E-03    9.9228       -.37687E-05** at limit **
  11  Prefactor     .10000E-03    26.760        .20700E-05** at limit **
  12  Prefactor     .10000E-03    45.547       -.15187E-04** at limit **
  13  Prefactor     44.487        44.392        .75326E-05    .10467E-04
  14  Prefactor     .10000E-03    4.9203        .24586E-05** at limit **
  15  Prefactor     .10000E-03    4.6769       -.22221E-05** at limit **
  16  norm          .10000E-03    2.4847        .82010E-08** at limit **
  17  Prefactor     11.701        12.780       -.27078E-06   -.23009E-04
  18  Prefactor     .10000E-03    38.080        .12070E-04** at limit **
  19  norm          .10001E-03    2.2065        .44993E-06** at limit **
  20  norm          6.8314        3.7702        .16267E-05   -.28028E-03
  21  norm          .10000E-03    3.0631       -.40241E-06** at limit **
  22  norm          .10000E-03    6.1948       -.66005E-06** at limit **
  23  norm          2.7039        4.8454       -.52987E-06   -.50214E-03
  24  Prefactor     .10000E-03    16.188       -.56082E-05** at limit **
  25  norm          24.592        10.110        .34221E-07   -.55580E-04
  26  Prefactor     35.728        17.679       -.19503E-06   -.78725E-04
  27  Prefactor     .10000E-03    10.999        .66567E-05** at limit **
  28  Normalizat    1.0350        .19246       -.11428E-05   -.11730E-03
  29  Prefactor     .91885        .18878       -.15206E-06   -.13670E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.69589
  Prefactor  = 0.0001
  norm       = 7.83628
  Prefactor  = 1.59038
  Prefactor  = 1.45805
  Prefactor  = 7.76968
  norm       = 2.93044
  norm       = 10.2811
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.4873
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.7013
  Prefactor  = 0.000100001
  norm       = 0.000100006
  norm       = 6.83142
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.70388
  Prefactor  = 0.0001
  norm       = 24.5918
  Prefactor  = 35.7279
  Prefactor  = 0.0001
  Normalizat = 1.03499
  Prefactor  = 0.918845
 **********
 **   18 **HESSE 
 **********

 FCN=   6394.001     FROM HESSE     STATUS=OK           551 CALLS     4197 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6959        2.5594        .15305E-03   -1.5448    
   2  Prefactor     .10000E-03    1.5778        .97336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.8363        3.5067        .88855E-04   -1.5148    
   4  Prefactor     1.5904        2.1143        .12015E-03   -1.5456    
   5  Prefactor     1.4581        1.4003        .89540E-04   -1.5466    
   6  Prefactor     7.7697        7.5074        .14386E-03   -1.5150    
   7  norm          2.9304        .45814        .19975E-04   -1.5366    
   8  norm          10.281        6.7438        .12496E-03   -1.5067    
   9  Prefactor     .10000E-03    3.5290        .14661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.9812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    27.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    45.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     44.487        44.457        .60113E-04   -1.4373    
  14  Prefactor     .10000E-03    4.9590        .17317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.6950        .16896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.5264        .12302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.701        12.782        .11711E-03   -1.5024    
  18  Prefactor     .10000E-03    38.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10001E-03    14.668        .22610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.8314        3.7471        .10985E-03   -1.5185    
  21  norm          .10000E-03    3.0755        .13658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.1970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.7039        4.8376        .22238E-03   -1.5379    
  24  Prefactor     .10000E-03    16.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          24.592        10.107        .80777E-04   -1.4716    
  26  Prefactor     35.728        17.700        .67046E-04   -1.4512    
  27  Prefactor     .10000E-03    11.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0350        .21929        .26120E-03   -.91867    
  29  Prefactor     .91885        .21631        .28358E-03   -.95486    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.05278e-10
Minuit parameter uncertainties:
  1  2.55961
  2  3.29158e-06
  3  3.50681
  4  2.11443
  5  1.40037
  6  7.5083
  7  0.458145
  8  6.74431
  9  9.24948e-08
  10  2.55189e-05
  11  2.9233e-06
  12  7.50427e-06
  13  44.4904
  14  1.50408e-06
  15  1.12888e-05
  16  1.05491e-05
  17  12.7846
  18  0.000338348
  19  0.00060483
  20  3.74719
  21  4.59975e-05
  22  2.59716e-06
  23  4.83834
  24  9.65622e-06
  25  10.1076
  26  17.7029
  27  2.58267e-06
  28  0.219484
  29  0.216514
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.504e-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:  9.188e-01  2.165e-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.035e+00  2.195e-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.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/986732/likelihoodResults_322012801_322272001_4FGL_J1254.5+2210_daily_bin319.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) = 6394.00155844
delta logL = -0.000960754814514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6394.0005977
delta logL = -1.81562427315e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0941       1.0000          .0000       10.000    
     3 'Normalizat'    1.0350       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91886       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=   6394.001     FROM MIGRAD    STATUS=FAILED        86 CALLS      234 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10049E-03    42.079        .17332E-02** at limit **
   2  Index         2.1795        6.2018        .50000       -.53966E-05
   3  Normalizat    1.0350        .13223E-01    .26120E-03   -.26115E-06
   4  Prefactor     .91885        .13671E-01    .28358E-03   -.88197E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6394.001     FROM SIMPLEX   STATUS=UNCHANGED    136 CALLS      370 TOTAL
                     EDM=   .94E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10049E-03    42.079        .34320E-03** at limit **
   2  Index         2.1795        6.2018        .52795E-03   -.53966E-05
   3  Normalizat    1.0350        .13223E-01    .29922E-05   -.26115E-06
   4  Prefactor     .91885        .13671E-01    .30851E-05   -.88197E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6394.001     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      409 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0208       -.37383E-05** at limit **
   2  Index         2.3605        8.7860        .11729E-01   -.20180E-07
   3  Normalizat    1.0350        .21082        .17887E-05   -.71594E-03
   4  Prefactor     .91885        .21544       -.11595E-05   -.37502E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.3605
  Normalizat = 1.03498
  Prefactor  = 0.918849
 **********
 **   18 **HESSE 
 **********

 FCN=   6394.001     FROM HESSE     STATUS=OK            29 CALLS      438 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.1125        .69326E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3605        8.4237        .50000       -.55613    
   3  Normalizat    1.0350        .21397        .20896E-05   -.91868    
   4  Prefactor     .91885        .21693        .22686E-05   -.95486    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.73328e-10
Minuit parameter uncertainties:
  1  0.000124534
  2  362.09
  3  0.214147
  4  0.217139
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/986732': 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) = 6394.00059742
delta logL = 2.63576112047e-07

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.245e-04  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.361e+00  3.621e+02  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:  9.188e-01  2.171e-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.035e+00  2.141e-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/986732/cmap_HighResolution_322012801_322272001_4FGL_J1254.5+2210_daily_bin319.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.86e-03', job_status='DONE', photon_flux_upper_limit='6.44e-08', time_completed='2021-09-06 09:17:26.087833', job_id='986732', GAL2='0.92', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1630945046.09', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='2.64e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='319' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:17:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 986732: <4FGL_J1254.5+2210_daily_bin319> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin319 193.637 22.1808 322012801 322272001 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 :                                   826.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            989 sec.

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

