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


Performing analysis on: 4FGL_J1226.8-1329_daily_bin1085
RA = 186.719, Dec = -13.494
tmin = 520560001, tmax = 520819201
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='657001', job_status='RUN', time_executed='2021-09-05 16:13:54.727605', time_epoch_executed='1630883634.73' WHERE source_name='4FGL J1226.8-1329' and cadence='daily' and bin_id='1085'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/657001

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/657001/ft1_4FGL_J1226.8-1329_daily_bin1085.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/657001/ft2_4FGL_J1226.8-1329_daily_bin1085.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/657001/ft1_4FGL_J1226.8-1329_daily_bin1085.fits outfile=/scratch/kocevski/657001/ft1_filteredMKT_4FGL_J1226.8-1329_daily_bin1085.fits ra=186.719 dec=-13.494 rad=12.0 tmin=520560001.0 tmax=520819201.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.24
user 4.95
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/657001/ft2_4FGL_J1226.8-1329_daily_bin1085.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/657001/ft2_4FGL_J1226.8-1329_daily_bin1085.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/657001/ft1_filteredMKT_4FGL_J1226.8-1329_daily_bin1085.fits evtable="EVENTS" outfile="/scratch/kocevski/657001/ft1_filtered_4FGL_J1226.8-1329_daily_bin1085.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.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/657001/ft1_filtered_4FGL_J1226.8-1329_daily_bin1085.fits" evtable="EVENTS" scfile=/scratch/kocevski/657001/ft2_4FGL_J1226.8-1329_daily_bin1085.fits sctable="SC_DATA" outfile=/scratch/kocevski/657001/ltcube_520560001_520819201_4FGL_J1226.8-1329_daily_bin1085.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/657001/ft2_4FGL_J1226.8-1329_daily_bin1085.fits
.....................!
real 12.02
user 11.63
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/657001/ft1_filtered_4FGL_J1226.8-1329_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/657001/ft2_4FGL_J1226.8-1329_daily_bin1085.fits sctable="SC_DATA" expcube=/scratch/kocevski/657001/ltcube_520560001_520819201_4FGL_J1226.8-1329_daily_bin1085.fits outfile=/scratch/kocevski/657001/expmap_520560001_520819201_4FGL_J1226.8-1329_daily_bin1085.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/657001/ltcube_520560001_520819201_4FGL_J1226.8-1329_daily_bin1085.fits
.....................!
real 191.92
user 186.37
sys 5.12

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

Setting source of interest to:
4FGL J1226.8-1329 @ 186.719 -13.494

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/657001/ft1_filtered_4FGL_J1226.8-1329_daily_bin1085.fits scfile=/scratch/kocevski/657001/ft2_4FGL_J1226.8-1329_daily_bin1085.fits outfile=/scratch/kocevski/657001/cmap_520560001_520819201_4FGL_J1226.8-1329_daily_bin1085.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=186.719 yref=-13.494 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.77
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/657001/ft1_filtered_4FGL_J1226.8-1329_daily_bin1085.fits scfile=/scratch/kocevski/657001/ft2_4FGL_J1226.8-1329_daily_bin1085.fits outfile=/scratch/kocevski/657001/cmap_HighResolution_520560001_520819201_4FGL_J1226.8-1329_daily_bin1085.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=186.719 yref=-13.494 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.78
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/657001/ft1_filtered_4FGL_J1226.8-1329_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/657001/ft2_4FGL_J1226.8-1329_daily_bin1085.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/657001/Model_4FGL_J1226.8-1329_daily_bin1085.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/657001/ft1_filtered_4FGL_J1226.8-1329_daily_bin1085.fits.....................!
real 47.14
user 44.25
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/657001/ft1_filtered_4FGL_J1226.8-1329_daily_bin1085.fits', '/scratch/kocevski/657001/ft2_4FGL_J1226.8-1329_daily_bin1085.fits', expMap='/scratch/kocevski/657001/expmap_520560001_520819201_4FGL_J1226.8-1329_daily_bin1085.fits', expCube='/scratch/kocevski/657001/ltcube_520560001_520819201_4FGL_J1226.8-1329_daily_bin1085.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/657001/Model_4FGL_J1226.8-1329_daily_bin1085.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1226.8-1329'

4FGL J1226.8-1329
   Spectrum: PowerLaw
353    Prefactor:  1.164e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
354        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
355        Scale:  2.502e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/657001/ft1_filtered_4FGL_J1226.8-1329_daily_bin1085.fits
Spacecraft file(s): /scratch/kocevski/657001/ft2_4FGL_J1226.8-1329_daily_bin1085.fits
Exposure map: /scratch/kocevski/657001/expmap_520560001_520819201_4FGL_J1226.8-1329_daily_bin1085.fits
Exposure cube: /scratch/kocevski/657001/ltcube_520560001_520819201_4FGL_J1226.8-1329_daily_bin1085.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/657001/Model_4FGL_J1226.8-1329_daily_bin1085.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) = 5039.96403732

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3844       1.0000         .10000E-03   10000.    
     2 'norm      '    3.1964       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.208       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4532       1.0000         .10000E-03   10000.    
     9 'Prefactor '    55.620       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.462       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.0634       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.285       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.073       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11266E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.4858       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.8238       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.7928       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .76489       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5039.955     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2873 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3835        44.927       -.14522E-05   -.99928E-05
   2  norm          3.1980        6.1660       -.11590E-05   -.37007E-03
   3  Prefactor     .10000E-03    5.7103        .64210E-07** at limit **
   4  Prefactor     30.215        25.991       -.22226E-06   -.15674E-03
   5  Prefactor     .10000E-03    7.6901       -.22909E-06** at limit **
   6  norm          .10000E-03    2.5446       -.95210E-07** at limit **
   7  Prefactor     .10000E-03    97.878        .10311E-03** at limit **
   8  Prefactor     4.4529        14.798       -.11964E-05   -.15134E-03
   9  Prefactor     55.624        61.238        .36144E-05   -.19764E-03
  10  Prefactor     .10000E-03    19.389       -.11621E-04** at limit **
  11  Prefactor     21.464        21.000       -.75661E-07    .54038E-04
  12  Prefactor     .10000E-03    45.522       -.31457E-04** at limit **
  13  Prefactor     .10000E-03    2.8043       -.19698E-07** at limit **
  14  Prefactor     7.0635        3.1664       -.71351E-07    .29091E-04
  15  Prefactor     .10000E-03    9.7233       -.67856E-06** at limit **
  16  Prefactor     14.283        14.895       -.20570E-07    .44443E-04
  17  Prefactor     21.072        15.040       -.42946E-07   -.17938E-04
  18  Prefactor     .10000E-03    15.246        .40249E-05** at limit **
  19  Prefactor     .10000E-03    26.052        .17093E-04** at limit **
  20  Prefactor     .10000E-03    168.50       -.13439E-03** at limit **
  21  norm          3.4858        .57907       -.98992E-08   -.60451E-03
  22  norm          .10000E-03    8.1538        .38791E-06** at limit **
  23  norm          4.8136        7.0931        .12146E-05    .23840E-03
  24  Normalizat    1.7931        .31609        .44258E-06   -.42239E-04
  25  Prefactor     .76468        .16945       -.57264E-06    .45760E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.38351
  norm       = 3.19798
  Prefactor  = 0.0001
  Prefactor  = 30.215
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.4529
  Prefactor  = 55.624
  Prefactor  = 0.0001
  Prefactor  = 21.4639
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.06348
  Prefactor  = 0.0001
  Prefactor  = 14.2833
  Prefactor  = 21.0719
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.48576
  norm       = 0.0001
  norm       = 4.81357
  Normalizat = 1.79307
  Prefactor  = 0.764681
 **********
 **   18 **HESSE 
 **********

 FCN=   5039.955     FROM HESSE     STATUS=OK           423 CALLS     3296 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3835        44.926        .14759E-03   -1.5164    
   2  norm          3.1980        6.1441        .22663E-03   -1.5350    
   3  Prefactor     .10000E-03    5.8256        .33031E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     30.215        26.018        .36449E-03   -1.4608    
   5  Prefactor     .10000E-03    7.7051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.5823        .11058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    97.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.4529        14.809        .19082E-03   -1.5286    
   9  Prefactor     55.624        61.096        .53787E-04   -1.4215    
  10  Prefactor     .10000E-03    19.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.464        21.002        .86459E-04   -1.4781    
  12  Prefactor     .10000E-03    45.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.8167        .11608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.0635        3.1683        .81906E-04   -1.5176    
  15  Prefactor     .10000E-03    9.7614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.283        14.897        .10597E-03   -1.4952    
  17  Prefactor     21.072        15.095        .87252E-04   -1.4790    
  18  Prefactor     .10000E-03    15.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    26.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    168.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.4858        .58138        .21176E-04   -1.5335    
  22  norm          .10000E-03    8.2112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.8136        7.0868        .18317E-03   -1.5269    
  24  Normalizat    1.7931        .37673        .32048E-03   -.69845    
  25  Prefactor     .76468        .20071        .25310E-03   -1.0104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.07512e-10
Minuit parameter uncertainties:
  1  36.4663
  2  6.14533
  3  1.86395e-05
  4  26.0282
  5  2.49877e-06
  6  1.56662e-06
  7  0.000488122
  8  14.8216
  9  61.1645
  10  3.54918e-06
  11  21.0095
  12  2.68756e-05
  13  1.03017e-06
  14  3.16842
  15  1.99301e-06
  16  14.9012
  17  15.0975
  18  2.36156e-05
  19  1.86464e-06
  20  0.000180888
  21  0.581381
  22  1.52232e-06
  23  7.08799
  24  0.377344
  25  0.2009
Done.

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

Extracting fit parameters...

4FGL J1226.8-1329
   Spectrum: PowerLaw
353    Prefactor:  1.000e-04  1.030e-06  1.000e-04  1.000e+04 ( 1.000e-13)
354        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
355        Scale:  2.502e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
631    Prefactor:  7.647e-01  2.009e-01  0.000e+00  1.000e+01 ( 1.000e+00)
632        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
633        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
630   Normalization:  1.793e+00  3.773e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 186.719 -13.494
Photon Flux Upper Limit: 8.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/657001/likelihoodResults_520560001_520819201_4FGL_J1226.8-1329_daily_bin1085.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) = 5039.95700058
delta logL = -0.00164972170387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5039.95535107
delta logL = -2.0458810468e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9761       1.0000          .0000       10.000    
     3 'Normalizat'    1.7930       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76472       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6340E+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=   5039.955     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      235 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10080E-03    27.539        .11846E-02** at limit **
   2  Index         1.9347        7.9199        .50000        .55164E-04
   3  Normalizat    1.7931        .24236E-01    .32048E-03    .93651E-05
   4  Prefactor     .76468        .13302E-01    .25310E-03    .78291E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100804
  Index      = 1.93466
  Normalizat = 1.79307
  Prefactor  = 0.764681
 **********
 **   18 **HESSE 
 **********

 FCN=   5039.955     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      264 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10080E-03    117.95        .23692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9347        5.6625        .50000       -.65994    
   3  Normalizat    1.7931        .52017E-01    .12819E-04   -.69845    
   4  Prefactor     .76468        .28546E-01    .10124E-04   -1.0104    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.48632e-08
Minuit parameter uncertainties:
  1  0.0195142
  2  246.993
  3  0.0520183
  4  0.0285462
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/657001': 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): 102
logL (Free Index) = 5039.95535003
delta logL = 8.30214048619e-07

Extracting fit parameters...

4FGL J1226.8-1329
   Spectrum: PowerLaw
353    Prefactor:  1.008e-04  1.951e-02  1.000e-04  1.000e+04 ( 1.000e-13)
354        Index:  1.935e+00  2.470e+02  0.000e+00  1.000e+01 (-1.000e+00)
355        Scale:  2.502e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
631    Prefactor:  7.647e-01  2.855e-02  0.000e+00  1.000e+01 ( 1.000e+00)
632        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
633        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
630   Normalization:  1.793e+00  5.202e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 186.719 -13.494

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/657001/cmap_HighResolution_520560001_520819201_4FGL_J1226.8-1329_daily_bin1085.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.00e-03', job_status='DONE', photon_flux_upper_limit='8.00e-08', time_completed='2021-09-05 16:26:25.261769', job_id='657001', GAL2='0.76', fit_tolerance='1e-08', EG2='1.79', EG='1.79', time_epoch_completed='1630884385.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='8.30e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1085' AND source_name='4FGL J1226.8-1329' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 16:26:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 657001: <4FGL_J1226.8-1329_daily_bin1085> in cluster <slac> Done

Job <4FGL_J1226.8-1329_daily_bin1085> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 16:11:01 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 16:11:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 16:11:03 2021
Terminated at Sun Sep  5 16:26:25 2021
Results reported at Sun Sep  5 16:26:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1226.8-1329_daily_bin1085 186.719 -13.494 520560001 520819201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1226.8-1329 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   669.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            924 sec.

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

