/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 167 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_bin235
RA = 186.719, Dec = -13.494
tmin = 300240001, tmax = 300499201
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='647155', job_status='RUN', time_executed='2021-09-05 15:43:39.299303', time_epoch_executed='1630881819.3' WHERE source_name='4FGL J1226.8-1329' and cadence='daily' and bin_id='235'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/647155

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/647155/ft1_4FGL_J1226.8-1329_daily_bin235.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/647155/ft2_4FGL_J1226.8-1329_daily_bin235.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/647155/ft1_4FGL_J1226.8-1329_daily_bin235.fits outfile=/scratch/kocevski/647155/ft1_filteredMKT_4FGL_J1226.8-1329_daily_bin235.fits ra=186.719 dec=-13.494 rad=12.0 tmin=300240001.0 tmax=300499201.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.42
user 3.16
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/647155/ft1_filtered_4FGL_J1226.8-1329_daily_bin235.fits" evtable="EVENTS" scfile=/scratch/kocevski/647155/ft2_4FGL_J1226.8-1329_daily_bin235.fits sctable="SC_DATA" outfile=/scratch/kocevski/647155/ltcube_300240001_300499201_4FGL_J1226.8-1329_daily_bin235.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/647155/ft2_4FGL_J1226.8-1329_daily_bin235.fits
.....................!
real 12.01
user 11.51
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/647155/ft1_filtered_4FGL_J1226.8-1329_daily_bin235.fits evtable="EVENTS" scfile=/scratch/kocevski/647155/ft2_4FGL_J1226.8-1329_daily_bin235.fits sctable="SC_DATA" expcube=/scratch/kocevski/647155/ltcube_300240001_300499201_4FGL_J1226.8-1329_daily_bin235.fits outfile=/scratch/kocevski/647155/expmap_300240001_300499201_4FGL_J1226.8-1329_daily_bin235.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/647155/ltcube_300240001_300499201_4FGL_J1226.8-1329_daily_bin235.fits
.....................!
real 191.29
user 185.32
sys 5.20

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/647155/ft1_filtered_4FGL_J1226.8-1329_daily_bin235.fits scfile=/scratch/kocevski/647155/ft2_4FGL_J1226.8-1329_daily_bin235.fits outfile=/scratch/kocevski/647155/cmap_300240001_300499201_4FGL_J1226.8-1329_daily_bin235.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/647155/ft1_filtered_4FGL_J1226.8-1329_daily_bin235.fits scfile=/scratch/kocevski/647155/ft2_4FGL_J1226.8-1329_daily_bin235.fits outfile=/scratch/kocevski/647155/cmap_HighResolution_300240001_300499201_4FGL_J1226.8-1329_daily_bin235.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.54
user 0.35
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/647155/ft1_filtered_4FGL_J1226.8-1329_daily_bin235.fits evtable="EVENTS" scfile=/scratch/kocevski/647155/ft2_4FGL_J1226.8-1329_daily_bin235.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/647155/Model_4FGL_J1226.8-1329_daily_bin235.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/647155/ft1_filtered_4FGL_J1226.8-1329_daily_bin235.fits.....................!
real 53.22
user 51.23
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    13.050       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1533       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.5931       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4734       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.4675       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.1459       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10625E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .28927       1.0000         .10000E-03   10000.    
    22 'norm      '    10.582       1.0000         .10000E-03   10000.    
    23 'norm      '    3.1392       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.6648       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .69104       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=   5910.272     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2432 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.281       -.16129E-05** at limit **
   2  norm          13.050        8.2445        .78225E-07   -.18636E-03
   3  Prefactor     2.1532        3.0559        .56559E-07   -.14004E-03
   4  Prefactor     .10000E-03    7.6233       -.33420E-06** at limit **
   5  Prefactor     .10000E-03    5.2956        .91014E-08** at limit **
   6  norm          .10000E-03    1.4506        .14259E-07** at limit **
   7  Prefactor     .10000E-03    12.023        .30917E-06** at limit **
   8  Prefactor     .10000E-03    9.0703        .12858E-05** at limit **
   9  Prefactor     .10000E-03    11.222       -.17369E-05** at limit **
  10  Prefactor     .10000E-03    26.056       -.18796E-05** at limit **
  11  Prefactor     .10000E-03    12.871        .26455E-05** at limit **
  12  Prefactor     .10005E-03    59.833        .21412E-04** at limit **
  13  Prefactor     9.5936        7.0236        .19108E-06   -.36760E-03
  14  Prefactor     4.4735        2.1670       -.77952E-08    .25859E-04
  15  Prefactor     5.4607        14.716        .87008E-06    .19413E-04
  16  Prefactor     9.1473        15.932       -.11643E-06   -.25820E-04
  17  Prefactor     .10000E-03    16.469       -.56749E-08** at limit **
  18  Prefactor     .10000E-03    6.1318        .48135E-07** at limit **
  19  Prefactor     .10000E-03    69.591       -.60961E-05** at limit **
  20  Prefactor     .10003E-03    71.181       -.17007E-04** at limit **
  21  norm          .28917        .17928        .52690E-08    .28553E-03
  22  norm          10.581        9.3132       -.58653E-07   -.85766E-05
  23  norm          3.1378        3.7251        .20216E-05   -.25482E-02
  24  Normalizat    1.6648        .24006       -.23134E-06   -.26328E-04
  25  Prefactor     .69097        .13328       -.19586E-06   -.46987E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 13.0496
  Prefactor  = 2.15323
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.00010005
  Prefactor  = 9.59359
  Prefactor  = 4.47354
  Prefactor  = 5.46069
  Prefactor  = 9.1473
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100032
  norm       = 0.289167
  norm       = 10.5809
  norm       = 3.13784
  Normalizat = 1.66479
  Prefactor  = 0.690968
 **********
 **   18 **HESSE 
 **********

 FCN=   5910.272     FROM HESSE     STATUS=OK           423 CALLS     2855 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          13.050        8.2395        .55441E-03   -1.4985    
   3  Prefactor     2.1532        3.0355        .14930E-03   -1.5414    
   4  Prefactor     .10000E-03    7.6502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.3043        .17278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.4569        .90419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.1274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10005E-03    62.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.5936        7.0550        .64692E-03   -1.5088    
  14  Prefactor     4.4735        2.1687        .75712E-04   -1.5285    
  15  Prefactor     5.4607        14.739        .17184E-03   -1.5241    
  16  Prefactor     9.1473        15.930        .13253E-03   -1.5103    
  17  Prefactor     .10000E-03    16.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.1481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    70.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10003E-03    72.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .28917        .17970        .24771E-04   -1.5600    
  22  norm          10.581        9.3146        .12317E-03   -1.5057    
  23  norm          3.1378        5.4269        .11408E-02   -1.5354    
  24  Normalizat    1.6648        .28309        .27559E-03   -.73247    
  25  Prefactor     .69097        .15711        .22638E-03   -1.0388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.5466e-09
Minuit parameter uncertainties:
  1  0.000114777
  2  8.24017
  3  3.0357
  4  1.88153e-05
  5  1.25731e-07
  6  1.83017e-07
  7  2.26074e-05
  8  8.12124e-05
  9  0.000123848
  10  0.000208661
  11  0.000193585
  12  0.00353913
  13  7.05561
  14  2.1687
  15  14.7488
  16  15.9374
  17  3.69987e-06
  18  4.68773e-07
  19  0.00104642
  20  0.00304923
  21  0.179702
  22  9.31588
  23  5.4277
  24  0.28337
  25  0.157209
Done.

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

Extracting fit parameters...

4FGL J1226.8-1329
   Spectrum: PowerLaw
353    Prefactor:  9.594e+00  7.056e+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

GAL_V02
   Spectrum: PowerLaw
631    Prefactor:  6.910e-01  1.572e-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.665e+00  2.834e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.71
Ra Dec: 186.719 -13.494
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 5.98e-08 +/- 4.40e-08
Energy Flux (Fixed Index): 4.15e-05 +/- 3.05e-05

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) = 5910.26746666
delta logL = 0.00498720175528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5910.26658346
delta logL = 0.00587040008031

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8240       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9003       1.0000          .0000       10.000    
     3 'Normalizat'    1.6741       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68946       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=   5910.267     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      260 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8245        7.7726        .12785E-03   -.65803E-05
   2  Index         1.8996        .99358        .12602E-01    .23252E-04
   3  Normalizat    1.6741        .29191        .27501E-03    .30376E-04
   4  Prefactor     .68944        .15600        .22666E-03   -.57682E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.82449
  Index      = 1.89956
  Normalizat = 1.67412
  Prefactor  = 0.689444
 **********
 **   18 **HESSE 
 **********

 FCN=   5910.267     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .68E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8245        7.6009        .51139E-05   -1.5081    
   2  Index         1.8996        .96485        .50409E-03   -.66886    
   3  Normalizat    1.6741        .29008        .55003E-04   -.72996    
   4  Prefactor     .68944        .15595        .90663E-05   -1.0394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.78479e-12
Minuit parameter uncertainties:
  1  7.6016
  2  0.974854
  3  0.29037
  4  0.156048
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/647155': 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) = 5910.26658317
delta logL = 0.00587069356061

Extracting fit parameters...

4FGL J1226.8-1329
   Spectrum: PowerLaw
353    Prefactor:  9.824e+00  7.602e+00  1.000e-04  1.000e+04 ( 1.000e-13)
354        Index:  1.900e+00  9.749e-01  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:  6.894e-01  1.560e-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.674e+00  2.904e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.72
Ra Dec: 186.719 -13.494
Photon Index (Free Index): 1.90 +/- 0.97
Photon Flux (Free Index): 4.94e-08 +/- 1.05e-07
Energy Flux (Free Index): 4.44e-05 +/- 4.61e-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/647155/cmap_HighResolution_300240001_300499201_4FGL_J1226.8-1329_daily_bin235.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.98e-08', energy_flux2='4.44e-05', photon_flux_error='4.40e-08', dlogl='5.87e-03', energy_flux='4.15e-05', photon_flux2='4.94e-08', job_status='DONE', time_completed='2021-09-05 15:53:55.192495', photon_index_error2='0.97', photon_index2='1.90', ts='9.71', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', energy_flux_error2='4.61e-05', EG='1.66', time_epoch_completed='1630882435.19', return_code='0', job_id='647155', GAL2='0.69', EG2='1.67', return_code2='0', energy_flux_error='3.05e-05', photon_flux_error2='1.05e-07', ts2='9.72', photon_index='2.00' WHERE bin_id='235' AND source_name='4FGL J1226.8-1329' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 15:53:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 647155: <4FGL_J1226.8-1329_daily_bin235> in cluster <slac> Done

Job <4FGL_J1226.8-1329_daily_bin235> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 15:40:41 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 15:40:42 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:42 2021
Terminated at Sun Sep  5 15:53:55 2021
Results reported at Sun Sep  5 15:53:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1226.8-1329_daily_bin235 186.719 -13.494 300240001 300499201 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 :                                   612.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             251.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            794 sec.

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

