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


Performing analysis on: 4FGL_J1226.8-1329_daily_bin466
RA = 186.719, Dec = -13.494
tmin = 360115201, tmax = 360374401
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='650352', job_status='RUN', time_executed='2021-09-05 15:53:47.907681', time_epoch_executed='1630882427.91' WHERE source_name='4FGL J1226.8-1329' and cadence='daily' and bin_id='466'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/650352

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/650352/ft1_4FGL_J1226.8-1329_daily_bin466.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/650352/ft2_4FGL_J1226.8-1329_daily_bin466.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/650352/ft1_4FGL_J1226.8-1329_daily_bin466.fits outfile=/scratch/kocevski/650352/ft1_filteredMKT_4FGL_J1226.8-1329_daily_bin466.fits ra=186.719 dec=-13.494 rad=12.0 tmin=360115201.0 tmax=360374401.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.44
user 3.23
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/650352/ft2_4FGL_J1226.8-1329_daily_bin466.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/650352/ft1_filteredMKT_4FGL_J1226.8-1329_daily_bin466.fits evtable="EVENTS" outfile="/scratch/kocevski/650352/ft1_filtered_4FGL_J1226.8-1329_daily_bin466.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/650352/ft1_filtered_4FGL_J1226.8-1329_daily_bin466.fits" evtable="EVENTS" scfile=/scratch/kocevski/650352/ft2_4FGL_J1226.8-1329_daily_bin466.fits sctable="SC_DATA" outfile=/scratch/kocevski/650352/ltcube_360115201_360374401_4FGL_J1226.8-1329_daily_bin466.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/650352/ft2_4FGL_J1226.8-1329_daily_bin466.fits
.....................!
real 11.86
user 11.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/650352/ft1_filtered_4FGL_J1226.8-1329_daily_bin466.fits evtable="EVENTS" scfile=/scratch/kocevski/650352/ft2_4FGL_J1226.8-1329_daily_bin466.fits sctable="SC_DATA" expcube=/scratch/kocevski/650352/ltcube_360115201_360374401_4FGL_J1226.8-1329_daily_bin466.fits outfile=/scratch/kocevski/650352/expmap_360115201_360374401_4FGL_J1226.8-1329_daily_bin466.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/650352/ltcube_360115201_360374401_4FGL_J1226.8-1329_daily_bin466.fits
.....................!
real 189.12
user 184.98
sys 3.72

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/650352/ft1_filtered_4FGL_J1226.8-1329_daily_bin466.fits scfile=/scratch/kocevski/650352/ft2_4FGL_J1226.8-1329_daily_bin466.fits outfile=/scratch/kocevski/650352/cmap_360115201_360374401_4FGL_J1226.8-1329_daily_bin466.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/650352/ft1_filtered_4FGL_J1226.8-1329_daily_bin466.fits scfile=/scratch/kocevski/650352/ft2_4FGL_J1226.8-1329_daily_bin466.fits outfile=/scratch/kocevski/650352/cmap_HighResolution_360115201_360374401_4FGL_J1226.8-1329_daily_bin466.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .32016       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    61.093       1.0000         .10000E-03   10000.    
    10 'Prefactor '    43.118       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.7876       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.269       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3675       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .41551       1.0000         .10000E-03   10000.    
    22 'norm      '    10.249       1.0000         .10000E-03   10000.    
    23 'norm      '    5.6270       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.7884       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83868       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=   5868.784     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2847 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.155       -.62888E-07** at limit **
   2  norm          .10000E-03    4.0540        .19508E-06** at limit **
   3  Prefactor     .10000E-03    1.5530        .10354E-06** at limit **
   4  Prefactor     .10000E-03    4.4624        .73950E-07** at limit **
   5  Prefactor     .10000E-03    28.827        .48094E-05** at limit **
   6  norm          .40655        21.395        .20582E-04   -.50709E-04
   7  Prefactor     .10000E-03    16.821        .37419E-06** at limit **
   8  Prefactor     .10000E-03    4.9950        .12661E-06** at limit **
   9  Prefactor     61.098        45.869        .42283E-06   -.27454E-04
  10  Prefactor     42.902        90.396       -.25194E-05   -.23604E-04
  11  Prefactor     .10000E-03    19.858        .32751E-05** at limit **
  12  Prefactor     .10000E-03    34.638        .30534E-05** at limit **
  13  Prefactor     .10000E-03    2.2646        .96241E-07** at limit **
  14  Prefactor     6.7878        2.6676        .63905E-07   -.14317E-03
  15  Prefactor     .10000E-03    4.5208        .10995E-06** at limit **
  16  Prefactor     .10000E-03    9.6035        .43974E-06** at limit **
  17  Prefactor     22.277        16.461        .10642E-05   -.87201E-04
  18  Prefactor     2.3683        6.6888       -.51091E-07    .50545E-04
  19  Prefactor     .10000E-03    20.215       -.34752E-06** at limit **
  20  Prefactor     .10000E-03    91.348       -.62135E-06** at limit **
  21  norm          .41562        .25119        .72128E-07    .12649E-03
  22  norm          10.252        10.709        .58713E-06   -.56891E-04
  23  norm          5.6292        10.520        .79527E-06    .16871E-04
  24  Normalizat    1.7879        .27166       -.38588E-05   -.36964E-03
  25  Prefactor     .83880        .15042       -.13230E-05   -.21430E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.406546
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.098
  Prefactor  = 42.9024
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.78777
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.2774
  Prefactor  = 2.36827
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.415616
  norm       = 10.2524
  norm       = 5.62923
  Normalizat = 1.78786
  Prefactor  = 0.838797
 **********
 **   18 **HESSE 
 **********

 FCN=   5868.784     FROM HESSE     STATUS=OK           423 CALLS     3270 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.0950        .15066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.5646        .93208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.4642        .15805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .40655        21.711        .28045E-02   -1.5580    
   7  Prefactor     .10000E-03    16.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.0019        .16722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     61.098        45.882        .25667E-03   -1.4143    
  10  Prefactor     42.902        91.140        .30526E-03   -1.4397    
  11  Prefactor     .10000E-03    19.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    34.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.2727        .11256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.7878        2.6685        .76061E-04   -1.5187    
  15  Prefactor     .10000E-03    4.5269        .15909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.6578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.277        16.569        .84881E-04   -1.4764    
  18  Prefactor     2.3683        6.6577        .26630E-03   -1.5400    
  19  Prefactor     .10000E-03    20.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    91.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .41562        .24740        .28604E-04   -1.5579    
  22  norm          10.252        10.706        .12516E-03   -1.5067    
  23  norm          5.6292        10.509        .16935E-03   -1.5233    
  24  Normalizat    1.7879        .32139        .30447E-03   -.69981    
  25  Prefactor     .83880        .17564        .23484E-03   -.98314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03322e-08
Minuit parameter uncertainties:
  1  3.17859e-05
  2  5.62113e-05
  3  2.85959e-05
  4  2.37771e-05
  5  0.000299304
  6  5.94337
  7  6.84246e-05
  8  3.9333e-05
  9  45.9081
  10  91.4383
  11  0.000343661
  12  0.000308066
  13  1.74135e-05
  14  2.66851
  15  2.59038e-05
  16  0.000122737
  17  16.5721
  18  6.65975
  19  6.76315e-05
  20  0.000212796
  21  0.247405
  22  10.7081
  23  10.512
  24  0.321773
  25  0.17576
Done.

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

Extracting fit parameters...

4FGL J1226.8-1329
   Spectrum: PowerLaw
353    Prefactor:  1.000e-04  1.741e-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.388e-01  1.758e-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.788e+00  3.218e-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: 6.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/650352/likelihoodResults_360115201_360374401_4FGL_J1226.8-1329_daily_bin466.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) = 5868.78617727
delta logL = -0.00204810722607

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5868.78412959
delta logL = -4.34246430814e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10450E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9734       1.0000          .0000       10.000    
     3 'Normalizat'    1.7878       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83883       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=   5868.784     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      238 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10079E-03    20.895        .11544E-02** at limit **
   2  Index         1.9301        8.3973        .50000        .74769E-04
   3  Normalizat    1.7879        .20542E-01    .30447E-03    .70943E-06
   4  Prefactor     .83879        .11497E-01    .23483E-03   -.25029E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100791
  Index      = 1.93005
  Normalizat = 1.78787
  Prefactor  = 0.838794
 **********
 **   18 **HESSE 
 **********

 FCN=   5868.784     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10079E-03    89.052        .23087E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9301        8.2671        .50000       -.66111    
   3  Normalizat    1.7879        .43824E-01    .12179E-04   -.69981    
   4  Prefactor     .83879        .24527E-01    .93934E-05   -.98314    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.43418e-08
Minuit parameter uncertainties:
  1  0.0168133
  2  192.746
  3  0.0438254
  4  0.0245269
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/650352': 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) = 5868.7841279
delta logL = 1.26135364553e-06

Extracting fit parameters...

4FGL J1226.8-1329
   Spectrum: PowerLaw
353    Prefactor:  1.008e-04  1.681e-02  1.000e-04  1.000e+04 ( 1.000e-13)
354        Index:  1.930e+00  1.927e+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:  8.388e-01  2.453e-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.788e+00  4.383e-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/650352/cmap_HighResolution_360115201_360374401_4FGL_J1226.8-1329_daily_bin466.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.07e-03', job_status='DONE', photon_flux_upper_limit='6.76e-08', time_completed='2021-09-05 16:05:37.763491', job_id='650352', GAL2='0.84', fit_tolerance='1e-08', EG2='1.79', EG='1.79', time_epoch_completed='1630883137.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.26e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='466' AND source_name='4FGL J1226.8-1329' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 16:05:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 650352: <4FGL_J1226.8-1329_daily_bin466> in cluster <slac> Done

Job <4FGL_J1226.8-1329_daily_bin466> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 15:50:18 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 15:50:20 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:50:20 2021
Terminated at Sun Sep  5 16:05:38 2021
Results reported at Sun Sep  5 16:05:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1226.8-1329_daily_bin466 186.719 -13.494 360115201 360374401 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 :                                   708.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            920 sec.

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

