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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin262
RA = 195.757, Dec = 24.5821
tmin = 307238401, tmax = 307497601
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='154895', job_status='RUN', time_executed='2021-09-06 17:51:11.275123', time_epoch_executed='1630975871.28' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='262'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/154895

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/154895/ft1_4FGL_J1303.0+2434_daily_bin262.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/154895/ft2_4FGL_J1303.0+2434_daily_bin262.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/154895/ft1_4FGL_J1303.0+2434_daily_bin262.fits outfile=/scratch/kocevski/154895/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin262.fits ra=195.757 dec=24.5821 rad=12.0 tmin=307238401.0 tmax=307497601.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 6.62
user 6.28
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/154895/ft2_4FGL_J1303.0+2434_daily_bin262.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/154895/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin262.fits evtable="EVENTS" outfile="/scratch/kocevski/154895/ft1_filtered_4FGL_J1303.0+2434_daily_bin262.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.54
user 0.38
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/154895/ft1_filtered_4FGL_J1303.0+2434_daily_bin262.fits" evtable="EVENTS" scfile=/scratch/kocevski/154895/ft2_4FGL_J1303.0+2434_daily_bin262.fits sctable="SC_DATA" outfile=/scratch/kocevski/154895/ltcube_307238401_307497601_4FGL_J1303.0+2434_daily_bin262.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/154895/ft2_4FGL_J1303.0+2434_daily_bin262.fits
.....................!
real 19.03
user 18.42
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/154895/ft1_filtered_4FGL_J1303.0+2434_daily_bin262.fits evtable="EVENTS" scfile=/scratch/kocevski/154895/ft2_4FGL_J1303.0+2434_daily_bin262.fits sctable="SC_DATA" expcube=/scratch/kocevski/154895/ltcube_307238401_307497601_4FGL_J1303.0+2434_daily_bin262.fits outfile=/scratch/kocevski/154895/expmap_307238401_307497601_4FGL_J1303.0+2434_daily_bin262.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/154895/ltcube_307238401_307497601_4FGL_J1303.0+2434_daily_bin262.fits
.....................!
real 197.06
user 191.16
sys 5.35

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/154895/ft1_filtered_4FGL_J1303.0+2434_daily_bin262.fits scfile=/scratch/kocevski/154895/ft2_4FGL_J1303.0+2434_daily_bin262.fits outfile=/scratch/kocevski/154895/cmap_307238401_307497601_4FGL_J1303.0+2434_daily_bin262.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.60
user 0.43
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/154895/ft1_filtered_4FGL_J1303.0+2434_daily_bin262.fits scfile=/scratch/kocevski/154895/ft2_4FGL_J1303.0+2434_daily_bin262.fits outfile=/scratch/kocevski/154895/cmap_HighResolution_307238401_307497601_4FGL_J1303.0+2434_daily_bin262.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.60
user 0.44
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/154895/ft1_filtered_4FGL_J1303.0+2434_daily_bin262.fits', '/scratch/kocevski/154895/ft2_4FGL_J1303.0+2434_daily_bin262.fits', expMap='/scratch/kocevski/154895/expmap_307238401_307497601_4FGL_J1303.0+2434_daily_bin262.fits', expCube='/scratch/kocevski/154895/ltcube_307238401_307497601_4FGL_J1303.0+2434_daily_bin262.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/154895/Model_4FGL_J1303.0+2434_daily_bin262.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/154895/ft1_filtered_4FGL_J1303.0+2434_daily_bin262.fits
Spacecraft file(s): /scratch/kocevski/154895/ft2_4FGL_J1303.0+2434_daily_bin262.fits
Exposure map: /scratch/kocevski/154895/expmap_307238401_307497601_4FGL_J1303.0+2434_daily_bin262.fits
Exposure cube: /scratch/kocevski/154895/ltcube_307238401_307497601_4FGL_J1303.0+2434_daily_bin262.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/154895/Model_4FGL_J1303.0+2434_daily_bin262.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) = 5948.17730256

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8030       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2067       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.7812       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.9049       1.0000         .10000E-03   10000.    
     6 'norm      '    .62762       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.915       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10676E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.769       1.0000         .10000E-03   10000.    
    10 'norm      '    14.744       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .22541E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    .11608E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    15.742       1.0000         .10000E-03   10000.    
    17 'norm      '    55.935       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12381E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    54.213       1.0000         .10000E-03   10000.    
    23 'norm      '    2.6450       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.5109       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .68870       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=   5948.174     FROM MIGRAD    STATUS=CONVERGED    666 CALLS     3303 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8035        3.7265        .31504E-07   -.51539E-05
   2  Prefactor     2.2069        2.1264        .29995E-07    .20267E-04
   3  Prefactor     5.7811        3.5573       -.33449E-07    .66622E-05
   4  Prefactor     .10000E-03    7.9974       -.10966E-05** at limit **
   5  norm          2.9049        .52372        .49317E-07    .25529E-04
   6  norm          .62790        1.1897        .14835E-06   -.25632E-02
   7  Prefactor     17.912        12.807        .16683E-06    .29628E-05
   8  Prefactor     .10000E-03    32.519        .15198E-05** at limit **
   9  Prefactor     20.770        10.413        .25986E-06   -.43123E-05
  10  norm          14.745        6.7703       -.13334E-06    .15036E-03
  11  Prefactor     .10000E-03    23.035       -.54287E-05** at limit **
  12  Prefactor     .10000E-03    10.008       -.23302E-05** at limit **
  13  norm          .10000E-03    1.1812       -.58687E-07** at limit **
  14  norm          .10009E-03    3.8708       -.38166E-06** at limit **
  15  norm          .10000E-03    2.7085       -.65007E-06** at limit **
  16  norm          15.754        8.0488        .26057E-06    .52246E-03
  17  norm          55.907        28.283       -.94469E-05   -.36434E-04
  18  Prefactor     .10000E-03    3.7873       -.12430E-05** at limit **
  19  Prefactor     .10001E-03    31.205       -.22559E-05** at limit **
  20  norm          .10000E-03    6.3592        .54902E-06** at limit **
  21  Prefactor     .10000E-03    17.232        .60796E-05** at limit **
  22  Prefactor     54.255        74.739        .47602E-04    .59800E-04
  23  norm          2.6489        7.9020        .12295E-05   -.49857E-03
  24  Prefactor     .10000E-03    9.4836        .30283E-05** at limit **
  25  Prefactor     .10000E-03    14.755       -.31523E-05** at limit **
  26  Normalizat    1.5110        .22094       -.20026E-05    .29101E-03
  27  Prefactor     .68862        .21779        .10562E-05    .24434E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.80353
  Prefactor  = 2.20691
  Prefactor  = 5.78107
  Prefactor  = 0.0001
  norm       = 2.90486
  norm       = 0.627904
  Prefactor  = 17.9125
  Prefactor  = 0.0001
  Prefactor  = 20.7696
  norm       = 14.7449
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100093
  norm       = 0.000100001
  norm       = 15.7536
  norm       = 55.9068
  Prefactor  = 0.000100004
  Prefactor  = 0.000100013
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.2554
  norm       = 2.64889
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.51099
  Prefactor  = 0.688616
 **********
 **   18 **HESSE 
 **********

 FCN=   5948.174     FROM HESSE     STATUS=OK           494 CALLS     3797 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8035        3.7159        .13651E-03   -1.5318    
   2  Prefactor     2.2069        2.1349        .10418E-03   -1.5411    
   3  Prefactor     5.7811        3.5566        .10592E-03   -1.5227    
   4  Prefactor     .10000E-03    8.0945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.9049        .52715        .22480E-04   -1.5367    
   6  norm          .62790        7.6955        .20060E-02   -1.5549    
   7  Prefactor     17.912        12.810        .94627E-04   -1.4861    
   8  Prefactor     .10000E-03    32.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.770        10.417        .87888E-04   -1.4796    
  10  norm          14.745        6.7738        .10431E-03   -1.4940    
  11  Prefactor     .10000E-03    23.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.1831        .81850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10009E-03    3.9314        .51364E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.2027        .22855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          15.754        7.4888        .10095E-03   -1.4914    
  17  norm          55.907        28.265        .26818E-03   -1.4211    
  18  Prefactor     .10000E-03    3.9601        .29330E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    32.003        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.4316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     54.255        74.899        .54476E-04   -1.4233    
  23  norm          2.6489        8.0274        .12534E-02   -1.5382    
  24  Prefactor     .10000E-03    9.5031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    14.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.5110        .26342        .25372E-03   -.77470    
  27  Prefactor     .68862        .25625        .36297E-03   -1.0397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24761e-08
Minuit parameter uncertainties:
  1  3.7161
  2  2.13499
  3  3.55669
  4  1.42107e-05
  5  0.527152
  6  4.39674
  7  12.8124
  8  1.25272e-05
  9  10.4179
  10  6.7741
  11  0.000103485
  12  1.27787e-05
  13  5.17066e-06
  14  0.00120803
  15  0.000135032
  16  7.48927
  17  28.2718
  18  0.000236679
  19  0.0012792
  20  7.77481e-05
  21  1.31461e-05
  22  75.0292
  23  8.03069
  24  4.45908e-06
  25  1.3836e-05
  26  0.26366
  27  0.256694
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  5.171e-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:  6.886e-01  2.567e-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.511e+00  2.637e-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: 4.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.29e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/154895/likelihoodResults_307238401_307497601_4FGL_J1303.0+2434_daily_bin262.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) = 5948.17742499
delta logL = -0.00340132153997

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5948.17402366
delta logL = 3.81442077924e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0644       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5110       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68863       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5948.174     FROM MIGRAD    STATUS=FAILED        82 CALLS      226 TOTAL
                     EDM=   .85E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10008E-03    2.1434        .81862E-03** at limit **
   2  alpha         2.0251        3.9124        .16788        .43152E-05
   3  Normalizat    1.5110        .25219        .25372E-03    .47649E-04
   4  Prefactor     .68862        .25518        .36297E-03    .33983E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5948.174     FROM SIMPLEX   STATUS=PROGRESS     117 CALLS      343 TOTAL
                     EDM=   .76E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    2.1434        .15417E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0251        3.9124        .53767E-03   -.19113    
   3  Normalizat    1.5110        .25219        .70551E-04   -.77470    
   4  Prefactor     .68861        .25518        .86672E-04   -1.0398    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5948.174     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      373 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.1872        .16372E-03** at limit **
   2  alpha         1.9844        3.4920        .67152E-02    .33589E-06
   3  Normalizat    1.5110        .25239        .50743E-04    .58690E-03
   4  Prefactor     .68862        .25538        .14519E-04    .41328E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.98436
  Normalizat = 1.51099
  Prefactor  = 0.688621
 **********
 **   18 **HESSE 
 **********

 FCN=   5948.174     FROM HESSE     STATUS=OK            23 CALLS      396 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.1872        .32745E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9844        3.4906        .13430E-02   -.20775    
   3  Normalizat    1.5110        .25230        .10149E-04   -.77470    
   4  Prefactor     .68862        .25525        .29038E-05   -1.0397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33386e-09
Minuit parameter uncertainties:
  1  5.0666e-05
  2  156.915
  3  0.252512
  4  0.255682
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/154895': 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) = 5948.17402352
delta logL = 1.42990757013e-07

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  5.067e-05  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  1.984e+00  1.569e+02  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:  6.886e-01  2.557e-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.511e+00  2.525e-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/154895/cmap_HighResolution_307238401_307497601_4FGL_J1303.0+2434_daily_bin262.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.29e-05', job_status='DONE', photon_flux_upper_limit='4.42e-08', time_completed='2021-09-06 18:04:10.983366', job_id='154895', GAL2='0.69', fit_tolerance='1e-08', EG2='1.51', EG='1.51', time_epoch_completed='1630976650.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='1.43e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='262' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:04:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 154895: <4FGL_J1303.0+2434_daily_bin262> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin262 195.757 24.5821 307238401 307497601 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 :                                   775.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             320.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            822 sec.

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

