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


Performing analysis on: 4FGL_J1226.8-1329_daily_bin204
RA = 186.719, Dec = -13.494
tmin = 292204801, tmax = 292464001
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='647103', job_status='RUN', time_executed='2021-09-05 15:43:00.543378', time_epoch_executed='1630881780.54' WHERE source_name='4FGL J1226.8-1329' and cadence='daily' and bin_id='204'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/647103

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/647103/ft1_4FGL_J1226.8-1329_daily_bin204.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/647103/ft2_4FGL_J1226.8-1329_daily_bin204.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/647103/ft1_4FGL_J1226.8-1329_daily_bin204.fits outfile=/scratch/kocevski/647103/ft1_filteredMKT_4FGL_J1226.8-1329_daily_bin204.fits ra=186.719 dec=-13.494 rad=12.0 tmin=292204801.0 tmax=292464001.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 9.51
user 9.18
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/647103/ft1_filtered_4FGL_J1226.8-1329_daily_bin204.fits" evtable="EVENTS" scfile=/scratch/kocevski/647103/ft2_4FGL_J1226.8-1329_daily_bin204.fits sctable="SC_DATA" outfile=/scratch/kocevski/647103/ltcube_292204801_292464001_4FGL_J1226.8-1329_daily_bin204.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/647103/ft2_4FGL_J1226.8-1329_daily_bin204.fits
.....................!
real 11.66
user 11.27
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/647103/ft1_filtered_4FGL_J1226.8-1329_daily_bin204.fits evtable="EVENTS" scfile=/scratch/kocevski/647103/ft2_4FGL_J1226.8-1329_daily_bin204.fits sctable="SC_DATA" expcube=/scratch/kocevski/647103/ltcube_292204801_292464001_4FGL_J1226.8-1329_daily_bin204.fits outfile=/scratch/kocevski/647103/expmap_292204801_292464001_4FGL_J1226.8-1329_daily_bin204.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/647103/ltcube_292204801_292464001_4FGL_J1226.8-1329_daily_bin204.fits
.....................!
real 190.84
user 185.34
sys 5.03

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/647103/ft1_filtered_4FGL_J1226.8-1329_daily_bin204.fits scfile=/scratch/kocevski/647103/ft2_4FGL_J1226.8-1329_daily_bin204.fits outfile=/scratch/kocevski/647103/cmap_292204801_292464001_4FGL_J1226.8-1329_daily_bin204.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/647103/ft1_filtered_4FGL_J1226.8-1329_daily_bin204.fits scfile=/scratch/kocevski/647103/ft2_4FGL_J1226.8-1329_daily_bin204.fits outfile=/scratch/kocevski/647103/cmap_HighResolution_292204801_292464001_4FGL_J1226.8-1329_daily_bin204.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/647103/ft1_filtered_4FGL_J1226.8-1329_daily_bin204.fits evtable="EVENTS" scfile=/scratch/kocevski/647103/ft2_4FGL_J1226.8-1329_daily_bin204.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/647103/Model_4FGL_J1226.8-1329_daily_bin204.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/647103/ft1_filtered_4FGL_J1226.8-1329_daily_bin204.fits......................!
real 32.01
user 30.67
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/647103/ft1_filtered_4FGL_J1226.8-1329_daily_bin204.fits', '/scratch/kocevski/647103/ft2_4FGL_J1226.8-1329_daily_bin204.fits', expMap='/scratch/kocevski/647103/expmap_292204801_292464001_4FGL_J1226.8-1329_daily_bin204.fits', expCube='/scratch/kocevski/647103/ltcube_292204801_292464001_4FGL_J1226.8-1329_daily_bin204.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/647103/Model_4FGL_J1226.8-1329_daily_bin204.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/647103/ft1_filtered_4FGL_J1226.8-1329_daily_bin204.fits
Spacecraft file(s): /scratch/kocevski/647103/ft2_4FGL_J1226.8-1329_daily_bin204.fits
Exposure map: /scratch/kocevski/647103/expmap_292204801_292464001_4FGL_J1226.8-1329_daily_bin204.fits
Exposure cube: /scratch/kocevski/647103/ltcube_292204801_292464001_4FGL_J1226.8-1329_daily_bin204.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/647103/Model_4FGL_J1226.8-1329_daily_bin204.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) = 2652.83259733

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    4.0731       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14371E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.8839       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .19243E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.815       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.2541       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8833       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.174       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.2327       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10350E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .97322       1.0000         .10000E-03   10000.    
    22 'norm      '    17.957       1.0000         .10000E-03   10000.    
    23 'norm      '    11.275       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.6869       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .71797       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=   2652.815     FROM MIGRAD    STATUS=CONVERGED    582 CALLS     2889 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.810        .12597E-05** at limit **
   2  norm          4.0514        11.455        .54836E-06    .27014E-04
   3  Prefactor     .10000E-03    6.4358       -.25552E-06** at limit **
   4  Prefactor     .10000E-03    10.701       -.41251E-06** at limit **
   5  Prefactor     .10000E-03    11.055        .73647E-06** at limit **
   6  norm          1.8843        6.0939        .48807E-05   -.31095E-04
   7  Prefactor     .10000E-03    65.969        .26449E-07** at limit **
   8  Prefactor     .10000E-03    135.31        .36249E-05** at limit **
   9  Prefactor     .10000E-03    34.101       -.40050E-06** at limit **
  10  Prefactor     .10000E-03    39.846        .39565E-05** at limit **
  11  Prefactor     18.817        23.564        .33887E-07    .16915E-04
  12  Prefactor     .10000E-03    29.375       -.30655E-05** at limit **
  13  Prefactor     4.2537        11.971        .35521E-05    .48168E-05
  14  Prefactor     5.8835        3.7384       -.23373E-06   -.21525E-05
  15  Prefactor     .10000E-03    12.343       -.23551E-06** at limit **
  16  Prefactor     .10000E-03    7.8200        .17358E-07** at limit **
  17  Prefactor     19.178        16.740       -.25193E-07   -.28997E-05
  18  Prefactor     7.2330        14.958        .88471E-06    .11567E-04
  19  Prefactor     .10000E-03    110.66       -.41819E-05** at limit **
  20  Prefactor     .10000E-03    84.768       -.55262E-05** at limit **
  21  norm          .97321        .44508        .39673E-07    .41007E-03
  22  norm          17.960        15.382        .23308E-06    .75595E-05
  23  norm          11.276        10.723        .24276E-06    .55257E-04
  24  Normalizat    1.6865        .38273       -.18168E-05   -.44790E-04
  25  Prefactor     .71804        .21727       -.48916E-06   -.52036E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.05142
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.88431
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.8175
  Prefactor  = 0.0001
  Prefactor  = 4.25369
  Prefactor  = 5.88352
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.1776
  Prefactor  = 7.23301
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.973215
  norm       = 17.9601
  norm       = 11.2763
  Normalizat = 1.6865
  Prefactor  = 0.718036
 **********
 **   18 **HESSE 
 **********

 FCN=   2652.815     FROM HESSE     STATUS=OK           425 CALLS     3314 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.0514        10.840        .19978E-03   -1.5305    
   3  Prefactor     .10000E-03    12.613        .23953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.709        .16458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.071        .16730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.8843        6.0950        .11058E-02   -1.5433    
   7  Prefactor     .10000E-03    66.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    139.06        .36475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    34.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    39.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.817        23.566        .92336E-04   -1.4840    
  12  Prefactor     .10000E-03    29.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.2537        11.963        .97675E-03   -1.5295    
  14  Prefactor     5.8835        3.7404        .74591E-04   -1.5223    
  15  Prefactor     .10000E-03    12.367        .17676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.8248        .14068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.178        16.759        .91469E-04   -1.4832    
  18  Prefactor     7.2330        14.949        .74574E-03   -1.5170    
  19  Prefactor     .10000E-03    110.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    84.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .97321        .44499        .22411E-04   -1.5511    
  22  norm          17.960        15.383        .94514E-04   -1.4860    
  23  norm          11.276        10.723        .11931E-03   -1.5036    
  24  Normalizat    1.6865        .45358        .28561E-03   -.72664    
  25  Prefactor     .71804        .25787        .23664E-03   -1.0282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56062e-11
Minuit parameter uncertainties:
  1  1.23281e-05
  2  10.8453
  3  3.03991e-05
  4  1.92933e-06
  5  3.24279e-06
  6  6.09704
  7  6.78453e-05
  8  0.00151494
  9  2.75865e-05
  10  4.37578e-05
  11  23.5779
  12  3.34232e-05
  13  11.9702
  14  3.74052
  15  2.191e-07
  16  1.32874e-06
  17  16.7636
  18  14.957
  19  2.5581e-05
  20  7.80068e-05
  21  0.444995
  22  15.3863
  23  10.7246
  24  0.4547
  25  0.2583
Done.

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

Extracting fit parameters...

4FGL J1226.8-1329
   Spectrum: PowerLaw
353    Prefactor:  4.254e+00  1.197e+01  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.180e-01  2.583e-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.687e+00  4.547e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.16
Ra Dec: 186.719 -13.494
Photon Flux Upper Limit: 2.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.56e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/647103/likelihoodResults_292204801_292464001_4FGL_J1226.8-1329_daily_bin204.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) = 2652.77144982
delta logL = 0.0438606648668

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2652.74936418
delta logL = 0.0659463016741

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0470       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5254       1.0000          .0000       10.000    
     3 'Normalizat'    1.6632       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72592       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=   2652.749     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      259 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0460        54.064        .14281E-03   -.12759E-02
   2  Index         2.5254        3.4113        .63730E-02   -.24574E-03
   3  Normalizat    1.6632        .46150        .28711E-03   -.39309E-03
   4  Prefactor     .72596        .26500        .23538E-03   -.51800E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.04595
  Index      = 2.52545
  Normalizat = 1.6632
  Prefactor  = 0.725959
 **********
 **   18 **HESSE 
 **********

 FCN=   2652.749     FROM HESSE     STATUS=OK            23 CALLS      282 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0460        9.5849        .57123E-05   -1.5422    
   2  Index         2.5254        1.6101        .25492E-03   -.51773    
   3  Normalizat    1.6632        .45212        .57421E-04   -.73290    
   4  Prefactor     .72596        .25729        .47075E-04   -1.0252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35582e-09
Minuit parameter uncertainties:
  1  8.85882
  2  1.64942
  3  0.453241
  4  0.25771
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/647103': 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) = 2652.74936414
delta logL = 0.0659463432648

Extracting fit parameters...

4FGL J1226.8-1329
   Spectrum: PowerLaw
353    Prefactor:  2.046e+00  8.859e+00  1.000e-04  1.000e+04 ( 1.000e-13)
354        Index:  2.525e+00  1.649e+00  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.260e-01  2.577e-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.663e+00  4.532e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.16
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/647103/cmap_HighResolution_292204801_292464001_4FGL_J1226.8-1329_daily_bin204.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.56e-02', job_status='DONE', photon_flux_upper_limit='2.08e-07', time_completed='2021-09-05 15:52:02.510046', job_id='647103', GAL2='0.73', fit_tolerance='1e-08', EG2='1.66', EG='1.69', time_epoch_completed='1630882322.51', return_code2='0', ts='0.16', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='6.59e-02', ts2='0.29', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='204' AND source_name='4FGL J1226.8-1329' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 15:52:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 647103: <4FGL_J1226.8-1329_daily_bin204> in cluster <slac> Done

Job <4FGL_J1226.8-1329_daily_bin204> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 15:40:36 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 15:40:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 15:40:38 2021
Terminated at Sun Sep  5 15:52:03 2021
Results reported at Sun Sep  5 15:52:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1226.8-1329_daily_bin204 186.719 -13.494 292204801 292464001 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 :                                   537.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            687 sec.

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

