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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1224
RA = 195.757, Dec = 24.5821
tmin = 556588801, tmax = 556848001
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='163383', job_status='RUN', time_executed='2021-09-06 18:23:33.339208', time_epoch_executed='1630977813.34' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1224'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/163383

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/163383/ft1_4FGL_J1303.0+2434_daily_bin1224.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/163383/ft2_4FGL_J1303.0+2434_daily_bin1224.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/163383/ft1_4FGL_J1303.0+2434_daily_bin1224.fits outfile=/scratch/kocevski/163383/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1224.fits ra=195.757 dec=24.5821 rad=12.0 tmin=556588801.0 tmax=556848001.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.42
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/163383/ft2_4FGL_J1303.0+2434_daily_bin1224.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/163383/ft2_4FGL_J1303.0+2434_daily_bin1224.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/163383/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1224.fits evtable="EVENTS" outfile="/scratch/kocevski/163383/ft1_filtered_4FGL_J1303.0+2434_daily_bin1224.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.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/163383/ft1_filtered_4FGL_J1303.0+2434_daily_bin1224.fits" evtable="EVENTS" scfile=/scratch/kocevski/163383/ft2_4FGL_J1303.0+2434_daily_bin1224.fits sctable="SC_DATA" outfile=/scratch/kocevski/163383/ltcube_556588801_556848001_4FGL_J1303.0+2434_daily_bin1224.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/163383/ft2_4FGL_J1303.0+2434_daily_bin1224.fits
.....................!
real 16.41
user 16.04
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/163383/ft1_filtered_4FGL_J1303.0+2434_daily_bin1224.fits evtable="EVENTS" scfile=/scratch/kocevski/163383/ft2_4FGL_J1303.0+2434_daily_bin1224.fits sctable="SC_DATA" expcube=/scratch/kocevski/163383/ltcube_556588801_556848001_4FGL_J1303.0+2434_daily_bin1224.fits outfile=/scratch/kocevski/163383/expmap_556588801_556848001_4FGL_J1303.0+2434_daily_bin1224.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/163383/ltcube_556588801_556848001_4FGL_J1303.0+2434_daily_bin1224.fits
.....................!
real 192.57
user 186.91
sys 5.12

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 177 point sources and 0 extended sources

Setting source of interest to:
4FGL J1303.0+2434 @ 195.757 24.5821

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/163383/ft1_filtered_4FGL_J1303.0+2434_daily_bin1224.fits scfile=/scratch/kocevski/163383/ft2_4FGL_J1303.0+2434_daily_bin1224.fits outfile=/scratch/kocevski/163383/cmap_556588801_556848001_4FGL_J1303.0+2434_daily_bin1224.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=195.757 yref=24.5821 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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/163383/ft1_filtered_4FGL_J1303.0+2434_daily_bin1224.fits scfile=/scratch/kocevski/163383/ft2_4FGL_J1303.0+2434_daily_bin1224.fits outfile=/scratch/kocevski/163383/cmap_HighResolution_556588801_556848001_4FGL_J1303.0+2434_daily_bin1224.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=195.757 yref=24.5821 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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/163383/ft1_filtered_4FGL_J1303.0+2434_daily_bin1224.fits evtable="EVENTS" scfile=/scratch/kocevski/163383/ft2_4FGL_J1303.0+2434_daily_bin1224.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/163383/Model_4FGL_J1303.0+2434_daily_bin1224.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/163383/ft1_filtered_4FGL_J1303.0+2434_daily_bin1224.fits.....................!
real 19.70
user 18.30
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/163383/ft1_filtered_4FGL_J1303.0+2434_daily_bin1224.fits', '/scratch/kocevski/163383/ft2_4FGL_J1303.0+2434_daily_bin1224.fits', expMap='/scratch/kocevski/163383/expmap_556588801_556848001_4FGL_J1303.0+2434_daily_bin1224.fits', expCube='/scratch/kocevski/163383/ltcube_556588801_556848001_4FGL_J1303.0+2434_daily_bin1224.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/163383/Model_4FGL_J1303.0+2434_daily_bin1224.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1303.0+2434'

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  3.013e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.066e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  8.150e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  8.679e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/163383/ft1_filtered_4FGL_J1303.0+2434_daily_bin1224.fits
Spacecraft file(s): /scratch/kocevski/163383/ft2_4FGL_J1303.0+2434_daily_bin1224.fits
Exposure map: /scratch/kocevski/163383/expmap_556588801_556848001_4FGL_J1303.0+2434_daily_bin1224.fits
Exposure cube: /scratch/kocevski/163383/ltcube_556588801_556848001_4FGL_J1303.0+2434_daily_bin1224.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/163383/Model_4FGL_J1303.0+2434_daily_bin1224.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) = 900.43959203

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10174E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.052       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.1311       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.7233       1.0000         .10000E-03   10000.    
     6 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10313E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10170E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .89724E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    57.566       1.0000         .10000E-03   10000.    
    15 'norm      '    9.6405       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    20.452       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    10.036       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.912       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    40.915       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1847       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .95280       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   900.4277     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     3207 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    48.866        .13222E-06** at limit **
   2  Prefactor     10.046        23.963       -.76533E-06    .12465E-05
   3  Prefactor     9.1283        16.772       -.92968E-07    .40125E-06
   4  Prefactor     .10000E-03    21.031        .15206E-07** at limit **
   5  norm          1.7233        1.6312        .33428E-07   -.15173E-04
   6  norm          .10000E-03    23.924       -.11708E-06** at limit **
   7  Prefactor     .10000E-03    44.720       -.92853E-07** at limit **
   8  Prefactor     .10000E-03    209.96       -.10002E-05** at limit **
   9  Prefactor     .10000E-03    25.623        .10027E-06** at limit **
  10  norm          .10000E-03    20.844       -.44664E-07** at limit **
  11  Prefactor     .10000E-03    59.588        .24928E-06** at limit **
  12  Prefactor     .10007E-03    1667.9       -.26109E-05** at limit **
  13  norm          .10000E-03    8.6011        .17920E-06** at limit **
  14  norm          57.551        33.750       -.98561E-06    .36689E-05
  15  norm          9.6315        16.026       -.25764E-05    .14608E-04
  16  norm          .10000E-03    13.004        .50756E-07** at limit **
  17  norm          20.465        74.206       -.99251E-06    .44091E-05
  18  Prefactor     .10000E-03    5.6532        .56906E-07** at limit **
  19  Prefactor     .10000E-03    30.521        .33179E-06** at limit **
  20  norm          10.037        18.205        .18146E-05   -.10554E-04
  21  Prefactor     20.911        82.315        .24603E-06   -.53552E-06
  22  Prefactor     .10000E-03    147.94        .75067E-06** at limit **
  23  norm          .10000E-03    8.7500       -.63238E-07** at limit **
  24  Prefactor     40.915        45.264        .35984E-06   -.15049E-06
  25  Prefactor     .10000E-03    24.182       -.70732E-07** at limit **
  26  Normalizat    1.1845        .53488       -.15334E-05    .20058E-05
  27  Prefactor     .95296        .51906        .33556E-06   -.76407E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 10.0458
  Prefactor  = 9.12827
  Prefactor  = 0.0001
  norm       = 1.7233
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100067
  norm       = 0.0001
  norm       = 57.5515
  norm       = 9.63149
  norm       = 0.0001
  norm       = 20.4654
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.0367
  Prefactor  = 20.9114
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 40.9149
  Prefactor  = 0.0001
  Normalizat = 1.18447
  Prefactor  = 0.952964
 **********
 **   18 **HESSE 
 **********

 FCN=   900.4277     FROM HESSE     STATUS=OK           482 CALLS     3689 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    49.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.046        23.876        .12639E-03   -1.5074    
   3  Prefactor     9.1283        16.788        .13263E-03   -1.5104    
   4  Prefactor     .10000E-03    21.042        .13446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.7233        1.6226        .35444E-04   -1.5445    
   6  norm          .10000E-03    24.047        .14337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    44.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    210.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.680        .14841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    20.948        .13383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    59.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10007E-03    1685.6        .41664E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.6103        .85951E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          57.551        33.733        .52875E-04   -1.4189    
  15  norm          9.6315        16.359        .12907E-03   -1.5087    
  16  norm          .10000E-03    13.012        .10574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          20.465        74.164        .88565E-04   -1.4803    
  18  Prefactor     .10000E-03    5.6628        .69718E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    30.626        .16222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          10.037        18.257        .63244E-03   -1.5074    
  21  Prefactor     20.911        82.611        .87587E-04   -1.4793    
  22  Prefactor     .10000E-03    148.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    8.7529        .86708E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     40.915        45.406        .62668E-04   -1.4428    
  25  Prefactor     .10000E-03    24.191        .14420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1845        .66595        .25887E-03   -.87084    
  27  Prefactor     .95296        .64060        .29248E-03   -.94314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.75156e-11
Minuit parameter uncertainties:
  1  4.83428e-05
  2  23.8983
  3  16.7965
  4  1.36989e-05
  5  1.62267
  6  2.04321e-05
  7  5.14811e-05
  8  0.00134278
  9  1.06421e-05
  10  0.00014115
  11  0.000128453
  12  0.0218968
  13  3.75193e-06
  14  33.7442
  15  16.3663
  16  3.17252e-05
  17  74.5015
  18  1.79094e-05
  19  0.00016793
  20  18.2668
  21  83.0681
  22  0.00090694
  23  8.78062e-06
  24  45.4446
  25  3.23344e-05
  26  0.670796
  27  0.645792
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  3.752e-06  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.066e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  8.150e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  8.679e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  9.530e-01  6.458e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  1.184e+00  6.708e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 195.757 24.582
Photon Flux Upper Limit: 2.56e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.33e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/163383/likelihoodResults_556588801_556848001_4FGL_J1303.0+2434_daily_bin1224.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) = 900.428217553
delta logL = -0.000533043125188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 900.427684503
delta logL = 6.27608187642e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0723       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1845       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95295       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+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=   900.4100     FROM MIGRAD    STATUS=CONVERGED    152 CALLS      301 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .45646E-01    23.222        .67795E-02   -.53055E-03
   2  alpha         5.0000        2.5001        .50000    ** at limit **
   3  Normalizat    1.1247        .22321        .25887E-03    .10031E-03
   4  Prefactor     .99335        .17122        .29248E-03    .65674E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0456456
  alpha      = 5
  Normalizat = 1.12472
  Prefactor  = 0.993354
 **********
 **   18 **HESSE 
 **********

 FCN=   900.4100     FROM HESSE     STATUS=OK            31 CALLS      332 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .45646E-01    .36398        .27748E-03   -1.5665    
   2  alpha         5.0000        4.3142        .10934        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1247        .67708        .51775E-04   -.88962    
   4  Prefactor     .99335        .65217        .58496E-04   -.92951    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63123e-10
Minuit parameter uncertainties:
  1  0.25751
  2  3.47279e-05
  3  0.68242
  4  0.657447
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/163383': 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) = 900.409963477
delta logL = 0.017721032852

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  4.565e-02  2.575e-01  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  5.000e+00  3.473e-05  0.000e+00  5.000e+00 ( 1.000e+00)
292         beta:  8.150e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  8.679e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  9.934e-01  6.574e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  1.125e+00  6.824e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 195.757 24.582

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/163383/cmap_HighResolution_556588801_556848001_4FGL_J1303.0+2434_daily_bin1224.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-04', job_status='DONE', photon_flux_upper_limit='2.56e-07', time_completed='2021-09-06 18:30:10.384790', job_id='163383', GAL2='0.99', fit_tolerance='1e-08', EG2='1.12', EG='1.18', time_epoch_completed='1630978210.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.77e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1224' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:30:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 163383: <4FGL_J1303.0+2434_daily_bin1224> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin1224> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep  6 18:20:22 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 18:20:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 18:20:26 2021
Terminated at Mon Sep  6 18:30:11 2021
Results reported at Mon Sep  6 18:30:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1224 195.757 24.5821 556588801 556848001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1303.0+2434 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   393.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             247.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   584 sec.
    Turnaround time :                            589 sec.

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

