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


Performing analysis on: 4FGL_J1226.8-1329_daily_bin893
RA = 186.719, Dec = -13.494
tmin = 470793601, tmax = 471052801
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='654031', job_status='RUN', time_executed='2021-09-05 16:01:44.652172', time_epoch_executed='1630882904.65' WHERE source_name='4FGL J1226.8-1329' and cadence='daily' and bin_id='893'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/654031

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/654031/ft1_4FGL_J1226.8-1329_daily_bin893.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/654031/ft2_4FGL_J1226.8-1329_daily_bin893.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/654031/ft1_4FGL_J1226.8-1329_daily_bin893.fits outfile=/scratch/kocevski/654031/ft1_filteredMKT_4FGL_J1226.8-1329_daily_bin893.fits ra=186.719 dec=-13.494 rad=12.0 tmin=470793601.0 tmax=471052801.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.51
user 3.25
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/654031/ft1_filtered_4FGL_J1226.8-1329_daily_bin893.fits" evtable="EVENTS" scfile=/scratch/kocevski/654031/ft2_4FGL_J1226.8-1329_daily_bin893.fits sctable="SC_DATA" outfile=/scratch/kocevski/654031/ltcube_470793601_471052801_4FGL_J1226.8-1329_daily_bin893.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/654031/ft2_4FGL_J1226.8-1329_daily_bin893.fits
.....................!
real 11.57
user 11.24
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/654031/ft1_filtered_4FGL_J1226.8-1329_daily_bin893.fits evtable="EVENTS" scfile=/scratch/kocevski/654031/ft2_4FGL_J1226.8-1329_daily_bin893.fits sctable="SC_DATA" expcube=/scratch/kocevski/654031/ltcube_470793601_471052801_4FGL_J1226.8-1329_daily_bin893.fits outfile=/scratch/kocevski/654031/expmap_470793601_471052801_4FGL_J1226.8-1329_daily_bin893.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/654031/ltcube_470793601_471052801_4FGL_J1226.8-1329_daily_bin893.fits
.....................!
real 188.21
user 183.83
sys 4.04

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/654031/ft1_filtered_4FGL_J1226.8-1329_daily_bin893.fits scfile=/scratch/kocevski/654031/ft2_4FGL_J1226.8-1329_daily_bin893.fits outfile=/scratch/kocevski/654031/cmap_470793601_471052801_4FGL_J1226.8-1329_daily_bin893.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/654031/ft1_filtered_4FGL_J1226.8-1329_daily_bin893.fits scfile=/scratch/kocevski/654031/ft2_4FGL_J1226.8-1329_daily_bin893.fits outfile=/scratch/kocevski/654031/cmap_HighResolution_470793601_471052801_4FGL_J1226.8-1329_daily_bin893.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/654031/ft1_filtered_4FGL_J1226.8-1329_daily_bin893.fits evtable="EVENTS" scfile=/scratch/kocevski/654031/ft2_4FGL_J1226.8-1329_daily_bin893.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/654031/Model_4FGL_J1226.8-1329_daily_bin893.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/654031/ft1_filtered_4FGL_J1226.8-1329_daily_bin893.fits.....................!
real 63.34
user 61.42
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6342       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .50454       1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.900       1.0000         .10000E-03   10000.    
     6 'norm      '    .14676E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    72.778       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.233       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11575E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.3037       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.2200       1.0000         .10000E-03   10000.    
    22 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.9270       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.8377       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .66392       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=   7686.828     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2443 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.817       -.12155E-06** at limit **
   2  norm          .10000E-03    1.6651       -.15457E-06** at limit **
   3  Prefactor     3.6341        3.2847       -.48564E-07   -.25241E-03
   4  Prefactor     .49111        9.1338       -.59324E-06   -.13845E-03
   5  Prefactor     26.904        17.614       -.37439E-07    .10774E-04
   6  norm          .10000E-03    4.4773        .22904E-06** at limit **
   7  Prefactor     .10000E-03    14.165        .67206E-05** at limit **
   8  Prefactor     72.773        22.653       -.93293E-06    .60211E-05
   9  Prefactor     16.233        26.278        .55532E-06   -.45706E-05
  10  Prefactor     .10000E-03    62.325       -.68676E-05** at limit **
  11  Prefactor     .10000E-03    25.288       -.68100E-05** at limit **
  12  Prefactor     .10000E-03    29.775        .96421E-05** at limit **
  13  Prefactor     .10000E-03    1.9782        .39886E-07** at limit **
  14  Prefactor     8.3040        2.6194       -.16571E-07    .67289E-04
  15  Prefactor     .10000E-03    10.531       -.50352E-05** at limit **
  16  Prefactor     .10000E-03    4.7136        .14021E-06** at limit **
  17  Prefactor     .10000E-03    5.3884        .65957E-06** at limit **
  18  Prefactor     .10000E-03    5.9948       -.53551E-06** at limit **
  19  Prefactor     .10000E-03    23.639       -.10904E-04** at limit **
  20  Prefactor     .10000E-03    29.463        .83320E-05** at limit **
  21  norm          2.2200        .36613        .18896E-07    .89870E-03
  22  norm          .10000E-03    8.3023        .20998E-05** at limit **
  23  norm          7.9271        5.4895       -.31227E-06   -.77508E-03
  24  Normalizat    1.8380        .23828        .62069E-06    .33782E-04
  25  Prefactor     .66376        .12674       -.31525E-07    .42929E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.63412
  Prefactor  = 0.491111
  Prefactor  = 26.9037
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 72.7734
  Prefactor  = 16.2327
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.30396
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.21996
  norm       = 0.0001
  norm       = 7.92712
  Normalizat = 1.83802
  Prefactor  = 0.663759
 **********
 **   18 **HESSE 
 **********

 FCN=   7686.828     FROM HESSE     STATUS=OK           419 CALLS     2862 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.6659        .11047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.6341        3.2783        .14492E-03   -1.5327    
   4  Prefactor     .49111        80.061        .50711E-02   -1.5568    
   5  Prefactor     26.904        17.531        .77241E-04   -1.4670    
   6  norm          .10000E-03    4.5194        .18000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     72.773        22.758        .47060E-04   -1.4000    
   9  Prefactor     16.233        26.269        .99409E-04   -1.4902    
  10  Prefactor     .10000E-03    62.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    25.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    29.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.9851        .12040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.3040        2.6203        .77282E-04   -1.5132    
  15  Prefactor     .10000E-03    10.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.7255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.4113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.0097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    29.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.2200        .36738        .20766E-04   -1.5410    
  22  norm          .10000E-03    8.5408        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.9271        5.5292        .71207E-03   -1.5145    
  24  Normalizat    1.8380        .28090        .30012E-03   -.68675    
  25  Prefactor     .66376        .14868        .25294E-03   -1.0496    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.40508e-10
Minuit parameter uncertainties:
  1  6.07306e-07
  2  5.99803e-07
  3  3.27845
  4  12.5568
  5  17.5348
  6  2.41576e-06
  7  4.74847e-06
  8  22.7606
  9  26.2881
  10  2.22296e-05
  11  1.9215e-05
  12  9.12237e-07
  13  8.03234e-07
  14  2.62032
  15  3.77027e-06
  16  1.83915e-06
  17  3.86772e-06
  18  1.98684e-07
  19  1.76163e-06
  20  3.19993e-06
  21  0.367381
  22  2.58208e-05
  23  5.52957
  24  0.281148
  25  0.14877
Done.

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

Extracting fit parameters...

4FGL J1226.8-1329
   Spectrum: PowerLaw
353    Prefactor:  1.000e-04  8.032e-07  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:  6.638e-01  1.488e-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.838e+00  2.811e-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.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/654031/likelihoodResults_470793601_471052801_4FGL_J1226.8-1329_daily_bin893.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) = 7686.83056617
delta logL = -0.00236530225993

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7686.82820082
delta logL = 4.42723830929e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9812       1.0000          .0000       10.000    
     3 'Normalizat'    1.8380       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66378       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=   7686.828     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      241 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10234E-03    .47901        .12182E-01** at limit **
   2  Index         1.8708        8.5994        .50000        .47211E-04
   3  Normalizat    1.8380        .28643E-02    .30012E-03    .81147E-04
   4  Prefactor     .66376        .15560E-02    .25294E-03    .99060E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102337
  Index      = 1.87077
  Normalizat = 1.83802
  Prefactor  = 0.663759
 **********
 **   18 **HESSE 
 **********

 FCN=   7686.828     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .95E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10234E-03    44.819        .12509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8708        7.7847        .50000       -.67621    
   3  Normalizat    1.8380        .28283E-01    .60024E-04   -.68675    
   4  Prefactor     .66376        .15358E-01    .10118E-04   -1.0496    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.45658e-08
Minuit parameter uncertainties:
  1  0.0204854
  2  411.922
  3  0.0282836
  4  0.0153582
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/654031': 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) = 7686.82819954
delta logL = 1.3313283489e-06

Extracting fit parameters...

4FGL J1226.8-1329
   Spectrum: PowerLaw
353    Prefactor:  1.023e-04  2.049e-02  1.000e-04  1.000e+04 ( 1.000e-13)
354        Index:  1.871e+00  4.119e+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:  6.638e-01  1.536e-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.838e+00  2.828e-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/654031/cmap_HighResolution_470793601_471052801_4FGL_J1226.8-1329_daily_bin893.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.47e-03', job_status='DONE', photon_flux_upper_limit='5.97e-08', time_completed='2021-09-05 16:15:01.538825', job_id='654031', GAL2='0.66', fit_tolerance='1e-08', EG2='1.84', EG='1.84', time_epoch_completed='1630883701.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='1.33e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='893' AND source_name='4FGL J1226.8-1329' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 16:15:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 654031: <4FGL_J1226.8-1329_daily_bin893> in cluster <slac> Done

Job <4FGL_J1226.8-1329_daily_bin893> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Sep  5 16:00:39 2021
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 16:00:41 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:41 2021
Terminated at Sun Sep  5 16:15:03 2021
Results reported at Sun Sep  5 16:15:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1226.8-1329_daily_bin893 186.719 -13.494 470793601 471052801 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 :                                   781.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            864 sec.

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

