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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1515
RA = 195.757, Dec = 24.5821
tmin = 632016001, tmax = 632275201
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='164919', job_status='RUN', time_executed='2021-09-06 18:28:37.207621', time_epoch_executed='1630978117.21' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1515'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164919

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164919/ft1_4FGL_J1303.0+2434_daily_bin1515.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164919/ft2_4FGL_J1303.0+2434_daily_bin1515.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164919/ft1_4FGL_J1303.0+2434_daily_bin1515.fits outfile=/scratch/kocevski/164919/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1515.fits ra=195.757 dec=24.5821 rad=12.0 tmin=632016001.0 tmax=632275201.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 4.74
user 4.48
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164919/ft1_filtered_4FGL_J1303.0+2434_daily_bin1515.fits" evtable="EVENTS" scfile=/scratch/kocevski/164919/ft2_4FGL_J1303.0+2434_daily_bin1515.fits sctable="SC_DATA" outfile=/scratch/kocevski/164919/ltcube_632016001_632275201_4FGL_J1303.0+2434_daily_bin1515.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/164919/ft2_4FGL_J1303.0+2434_daily_bin1515.fits
.....................!
real 16.50
user 16.12
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164919/ft1_filtered_4FGL_J1303.0+2434_daily_bin1515.fits evtable="EVENTS" scfile=/scratch/kocevski/164919/ft2_4FGL_J1303.0+2434_daily_bin1515.fits sctable="SC_DATA" expcube=/scratch/kocevski/164919/ltcube_632016001_632275201_4FGL_J1303.0+2434_daily_bin1515.fits outfile=/scratch/kocevski/164919/expmap_632016001_632275201_4FGL_J1303.0+2434_daily_bin1515.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/164919/ltcube_632016001_632275201_4FGL_J1303.0+2434_daily_bin1515.fits
.....................!
real 192.57
user 186.94
sys 5.16

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/164919/ft1_filtered_4FGL_J1303.0+2434_daily_bin1515.fits scfile=/scratch/kocevski/164919/ft2_4FGL_J1303.0+2434_daily_bin1515.fits outfile=/scratch/kocevski/164919/cmap_632016001_632275201_4FGL_J1303.0+2434_daily_bin1515.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.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.6848       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0681       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5051       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .47595E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    9.4157       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.3300       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    10.815       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0832       1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.980       1.0000         .10000E-03   10000.    
    13 'norm      '    1.7849       1.0000         .10000E-03   10000.    
    14 'norm      '    11.800       1.0000         .10000E-03   10000.    
    15 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.2242       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10742E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.9206       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .18604E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.1897       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    22.716       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .90935       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1531       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=   6479.952     FROM MIGRAD    STATUS=CONVERGED    648 CALLS     2864 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.6848        4.2179        .20832E-07   -.57697E-05
   2  Prefactor     3.0680        2.6323        .26001E-07   -.80302E-05
   3  Prefactor     2.5050        2.3180        .17586E-07   -.32372E-04
   4  Prefactor     .10000E-03    4.9559       -.83510E-08** at limit **
   5  norm          .47631E-01    .15482       -.29265E-07   -.62679E-03
   6  norm          9.4150        4.9649        .27243E-06    .27203E-04
   7  Prefactor     .10000E-03    4.1788        .17041E-06** at limit **
   8  Prefactor     7.3276        79.254       -.59025E-05   -.36090E-05
   9  Prefactor     .10000E-03    11.387       -.15283E-06** at limit **
  10  norm          10.815        5.8465        .55489E-06   -.10845E-04
  11  Prefactor     4.0839        6.2097        .14839E-06   -.35068E-03
  12  Prefactor     23.977        25.392       -.19080E-05   -.27442E-04
  13  norm          1.7849        2.5733        .27909E-07   -.27995E-04
  14  norm          11.800        6.9372        .42158E-07   -.17511E-03
  15  norm          .10000E-03    1.3015        .73690E-07** at limit **
  16  norm          .10000E-03    1.5262        .22026E-06** at limit **
  17  norm          5.2233        11.260        .12091E-06   -.17213E-03
  18  Prefactor     .10000E-03    1.9050        .16915E-06** at limit **
  19  Prefactor     .10000E-03    24.773        .56558E-06** at limit **
  20  norm          5.9210        6.1320       -.11417E-06   -.20496E-04
  21  Prefactor     .10000E-03    59.218        .12457E-05** at limit **
  22  Prefactor     .10000E-03    25.282        .10207E-05** at limit **
  23  norm          4.1900        6.0367       -.14124E-06   -.24773E-04
  24  Prefactor     .10000E-03    9.2377       -.75719E-07** at limit **
  25  Prefactor     22.719        23.160        .15658E-05    .64262E-05
  26  Normalizat    .90909        .17404       -.43997E-06    .32039E-04
  27  Prefactor     1.1533        .18107        .88042E-06   -.24957E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.68476
  Prefactor  = 3.06799
  Prefactor  = 2.50496
  Prefactor  = 0.0001
  norm       = 0.0476314
  norm       = 9.41503
  Prefactor  = 0.0001
  Prefactor  = 7.3276
  Prefactor  = 0.0001
  norm       = 10.8147
  Prefactor  = 4.08394
  Prefactor  = 23.9766
  norm       = 1.78487
  norm       = 11.8
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.22331
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.92099
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.19004
  Prefactor  = 0.0001
  Prefactor  = 22.7195
  Normalizat = 0.909095
  Prefactor  = 1.15333
 **********
 **   18 **HESSE 
 **********

 FCN=   6479.952     FROM HESSE     STATUS=OK           498 CALLS     3362 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.6848        4.2196        .10774E-03   -1.5153    
   2  Prefactor     3.0680        2.6358        .10758E-03   -1.5358    
   3  Prefactor     2.5050        2.3062        .11017E-03   -1.5391    
   4  Prefactor     .10000E-03    5.1124        .34936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .47631E-01    .16864        .54632E-03   -1.5664    
   6  norm          9.4150        4.9529        .12486E-03   -1.5094    
   7  Prefactor     .10000E-03    4.1879        .16065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.3276        79.508        .14815E-03   -1.5167    
   9  Prefactor     .10000E-03    11.731        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.815        5.8389        .12183E-03   -1.5050    
  11  Prefactor     4.0839        11.817        .99760E-03   -1.5304    
  12  Prefactor     23.977        25.556        .81799E-04   -1.4728    
  13  norm          1.7849        2.5531        .15005E-03   -1.5441    
  14  norm          11.800        6.9304        .58309E-03   -1.5021    
  15  norm          .10000E-03    1.3086        .89623E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.5275        .97116E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.2233        12.222        .87934E-03   -1.5251    
  18  Prefactor     .10000E-03    3.7505        .21172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    25.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.9210        6.1097        .16503E-03   -1.5221    
  21  Prefactor     .10000E-03    60.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    25.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.1900        6.0155        .19689E-03   -1.5299    
  24  Prefactor     .10000E-03    9.2619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     22.719        23.138        .84042E-04   -1.4754    
  26  Normalizat    .90909        .20239        .26091E-03   -.96141    
  27  Prefactor     1.1533        .21171        .25262E-03   -.87780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90998e-08
Minuit parameter uncertainties:
  1  4.21977
  2  2.63593
  3  2.30626
  4  1.31233e-05
  5  0.168646
  6  4.95316
  7  1.45901e-06
  8  48.3561
  9  1.23457e-05
  10  5.83916
  11  11.8237
  12  25.5679
  13  2.55327
  14  6.93085
  15  6.41756e-07
  16  2.61201e-07
  17  12.2276
  18  2.36902e-05
  19  1.48954e-05
  20  6.11034
  21  5.1627e-05
  22  3.53123e-06
  23  6.01637
  24  1.55209e-05
  25  23.1473
  26  0.202559
  27  0.211864
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.785e+00  2.553e+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

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  1.153e+00  2.119e-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.091e-01  2.026e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.87
Ra Dec: 195.757 24.582
Photon Flux Upper Limit: 6.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.31e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/164919/likelihoodResults_632016001_632275201_4FGL_J1303.0+2434_daily_bin1515.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) = 6479.93740089
delta logL = 0.0146551323605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6479.93583707
delta logL = 0.0162189484072

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6585       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3225       1.0000          .0000       5.0000    
     3 'Normalizat'    .90433       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1566       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=   6479.936     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      201 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6615        98.501        .81910E-02    .56382E-04
   2  alpha         2.3233        3.7823        .41283        .71007E-05
   3  Normalizat    .90426        .74680E-01    .44957E-01   -.33400E-04
   4  Prefactor     1.1566        .61926E-01    .57061E-01   -.58162E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.66149
  alpha      = 2.32326
  Normalizat = 0.904262
  Prefactor  = 1.15659
 **********
 **   18 **HESSE 
 **********

 FCN=   6479.936     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6615        2.7019        .14124E-03   -1.5450    
   2  alpha         2.3233        1.4566        .30717E-01   -.70756E-01
   3  Normalizat    .90426        .19737        .26155E-03   -.96311    
   4  Prefactor     1.1566        .21139        .25232E-03   -.87678    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42147e-11
Minuit parameter uncertainties:
  1  2.70212
  2  1.55557
  3  0.197532
  4  0.211546
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164919': 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) = 6479.93583574
delta logL = 0.016220285499

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.661e+00  2.702e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.323e+00  1.556e+00  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.157e+00  2.115e-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.043e-01  1.975e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.87
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/164919/cmap_HighResolution_632016001_632275201_4FGL_J1303.0+2434_daily_bin1515.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.31e-05', job_status='DONE', photon_flux_upper_limit='6.39e-08', time_completed='2021-09-06 18:41:34.879501', job_id='164919', GAL2='1.16', fit_tolerance='1e-08', EG2='0.90', EG='0.91', time_epoch_completed='1630978894.88', return_code2='0', ts='0.87', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.62e-02', ts2='0.90', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1515' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:41:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 164919: <4FGL_J1303.0+2434_daily_bin1515> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin1515> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 18:25:30 2021
Job was executed on host(s) <bullet0293>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 18:25:59 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:25:59 2021
Terminated at Mon Sep  6 18:41:35 2021
Results reported at Mon Sep  6 18:41:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1515 195.757 24.5821 632016001 632275201 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 :                                   739.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            965 sec.

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

