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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin830
RA = 195.757, Dec = 24.5821
tmin = 454464001, tmax = 454723201
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='160566', job_status='RUN', time_executed='2021-09-06 18:11:12.731096', time_epoch_executed='1630977072.73' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='830'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/160566

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/160566/ft1_4FGL_J1303.0+2434_daily_bin830.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/160566/ft2_4FGL_J1303.0+2434_daily_bin830.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/160566/ft1_4FGL_J1303.0+2434_daily_bin830.fits outfile=/scratch/kocevski/160566/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin830.fits ra=195.757 dec=24.5821 rad=12.0 tmin=454464001.0 tmax=454723201.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.67
user 3.42
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/160566/ft1_filtered_4FGL_J1303.0+2434_daily_bin830.fits" evtable="EVENTS" scfile=/scratch/kocevski/160566/ft2_4FGL_J1303.0+2434_daily_bin830.fits sctable="SC_DATA" outfile=/scratch/kocevski/160566/ltcube_454464001_454723201_4FGL_J1303.0+2434_daily_bin830.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/160566/ft2_4FGL_J1303.0+2434_daily_bin830.fits
.....................!
real 16.78
user 16.32
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/160566/ft1_filtered_4FGL_J1303.0+2434_daily_bin830.fits evtable="EVENTS" scfile=/scratch/kocevski/160566/ft2_4FGL_J1303.0+2434_daily_bin830.fits sctable="SC_DATA" expcube=/scratch/kocevski/160566/ltcube_454464001_454723201_4FGL_J1303.0+2434_daily_bin830.fits outfile=/scratch/kocevski/160566/expmap_454464001_454723201_4FGL_J1303.0+2434_daily_bin830.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/160566/ltcube_454464001_454723201_4FGL_J1303.0+2434_daily_bin830.fits
.....................!
real 192.60
user 186.56
sys 5.15

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/160566/ft1_filtered_4FGL_J1303.0+2434_daily_bin830.fits scfile=/scratch/kocevski/160566/ft2_4FGL_J1303.0+2434_daily_bin830.fits outfile=/scratch/kocevski/160566/cmap_454464001_454723201_4FGL_J1303.0+2434_daily_bin830.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.40
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    2.9237       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2820       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.943       1.0000         .10000E-03   10000.    
     5 'norm      '    .44907       1.0000         .10000E-03   10000.    
     6 'norm      '    13.007       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.5049       1.0000         .10000E-03   10000.    
     8 'Prefactor '    113.47       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.333       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.6174       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    29.853       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.6976       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .86632       1.0000         .10000E-03   10000.    
    20 'norm      '    14.274       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.963       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    32.265       1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.070       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2036       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .84727       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=   6161.660     FROM MIGRAD    STATUS=CONVERGED    647 CALLS     3263 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2202       -.59636E-08** at limit **
   2  Prefactor     2.9241        2.2349       -.47269E-07   -.33736E-04
   3  Prefactor     2.2823        2.2590       -.92010E-07   -.52882E-04
   4  Prefactor     12.944        7.0286       -.12285E-07   -.21189E-04
   5  norm          .44906        .27995        .31226E-07    .14740E-03
   6  norm          13.007        6.1437       -.60852E-07   -.41644E-04
   7  Prefactor     4.5047        7.4857        .44275E-05    .22570E-03
   8  Prefactor     113.49        87.140        .56121E-06    .80556E-04
   9  Prefactor     .10000E-03    4.6685        .58906E-07** at limit **
  10  norm          .10000E-03    1.7219        .21675E-06** at limit **
  11  Prefactor     14.333        14.770        .24603E-06   -.84566E-05
  12  Prefactor     .10000E-03    7.5633        .10314E-06** at limit **
  13  norm          .10000E-03    1.3242        .18592E-07** at limit **
  14  norm          .10000E-03    3.1259        .90522E-07** at limit **
  15  norm          3.6187        3.1783       -.49465E-08    .20164E-03
  16  norm          .10000E-03    3.2977        .23758E-07** at limit **
  17  norm          29.850        26.796       -.22486E-07   -.38810E-04
  18  Prefactor     5.7014        4.7101       -.10077E-06    .46397E-03
  19  Prefactor     .78624        15.062       -.24065E-05    .44403E-03
  20  norm          14.275        8.5547        .19331E-06    .62325E-04
  21  Prefactor     11.928        35.650       -.26331E-05   -.22273E-03
  22  Prefactor     .10000E-03    35.089        .27800E-06** at limit **
  23  norm          .10000E-03    4.2088        .13364E-06** at limit **
  24  Prefactor     32.270        23.030        .16637E-06    .10266E-03
  25  Prefactor     13.069        23.310        .18850E-06   -.14319E-04
  26  Normalizat    1.2032        .19925       -.27578E-05    .16536E-03
  27  Prefactor     .84768        .19682        .24326E-05   -.50413E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.92409
  Prefactor  = 2.28226
  Prefactor  = 12.9435
  norm       = 0.449061
  norm       = 13.0066
  Prefactor  = 4.50467
  Prefactor  = 113.491
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.3326
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.61875
  norm       = 0.0001
  norm       = 29.8498
  Prefactor  = 5.70141
  Prefactor  = 0.786239
  norm       = 14.2749
  Prefactor  = 11.9281
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 32.2696
  Prefactor  = 13.0686
  Normalizat = 1.20324
  Prefactor  = 0.847675
 **********
 **   18 **HESSE 
 **********

 FCN=   6161.660     FROM HESSE     STATUS=OK           492 CALLS     3755 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2262        .84519E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.9241        2.2248        .98112E-04   -1.5366    
   3  Prefactor     2.2823        2.2445        .11071E-03   -1.5406    
   4  Prefactor     12.944        7.0281        .11134E-03   -1.4988    
   5  norm          .44906        .27361        .30911E-04   -1.5574    
   6  norm          13.007        6.1447        .11107E-03   -1.4987    
   7  Prefactor     4.5047        7.6161        .94846E-03   -1.5283    
   8  Prefactor     113.49        87.337        .37765E-04   -1.3573    
   9  Prefactor     .10000E-03    4.6924        .16559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.7294        .10053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.333        14.793        .10580E-03   -1.4951    
  12  Prefactor     .10000E-03    7.5681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.3306        .88190E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.1436        .13549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.6187        3.1555        .12355E-03   -1.5327    
  16  norm          .10000E-03    3.3042        .13879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          29.850        26.792        .73329E-04   -1.4615    
  18  Prefactor     5.7014        4.5979        .13164E-03   -1.5230    
  19  Prefactor     .78624        56.640        .48778E-02   -1.5531    
  20  norm          14.275        8.5599        .10601E-03   -1.4952    
  21  Prefactor     11.928        35.937        .11582E-03   -1.5017    
  22  Prefactor     .10000E-03    35.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.2179        .15712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     32.270        23.006        .70542E-04   -1.4571    
  25  Prefactor     13.069        23.300        .11080E-03   -1.4985    
  26  Normalizat    1.2032        .23104        .24942E-03   -.86503    
  27  Prefactor     .84768        .22775        .29969E-03   -.97994    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.85951e-09
Minuit parameter uncertainties:
  1  3.76195e-07
  2  2.22485
  3  2.24463
  4  7.02855
  5  0.273606
  6  6.14496
  7  7.61771
  8  87.4362
  9  3.56848e-06
  10  4.03247e-06
  11  14.7965
  12  1.1764e-05
  13  1.64885e-06
  14  9.43146e-06
  15  3.15565
  16  4.70764e-06
  17  26.8027
  18  4.59814
  19  13.3589
  20  8.56061
  21  36.0019
  22  0.000173071
  23  6.79459e-06
  24  23.0118
  25  23.3165
  26  0.231232
  27  0.228007
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  1.649e-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.477e-01  2.280e-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.203e+00  2.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/160566/likelihoodResults_454464001_454723201_4FGL_J1303.0+2434_daily_bin830.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) = 6161.66304168
delta logL = -0.00347641565713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6161.65956494
delta logL = 3.29162503476e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0811       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2032       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84769       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=   6161.660     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      200 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4282        .90712E-02** at limit **
   2  alpha         2.0970        3.5457        .41906       -.58752E-04
   3  Normalizat    1.2032        .18207        .56404E-01    .58363E-04
   4  Prefactor     .84768        .18795        .67742E-01    .53194E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.09698
  Normalizat = 1.20324
  Prefactor  = 0.847678
 **********
 **   18 **HESSE 
 **********

 FCN=   6161.660     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.3681        .89037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0970        3.4476        .50000       -.16192    
   3  Normalizat    1.2032        .21514        .24942E-03   -.86503    
   4  Prefactor     .84768        .22193        .29969E-03   -.97994    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46875e-09
Minuit parameter uncertainties:
  1  6.2792e-06
  2  2.47799
  3  0.215297
  4  0.222163
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/160566': 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) = 6161.65956453
delta logL = 7.34015884518e-07

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  6.279e-06  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.097e+00  2.478e+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:  8.477e-01  2.222e-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.203e+00  2.153e-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/160566/cmap_HighResolution_454464001_454723201_4FGL_J1303.0+2434_daily_bin830.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.32e-05', job_status='DONE', photon_flux_upper_limit='4.48e-08', time_completed='2021-09-06 18:23:35.448291', job_id='160566', GAL2='0.85', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1630977815.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='7.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='830' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:23:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 160566: <4FGL_J1303.0+2434_daily_bin830> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin830> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Sep  6 18:10:27 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 18:10:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 18:10:58 2021
Terminated at Mon Sep  6 18:23:36 2021
Results reported at Mon Sep  6 18:23:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin830 195.757 24.5821 454464001 454723201 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 :                                   740.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            789 sec.

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

