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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1153
RA = 195.757, Dec = 24.5821
tmin = 538185601, tmax = 538444801
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='162198', job_status='RUN', time_executed='2021-09-06 18:20:46.945425', time_epoch_executed='1630977646.95' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1153'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/162198

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/162198/ft1_4FGL_J1303.0+2434_daily_bin1153.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/162198/ft2_4FGL_J1303.0+2434_daily_bin1153.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/162198/ft1_4FGL_J1303.0+2434_daily_bin1153.fits outfile=/scratch/kocevski/162198/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1153.fits ra=195.757 dec=24.5821 rad=12.0 tmin=538185601.0 tmax=538444801.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 5.37
user 5.12
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/162198/ft2_4FGL_J1303.0+2434_daily_bin1153.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/162198/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1153.fits evtable="EVENTS" outfile="/scratch/kocevski/162198/ft1_filtered_4FGL_J1303.0+2434_daily_bin1153.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.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/162198/ft1_filtered_4FGL_J1303.0+2434_daily_bin1153.fits" evtable="EVENTS" scfile=/scratch/kocevski/162198/ft2_4FGL_J1303.0+2434_daily_bin1153.fits sctable="SC_DATA" outfile=/scratch/kocevski/162198/ltcube_538185601_538444801_4FGL_J1303.0+2434_daily_bin1153.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/162198/ft2_4FGL_J1303.0+2434_daily_bin1153.fits
.....................!
real 17.95
user 17.50
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/162198/ft1_filtered_4FGL_J1303.0+2434_daily_bin1153.fits evtable="EVENTS" scfile=/scratch/kocevski/162198/ft2_4FGL_J1303.0+2434_daily_bin1153.fits sctable="SC_DATA" expcube=/scratch/kocevski/162198/ltcube_538185601_538444801_4FGL_J1303.0+2434_daily_bin1153.fits outfile=/scratch/kocevski/162198/expmap_538185601_538444801_4FGL_J1303.0+2434_daily_bin1153.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/162198/ltcube_538185601_538444801_4FGL_J1303.0+2434_daily_bin1153.fits
.....................!
real 193.38
user 187.48
sys 5.39

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/162198/ft1_filtered_4FGL_J1303.0+2434_daily_bin1153.fits scfile=/scratch/kocevski/162198/ft2_4FGL_J1303.0+2434_daily_bin1153.fits outfile=/scratch/kocevski/162198/cmap_538185601_538444801_4FGL_J1303.0+2434_daily_bin1153.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.56
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/162198/ft1_filtered_4FGL_J1303.0+2434_daily_bin1153.fits scfile=/scratch/kocevski/162198/ft2_4FGL_J1303.0+2434_daily_bin1153.fits outfile=/scratch/kocevski/162198/cmap_HighResolution_538185601_538444801_4FGL_J1303.0+2434_daily_bin1153.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.59
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    3.1493       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9160       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .33864       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2859       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .33226E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.688       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5100       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .35006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    16.682       1.0000         .10000E-03   10000.    
    15 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    21.813       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    29.913       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3388       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .85396       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=   2274.179     FROM MIGRAD    STATUS=CONVERGED   1149 CALLS     4282 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9688        .79748E-03** at limit **
   2  Prefactor     3.1508        4.7572        .58478E-03   -.15663E-03
   3  Prefactor     4.9181        4.3184        .83759E-04   -.10180E-03
   4  Prefactor     .10000E-03    4.7696        .10160E-02** at limit **
   5  norm          .33863        .33253        .26401E-04   -.62223E-04
   6  norm          .10000E-03    2.8286        .78257E-03** at limit **
   7  Prefactor     1.2352        73.754        .39094E-03   -.10134E-04
   8  Prefactor     .10001E-03    194.24        .19094    ** at limit **
   9  Prefactor     11.687        14.937        .58588E-03   -.37509E-04
  10  norm          1.5125        12.250        .30533E-03    .97924E-05
  11  Prefactor     .10000E-03    8.2963        .13410E-02** at limit **
  12  Prefactor     .10000E-03    190.58        .42647E-03** at limit **
  13  norm          .10000E-03    4.0683        .93789E-03** at limit **
  14  norm          16.683        12.851        .98062E-04    .17738E-04
  15  norm          .10000E-03    3.2451        .83748E-03** at limit **
  16  norm          .10000E-03    3.7866        .90631E-03** at limit **
  17  norm          .10000E-03    27.168        .18142E-02** at limit **
  18  Prefactor     .10000E-03    6.5908        .11851E-02** at limit **
  19  Prefactor     .10000E-03    32.047        .18142E-02** at limit **
  20  norm          21.811        14.701        .85761E-04   -.46211E-04
  21  Prefactor     .10000E-03    35.828        .18142E-02** at limit **
  22  Prefactor     .10000E-03    79.243        .18142E-02** at limit **
  23  norm          .10000E-03    7.7082        .12923E-02** at limit **
  24  Prefactor     29.908        41.771        .73256E-04   -.17537E-04
  25  Prefactor     .10000E-03    80.360        .18142E-02** at limit **
  26  Normalizat    1.3389        .35868        .23297E-03    .14883E-05
  27  Prefactor     .85397        .35410        .29569E-03   -.31681E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 3.15079
  Prefactor  = 4.91813
  Prefactor  = 0.0001
  norm       = 0.338632
  norm       = 0.0001
  Prefactor  = 1.23522
  Prefactor  = 0.000100009
  Prefactor  = 11.6871
  norm       = 1.51251
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 16.683
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.8113
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 29.9077
  Prefactor  = 0.0001
  Normalizat = 1.33887
  Prefactor  = 0.853969
 **********
 **   18 **HESSE 
 **********

 FCN=   2274.179     FROM HESSE     STATUS=OK           470 CALLS     4752 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9689        .15950E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.1508        4.7549        .23391E-04   -1.5353    
   3  Prefactor     4.9181        4.3164        .33504E-05   -1.5264    
   4  Prefactor     .10000E-03    4.7697        .20319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .33863        .33251        .10561E-05   -1.5592    
   6  norm          .10000E-03    2.8287        .15651E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.2352        73.612        .15638E-04   -1.5486    
   8  Prefactor     .10001E-03    204.45        .18402       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.687        14.936        .23435E-04   -1.5024    
  10  norm          1.5125        12.236        .12213E-04   -1.5462    
  11  Prefactor     .10000E-03    8.2965        .26821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    190.58        .85294E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.0684        .18758E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          16.683        12.851        .39225E-05   -1.4891    
  15  norm          .10000E-03    3.2452        .16750E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.7866        .18126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    27.168        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.5924        .23701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    32.057        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          21.811        14.701        .17152E-04   -1.4774    
  21  Prefactor     .10000E-03    35.828        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    79.243        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    7.7084        .25845E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     29.908        41.768        .29302E-05   -1.4614    
  25  Prefactor     .10000E-03    80.371        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3389        .35886        .93190E-05   -.82413    
  27  Prefactor     .85397        .35436        .11828E-04   -.97769    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.50301e-11
Minuit parameter uncertainties:
  1  8.7644e-06
  2  4.75544
  3  4.31663
  4  4.92858e-06
  5  0.332515
  6  6.10579e-06
  7  19.0949
  8  0.00270535
  9  14.9406
  10  8.60613
  11  1.05878e-05
  12  0.00030575
  13  2.24462e-06
  14  12.8533
  15  6.23324e-06
  16  2.30673e-06
  17  2.84746e-05
  18  1.6018e-05
  19  3.84144e-05
  20  14.7034
  21  3.26465e-05
  22  0.000108478
  23  6.28376e-06
  24  41.8093
  25  0.000225156
  26  0.359533
  27  0.35532
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  2.245e-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.540e-01  3.553e-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.339e+00  3.595e-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: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/162198/likelihoodResults_538185601_538444801_4FGL_J1303.0+2434_daily_bin1153.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) = 2274.17965386
delta logL = -0.00114099343

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2274.17851285
delta logL = 1.29980435304e-08

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.0723       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3389       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85398       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=   2274.150     FROM MIGRAD    STATUS=CONVERGED    140 CALLS      287 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27259E-01    6.4504        .70482E-02    .19664E-02
   2  alpha         5.0000        4.9612        .50000    ** at limit **
   3  Normalizat    1.3117        .86194E-01    .23297E-03   -.14908E-04
   4  Prefactor     .87138        .80683E-01    .29569E-03    .24414E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0272592
  alpha      = 5
  Normalizat = 1.3117
  Prefactor  = 0.871385
 **********
 **   18 **HESSE 
 **********

 FCN=   2274.150     FROM HESSE     STATUS=OK            33 CALLS      320 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27259E-01    .14204        .26609E-03   -1.5675    
   2  alpha         5.0000        4.9269        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3117        .35733        .93189E-05   -.83218    
   4  Prefactor     .87138        .35922        .11828E-04   -.97148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.77261e-09
Minuit parameter uncertainties:
  1  0.124222
  2  1.07471e-05
  3  0.358006
  4  0.360193
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/162198': 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) = 2274.14970339
delta logL = 0.0288094746993

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  2.726e-02  1.242e-01  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  5.000e+00  1.075e-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:  8.714e-01  3.602e-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.312e+00  3.580e-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/162198/cmap_HighResolution_538185601_538444801_4FGL_J1303.0+2434_daily_bin1153.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.33e-05', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-09-06 18:29:44.439563', job_id='162198', GAL2='0.87', fit_tolerance='1e-08', EG2='1.31', EG='1.34', time_epoch_completed='1630978184.44', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='2.88e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1153' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:29:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 162198: <4FGL_J1303.0+2434_daily_bin1153> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin1153> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 18:15:45 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 18:16:43 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:16:43 2021
Terminated at Mon Sep  6 18:29:45 2021
Results reported at Mon Sep  6 18:29:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1153 195.757 24.5821 538185601 538444801 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 :                                   532.16 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             243.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                22
    Run time :                                   781 sec.
    Turnaround time :                            840 sec.

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

