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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin353
RA = 193.637, Dec = 22.1808
tmin = 330825601, tmax = 331084801
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='986767', job_status='RUN', time_executed='2021-09-06 09:03:38.118895', time_epoch_executed='1630944218.12' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='353'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/986767

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/986767/ft1_4FGL_J1254.5+2210_daily_bin353.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/986767/ft2_4FGL_J1254.5+2210_daily_bin353.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/986767/ft1_4FGL_J1254.5+2210_daily_bin353.fits outfile=/scratch/kocevski/986767/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin353.fits ra=193.637 dec=22.1808 rad=12.0 tmin=330825601.0 tmax=331084801.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.39
user 3.15
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/986767/ft1_filtered_4FGL_J1254.5+2210_daily_bin353.fits" evtable="EVENTS" scfile=/scratch/kocevski/986767/ft2_4FGL_J1254.5+2210_daily_bin353.fits sctable="SC_DATA" outfile=/scratch/kocevski/986767/ltcube_330825601_331084801_4FGL_J1254.5+2210_daily_bin353.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/986767/ft2_4FGL_J1254.5+2210_daily_bin353.fits
.....................!
real 11.90
user 11.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/986767/ft1_filtered_4FGL_J1254.5+2210_daily_bin353.fits evtable="EVENTS" scfile=/scratch/kocevski/986767/ft2_4FGL_J1254.5+2210_daily_bin353.fits sctable="SC_DATA" expcube=/scratch/kocevski/986767/ltcube_330825601_331084801_4FGL_J1254.5+2210_daily_bin353.fits outfile=/scratch/kocevski/986767/expmap_330825601_331084801_4FGL_J1254.5+2210_daily_bin353.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/986767/ltcube_330825601_331084801_4FGL_J1254.5+2210_daily_bin353.fits
.....................!
real 191.88
user 187.06
sys 4.39

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/986767/ft1_filtered_4FGL_J1254.5+2210_daily_bin353.fits scfile=/scratch/kocevski/986767/ft2_4FGL_J1254.5+2210_daily_bin353.fits outfile=/scratch/kocevski/986767/cmap_330825601_331084801_4FGL_J1254.5+2210_daily_bin353.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.57
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18038E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.017       1.0000         .10000E-03   10000.    
     3 'norm      '    2.7831       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9291       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7229       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .30409       1.0000         .10000E-03   10000.    
     8 'norm      '    5.2468       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.484       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.011       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10801E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3885       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10512E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    47.392       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.9479       1.0000         .10000E-03   10000.    
    22 'norm      '    24.773       1.0000         .10000E-03   10000.    
    23 'norm      '    1.3571       1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.133       1.0000         .10000E-03   10000.    
    25 'norm      '    14.401       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .53775       1.0000         .10000E-03   10000.    
    27 'Prefactor '    22.508       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1774       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .79201       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=   5882.059     FROM MIGRAD    STATUS=CONVERGED    727 CALLS     3190 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9309       -.15660E-06** at limit **
   2  Prefactor     13.022        5.0631       -.34026E-07    .94138E-05
   3  norm          2.7832        2.3044       -.12694E-07    .55052E-05
   4  Prefactor     4.9293        2.5667       -.43781E-08    .11718E-05
   5  Prefactor     4.7231        2.7420       -.13820E-06   -.34641E-04
   6  Prefactor     .10000E-03    5.2756       -.60215E-06** at limit **
   7  norm          .30414        .26899       -.65799E-07   -.91610E-03
   8  norm          5.2463        5.2219        .31491E-05   -.15021E-02
   9  Prefactor     12.485        10.711        .79448E-07   -.48352E-04
  10  Prefactor     15.011        10.971       -.21862E-06    .33967E-05
  11  Prefactor     .10001E-03    26.811        .41949E-05** at limit **
  12  Prefactor     .10000E-03    20.713       -.25890E-05** at limit **
  13  Prefactor     .10000E-03    22.502       -.48714E-06** at limit **
  14  Prefactor     7.3909        8.0947       -.38423E-07   -.34856E-04
  15  Prefactor     .10000E-03    11.161        .65351E-06** at limit **
  16  norm          .10000E-03    .81130        .72075E-08** at limit **
  17  Prefactor     47.388        19.699        .33347E-06    .99608E-04
  18  Prefactor     .10000E-03    4.9900       -.15780E-06** at limit **
  19  norm          .10000E-03    1.1352        .10833E-07** at limit **
  20  norm          .10000E-03    2.6773        .27115E-07** at limit **
  21  norm          4.9491        4.8729       -.12075E-07   -.83683E-04
  22  norm          24.770        20.569       -.23111E-06   -.68175E-04
  23  norm          1.3575        4.5850        .13908E-05    .43328E-04
  24  Prefactor     14.118        25.400       -.32308E-05   -.28837E-03
  25  norm          14.397        9.5814       -.51655E-07    .24276E-04
  26  Prefactor     .66749        9.3623        .21662E-05   -.39347E-03
  27  Prefactor     22.497        19.068       -.36023E-05   -.95648E-03
  28  Normalizat    1.1774        .19888        .23123E-06   -.15083E-03
  29  Prefactor     .79192        .19610       -.73606E-06   -.58478E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 13.0221
  norm       = 2.78317
  Prefactor  = 4.92926
  Prefactor  = 4.7231
  Prefactor  = 0.0001
  norm       = 0.304143
  norm       = 5.24627
  Prefactor  = 12.4846
  Prefactor  = 15.0113
  Prefactor  = 0.000100007
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 7.39094
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 47.3876
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.94909
  norm       = 24.7696
  norm       = 1.3575
  Prefactor  = 14.1183
  norm       = 14.3974
  Prefactor  = 0.667493
  Prefactor  = 22.4974
  Normalizat = 1.17743
  Prefactor  = 0.79192
 **********
 **   18 **HESSE 
 **********

 FCN=   5882.059     FROM HESSE     STATUS=OK           557 CALLS     3747 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.2422        .19865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.022        4.8990        .99200E-04   -1.4986    
   3  norm          2.7832        2.3063        .10146E-03   -1.5374    
   4  Prefactor     4.9293        2.5695        .84419E-04   -1.5264    
   5  Prefactor     4.7231        2.7392        .90781E-04   -1.5273    
   6  Prefactor     .10000E-03    5.3589        .17241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .30414        .25743        .34878E-03   -1.5598    
   8  norm          5.2463        5.5871        .87741E-03   -1.5250    
   9  Prefactor     12.485        10.712        .11337E-03   -1.5001    
  10  Prefactor     15.011        10.970        .10338E-03   -1.4933    
  11  Prefactor     .10001E-03    27.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    22.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.3909        8.0964        .14755E-03   -1.5164    
  15  Prefactor     .10000E-03    11.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .81158        .67464E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     47.388        19.727        .58245E-04   -1.4330    
  18  Prefactor     .10000E-03    4.9914        .16734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.1396        .79785E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.7471        .24276E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.9491        4.8280        .16207E-03   -1.5263    
  22  norm          24.770        20.567        .80482E-04   -1.4712    
  23  norm          1.3575        4.4984        .27627E-03   -1.5475    
  24  Prefactor     14.118        25.857        .10654E-03   -1.4956    
  25  norm          14.397        9.5304        .10555E-03   -1.4949    
  26  Prefactor     .66749        58.457        .43922E-02   -1.5545    
  27  Prefactor     22.497        20.144        .84429E-04   -1.4759    
  28  Normalizat    1.1774        .23973        .24713E-03   -.87303    
  29  Prefactor     .79192        .23519        .29838E-03   -1.0003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.33723e-09
Minuit parameter uncertainties:
  1  0.000163445
  2  4.89913
  3  2.30636
  4  2.56952
  5  2.73923
  6  5.87411e-05
  7  0.257426
  8  5.58763
  9  10.7134
  10  10.9711
  11  0.000846916
  12  0.000482654
  13  0.000103717
  14  8.09756
  15  6.06768e-05
  16  4.15512e-08
  17  19.7302
  18  1.47522e-05
  19  1.29578e-07
  20  2.22849e-06
  21  4.82834
  22  20.5732
  23  4.49951
  24  25.8772
  25  9.53143
  26  12.5048
  27  20.1504
  28  0.239955
  29  0.235493
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  7.391e+00  8.098e+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:  7.919e-01  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.177e+00  2.400e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.35
Ra Dec: 193.637 22.181
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 2.90e-08 +/- 3.17e-08
Energy Flux (Fixed Index): 1.63e-05 +/- 1.78e-05

TS (Fixed Index): 1.35
Ra Dec: 193.637 22.181
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/986767/likelihoodResults_330825601_331084801_4FGL_J1254.5+2210_daily_bin353.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) = 5881.90874334
delta logL = 0.150279280292

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5881.90525584
delta logL = 0.153766778611

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2392       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4808       1.0000          .0000       10.000    
     3 'Normalizat'    1.1569       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80245       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.

 FCN=   5881.905     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      274 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2350        149.43        .43903E-02    .26598E-03
   2  Index         2.4801        6.2399        .11484        .12641E-03
   3  Normalizat    1.1568        .86779E-01    .56323E-01    .94542E-05
   4  Prefactor     .80283        .70037E-01    .67016E-01    .19896E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.23504
  Index      = 2.48007
  Normalizat = 1.15679
  Prefactor  = 0.802831
 **********
 **   18 **HESSE 
 **********

 FCN=   5881.905     FROM HESSE     STATUS=OK            33 CALLS      307 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2350        8.2129        .16064E-03   -1.5250    
   2  Index         2.4801        .80196        .67309E-02   -.52821    
   3  Normalizat    1.1568        .23551        .24906E-03   -.87949    
   4  Prefactor     .80283        .23508        .29649E-03   -.99624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4326e-11
Minuit parameter uncertainties:
  1  8.21464
  2  0.806644
  3  0.235726
  4  0.23537
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/986767': 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) = 5881.90525115
delta logL = 0.153771468003

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  5.235e+00  8.215e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.480e+00  8.066e-01  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.028e-01  2.354e-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.157e+00  2.357e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.64
Ra Dec: 193.637 22.181
Photon Index (Free Index): 2.48 +/- 0.81
Photon Flux (Free Index): 4.70e-08 +/- 5.26e-08
Energy Flux (Free Index): 1.39e-05 +/- 1.45e-05

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/986767/cmap_HighResolution_330825601_331084801_4FGL_J1254.5+2210_daily_bin353.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.99e-03', comment='SUCCESS', photon_flux='2.90e-08', energy_flux2='1.39e-05', photon_flux_error='3.17e-08', dlogl='1.54e-01', energy_flux='1.63e-05', photon_flux2='4.70e-08', job_status='DONE', time_completed='2021-09-06 09:15:55.258650', photon_index_error2='0.81', photon_index2='2.48', ts='1.35', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='1.45e-05', EG='1.18', time_epoch_completed='1630944955.26', return_code='0', job_id='986767', GAL2='0.80', EG2='1.16', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='5.26e-08', ts2='1.64', photon_index='2.09' WHERE bin_id='353' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 09:15:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 986767: <4FGL_J1254.5+2210_daily_bin353> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin353> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 09:01:00 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 09:01:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 09:01:01 2021
Terminated at Mon Sep  6 09:15:56 2021
Results reported at Mon Sep  6 09:15:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin353 193.637 22.1808 330825601 331084801 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 :                                   733.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            896 sec.

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

