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


Performing analysis on: 4FGL_J1226.8-1329_daily_bin346
RA = 186.719, Dec = -13.494
tmin = 329011201, tmax = 329270401
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='648761', job_status='RUN', time_executed='2021-09-05 15:47:27.515451', time_epoch_executed='1630882047.52' WHERE source_name='4FGL J1226.8-1329' and cadence='daily' and bin_id='346'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/648761

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/648761/ft1_4FGL_J1226.8-1329_daily_bin346.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/648761/ft2_4FGL_J1226.8-1329_daily_bin346.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/648761/ft1_4FGL_J1226.8-1329_daily_bin346.fits outfile=/scratch/kocevski/648761/ft1_filteredMKT_4FGL_J1226.8-1329_daily_bin346.fits ra=186.719 dec=-13.494 rad=12.0 tmin=329011201.0 tmax=329270401.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.66
user 3.36
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/648761/ft1_filtered_4FGL_J1226.8-1329_daily_bin346.fits" evtable="EVENTS" scfile=/scratch/kocevski/648761/ft2_4FGL_J1226.8-1329_daily_bin346.fits sctable="SC_DATA" outfile=/scratch/kocevski/648761/ltcube_329011201_329270401_4FGL_J1226.8-1329_daily_bin346.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/648761/ft2_4FGL_J1226.8-1329_daily_bin346.fits
.....................!
real 11.95
user 11.57
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/648761/ft1_filtered_4FGL_J1226.8-1329_daily_bin346.fits evtable="EVENTS" scfile=/scratch/kocevski/648761/ft2_4FGL_J1226.8-1329_daily_bin346.fits sctable="SC_DATA" expcube=/scratch/kocevski/648761/ltcube_329011201_329270401_4FGL_J1226.8-1329_daily_bin346.fits outfile=/scratch/kocevski/648761/expmap_329011201_329270401_4FGL_J1226.8-1329_daily_bin346.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/648761/ltcube_329011201_329270401_4FGL_J1226.8-1329_daily_bin346.fits
.....................!
real 189.93
user 185.14
sys 4.39

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/648761/ft1_filtered_4FGL_J1226.8-1329_daily_bin346.fits scfile=/scratch/kocevski/648761/ft2_4FGL_J1226.8-1329_daily_bin346.fits outfile=/scratch/kocevski/648761/cmap_329011201_329270401_4FGL_J1226.8-1329_daily_bin346.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/648761/ft1_filtered_4FGL_J1226.8-1329_daily_bin346.fits scfile=/scratch/kocevski/648761/ft2_4FGL_J1226.8-1329_daily_bin346.fits outfile=/scratch/kocevski/648761/cmap_HighResolution_329011201_329270401_4FGL_J1226.8-1329_daily_bin346.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/648761/ft1_filtered_4FGL_J1226.8-1329_daily_bin346.fits evtable="EVENTS" scfile=/scratch/kocevski/648761/ft2_4FGL_J1226.8-1329_daily_bin346.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/648761/Model_4FGL_J1226.8-1329_daily_bin346.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/648761/ft1_filtered_4FGL_J1226.8-1329_daily_bin346.fits.....................!
real 64.91
user 63.56
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.4108       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .85312       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.3164       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13081E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6818       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.7125       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .62423       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.2591       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.486       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.882       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.386       1.0000         .10000E-03   10000.    
    20 'Prefactor '    173.49       1.0000         .10000E-03   10000.    
    21 'norm      '    3.2143       1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.7689       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0519       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0069       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=   8152.958     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     2888 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.257        .20988E-07** at limit **
   2  norm          2.4271        11.478       -.62256E-05   -.45362E-03
   3  Prefactor     .84473        5.7314        .57196E-05    .91166E-06
   4  Prefactor     .10000E-03    7.9318       -.10293E-06** at limit **
   5  Prefactor     .10000E-03    7.2418        .21976E-06** at limit **
   6  norm          .10000E-03    2.0161        .18966E-06** at limit **
   7  Prefactor     9.3108        27.108       -.12128E-05   -.30271E-04
   8  Prefactor     .10000E-03    45.115        .47114E-06** at limit **
   9  Prefactor     .10000E-03    15.068       -.52315E-07** at limit **
  10  Prefactor     .10000E-03    13.364        .12229E-06** at limit **
  11  Prefactor     1.6823        24.046        .23077E-05   -.71320E-04
  12  Prefactor     .10000E-03    23.899        .12243E-06** at limit **
  13  Prefactor     .10000E-03    2.1897        .10089E-06** at limit **
  14  Prefactor     7.7126        2.2663        .46149E-08    .20442E-04
  15  Prefactor     .62997        6.7860        .18107E-06   -.53648E-05
  16  Prefactor     4.2617        10.138        .32572E-06   -.11159E-04
  17  Prefactor     14.486        9.8584        .12278E-06   -.12013E-04
  18  Prefactor     11.885        14.631       -.58277E-07    .22146E-04
  19  Prefactor     15.385        36.641        .20349E-06   -.15595E-05
  20  Prefactor     173.19        118.29       -.61544E-05   -.20079E-03
  21  norm          3.2143        .42203        .30678E-08    .20792E-03
  22  norm          .10000E-03    2.7772       -.72568E-07** at limit **
  23  norm          6.7854        10.108        .41778E-05   -.97433E-03
  24  Normalizat    1.0520        .21646       -.12794E-05   -.11325E-03
  25  Prefactor     1.0068        .12070       -.51343E-07   -.19769E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.42712
  Prefactor  = 0.844734
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.31075
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.68234
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.71258
  Prefactor  = 0.629968
  Prefactor  = 4.26173
  Prefactor  = 14.486
  Prefactor  = 11.8848
  Prefactor  = 15.3846
  Prefactor  = 173.191
  norm       = 3.21429
  norm       = 0.0001
  norm       = 6.78542
  Normalizat = 1.05197
  Prefactor  = 1.00684
 **********
 **   18 **HESSE 
 **********

 FCN=   8152.958     FROM HESSE     STATUS=OK           429 CALLS     3317 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.4271        10.572        .26366E-03   -1.5396    
   3  Prefactor     .84473        5.4543        .32218E-03   -1.5524    
   4  Prefactor     .10000E-03    7.9572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.2761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.0377        .12514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.3108        27.058        .13130E-03   -1.5098    
   8  Prefactor     .10000E-03    46.956        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.6823        24.115        .32480E-03   -1.5449    
  12  Prefactor     .10000E-03    23.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.2320        .13042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.7126        2.2661        .71622E-04   -1.5152    
  15  Prefactor     .62997        33.529        .44652E-02   -1.5549    
  16  Prefactor     4.2617        10.123        .19523E-03   -1.5295    
  17  Prefactor     14.486        9.8890        .10524E-03   -1.4947    
  18  Prefactor     11.885        14.531        .11622E-03   -1.5018    
  19  Prefactor     15.385        36.806        .10211E-03   -1.4923    
  20  Prefactor     173.19        116.13        .15318E-03   -1.3068    
  21  norm          3.2143        .42512        .19845E-04   -1.5349    
  22  norm          .10000E-03    2.7996        .14693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.7854        9.5454        .77111E-03   -1.5187    
  24  Normalizat    1.0520        .25195        .34998E-03   -.91309    
  25  Prefactor     1.0068        .14120        .20594E-03   -.92502    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30693e-08
Minuit parameter uncertainties:
  1  5.01217e-05
  2  10.134
  3  4.29331
  4  3.6204e-05
  5  1.04277e-05
  6  5.58275e-06
  7  27.0935
  8  9.83593e-05
  9  1.78406e-05
  10  1.54772e-05
  11  12.7447
  12  1.69298e-05
  13  2.75319e-06
  14  2.2661
  15  9.19644
  16  10.1275
  17  9.89014
  18  14.5355
  19  36.8606
  20  116.287
  21  0.425118
  22  4.99126e-06
  23  9.5475
  24  0.25224
  25  0.141253
Done.

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

Extracting fit parameters...

4FGL J1226.8-1329
   Spectrum: PowerLaw
353    Prefactor:  1.000e-04  2.753e-06  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:  1.007e+00  1.413e-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.052e+00  2.522e-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: 5.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/648761/likelihoodResults_329011201_329270401_4FGL_J1226.8-1329_daily_bin346.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) = 8152.96019789
delta logL = -0.00212983381516

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8152.95806827
delta logL = -2.14133251575e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0016       1.0000          .0000       10.000    
     3 'Normalizat'    1.0521       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0068       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=   8152.958     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      203 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.9265        .90712E-02** at limit **
   2  Index         2.0049        5.5978        .50000       -.12894E-04
   3  Normalizat    1.0520        .11585E-01    .79063E-01    .19150E-04
   4  Prefactor     1.0068        .67216E-02    .43850E-01    .35905E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.0049
  Normalizat = 1.05197
  Prefactor  = 1.00684
 **********
 **   18 **HESSE 
 **********

 FCN=   8152.958     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      236 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    237.48        .13044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0049        8.9975        .50000       -.64228    
   3  Normalizat    1.0520        .64906E-01    .34998E-03   -.91309    
   4  Prefactor     1.0068        .37712E-01    .20594E-03   -.92502    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.85191e-08
Minuit parameter uncertainties:
  1  1.14358e-05
  2  41.4609
  3  0.0649109
  4  0.0377128
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/648761': 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) = 8152.95806804
delta logL = 2.07228367799e-08

Extracting fit parameters...

4FGL J1226.8-1329
   Spectrum: PowerLaw
353    Prefactor:  1.000e-04  1.144e-05  1.000e-04  1.000e+04 ( 1.000e-13)
354        Index:  2.005e+00  4.146e+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:  1.007e+00  3.771e-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.052e+00  6.491e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/648761/cmap_HighResolution_329011201_329270401_4FGL_J1226.8-1329_daily_bin346.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.83e-03', job_status='DONE', photon_flux_upper_limit='5.11e-08', time_completed='2021-09-05 16:02:07.767994', job_id='648761', GAL2='1.01', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630882927.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.07e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='346' AND source_name='4FGL J1226.8-1329' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 16:02:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 648761: <4FGL_J1226.8-1329_daily_bin346> in cluster <slac> Done

Job <4FGL_J1226.8-1329_daily_bin346> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 15:45:35 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 15:45:36 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:45:36 2021
Terminated at Sun Sep  5 16:02:08 2021
Results reported at Sun Sep  5 16:02:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1226.8-1329_daily_bin346 186.719 -13.494 329011201 329270401 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 :                                   877.42 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            993 sec.

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

