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


Performing analysis on: 4FGL_J1226.8-1329_daily_bin427
RA = 186.719, Dec = -13.494
tmin = 350006401, tmax = 350265601
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='648908', job_status='RUN', time_executed='2021-09-05 15:47:57.707208', time_epoch_executed='1630882077.71' WHERE source_name='4FGL J1226.8-1329' and cadence='daily' and bin_id='427'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/648908

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/648908/ft1_4FGL_J1226.8-1329_daily_bin427.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/648908/ft2_4FGL_J1226.8-1329_daily_bin427.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/648908/ft1_4FGL_J1226.8-1329_daily_bin427.fits outfile=/scratch/kocevski/648908/ft1_filteredMKT_4FGL_J1226.8-1329_daily_bin427.fits ra=186.719 dec=-13.494 rad=12.0 tmin=350006401.0 tmax=350265601.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.98
user 3.73
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/648908/ft2_4FGL_J1226.8-1329_daily_bin427.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/648908/ft1_filteredMKT_4FGL_J1226.8-1329_daily_bin427.fits evtable="EVENTS" outfile="/scratch/kocevski/648908/ft1_filtered_4FGL_J1226.8-1329_daily_bin427.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/648908/ft1_filtered_4FGL_J1226.8-1329_daily_bin427.fits" evtable="EVENTS" scfile=/scratch/kocevski/648908/ft2_4FGL_J1226.8-1329_daily_bin427.fits sctable="SC_DATA" outfile=/scratch/kocevski/648908/ltcube_350006401_350265601_4FGL_J1226.8-1329_daily_bin427.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/648908/ft2_4FGL_J1226.8-1329_daily_bin427.fits
.....................!
real 11.53
user 11.05
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/648908/ft1_filtered_4FGL_J1226.8-1329_daily_bin427.fits evtable="EVENTS" scfile=/scratch/kocevski/648908/ft2_4FGL_J1226.8-1329_daily_bin427.fits sctable="SC_DATA" expcube=/scratch/kocevski/648908/ltcube_350006401_350265601_4FGL_J1226.8-1329_daily_bin427.fits outfile=/scratch/kocevski/648908/expmap_350006401_350265601_4FGL_J1226.8-1329_daily_bin427.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/648908/ltcube_350006401_350265601_4FGL_J1226.8-1329_daily_bin427.fits
.....................!
real 190.98
user 185.12
sys 4.61

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/648908/ft1_filtered_4FGL_J1226.8-1329_daily_bin427.fits scfile=/scratch/kocevski/648908/ft2_4FGL_J1226.8-1329_daily_bin427.fits outfile=/scratch/kocevski/648908/cmap_350006401_350265601_4FGL_J1226.8-1329_daily_bin427.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/648908/ft1_filtered_4FGL_J1226.8-1329_daily_bin427.fits scfile=/scratch/kocevski/648908/ft2_4FGL_J1226.8-1329_daily_bin427.fits outfile=/scratch/kocevski/648908/cmap_HighResolution_350006401_350265601_4FGL_J1226.8-1329_daily_bin427.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.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/648908/ft1_filtered_4FGL_J1226.8-1329_daily_bin427.fits evtable="EVENTS" scfile=/scratch/kocevski/648908/ft2_4FGL_J1226.8-1329_daily_bin427.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/648908/Model_4FGL_J1226.8-1329_daily_bin427.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/648908/ft1_filtered_4FGL_J1226.8-1329_daily_bin427.fits.....................!
real 55.49
user 54.09
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.8210       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18570E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9127       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.9551       1.0000         .10000E-03   10000.    
     6 'norm      '    .11389E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.5441       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.0933       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.100       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.0209       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .37835       1.0000         .10000E-03   10000.    
    22 'norm      '    30.589       1.0000         .10000E-03   10000.    
    23 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3171       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0407       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=   6681.091     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2902 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.109       -.34824E-06** at limit **
   2  norm          1.8221        4.5946       -.49592E-06   -.41123E-03
   3  Prefactor     .10028E-03    3.3494        .14335E-05** at limit **
   4  Prefactor     1.9040        49.481        .72502E-05   -.22923E-05
   5  Prefactor     8.9666        14.475        .11042E-06    .38595E-05
   6  norm          .10000E-03    3.6687       -.12783E-07** at limit **
   7  Prefactor     8.5451        25.283       -.94435E-06   -.95737E-04
   8  Prefactor     .10000E-03    23.997        .63748E-06** at limit **
   9  Prefactor     .10000E-03    13.215       -.15506E-06** at limit **
  10  Prefactor     .10000E-03    13.217       -.29817E-06** at limit **
  11  Prefactor     6.1117        16.894       -.21110E-05   -.47442E-04
  12  Prefactor     18.009        39.220        .57043E-05    .11137E-03
  13  Prefactor     .10000E-03    3.4333        .10914E-07** at limit **
  14  Prefactor     6.0207        2.4543        .10330E-07   -.49265E-04
  15  Prefactor     .10000E-03    8.3037       -.14955E-07** at limit **
  16  Prefactor     .10000E-03    20.234       -.53759E-06** at limit **
  17  Prefactor     .10000E-03    12.542        .40556E-06** at limit **
  18  Prefactor     .10000E-03    6.0695        .78508E-07** at limit **
  19  Prefactor     .10000E-03    23.901        .56933E-06** at limit **
  20  Prefactor     .10000E-03    81.046       -.11299E-05** at limit **
  21  norm          .37831        .23566        .27785E-07   -.11682E-03
  22  norm          30.590        13.804        .19512E-06    .11348E-04
  23  norm          .10000E-03    6.0047        .21657E-07** at limit **
  24  Normalizat    1.3174        .25402       -.31723E-05   -.33222E-03
  25  Prefactor     1.0405        .14274        .11151E-05   -.41210E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.82206
  Prefactor  = 0.000100283
  Prefactor  = 1.904
  Prefactor  = 8.96661
  norm       = 0.0001
  Prefactor  = 8.5451
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.11168
  Prefactor  = 18.0095
  Prefactor  = 0.0001
  Prefactor  = 6.02073
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.378309
  norm       = 30.5898
  norm       = 0.0001
  Normalizat = 1.31744
  Prefactor  = 1.04053
 **********
 **   18 **HESSE 
 **********

 FCN=   6681.091     FROM HESSE     STATUS=OK           421 CALLS     3323 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8221        4.5152        .26740E-03   -1.5438    
   3  Prefactor     .10028E-03    22.810        .22231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.9040        50.150        .15028E-02   -1.5432    
   5  Prefactor     8.9666        12.582        .13394E-03   -1.5109    
   6  norm          .10000E-03    5.9052        .26376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.5451        25.226        .13714E-03   -1.5123    
   8  Prefactor     .10000E-03    24.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.1117        16.880        .16265E-03   -1.5213    
  12  Prefactor     18.009        39.649        .94140E-04   -1.4859    
  13  Prefactor     .10000E-03    3.4628        .14781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.0207        2.4542        .79310E-04   -1.5217    
  15  Prefactor     .10000E-03    8.3880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.0902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    81.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .37831        .23105        .29899E-04   -1.5585    
  22  norm          30.590        13.811        .72444E-04   -1.4601    
  23  norm          .10000E-03    6.1245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3174        .28607        .32477E-03   -.83047    
  25  Prefactor     1.0405        .16419        .20792E-03   -.91391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28629e-08
Minuit parameter uncertainties:
  1  1.63828e-05
  2  4.51605
  3  0.00508371
  4  19.5611
  5  12.5861
  6  3.90295e-06
  7  25.2572
  8  6.32478e-05
  9  7.13613e-06
  10  2.68042e-05
  11  16.8936
  12  39.7069
  13  3.42199e-06
  14  2.4542
  15  4.02022e-06
  16  2.07153e-05
  17  4.3154e-05
  18  6.34556e-06
  19  5.50091e-05
  20  0.000161832
  21  0.231048
  22  13.8129
  23  4.32962e-06
  24  0.286418
  25  0.164272
Done.

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

Extracting fit parameters...

4FGL J1226.8-1329
   Spectrum: PowerLaw
353    Prefactor:  1.000e-04  3.422e-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.041e+00  1.643e-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.317e+00  2.864e-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: 7.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/648908/likelihoodResults_350006401_350265601_4FGL_J1226.8-1329_daily_bin427.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) = 6681.0924613
delta logL = -0.00137391637418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6681.09108732
delta logL = 6.23849700787e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0110       1.0000          .0000       10.000    
     3 'Normalizat'    1.3174       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0405       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=   6681.091     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.822        .90712E-02** at limit **
   2  Index         2.0243        5.1164        .50000       -.31949E-04
   3  Normalizat    1.3174        .11817E-01    .73393E-01   -.74098E-04
   4  Prefactor     1.0405        .68590E-02    .40498E-01   -.14555E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.02429
  Normalizat = 1.31744
  Prefactor  = 1.04053
 **********
 **   18 **HESSE 
 **********

 FCN=   6681.091     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      236 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    292.45        .14874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0243        7.4395        .50000       -.63744    
   3  Normalizat    1.3174        .62482E-01    .32478E-03   -.83047    
   4  Prefactor     1.0405        .36303E-01    .20792E-03   -.91390    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.79637e-07
Minuit parameter uncertainties:
  1  0.000918605
  2  36.8775
  3  0.0624857
  4  0.0363037
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/648908': 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) = 6681.09108718
delta logL = 1.99257556233e-07

Extracting fit parameters...

4FGL J1226.8-1329
   Spectrum: PowerLaw
353    Prefactor:  1.000e-04  9.186e-04  1.000e-04  1.000e+04 ( 1.000e-13)
354        Index:  2.024e+00  3.688e+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.041e+00  3.630e-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.317e+00  6.249e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/648908/cmap_HighResolution_350006401_350265601_4FGL_J1226.8-1329_daily_bin427.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.73e-03', job_status='DONE', photon_flux_upper_limit='7.65e-08', time_completed='2021-09-05 16:00:35.869326', job_id='648908', GAL2='1.04', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1630882835.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='427' AND source_name='4FGL J1226.8-1329' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 16:00:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 648908: <4FGL_J1226.8-1329_daily_bin427> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1226.8-1329_daily_bin427 186.719 -13.494 350006401 350265601 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 :                                   755.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            890 sec.

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

