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


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

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152104

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152104/ft1_4FGL_J1303.0+2434_daily_bin17.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152104/ft2_4FGL_J1303.0+2434_daily_bin17.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152104/ft1_4FGL_J1303.0+2434_daily_bin17.fits outfile=/scratch/kocevski/152104/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin17.fits ra=195.757 dec=24.5821 rad=12.0 tmin=243734401.0 tmax=243993601.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.43
user 1.25
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/152104/ft2_4FGL_J1303.0+2434_daily_bin17.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/152104/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin17.fits evtable="EVENTS" outfile="/scratch/kocevski/152104/ft1_filtered_4FGL_J1303.0+2434_daily_bin17.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/152104/ft1_filtered_4FGL_J1303.0+2434_daily_bin17.fits" evtable="EVENTS" scfile=/scratch/kocevski/152104/ft2_4FGL_J1303.0+2434_daily_bin17.fits sctable="SC_DATA" outfile=/scratch/kocevski/152104/ltcube_243734401_243993601_4FGL_J1303.0+2434_daily_bin17.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/152104/ft2_4FGL_J1303.0+2434_daily_bin17.fits
.....................!
real 18.20
user 17.83
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152104/ft1_filtered_4FGL_J1303.0+2434_daily_bin17.fits evtable="EVENTS" scfile=/scratch/kocevski/152104/ft2_4FGL_J1303.0+2434_daily_bin17.fits sctable="SC_DATA" expcube=/scratch/kocevski/152104/ltcube_243734401_243993601_4FGL_J1303.0+2434_daily_bin17.fits outfile=/scratch/kocevski/152104/expmap_243734401_243993601_4FGL_J1303.0+2434_daily_bin17.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/152104/ltcube_243734401_243993601_4FGL_J1303.0+2434_daily_bin17.fits
.....................!
real 193.53
user 186.96
sys 4.98

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/152104/ft1_filtered_4FGL_J1303.0+2434_daily_bin17.fits scfile=/scratch/kocevski/152104/ft2_4FGL_J1303.0+2434_daily_bin17.fits outfile=/scratch/kocevski/152104/cmap_243734401_243993601_4FGL_J1303.0+2434_daily_bin17.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.58
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/152104/ft1_filtered_4FGL_J1303.0+2434_daily_bin17.fits scfile=/scratch/kocevski/152104/ft2_4FGL_J1303.0+2434_daily_bin17.fits outfile=/scratch/kocevski/152104/cmap_HighResolution_243734401_243993601_4FGL_J1303.0+2434_daily_bin17.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/152104/ft1_filtered_4FGL_J1303.0+2434_daily_bin17.fits evtable="EVENTS" scfile=/scratch/kocevski/152104/ft2_4FGL_J1303.0+2434_daily_bin17.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/152104/Model_4FGL_J1303.0+2434_daily_bin17.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/152104/ft1_filtered_4FGL_J1303.0+2434_daily_bin17.fits.....................!
real 54.87
user 53.45
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.0776       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.9872       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.3263       1.0000         .10000E-03   10000.    
     5 'norm      '    .30497       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5172       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.4087       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.3826       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.2508       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    13.150       1.0000         .10000E-03   10000.    
    16 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.5995       1.0000         .10000E-03   10000.    
    20 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.887       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    8.6869       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0338       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .94407       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6214.974     FROM MIGRAD    STATUS=CONVERGED     81 CALLS     2209 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.0773        3.2183       -.24302E-05   -.37022E-02
   2  Prefactor     .10000E-03    .65640       -.21798E-06** at limit **
   3  Prefactor     9.9873        2.7919       -.43529E-07    .15718E-03
   4  Prefactor     4.3272        1.4818       -.94462E-06    .80300E-03
   5  norm          .30499        .17487       -.78290E-08    .58806E-04
   6  norm          .10000E-03    1.8781       -.16484E-06** at limit **
   7  Prefactor     3.5174        1.0191       -.55729E-07   -.14476E-05
   8  Prefactor     .10077E-03    11.448        .25130E-05** at limit **
   9  Prefactor     8.4089        1.0023        .13404E-07    .34049E-04
  10  norm          .10000E-03    1.3935       -.58383E-07** at limit **
  11  Prefactor     8.3825        1.0023       -.85038E-09    .53605E-04
  12  Prefactor     .10002E-03    12.559        .22425E-05** at limit **
  13  norm          2.2508        1.0648        .80887E-07   -.45409E-04
  14  norm          .10000E-03    1.3725        .17806E-06** at limit **
  15  norm          13.151        1.2701        .10438E-06   -.14006E-02
  16  norm          .10001E-03    3.0345        .16054E-05** at limit **
  17  norm          .10001E-03    2.4589       -.16428E-08** at limit **
  18  Prefactor     .10000E-03    .97618        .26489E-06** at limit **
  19  Prefactor     4.5989        1.0106        .23963E-07   -.87628E-04
  20  norm          .10000E-03    4.8020       -.21405E-05** at limit **
  21  Prefactor     11.887        1.0015       -.19046E-07    .11857E-03
  22  Prefactor     .10069E-03    16.426       -.48560E-05** at limit **
  23  norm          8.6835        1.0029        .12090E-07    .69098E-04
  24  Prefactor     .10000E-03    2.6157        .22688E-05** at limit **
  25  Prefactor     .10000E-03    5.1491       -.38453E-05** at limit **
  26  Normalizat    1.0337        .19109        .45125E-06    .16202E-04
  27  Prefactor     .94410        .20707        .13937E-06    .66060E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.07732
  Prefactor  = 0.0001
  Prefactor  = 9.98731
  Prefactor  = 4.32724
  norm       = 0.304987
  norm       = 0.0001
  Prefactor  = 3.51741
  Prefactor  = 0.000100774
  Prefactor  = 8.40893
  norm       = 0.0001
  Prefactor  = 8.38249
  Prefactor  = 0.00010002
  norm       = 2.25077
  norm       = 0.0001
  norm       = 13.151
  norm       = 0.000100009
  norm       = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 4.59887
  norm       = 0.000100001
  Prefactor  = 11.887
  Prefactor  = 0.000100692
  norm       = 8.68347
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.03373
  Prefactor  = 0.944098
 **********
 **   18 **HESSE 
 **********

 FCN=   6214.974     FROM HESSE     STATUS=OK           540 CALLS     2749 TOTAL
                     EDM=   .86E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.0773        3.3962        .33256E-02   -1.5105    
   2  Prefactor     .10000E-03    .65450        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.9873        2.8254        .31699E-02   -1.5076    
   4  Prefactor     4.3272        4.0441        .48417E-02   -1.5292    
   5  norm          .30499        .17707        .54565E-02   -1.5598    
   6  norm          .10000E-03    1.8592        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.5174        5.8584        .53890E-02   -1.5333    
   8  Prefactor     .10077E-03    23.859        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.4089        9.3116        .34562E-02   -1.5128    
  10  norm          .10000E-03    1.3896        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.3825        11.467        .34616E-02   -1.5129    
  12  Prefactor     .10002E-03    12.927        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.2508        3.0584        .68470E-02   -1.5408    
  14  norm          .10000E-03    1.3709        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          13.151        4.8594        .27615E-02   -1.4983    
  16  norm          .10001E-03    5.5558        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10001E-03    6.6306        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .97301        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.5989        12.947        .46921E-02   -1.5279    
  20  norm          .10000E-03    4.8407        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.887        24.636        .29047E-02   -1.5018    
  22  Prefactor     .10069E-03    27.394        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          8.6835        8.5470        .34000E-02   -1.5119    
  24  Prefactor     .10000E-03    5.9888        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.2376        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0337        .17201        .41808E-01   -.91909    
  27  Prefactor     .94410        .18290        .45564E-01   -.94617    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.58593e-08
Minuit parameter uncertainties:
  1  3.39629
  2  5.56565e-07
  3  2.82541
  4  4.04437
  5  0.177069
  6  1.19405e-06
  7  5.85934
  8  0.00859959
  9  9.31323
  10  1.31332e-06
  11  11.47
  12  0.00102736
  13  3.05856
  14  8.69132e-07
  15  4.85952
  16  0.000436236
  17  0.000419356
  18  5.00153e-07
  19  12.9548
  20  0.000159542
  21  24.6566
  22  0.00871036
  23  8.54822
  24  3.82176e-05
  25  0.000106343
  26  0.172107
  27  0.183015
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  2.251e+00  3.059e+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:  9.441e-01  1.830e-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.034e+00  1.721e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/152104/likelihoodResults_243734401_243993601_4FGL_J1303.0+2434_daily_bin17.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) = 6213.96802277
delta logL = 1.00595313301

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6213.95829325
delta logL = 1.01568265596

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .94813       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6815       1.0000          .0000       5.0000    
     3 'Normalizat'    .95228       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99752       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=   6213.958     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      242 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .94784        9.1115        .11370E-01    .79591E-03
   2  alpha         3.6817        4.1604        .32608        .61262E-04
   3  Normalizat    .95228        .43286E-01    .45566E-01    .11745E-04
   4  Prefactor     .99751        .46379E-01    .46236E-01    .96926E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.947843
  alpha      = 3.68169
  Normalizat = 0.952276
  Prefactor  = 0.997512
 **********
 **   18 **HESSE 
 **********

 FCN=   6213.958     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .94784        6.3593        .51189E-04   -1.5513    
   2  alpha         3.6817        4.1320        .12870E-01    .49232    
   3  Normalizat    .95228        .21737        .24717E-03   -.94647    
   4  Prefactor     .99751        .22587        .26250E-03   -.92813    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29998e-07
Minuit parameter uncertainties:
  1  4.91074
  2  3.25326
  3  0.217568
  4  0.226084
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152104': 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) = 6213.95829323
delta logL = 1.01568267084

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  9.478e-01  4.911e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  3.682e+00  3.253e+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:  9.975e-01  2.261e-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.523e-01  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.06
Ra Dec: 195.757 24.582
Photon Index (Free Index): 3.68 +/- 3.25
Photon Flux (Free Index): 7.73e-08 +/- 7.06e-08
Energy Flux (Free Index): 1.29e-05 +/- 9.61e-06

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/152104/cmap_HighResolution_243734401_243993601_4FGL_J1303.0+2434_daily_bin17.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.65e-05', comment='SUCCESS', energy_flux2='1.29e-05', dlogl='1.02e+00', photon_flux2='7.73e-08', job_status='DONE', time_completed='2021-09-06 17:55:17.964080', photon_index_error2='3.25', photon_index2='3.68', ts='0.89', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='7.04e-08', energy_flux_error2='9.61e-06', EG='1.03', time_epoch_completed='1630976117.96', return_code='0', job_id='152104', GAL2='1.00', EG2='0.95', return_code2='0', photon_flux_error2='7.06e-08', ts2='3.06', photon_index='2.07' WHERE bin_id='17' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 17:55:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 152104: <4FGL_J1303.0+2434_daily_bin17> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin17> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 17:40:40 2021
Job was executed on host(s) <bullet0022>, 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:55:18 2021
Results reported at Mon Sep  6 17:55:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin17 195.757 24.5821 243734401 243993601 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 :                                   674.40 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            878 sec.

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

