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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin302
RA = 195.757, Dec = 24.5821
tmin = 317606401, tmax = 317865601
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='156226', job_status='RUN', time_executed='2021-09-06 17:55:38.465132', time_epoch_executed='1630976138.47' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='302'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/156226

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/156226/ft1_4FGL_J1303.0+2434_daily_bin302.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/156226/ft2_4FGL_J1303.0+2434_daily_bin302.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/156226/ft1_4FGL_J1303.0+2434_daily_bin302.fits outfile=/scratch/kocevski/156226/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin302.fits ra=195.757 dec=24.5821 rad=12.0 tmin=317606401.0 tmax=317865601.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.23
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/156226/ft1_filtered_4FGL_J1303.0+2434_daily_bin302.fits" evtable="EVENTS" scfile=/scratch/kocevski/156226/ft2_4FGL_J1303.0+2434_daily_bin302.fits sctable="SC_DATA" outfile=/scratch/kocevski/156226/ltcube_317606401_317865601_4FGL_J1303.0+2434_daily_bin302.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/156226/ft2_4FGL_J1303.0+2434_daily_bin302.fits
.....................!
real 15.45
user 15.05
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/156226/ft1_filtered_4FGL_J1303.0+2434_daily_bin302.fits evtable="EVENTS" scfile=/scratch/kocevski/156226/ft2_4FGL_J1303.0+2434_daily_bin302.fits sctable="SC_DATA" expcube=/scratch/kocevski/156226/ltcube_317606401_317865601_4FGL_J1303.0+2434_daily_bin302.fits outfile=/scratch/kocevski/156226/expmap_317606401_317865601_4FGL_J1303.0+2434_daily_bin302.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/156226/ltcube_317606401_317865601_4FGL_J1303.0+2434_daily_bin302.fits
.....................!
real 191.11
user 186.47
sys 3.99

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/156226/ft1_filtered_4FGL_J1303.0+2434_daily_bin302.fits scfile=/scratch/kocevski/156226/ft2_4FGL_J1303.0+2434_daily_bin302.fits outfile=/scratch/kocevski/156226/cmap_317606401_317865601_4FGL_J1303.0+2434_daily_bin302.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.41
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/156226/ft1_filtered_4FGL_J1303.0+2434_daily_bin302.fits scfile=/scratch/kocevski/156226/ft2_4FGL_J1303.0+2434_daily_bin302.fits outfile=/scratch/kocevski/156226/cmap_HighResolution_317606401_317865601_4FGL_J1303.0+2434_daily_bin302.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8047       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0549       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0658       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2995       1.0000         .10000E-03   10000.    
     5 'norm      '    2.1105       1.0000         .10000E-03   10000.    
     6 'norm      '    13.017       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.973       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8249       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8004       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11984E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.0732       1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    12.691       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7305       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11087E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.7296       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.721       1.0000         .10000E-03   10000.    
    23 'norm      '    23.214       1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.720       1.0000         .10000E-03   10000.    
    25 'Prefactor '    27.686       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0851       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0366       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=   6869.759     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     2809 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8046        3.0311        .18924E-06    .93243E-04
   2  Prefactor     1.0547        1.8908       -.30779E-06   -.99734E-03
   3  Prefactor     3.0657        1.9966       -.10544E-06    .28197E-04
   4  Prefactor     5.2996        7.7504       -.56301E-06   -.20822E-03
   5  norm          2.1104        .41738       -.31347E-07    .33796E-03
   6  norm          13.016        6.2308       -.12846E-06   -.13546E-04
   7  Prefactor     17.972        9.6457       -.25630E-06    .45044E-04
   8  Prefactor     .10000E-03    17.483       -.11280E-04** at limit **
   9  Prefactor     6.8249        7.0313       -.49593E-06   -.10019E-03
  10  norm          .10000E-03    1.3442       -.21326E-06** at limit **
  11  Prefactor     3.7977        12.610       -.46563E-05   -.11300E-03
  12  Prefactor     .10000E-03    5.9692       -.12820E-06** at limit **
  13  norm          .10000E-03    2.1939       -.10919E-06** at limit **
  14  norm          .10000E-03    1.8452        .27314E-07** at limit **
  15  norm          5.0733        3.0402        .28572E-06   -.39953E-03
  16  norm          .10000E-03    3.2187        .17720E-07** at limit **
  17  norm          12.691        12.944       -.12192E-06    .20744E-04
  18  Prefactor     2.7301        3.5273        .21289E-05   -.91142E-03
  19  Prefactor     .10000E-03    15.523        .13580E-04** at limit **
  20  norm          4.7289        6.5092       -.14413E-06   -.19576E-03
  21  Prefactor     .10000E-03    10.356       -.22097E-05** at limit **
  22  Prefactor     12.681        45.142       -.10269E-03   -.40114E-04
  23  norm          23.212        11.148       -.71009E-06    .16682E-04
  24  Prefactor     19.717        15.581       -.25386E-05   -.71239E-04
  25  Prefactor     27.683        18.665       -.26001E-05   -.64543E-05
  26  Normalizat    1.0853        .18761        .16824E-05   -.77126E-04
  27  Prefactor     1.0364        .19359        .19787E-05   -.45114E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.80463
  Prefactor  = 1.05466
  Prefactor  = 3.06572
  Prefactor  = 5.29965
  norm       = 2.1104
  norm       = 13.0162
  Prefactor  = 17.972
  Prefactor  = 0.0001
  Prefactor  = 6.82487
  norm       = 0.0001
  Prefactor  = 3.79773
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.07334
  norm       = 0.0001
  norm       = 12.6908
  Prefactor  = 2.73011
  Prefactor  = 0.000100001
  norm       = 4.72892
  Prefactor  = 0.0001
  Prefactor  = 12.6807
  norm       = 23.2119
  Prefactor  = 19.7169
  Prefactor  = 27.6835
  Normalizat = 1.08534
  Prefactor  = 1.03642
 **********
 **   18 **HESSE 
 **********

 FCN=   6869.759     FROM HESSE     STATUS=OK           502 CALLS     3311 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8046        2.9887        .97917E-04   -1.5226    
   2  Prefactor     1.0547        1.5006        .14255E-02   -1.5503    
   3  Prefactor     3.0657        1.9874        .89898E-04   -1.5358    
   4  Prefactor     5.2996        7.7264        .17459E-03   -1.5248    
   5  norm          2.1104        .41864        .22371E-04   -1.5417    
   6  norm          13.016        6.2198        .11102E-03   -1.4986    
   7  Prefactor     17.972        9.6418        .94474E-04   -1.4860    
   8  Prefactor     .10000E-03    17.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.8249        7.0191        .15358E-03   -1.5185    
  10  norm          .10000E-03    1.3595        .93823E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.7977        12.615        .20706E-03   -1.5318    
  12  Prefactor     .10000E-03    5.9775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.9302        .23705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.8505        .10989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.0733        3.0273        .10573E-03   -1.5257    
  16  norm          .10000E-03    3.2436        .14468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.691        12.941        .11244E-03   -1.4995    
  18  Prefactor     2.7301        3.4961        .15873E-03   -1.5377    
  19  Prefactor     .10000E-03    15.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.7289        6.4854        .18502E-03   -1.5273    
  21  Prefactor     .10000E-03    10.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.681        44.948        .11231E-03   -1.4996    
  23  norm          23.212        11.147        .83137E-04   -1.4744    
  24  Prefactor     19.717        15.610        .90193E-04   -1.4820    
  25  Prefactor     27.683        18.678        .76138E-04   -1.4655    
  26  Normalizat    1.0853        .22599        .26453E-03   -.90224    
  27  Prefactor     1.0364        .23231        .29399E-03   -.91525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.22229e-10
Minuit parameter uncertainties:
  1  2.98873
  2  1.50063
  3  1.98742
  4  7.72787
  5  0.418637
  6  6.22011
  7  9.64266
  8  9.70898e-06
  9  7.01993
  10  3.80374e-06
  11  12.6238
  12  7.80946e-06
  13  9.49128e-05
  14  1.04737e-07
  15  3.02741
  16  1.30474e-05
  17  12.9436
  18  3.49634
  19  0.000244073
  20  6.48638
  21  3.14353e-06
  22  45.0682
  23  11.1481
  24  15.6131
  25  18.6815
  26  0.226189
  27  0.232538
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  9.491e-05  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:  1.036e+00  2.325e-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.085e+00  2.262e-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: 5.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.75e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/156226/likelihoodResults_317606401_317865601_4FGL_J1303.0+2434_daily_bin302.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) = 6869.7600526
delta logL = -0.000801012088232

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6869.75925964
delta logL = -8.05660874903e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .40514E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1763       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0859       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0358       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=   6868.175     FROM MIGRAD    STATUS=CONVERGED    178 CALLS      347 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .90469E-01    .60755E-01    .34861E-02   -.21795E-02
   2  alpha         5.0000        .60293        .41596    ** at limit **
   3  Normalizat    .95945        .18699        .63096E-01    .47518E-04
   4  Prefactor     1.1247        .19692        .64162E-01   -.35803E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0904692
  alpha      = 5
  Normalizat = 0.959449
  Prefactor  = 1.12475
 **********
 **   18 **HESSE 
 **********

 FCN=   6868.175     FROM HESSE     STATUS=OK            37 CALLS      384 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .90469E-01    .68795E-01    .15792E-03   -1.5768    
   2  alpha         5.0000        .67316        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .95945        .22486        .27912E-03   -.94402    
   4  Prefactor     1.1247        .23847        .28376E-03   -.88680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.8838e-10
Minuit parameter uncertainties:
  1  0.0687953
  2  7.60787e-06
  3  0.225085
  4  0.238698
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/156226': 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) = 6868.1752422
delta logL = 1.58400938809

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  9.047e-02  6.880e-02  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  5.000e+00  7.608e-06  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:  1.125e+00  2.387e-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:  9.594e-01  2.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.43
Ra Dec: 195.757 24.582
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 8.29e-08 +/- 6.27e-08
Energy Flux (Free Index): 1.13e-05 +/- 8.55e-06

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/156226/cmap_HighResolution_317606401_317865601_4FGL_J1303.0+2434_daily_bin302.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-05', comment='SUCCESS', energy_flux2='1.13e-05', dlogl='1.58e+00', photon_flux2='8.29e-08', job_status='DONE', time_completed='2021-09-06 18:08:52.523220', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='5.29e-08', energy_flux_error2='8.55e-06', EG='1.09', time_epoch_completed='1630976932.52', return_code='0', job_id='156226', GAL2='1.12', EG2='0.96', return_code2='0', photon_flux_error2='6.27e-08', ts2='3.43', photon_index='2.07' WHERE bin_id='302' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:08:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 156226: <4FGL_J1303.0+2434_daily_bin302> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin302> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 17:55:22 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 17:55:27 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:55:27 2021
Terminated at Mon Sep  6 18:08:53 2021
Results reported at Mon Sep  6 18:08:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin302 195.757 24.5821 317606401 317865601 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 :                                   790.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            811 sec.

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

