/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 211 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 = 7428
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1303.0+2434_daily_bin16
RA = 195.757, Dec = 24.5821
tmin = 243475201, tmax = 243734401
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='152103', job_status='RUN', time_executed='2021-09-06 17:44:22.607414', time_epoch_executed='1630975462.61' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='16'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152103

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152103/ft1_4FGL_J1303.0+2434_daily_bin16.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152103/ft2_4FGL_J1303.0+2434_daily_bin16.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152103/ft1_4FGL_J1303.0+2434_daily_bin16.fits outfile=/scratch/kocevski/152103/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin16.fits ra=195.757 dec=24.5821 rad=12.0 tmin=243475201.0 tmax=243734401.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 1.46
user 1.25
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152103/ft1_filtered_4FGL_J1303.0+2434_daily_bin16.fits evtable="EVENTS" scfile=/scratch/kocevski/152103/ft2_4FGL_J1303.0+2434_daily_bin16.fits sctable="SC_DATA" expcube=/scratch/kocevski/152103/ltcube_243475201_243734401_4FGL_J1303.0+2434_daily_bin16.fits outfile=/scratch/kocevski/152103/expmap_243475201_243734401_4FGL_J1303.0+2434_daily_bin16.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/152103/ltcube_243475201_243734401_4FGL_J1303.0+2434_daily_bin16.fits
.....................!
real 192.63
user 187.04
sys 4.94

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/152103/ft1_filtered_4FGL_J1303.0+2434_daily_bin16.fits scfile=/scratch/kocevski/152103/ft2_4FGL_J1303.0+2434_daily_bin16.fits outfile=/scratch/kocevski/152103/cmap_243475201_243734401_4FGL_J1303.0+2434_daily_bin16.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/152103/ft1_filtered_4FGL_J1303.0+2434_daily_bin16.fits scfile=/scratch/kocevski/152103/ft2_4FGL_J1303.0+2434_daily_bin16.fits outfile=/scratch/kocevski/152103/cmap_HighResolution_243475201_243734401_4FGL_J1303.0+2434_daily_bin16.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.792       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .30863       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.870       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9240       1.0000         .10000E-03   10000.    
     5 'norm      '    .35008       1.0000         .10000E-03   10000.    
     6 'norm      '    2.5983       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.7346       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1044       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7010       1.0000         .10000E-03   10000.    
    10 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.213       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.5611       1.0000         .10000E-03   10000.    
    14 'norm      '    .41652       1.0000         .10000E-03   10000.    
    15 'norm      '    11.020       1.0000         .10000E-03   10000.    
    16 'norm      '    1.7621       1.0000         .10000E-03   10000.    
    17 'norm      '    26.588       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .90361       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .57304       1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.177       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.1063       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10382E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .17495       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .96985       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1631       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=   7521.272     FROM MIGRAD    STATUS=CONVERGED    729 CALLS     2954 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.787        4.6080        .80421E-08    .60285E-04
   2  Prefactor     .31021        2.5400        .47609E-06   -.89667E-04
   3  Prefactor     14.869        3.5491        .12259E-07   -.10576E-03
   4  Prefactor     3.9223        3.8838       -.82799E-07   -.30990E-04
   5  norm          .35001        .20296        .30200E-07   -.95818E-04
   6  norm          2.5971        4.8491        .55147E-06   -.17022E-04
   7  Prefactor     3.7323        7.0939        .32090E-06   -.44996E-04
   8  Prefactor     1.8713        584.82        .31050E-04   -.24011E-04
   9  Prefactor     2.6993        5.6928        .51586E-05    .26651E-04
  10  norm          .10000E-03    1.3434       -.35165E-06** at limit **
  11  Prefactor     10.227        13.447        .58405E-06   -.12496E-04
  12  Prefactor     .10000E-03    9.7558       -.30957E-06** at limit **
  13  norm          5.5612        3.6802        .17521E-07   -.50353E-04
  14  norm          .41558        3.9276        .11691E-05   -.11120E-04
  15  norm          11.021        5.1890       -.42863E-06   -.41396E-03
  16  norm          1.7604        6.6096        .16092E-05    .20891E-04
  17  norm          26.594        22.236       -.18170E-05   -.26055E-04
  18  Prefactor     .90425        2.1347        .15493E-06   -.14046E-03
  19  Prefactor     .10000E-03    2.9689        .27175E-07** at limit **
  20  norm          .57421        7.9144        .14975E-05   -.36598E-04
  21  Prefactor     33.208        29.651        .12687E-05   -.54857E-05
  22  Prefactor     .10000E-03    16.003        .31539E-07** at limit **
  23  norm          6.0996        9.9277        .65070E-06   -.10960E-04
  24  Prefactor     .10000E-03    14.620        .14345E-06** at limit **
  25  Prefactor     .25471E-03    15.891        .27411E-05** at limit **
  26  Normalizat    .97006        .17488       -.10138E-05   -.41180E-03
  27  Prefactor     1.1632        .18007       -.13681E-05   -.35818E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.7875
  Prefactor  = 0.310205
  Prefactor  = 14.869
  Prefactor  = 3.92226
  norm       = 0.350005
  norm       = 2.59713
  Prefactor  = 3.73235
  Prefactor  = 1.87134
  Prefactor  = 2.69931
  norm       = 0.0001
  Prefactor  = 10.2269
  Prefactor  = 0.0001
  norm       = 5.56122
  norm       = 0.415583
  norm       = 11.0207
  norm       = 1.76041
  norm       = 26.5936
  Prefactor  = 0.904246
  Prefactor  = 0.0001
  norm       = 0.574205
  Prefactor  = 33.2076
  Prefactor  = 0.0001
  norm       = 6.09957
  Prefactor  = 0.0001
  Prefactor  = 0.000254706
  Normalizat = 0.970057
  Prefactor  = 1.16318
 **********
 **   18 **HESSE 
 **********

 FCN=   7521.272     FROM HESSE     STATUS=OK           508 CALLS     3462 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.787        4.4512        .95681E-04   -1.4993    
   2  Prefactor     .31021        2.3405        .23937E-03   -1.5597    
   3  Prefactor     14.869        3.5436        .73984E-04   -1.4937    
   4  Prefactor     3.9223        3.8715        .15997E-03   -1.5312    
   5  norm          .35001        .20041        .28264E-04   -1.5590    
   6  norm          2.5971        4.8151        .23917E-03   -1.5386    
   7  Prefactor     3.7323        7.0717        .20894E-03   -1.5322    
   8  Prefactor     1.8713        593.61        .28445E-03   -1.5434    
   9  Prefactor     2.6993        5.6790        .12393E-02   -1.5379    
  10  norm          .10000E-03    1.3526        .98239E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.227        13.464        .12538E-03   -1.5068    
  12  Prefactor     .10000E-03    9.7772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.5612        3.6785        .12934E-03   -1.5236    
  14  norm          .41558        3.9271        .33375E-03   -1.5579    
  15  norm          11.021        5.0844        .99965E-04   -1.5044    
  16  norm          1.7604        6.4752        .31563E-03   -1.5443    
  17  norm          26.594        22.202        .77692E-04   -1.4676    
  18  Prefactor     .90425        1.9562        .18439E-02   -1.5518    
  19  Prefactor     .10000E-03    2.9701        .14592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .57421        7.2722        .41120E-03   -1.5556    
  21  Prefactor     33.208        29.693        .69569E-04   -1.4555    
  22  Prefactor     .10000E-03    16.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.0996        9.4607        .16247E-03   -1.5214    
  24  Prefactor     .10000E-03    14.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .25471E-03    18.997        .10203       -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .97006        .20486        .26727E-03   -.94040    
  27  Prefactor     1.1632        .21149        .26892E-03   -.87472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09185e-08
Minuit parameter uncertainties:
  1  4.45135
  2  1.70399
  3  3.54364
  4  3.87179
  5  0.200406
  6  4.81582
  7  7.07331
  8  67.3414
  9  5.68012
  10  1.75786e-05
  11  13.4681
  12  3.81366e-05
  13  3.67864
  14  2.55495
  15  5.08462
  16  6.47775
  17  22.209
  18  1.95632
  19  2.51126e-06
  20  4.08719
  21  29.7061
  22  3.84247e-06
  23  9.46305
  24  2.4845e-05
  25  0.108459
  26  0.205025
  27  0.211642
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  5.561e+00  3.679e+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.163e+00  2.116e-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.701e-01  2.050e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.49
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 3.77e-08 +/- 2.49e-08
Energy Flux (Fixed Index): 1.96e-05 +/- 1.29e-05

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) = 7521.205673
delta logL = 0.0658770261398

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7521.20022868
delta logL = 0.0713213519712

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.2151       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2835       1.0000          .0000       5.0000    
     3 'Normalizat'    .95910       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1701       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=   7521.200     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      203 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.2151        69.411        .44006E-02    .69672E-03
   2  alpha         2.2835        3.5453        .39371        .37056E-04
   3  Normalizat    .95910        .79717E-01    .45652E-01    .16904E-04
   4  Prefactor     1.1701        .68575E-01    .60649E-01    .76803E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.21514
  alpha      = 2.28352
  Normalizat = 0.959097
  Prefactor  = 1.17006
 **********
 **   18 **HESSE 
 **********

 FCN=   7521.200     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.2151        3.6860        .11963E-03   -1.5251    
   2  alpha         2.2835        .58723        .13417E-01   -.86701E-01
   3  Normalizat    .95910        .19370        .26859E-03   -.94414    
   4  Prefactor     1.1701        .20965        .26822E-03   -.87258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05907e-09
Minuit parameter uncertainties:
  1  3.68613
  2  0.592807
  3  0.193837
  4  0.209799
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152103': 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) = 7521.20022867
delta logL = 0.0713213535701

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  5.215e+00  3.686e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.284e+00  5.928e-01  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.170e+00  2.098e-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.591e-01  1.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.62
Ra Dec: 195.757 24.582
Photon Index (Free Index): 2.28 +/- 0.59
Photon Flux (Free Index): 4.64e-08 +/- 3.60e-08
Energy Flux (Free Index): 1.76e-05 +/- 1.21e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/152103/cmap_HighResolution_243475201_243734401_4FGL_J1303.0+2434_daily_bin16.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.77e-08', energy_flux2='1.76e-05', photon_flux_error='2.49e-08', dlogl='7.13e-02', energy_flux='1.96e-05', photon_flux2='4.64e-08', job_status='DONE', time_completed='2021-09-06 17:56:21.562807', photon_index_error2='0.59', photon_index2='2.28', ts='4.49', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='1.21e-05', EG='0.97', time_epoch_completed='1630976181.56', return_code='0', job_id='152103', GAL2='1.17', EG2='0.96', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='3.60e-08', ts2='4.62', photon_index='2.07' WHERE bin_id='16' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 17:56:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 152103: <4FGL_J1303.0+2434_daily_bin16> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin16> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 17:40:39 2021
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 17:40:41 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:40:41 2021
Terminated at Mon Sep  6 17:56:21 2021
Results reported at Mon Sep  6 17:56:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin16 195.757 24.5821 243475201 243734401 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 :                                   718.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            942 sec.

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

