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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1022
RA = 195.757, Dec = 24.5821
tmin = 504230401, tmax = 504489601
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='161992', job_status='RUN', time_executed='2021-09-06 18:19:08.567804', time_epoch_executed='1630977548.57' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1022'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/161992

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/161992/ft1_4FGL_J1303.0+2434_daily_bin1022.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/161992/ft2_4FGL_J1303.0+2434_daily_bin1022.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/161992/ft1_4FGL_J1303.0+2434_daily_bin1022.fits outfile=/scratch/kocevski/161992/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1022.fits ra=195.757 dec=24.5821 rad=12.0 tmin=504230401.0 tmax=504489601.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.85
user 3.57
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/161992/ft2_4FGL_J1303.0+2434_daily_bin1022.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/161992/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1022.fits evtable="EVENTS" outfile="/scratch/kocevski/161992/ft1_filtered_4FGL_J1303.0+2434_daily_bin1022.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.67
user 0.39
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/161992/ft1_filtered_4FGL_J1303.0+2434_daily_bin1022.fits" evtable="EVENTS" scfile=/scratch/kocevski/161992/ft2_4FGL_J1303.0+2434_daily_bin1022.fits sctable="SC_DATA" outfile=/scratch/kocevski/161992/ltcube_504230401_504489601_4FGL_J1303.0+2434_daily_bin1022.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/161992/ft2_4FGL_J1303.0+2434_daily_bin1022.fits
.....................!
real 21.58
user 20.94
sys 0.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/161992/ft1_filtered_4FGL_J1303.0+2434_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/161992/ft2_4FGL_J1303.0+2434_daily_bin1022.fits sctable="SC_DATA" expcube=/scratch/kocevski/161992/ltcube_504230401_504489601_4FGL_J1303.0+2434_daily_bin1022.fits outfile=/scratch/kocevski/161992/expmap_504230401_504489601_4FGL_J1303.0+2434_daily_bin1022.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/161992/ltcube_504230401_504489601_4FGL_J1303.0+2434_daily_bin1022.fits
.....................!
real 201.80
user 194.56
sys 6.50

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/161992/ft1_filtered_4FGL_J1303.0+2434_daily_bin1022.fits scfile=/scratch/kocevski/161992/ft2_4FGL_J1303.0+2434_daily_bin1022.fits outfile=/scratch/kocevski/161992/cmap_504230401_504489601_4FGL_J1303.0+2434_daily_bin1022.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.65
user 0.45
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/161992/ft1_filtered_4FGL_J1303.0+2434_daily_bin1022.fits scfile=/scratch/kocevski/161992/ft2_4FGL_J1303.0+2434_daily_bin1022.fits outfile=/scratch/kocevski/161992/cmap_HighResolution_504230401_504489601_4FGL_J1303.0+2434_daily_bin1022.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.64
user 0.47
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.277       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .19175E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8312       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .73296       1.0000         .10000E-03   10000.    
     6 'norm      '    16.033       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10371E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12173E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14726E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    16.959       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8023       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3744       1.0000         .10000E-03   10000.    
    13 'norm      '    4.6705       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .67735E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    12.182       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    13.052       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.6485       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3242       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .74349       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=   6285.769     FROM MIGRAD    STATUS=CONVERGED    684 CALLS     2855 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.276        4.4127        .15247E-06    .54078E-03
   2  Prefactor     .10000E-03    2.0609       -.27157E-06** at limit **
   3  Prefactor     3.8312        2.5970        .18546E-07    .11454E-03
   4  Prefactor     .10000E-03    3.1662       -.16362E-07** at limit **
   5  norm          .73300        .32989        .15270E-07   -.25596E-04
   6  norm          16.029        7.4480        .50225E-07    .97408E-05
   7  Prefactor     .10000E-03    8.0752        .12098E-06** at limit **
   8  Prefactor     .10000E-03    44.557       -.22613E-05** at limit **
   9  Prefactor     .10000E-03    12.266        .53773E-05** at limit **
  10  norm          16.954        7.3531       -.21678E-06   -.13909E-03
  11  Prefactor     4.7978        14.497        .47312E-06   -.45561E-05
  12  Prefactor     2.2701        88.641        .31454E-05    .21454E-04
  13  norm          4.6708        3.4060        .79768E-07    .65463E-05
  14  norm          .10000E-03    2.5248       -.13445E-06** at limit **
  15  norm          .10000E-03    1.2460       -.10985E-06** at limit **
  16  norm          .10000E-03    1.8322       -.41345E-07** at limit **
  17  norm          .10000E-03    9.1184       -.10824E-06** at limit **
  18  Prefactor     .81636E-01    31.636        .89778E-05    .12920E-05
  19  Prefactor     .10000E-03    4.8168       -.33080E-08** at limit **
  20  norm          12.180        8.7470        .29240E-06   -.19409E-04
  21  Prefactor     .10000E-03    15.449       -.46073E-06** at limit **
  22  Prefactor     .10000E-03    38.715        .15856E-05** at limit **
  23  norm          13.050        10.388       -.68788E-07    .10789E-04
  24  Prefactor     6.6484        13.927        .81862E-06   -.18062E-04
  25  Prefactor     .10000E-03    8.9365       -.11655E-06** at limit **
  26  Normalizat    1.3244        .19555       -.45837E-06    .73543E-04
  27  Prefactor     .74326        .18222        .20414E-06    .59875E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.2759
  Prefactor  = 0.0001
  Prefactor  = 3.83121
  Prefactor  = 0.0001
  norm       = 0.733004
  norm       = 16.0287
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.9539
  Prefactor  = 4.79779
  Prefactor  = 2.27007
  norm       = 4.67081
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0816361
  Prefactor  = 0.0001
  norm       = 12.1803
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.0504
  Prefactor  = 6.64843
  Prefactor  = 0.0001
  Normalizat = 1.32445
  Prefactor  = 0.743262
 **********
 **   18 **HESSE 
 **********

 FCN=   6285.769     FROM HESSE     STATUS=OK           492 CALLS     3347 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.276        4.2292        .95938E-04   -1.5036    
   2  Prefactor     .10000E-03    5.2804        .21043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.8312        2.5934        .99560E-04   -1.5316    
   4  Prefactor     .10000E-03    3.1825        .13763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .73300        .32741        .28639E-04   -1.5537    
   6  norm          16.029        7.4439        .10003E-03   -1.4907    
   7  Prefactor     .10000E-03    8.1110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    44.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.115        .31487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          16.954        7.2799        .97257E-04   -1.4884    
  11  Prefactor     4.7978        14.509        .18358E-03   -1.5270    
  12  Prefactor     2.2701        88.061        .26588E-03   -1.5407    
  13  norm          4.6708        3.4015        .12068E-03   -1.5276    
  14  norm          .10000E-03    2.5348        .12302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.2540        .86437E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.8374        .10480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    9.1337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .81636E-01    31.280        .20201E-02   -1.5651    
  19  Prefactor     .10000E-03    4.8213        .16991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          12.180        8.7543        .57386E-03   -1.5010    
  21  Prefactor     .10000E-03    15.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    38.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          13.050        10.391        .11087E-03   -1.4985    
  24  Prefactor     6.6484        13.961        .77814E-03   -1.5192    
  25  Prefactor     .10000E-03    8.9502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3244        .23117        .24171E-03   -.82840    
  27  Prefactor     .74326        .21281        .31310E-03   -1.0185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41173e-10
Minuit parameter uncertainties:
  1  4.22928
  2  2.81328e-05
  3  2.59343
  4  1.77863e-06
  5  0.327407
  6  7.44428
  7  1.63307e-05
  8  0.000211515
  9  3.11276e-05
  10  7.28026
  11  14.5199
  12  28.3218
  13  3.40166
  14  1.23452e-05
  15  7.7911e-06
  16  3.0084e-06
  17  4.19887e-06
  18  3.19568
  19  9.43054e-06
  20  8.75519
  21  2.60411e-05
  22  0.000154921
  23  10.3923
  24  13.9676
  25  4.19102e-06
  26  0.23135
  27  0.213048
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  4.671e+00  3.402e+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:  7.433e-01  2.130e-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.324e+00  2.314e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.99
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 3.17e-08 +/- 2.31e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 1.20e-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) = 6285.76918806
delta logL = 0.000289109884761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6285.76917715
delta logL = 0.000300018976304

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6708       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0478       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3252       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74282       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=   6285.769     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      204 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6683        118.27        .46552E-02    .15740E-04
   2  alpha         2.0471        3.2318        .42036       -.56028E-05
   3  Normalizat    1.3253        .22323        .54650E-01    .28172E-05
   4  Prefactor     .74281        .12605        .70771E-01    .20602E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.6683
  alpha      = 2.04714
  Normalizat = 1.32528
  Prefactor  = 0.742806
 **********
 **   18 **HESSE 
 **********

 FCN=   6285.769     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6683        3.4014        .12097E-03   -1.5276    
   2  alpha         2.0471        .75592        .18451E-01   -.18215    
   3  Normalizat    1.3253        .21274        .24164E-03   -.82815    
   4  Prefactor     .74281        .21131        .31319E-03   -1.0187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.14928e-11
Minuit parameter uncertainties:
  1  3.4015
  2  0.768367
  3  0.212884
  4  0.211538
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/161992': 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) = 6285.76917655
delta logL = 0.000300618008623

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  4.668e+00  3.401e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.047e+00  7.684e-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:  7.428e-01  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:  1.325e+00  2.129e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.98
Ra Dec: 195.757 24.582
Photon Index (Free Index): 2.05 +/- 0.77
Photon Flux (Free Index): 3.10e-08 +/- 3.56e-08
Energy Flux (Free Index): 1.66e-05 +/- 1.38e-05

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/161992/cmap_HighResolution_504230401_504489601_4FGL_J1303.0+2434_daily_bin1022.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.17e-08', energy_flux2='1.66e-05', photon_flux_error='2.31e-08', dlogl='3.01e-04', energy_flux='1.64e-05', photon_flux2='3.10e-08', job_status='DONE', time_completed='2021-09-06 18:30:32.623323', photon_index_error2='0.77', photon_index2='2.05', ts='4.99', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='1.38e-05', EG='1.32', time_epoch_completed='1630978232.62', return_code='0', job_id='161992', GAL2='0.74', EG2='1.33', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='3.56e-08', ts2='4.98', photon_index='2.07' WHERE bin_id='1022' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:30:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 161992: <4FGL_J1303.0+2434_daily_bin1022> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1022 195.757 24.5821 504230401 504489601 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 :                                   680.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             274.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            906 sec.

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

