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


Performing analysis on: 4FGL_J1226.8-1329_daily_bin1068
RA = 186.719, Dec = -13.494
tmin = 516153601, tmax = 516412801
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='656984', job_status='RUN', time_executed='2021-09-05 16:11:16.950759', time_epoch_executed='1630883476.95' WHERE source_name='4FGL J1226.8-1329' and cadence='daily' and bin_id='1068'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/656984

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/656984/ft1_4FGL_J1226.8-1329_daily_bin1068.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/656984/ft2_4FGL_J1226.8-1329_daily_bin1068.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/656984/ft1_4FGL_J1226.8-1329_daily_bin1068.fits outfile=/scratch/kocevski/656984/ft1_filteredMKT_4FGL_J1226.8-1329_daily_bin1068.fits ra=186.719 dec=-13.494 rad=12.0 tmin=516153601.0 tmax=516412801.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.56
user 3.31
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/656984/ft2_4FGL_J1226.8-1329_daily_bin1068.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/656984/ft1_filteredMKT_4FGL_J1226.8-1329_daily_bin1068.fits evtable="EVENTS" outfile="/scratch/kocevski/656984/ft1_filtered_4FGL_J1226.8-1329_daily_bin1068.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.53
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/656984/ft1_filtered_4FGL_J1226.8-1329_daily_bin1068.fits" evtable="EVENTS" scfile=/scratch/kocevski/656984/ft2_4FGL_J1226.8-1329_daily_bin1068.fits sctable="SC_DATA" outfile=/scratch/kocevski/656984/ltcube_516153601_516412801_4FGL_J1226.8-1329_daily_bin1068.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/656984/ft2_4FGL_J1226.8-1329_daily_bin1068.fits
.....................!
real 12.40
user 12.00
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/656984/ft1_filtered_4FGL_J1226.8-1329_daily_bin1068.fits evtable="EVENTS" scfile=/scratch/kocevski/656984/ft2_4FGL_J1226.8-1329_daily_bin1068.fits sctable="SC_DATA" expcube=/scratch/kocevski/656984/ltcube_516153601_516412801_4FGL_J1226.8-1329_daily_bin1068.fits outfile=/scratch/kocevski/656984/expmap_516153601_516412801_4FGL_J1226.8-1329_daily_bin1068.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/656984/ltcube_516153601_516412801_4FGL_J1226.8-1329_daily_bin1068.fits
.....................!
real 192.44
user 186.43
sys 4.60

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/656984/ft1_filtered_4FGL_J1226.8-1329_daily_bin1068.fits scfile=/scratch/kocevski/656984/ft2_4FGL_J1226.8-1329_daily_bin1068.fits outfile=/scratch/kocevski/656984/cmap_516153601_516412801_4FGL_J1226.8-1329_daily_bin1068.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.64
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/656984/ft1_filtered_4FGL_J1226.8-1329_daily_bin1068.fits scfile=/scratch/kocevski/656984/ft2_4FGL_J1226.8-1329_daily_bin1068.fits outfile=/scratch/kocevski/656984/cmap_HighResolution_516153601_516412801_4FGL_J1226.8-1329_daily_bin1068.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.64
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/656984/ft1_filtered_4FGL_J1226.8-1329_daily_bin1068.fits evtable="EVENTS" scfile=/scratch/kocevski/656984/ft2_4FGL_J1226.8-1329_daily_bin1068.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/656984/Model_4FGL_J1226.8-1329_daily_bin1068.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/656984/ft1_filtered_4FGL_J1226.8-1329_daily_bin1068.fits.....................!
real 63.08
user 60.02
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5645       1.0000         .10000E-03   10000.    
     2 'norm      '    6.0379       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.4709       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10469E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.852       1.0000         .10000E-03   10000.    
     6 'norm      '    6.8107       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12992E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10392E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16032E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18676E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9534       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .30761       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.7607       1.0000         .10000E-03   10000.    
    17 'Prefactor '    50.059       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1639       1.0000         .10000E-03   10000.    
    19 'Prefactor '    42.010       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13961E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.6946       1.0000         .10000E-03   10000.    
    22 'norm      '    1.9053       1.0000         .10000E-03   10000.    
    23 'norm      '    14.241       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4663       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88357       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=   7316.449     FROM MIGRAD    STATUS=CONVERGED   1036 CALLS     2977 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5654        76.185        .21407E-03   -.29209E-05
   2  norm          6.0350        7.3324        .16340E-03   -.75698E-04
   3  Prefactor     5.4699        4.4305        .75507E-03   -.70940E-03
   4  Prefactor     .10000E-03    10.222        .18142E-02** at limit **
   5  Prefactor     25.807        35.243        .78788E-04    .15800E-03
   6  norm          6.8220        9.3791        .15374E-03    .13081E-03
   7  Prefactor     .10000E-03    46.261        .18142E-02** at limit **
   8  Prefactor     .10000E-03    23.053        .18142E-02** at limit **
   9  Prefactor     .10000E-03    18.207        .18142E-02** at limit **
  10  Prefactor     .10001E-03    68.193        .19881    ** at limit **
  11  Prefactor     .10000E-03    11.545        .18142E-02** at limit **
  12  Prefactor     .10000E-03    64.438        .18142E-02** at limit **
  13  Prefactor     .10000E-03    8.7165        .36285E-03** at limit **
  14  Prefactor     2.9541        2.0903        .10083E-03   -.34919E-03
  15  Prefactor     .29600        62.313        .44070E-02   -.37602E-03
  16  Prefactor     7.7623        11.570        .14394E-03   -.24405E-04
  17  Prefactor     50.043        18.096        .56680E-04   -.86849E-04
  18  Prefactor     3.1980        17.709        .22786E-03   -.59673E-04
  19  Prefactor     41.875        45.389        .30924E-03    .36197E-04
  20  Prefactor     .10000E-03    54.146        .18142E-02** at limit **
  21  norm          6.6944        .66159        .20525E-04    .20771E-03
  22  norm          1.9036        12.394        .30125E-03    .11812E-04
  23  norm          14.248        8.9070        .10614E-03    .61055E-05
  24  Normalizat    1.4660        .32926        .37089E-03   -.35784E-03
  25  Prefactor     .88371        .17971        .25370E-03   -.53013E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.56541
  norm       = 6.03496
  Prefactor  = 5.46994
  Prefactor  = 0.0001
  Prefactor  = 25.8073
  norm       = 6.82198
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.95414
  Prefactor  = 0.296003
  Prefactor  = 7.7623
  Prefactor  = 50.0427
  Prefactor  = 3.19799
  Prefactor  = 41.8747
  Prefactor  = 0.0001
  norm       = 6.69437
  norm       = 1.90357
  norm       = 14.2484
  Normalizat = 1.46602
  Prefactor  = 0.883714
 **********
 **   18 **HESSE 
 **********

 FCN=   7316.449     FROM HESSE     STATUS=OK           413 CALLS     3390 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5654        76.189        .85627E-05   -1.5330    
   2  norm          6.0350        7.3319        .65361E-05   -1.5217    
   3  Prefactor     5.4699        4.4296        .30203E-04   -1.5240    
   4  Prefactor     .10000E-03    10.223        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     25.807        35.246        .15758E-04   -1.4692    
   6  norm          6.8220        9.3792        .61497E-05   -1.5186    
   7  Prefactor     .10000E-03    46.269        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    23.066        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.207        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    71.842        .19162       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.546        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    64.450        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.7169        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.9541        2.0902        .40332E-05   -1.5364    
  15  Prefactor     .29600        63.846        .17628E-03   -1.5599    
  16  Prefactor     7.7623        11.569        .57577E-05   -1.5151    
  17  Prefactor     50.043        18.096        .22672E-05   -1.4292    
  18  Prefactor     3.1980        17.658        .91143E-05   -1.5350    
  19  Prefactor     41.875        45.388        .61849E-04   -1.4413    
  20  Prefactor     .10000E-03    54.148        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.6944        .66157        .82100E-06   -1.5190    
  22  norm          1.9036        12.386        .12050E-04   -1.5432    
  23  norm          14.248        8.9065        .42455E-05   -1.4953    
  24  Normalizat    1.4660        .32955        .74179E-04   -.78738    
  25  Prefactor     .88371        .17985        .10148E-04   -.96713    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.87073e-09
Minuit parameter uncertainties:
  1  33.0108
  2  7.33296
  3  4.42984
  4  1.14054e-05
  5  35.2745
  6  9.38119
  7  0.000170867
  8  0.000106298
  9  2.03658e-05
  10  0.00130869
  11  1.25369e-06
  12  0.000209299
  13  8.84282e-05
  14  2.09025
  15  8.70248
  16  11.5728
  17  18.0975
  18  15.0361
  19  45.4256
  20  8.94814e-05
  21  0.661569
  22  9.71418
  23  8.90736
  24  0.330028
  25  0.179968
Done.

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

Extracting fit parameters...

4FGL J1226.8-1329
   Spectrum: PowerLaw
353    Prefactor:  1.000e-04  8.843e-05  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:  8.837e-01  1.800e-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.466e+00  3.300e-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: 9.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/656984/likelihoodResults_516153601_516412801_4FGL_J1226.8-1329_daily_bin1068.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) = 7316.44981884
delta logL = -0.000547494873899

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7316.44927154
delta logL = -1.91102117242e-07

Fit tolerance = 1e-08

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

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

 FCN=   7316.449     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      221 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    .58540E-01    .58798E-01** at limit **
   2  Index         2.1196        5.9348        .50000       -.57620E-04
   3  Normalizat    1.4660        .87355E-03    .83783E-01    .36775E-04
   4  Prefactor     .88371        .48112E-03    .44797E-01    .25559E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100013
  Index      = 2.11958
  Normalizat = 1.46603
  Prefactor  = 0.883709
 **********
 **   18 **HESSE 
 **********

 FCN=   7316.449     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      256 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    10.612        .32365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1196        8.1272        .50000       -.61393    
   3  Normalizat    1.4660        .65398E-02    .37090E-03   -.78737    
   4  Prefactor     .88371        .36063E-02    .25369E-03   -.96713    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.70271e-07
Minuit parameter uncertainties:
  1  0.000746074
  2  39.0367
  3  0.00653977
  4  0.00360626
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/656984': 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) = 7316.4492697
delta logL = 1.64660104929e-06

Extracting fit parameters...

4FGL J1226.8-1329
   Spectrum: PowerLaw
353    Prefactor:  1.000e-04  7.461e-04  1.000e-04  1.000e+04 ( 1.000e-13)
354        Index:  2.120e+00  3.904e+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:  8.837e-01  3.606e-03  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.466e+00  6.540e-03  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/656984/cmap_HighResolution_516153601_516412801_4FGL_J1226.8-1329_daily_bin1068.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.37e-03', job_status='DONE', photon_flux_upper_limit='9.83e-08', time_completed='2021-09-05 16:25:33.596370', job_id='656984', GAL2='0.88', fit_tolerance='1e-08', EG2='1.47', EG='1.47', time_epoch_completed='1630884333.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.65e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1068' AND source_name='4FGL J1226.8-1329' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 16:25:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 656984: <4FGL_J1226.8-1329_daily_bin1068> in cluster <slac> Done

Job <4FGL_J1226.8-1329_daily_bin1068> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 16:10:59 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 16:11:00 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:00 2021
Terminated at Sun Sep  5 16:25:34 2021
Results reported at Sun Sep  5 16:25:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1226.8-1329_daily_bin1068 186.719 -13.494 516153601 516412801 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 :                                   844.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             365.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            875 sec.

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

