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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin250
RA = 195.757, Dec = 24.5821
tmin = 304128001, tmax = 304387201
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='154876', job_status='RUN', time_executed='2021-09-06 17:53:02.064625', time_epoch_executed='1630975982.06' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='250'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/154876

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/154876/ft1_4FGL_J1303.0+2434_daily_bin250.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/154876/ft2_4FGL_J1303.0+2434_daily_bin250.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/154876/ft1_4FGL_J1303.0+2434_daily_bin250.fits outfile=/scratch/kocevski/154876/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin250.fits ra=195.757 dec=24.5821 rad=12.0 tmin=304128001.0 tmax=304387201.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.43
user 3.21
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/154876/ft1_filtered_4FGL_J1303.0+2434_daily_bin250.fits" evtable="EVENTS" scfile=/scratch/kocevski/154876/ft2_4FGL_J1303.0+2434_daily_bin250.fits sctable="SC_DATA" outfile=/scratch/kocevski/154876/ltcube_304128001_304387201_4FGL_J1303.0+2434_daily_bin250.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/154876/ft2_4FGL_J1303.0+2434_daily_bin250.fits
.....................!
real 12.96
user 12.58
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/154876/ft1_filtered_4FGL_J1303.0+2434_daily_bin250.fits evtable="EVENTS" scfile=/scratch/kocevski/154876/ft2_4FGL_J1303.0+2434_daily_bin250.fits sctable="SC_DATA" expcube=/scratch/kocevski/154876/ltcube_304128001_304387201_4FGL_J1303.0+2434_daily_bin250.fits outfile=/scratch/kocevski/154876/expmap_304128001_304387201_4FGL_J1303.0+2434_daily_bin250.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/154876/ltcube_304128001_304387201_4FGL_J1303.0+2434_daily_bin250.fits
.....................!
real 191.16
user 186.02
sys 4.57

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/154876/ft1_filtered_4FGL_J1303.0+2434_daily_bin250.fits scfile=/scratch/kocevski/154876/ft2_4FGL_J1303.0+2434_daily_bin250.fits outfile=/scratch/kocevski/154876/cmap_304128001_304387201_4FGL_J1303.0+2434_daily_bin250.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.59
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/154876/ft1_filtered_4FGL_J1303.0+2434_daily_bin250.fits scfile=/scratch/kocevski/154876/ft2_4FGL_J1303.0+2434_daily_bin250.fits outfile=/scratch/kocevski/154876/cmap_HighResolution_304128001_304387201_4FGL_J1303.0+2434_daily_bin250.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.743       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2919       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8910       1.0000         .10000E-03   10000.    
     5 'norm      '    4.1778       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.040       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.0402       1.0000         .10000E-03   10000.    
    10 'norm      '    .66992E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.023       1.0000         .10000E-03   10000.    
    15 'norm      '    2.8690       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.1266       1.0000         .10000E-03   10000.    
    20 'norm      '    6.3244       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    14.706       1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.146       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3461       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .86249       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=   6929.451     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     3282 TOTAL
                     EDM=   .56E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.743        3.9964       -.83025E-07   -.40986E-04
   2  Prefactor     .10000E-03    .93225        .51342E-07** at limit **
   3  Prefactor     1.2921        2.0831        .47795E-06   -.17556E-04
   4  Prefactor     3.8914        3.8549       -.13220E-07   -.61990E-03
   5  norm          4.1778        .50833       -.33746E-08   -.49090E-04
   6  norm          .10000E-03    2.6332       -.26252E-06** at limit **
   7  Prefactor     11.040        8.7865       -.11368E-07   -.16496E-04
   8  Prefactor     .10000E-03    23.504        .23772E-05** at limit **
   9  Prefactor     7.0450        9.5170       -.24192E-07   -.22475E-03
  10  norm          .10001E-03    2.1384        .28560E-06** at limit **
  11  Prefactor     .10000E-03    10.867        .28067E-05** at limit **
  12  Prefactor     .10000E-03    11.863       -.33439E-05** at limit **
  13  norm          .10000E-03    4.7440       -.43005E-06** at limit **
  14  norm          10.022        6.0828       -.57464E-08    .82776E-05
  15  norm          2.8650        2.7017        .59706E-07   -.45146E-03
  16  norm          .10000E-03    3.6391       -.43147E-06** at limit **
  17  norm          .10000E-03    5.4924       -.15997E-06** at limit **
  18  Prefactor     .10000E-03    .75845       -.24536E-06** at limit **
  19  Prefactor     5.1266        7.9124       -.55591E-07   -.25309E-03
  20  norm          6.3252        5.8742        .15508E-07   -.92941E-04
  21  Prefactor     .10000E-03    30.709       -.18259E-05** at limit **
  22  Prefactor     .10000E-03    22.210       -.11930E-05** at limit **
  23  norm          14.707        9.7977       -.12722E-07   -.70593E-04
  24  Prefactor     17.147        16.520        .25778E-06    .32858E-05
  25  Prefactor     .10000E-03    8.2611       -.61400E-06** at limit **
  26  Normalizat    1.3460        .18656       -.31680E-06   -.44943E-05
  27  Prefactor     .86255        .19394        .50954E-06   -.36588E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.7428
  Prefactor  = 0.0001
  Prefactor  = 1.2921
  Prefactor  = 3.89138
  norm       = 4.17781
  norm       = 0.0001
  Prefactor  = 11.0398
  Prefactor  = 0.0001
  Prefactor  = 7.04504
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.0223
  norm       = 2.86498
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.12661
  norm       = 6.32525
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.7069
  Prefactor  = 17.1468
  Prefactor  = 0.0001
  Normalizat = 1.34598
  Prefactor  = 0.862545
 **********
 **   18 **HESSE 
 **********

 FCN=   6929.451     FROM HESSE     STATUS=OK           490 CALLS     3772 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.743        3.9851        .92687E-04   -1.5022    
   2  Prefactor     .10000E-03    .93933        .78345E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.2921        2.0523        .14378E-03   -1.5481    
   4  Prefactor     3.8914        5.5030        .10227E-02   -1.5313    
   5  norm          4.1778        .51034        .19763E-04   -1.5299    
   6  norm          .10000E-03    2.6596        .13184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.040        8.7812        .12058E-03   -1.5043    
   8  Prefactor     .10000E-03    23.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.0450        10.414        .75596E-03   -1.5177    
  10  norm          .10001E-03    12.591        .23183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.9212        .35329E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.022        6.0791        .12657E-03   -1.5075    
  15  norm          2.8650        2.8291        .66782E-03   -1.5369    
  16  norm          .10000E-03    3.6577        .15453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.4932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .76018        .70767E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.1266        8.6060        .88783E-03   -1.5255    
  20  norm          6.3252        5.8860        .79805E-03   -1.5205    
  21  Prefactor     .10000E-03    30.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    22.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          14.707        9.8323        .52222E-03   -1.4941    
  24  Prefactor     17.147        16.559        .96724E-04   -1.4880    
  25  Prefactor     .10000E-03    8.2715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3460        .22234        .25167E-03   -.82204    
  27  Prefactor     .86255        .22836        .32759E-03   -.97462    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.28955e-10
Minuit parameter uncertainties:
  1  3.98516
  2  7.7227e-07
  3  2.05246
  4  5.50366
  5  0.510341
  6  1.27326e-06
  7  8.78225
  8  3.68852e-06
  9  10.4169
  10  0.000510046
  11  1.13035e-05
  12  8.36028e-06
  13  3.07609e-06
  14  6.07952
  15  2.82919
  16  1.93825e-06
  17  1.1455e-07
  18  4.88545e-08
  19  8.60811
  20  5.88658
  21  6.77438e-06
  22  2.78996e-06
  23  9.83333
  24  16.5634
  25  2.25382e-06
  26  0.222499
  27  0.22861
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  3.076e-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:  8.625e-01  2.286e-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.346e+00  2.225e-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: 6.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/154876/likelihoodResults_304128001_304387201_4FGL_J1303.0+2434_daily_bin250.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) = 6929.4516174
delta logL = -0.000970170764049

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6929.45064498
delta logL = 2.24516497838e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11893E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1592       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3458       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86277       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.

 FCN=   6926.767     FROM MIGRAD    STATUS=CONVERGED    149 CALLS      312 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13256        1.6259        .33632E-02    .15503E-02
   2  alpha         5.0000        3.7667        .41645    ** at limit **
   3  Normalizat    1.1748        .10868        .60139E-01    .14646E-03
   4  Prefactor     .97767        .11441        .70039E-01    .18342E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.13256
  alpha      = 5
  Normalizat = 1.17479
  Prefactor  = 0.977669
 **********
 **   18 **HESSE 
 **********

 FCN=   6926.767     FROM HESSE     STATUS=OK            35 CALLS      347 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13256        .91173E-01    .15103E-04   -1.5635    
   2  alpha         5.0000        .63682        .46750        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1748        .22701        .26600E-03   -.87386    
   4  Prefactor     .97767        .23634        .30984E-03   -.93478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.05409e-11
Minuit parameter uncertainties:
  1  0.0911729
  2  0.000164827
  3  0.227197
  4  0.236594
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/154876': 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) = 6926.7671062
delta logL = 2.68354103245

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.326e-01  9.117e-02  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  5.000e+00  1.648e-04  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.777e-01  2.366e-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.175e+00  2.272e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.80
Ra Dec: 195.757 24.582
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.22e-07 +/- 8.32e-08
Energy Flux (Free Index): 1.65e-05 +/- 1.13e-05

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/154876/cmap_HighResolution_304128001_304387201_4FGL_J1303.0+2434_daily_bin250.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.50e-05', comment='SUCCESS', energy_flux2='1.65e-05', dlogl='2.68e+00', photon_flux2='1.22e-07', job_status='DONE', time_completed='2021-09-06 18:06:59.282552', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='6.74e-08', energy_flux_error2='1.13e-05', EG='1.35', time_epoch_completed='1630976819.28', return_code='0', job_id='154876', GAL2='0.98', EG2='1.17', return_code2='0', photon_flux_error2='8.32e-08', ts2='5.80', photon_index='2.07' WHERE bin_id='250' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:06:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 154876: <4FGL_J1303.0+2434_daily_bin250> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin250> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep  6 17:50:27 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 17:50:49 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:49 2021
Terminated at Mon Sep  6 18:07:00 2021
Results reported at Mon Sep  6 18:07:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin250 195.757 24.5821 304128001 304387201 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 :                                   833.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            993 sec.

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

