/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 10 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 = 7462
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1226.8-1329_daily_bin808
RA = 186.719, Dec = -13.494
tmin = 448761601, tmax = 449020801
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='653874', job_status='RUN', time_executed='2021-09-05 16:01:00.733522', time_epoch_executed='1630882860.73' WHERE source_name='4FGL J1226.8-1329' and cadence='daily' and bin_id='808'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/653874

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/653874/ft1_4FGL_J1226.8-1329_daily_bin808.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/653874/ft2_4FGL_J1226.8-1329_daily_bin808.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/653874/ft1_4FGL_J1226.8-1329_daily_bin808.fits outfile=/scratch/kocevski/653874/ft1_filteredMKT_4FGL_J1226.8-1329_daily_bin808.fits ra=186.719 dec=-13.494 rad=12.0 tmin=448761601.0 tmax=449020801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.80
user 5.47
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/653874/ft1_filtered_4FGL_J1226.8-1329_daily_bin808.fits" evtable="EVENTS" scfile=/scratch/kocevski/653874/ft2_4FGL_J1226.8-1329_daily_bin808.fits sctable="SC_DATA" outfile=/scratch/kocevski/653874/ltcube_448761601_449020801_4FGL_J1226.8-1329_daily_bin808.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/653874/ft2_4FGL_J1226.8-1329_daily_bin808.fits
.....................!
real 11.86
user 11.52
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/653874/ft1_filtered_4FGL_J1226.8-1329_daily_bin808.fits evtable="EVENTS" scfile=/scratch/kocevski/653874/ft2_4FGL_J1226.8-1329_daily_bin808.fits sctable="SC_DATA" expcube=/scratch/kocevski/653874/ltcube_448761601_449020801_4FGL_J1226.8-1329_daily_bin808.fits outfile=/scratch/kocevski/653874/expmap_448761601_449020801_4FGL_J1226.8-1329_daily_bin808.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/653874/ltcube_448761601_449020801_4FGL_J1226.8-1329_daily_bin808.fits
.....................!
real 190.08
user 185.69
sys 4.06

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/653874/ft1_filtered_4FGL_J1226.8-1329_daily_bin808.fits scfile=/scratch/kocevski/653874/ft2_4FGL_J1226.8-1329_daily_bin808.fits outfile=/scratch/kocevski/653874/cmap_448761601_449020801_4FGL_J1226.8-1329_daily_bin808.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/653874/ft1_filtered_4FGL_J1226.8-1329_daily_bin808.fits scfile=/scratch/kocevski/653874/ft2_4FGL_J1226.8-1329_daily_bin808.fits outfile=/scratch/kocevski/653874/cmap_HighResolution_448761601_449020801_4FGL_J1226.8-1329_daily_bin808.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/653874/ft1_filtered_4FGL_J1226.8-1329_daily_bin808.fits evtable="EVENTS" scfile=/scratch/kocevski/653874/ft2_4FGL_J1226.8-1329_daily_bin808.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/653874/Model_4FGL_J1226.8-1329_daily_bin808.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/653874/ft1_filtered_4FGL_J1226.8-1329_daily_bin808.fits.....................!
real 55.14
user 53.90
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.2177       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.5129       1.0000         .10000E-03   10000.    
     6 'norm      '    .17806E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.580       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.104       1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.953       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.219       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.449       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.4484       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4037       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9833       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.9289       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .32014       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .61597E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11293E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.1778       1.0000         .10000E-03   10000.    
    22 'norm      '    3.9678       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2282       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90912       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=   6345.235     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2894 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.948        .17230E-05** at limit **
   2  norm          8.2146        7.6518       -.70544E-07   -.35841E-04
   3  Prefactor     .10000E-03    1.6503       -.44141E-07** at limit **
   4  Prefactor     .10000E-03    4.8811       -.14358E-07** at limit **
   5  Prefactor     8.5348        9.9434        .16131E-05    .55167E-03
   6  norm          .10001E-03    3.8149       -.23469E-05** at limit **
   7  Prefactor     .10000E-03    29.247       -.15897E-05** at limit **
   8  Prefactor     24.583        17.926       -.46632E-06   -.68422E-04
   9  Prefactor     14.101        41.467       -.11811E-05   -.15595E-04
  10  Prefactor     25.947        43.739       -.50513E-06    .48068E-04
  11  Prefactor     17.219        17.601       -.13874E-06    .28536E-04
  12  Prefactor     26.458        38.353        .84068E-06    .61257E-04
  13  Prefactor     5.4470        6.0276        .32975E-06    .92797E-04
  14  Prefactor     5.4036        2.4275       -.54702E-07    .14677E-04
  15  Prefactor     1.9960        19.660        .92145E-06    .30950E-04
  16  Prefactor     2.9279        6.8276       -.19155E-06   -.10821E-03
  17  Prefactor     .10000E-03    8.6375        .47366E-07** at limit **
  18  Prefactor     .22237        12.629       -.16258E-05    .27591E-03
  19  Prefactor     .10001E-03    166.83        .62660E-05** at limit **
  20  Prefactor     .10000E-03    35.880       -.47917E-06** at limit **
  21  norm          1.1776        .33119        .54822E-08    .49820E-03
  22  norm          3.9671        5.6420        .11383E-05    .30018E-03
  23  norm          .10000E-03    2.3569        .12882E-07** at limit **
  24  Normalizat    1.2284        .23420        .96775E-06    .23658E-03
  25  Prefactor     .90910        .13383       -.26148E-06    .39555E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 8.21464
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.53477
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 24.5831
  Prefactor  = 14.101
  Prefactor  = 25.9473
  Prefactor  = 17.2192
  Prefactor  = 26.4577
  Prefactor  = 5.44699
  Prefactor  = 5.40365
  Prefactor  = 1.99603
  Prefactor  = 2.9279
  Prefactor  = 0.0001
  Prefactor  = 0.222366
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 1.17761
  norm       = 3.96708
  norm       = 0.0001
  Normalizat = 1.22841
  Prefactor  = 0.909097
 **********
 **   18 **HESSE 
 **********

 FCN=   6345.235     FROM HESSE     STATUS=OK           435 CALLS     3329 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    37.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.2146        7.6486        .13985E-03   -1.5135    
   3  Prefactor     .10000E-03    1.6626        .99763E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.8862        .17188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.5348        10.648        .13739E-03   -1.5124    
   6  norm          .10001E-03    6.3625        .26208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.583        17.996        .80796E-04   -1.4716    
   9  Prefactor     14.101        41.410        .10665E-03   -1.4957    
  10  Prefactor     25.947        43.732        .78634E-04   -1.4689    
  11  Prefactor     17.219        17.595        .96518E-04   -1.4878    
  12  Prefactor     26.458        38.383        .77895E-04   -1.4679    
  13  Prefactor     5.4470        6.0222        .17215E-03   -1.5241    
  14  Prefactor     5.4036        2.4309        .78211E-04   -1.5243    
  15  Prefactor     1.9960        19.577        .29428E-03   -1.5425    
  16  Prefactor     2.9279        6.8474        .23736E-03   -1.5366    
  17  Prefactor     .10000E-03    8.7352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .22237        16.866        .81788E-01   -1.5614    
  19  Prefactor     .10001E-03    169.44        .21050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    35.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.1776        .33118        .23134E-04   -1.5491    
  22  norm          3.9671        5.6428        .20249E-03   -1.5310    
  23  norm          .10000E-03    2.3735        .11942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2284        .28048        .30784E-03   -.85729    
  25  Prefactor     .90910        .16034        .20495E-03   -.95824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90755e-09
Minuit parameter uncertainties:
  1  0.000251701
  2  7.64954
  3  9.74989e-07
  4  1.05794e-06
  5  10.6506
  6  0.000368482
  7  0.000158086
  8  18.0001
  9  41.4942
  10  43.7862
  11  17.6005
  12  38.4191
  13  6.02288
  14  2.43095
  15  12.5073
  16  6.8492
  17  1.17646e-05
  18  3.87348
  19  0.00190384
  20  8.94215e-05
  21  0.33118
  22  5.64351
  23  2.14122e-06
  24  0.280826
  25  0.160421
Done.

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

Extracting fit parameters...

4FGL J1226.8-1329
   Spectrum: PowerLaw
353    Prefactor:  5.447e+00  6.023e+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:  9.091e-01  1.604e-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.228e+00  2.808e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.31
Ra Dec: 186.719 -13.494
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 3.40e-08 +/- 3.75e-08
Energy Flux (Fixed Index): 2.36e-05 +/- 2.61e-05

TS (Fixed Index): 1.31
Ra Dec: 186.719 -13.494
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/653874/likelihoodResults_448761601_449020801_4FGL_J1226.8-1329_daily_bin808.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) = 6345.16662835
delta logL = 0.0683605962649

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6345.16272581
delta logL = 0.0722631358094

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7799       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3094       1.0000          .0000       10.000    
     3 'Normalizat'    1.2110       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91413       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=   6345.163     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      258 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7758        94.410        .51910E-02    .37381E-03
   2  Index         2.3112        3.2306        .11947        .13635E-03
   3  Normalizat    1.2103        .89366E-01    .70018E-01    .15219E-04
   4  Prefactor     .91450        .43483E-01    .45185E-01    .38155E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.77578
  Index      = 2.31123
  Normalizat = 1.21028
  Prefactor  = 0.914501
 **********
 **   18 **HESSE 
 **********

 FCN=   6345.163     FROM HESSE     STATUS=OK            33 CALLS      291 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7758        8.2825        .14423E-03   -1.5319    
   2  Index         2.3112        1.1062        .64422E-02   -.56777    
   3  Normalizat    1.2103        .27686        .30981E-03   -.86286    
   4  Prefactor     .91450        .15873        .20440E-03   -.95636    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24316e-08
Minuit parameter uncertainties:
  1  8.28503
  2  1.11928
  3  0.277197
  4  0.158811
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/653874': 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) = 6345.16271948
delta logL = 0.072269464722

Extracting fit parameters...

4FGL J1226.8-1329
   Spectrum: PowerLaw
353    Prefactor:  3.776e+00  8.285e+00  1.000e-04  1.000e+04 ( 1.000e-13)
354        Index:  2.311e+00  1.119e+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:  9.145e-01  1.588e-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.210e+00  2.772e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.47
Ra Dec: 186.719 -13.494
Photon Index (Free Index): 2.31 +/- 1.12
Photon Flux (Free Index): 4.92e-08 +/- 6.14e-08
Energy Flux (Free Index): 1.83e-05 +/- 2.47e-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/653874/cmap_HighResolution_448761601_449020801_4FGL_J1226.8-1329_daily_bin808.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.01e-03', comment='SUCCESS', photon_flux='3.40e-08', energy_flux2='1.83e-05', photon_flux_error='3.75e-08', dlogl='7.23e-02', energy_flux='2.36e-05', photon_flux2='4.92e-08', job_status='DONE', time_completed='2021-09-05 16:14:05.889711', photon_index_error2='1.12', photon_index2='2.31', ts='1.31', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='2.47e-05', EG='1.23', time_epoch_completed='1630883645.89', return_code='0', job_id='653874', GAL2='0.91', EG2='1.21', return_code2='0', energy_flux_error='2.61e-05', photon_flux_error2='6.14e-08', ts2='1.47', photon_index='2.00' WHERE bin_id='808' AND source_name='4FGL J1226.8-1329' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 16:14:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 653874: <4FGL_J1226.8-1329_daily_bin808> in cluster <slac> Done

Job <4FGL_J1226.8-1329_daily_bin808> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Sep  5 16:00:30 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 16:00:32 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:00:32 2021
Terminated at Sun Sep  5 16:14:06 2021
Results reported at Sun Sep  5 16:14:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1226.8-1329_daily_bin808 186.719 -13.494 448761601 449020801 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 :                                   780.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            816 sec.

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

