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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin653
RA = 195.757, Dec = 24.5821
tmin = 408585601, tmax = 408844801
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='159127', job_status='RUN', time_executed='2021-09-06 18:07:35.145917', time_epoch_executed='1630976855.15' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='653'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/159127

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/159127/ft1_4FGL_J1303.0+2434_daily_bin653.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/159127/ft2_4FGL_J1303.0+2434_daily_bin653.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/159127/ft1_4FGL_J1303.0+2434_daily_bin653.fits outfile=/scratch/kocevski/159127/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin653.fits ra=195.757 dec=24.5821 rad=12.0 tmin=408585601.0 tmax=408844801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.33
user 4.10
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/159127/ft1_filtered_4FGL_J1303.0+2434_daily_bin653.fits" evtable="EVENTS" scfile=/scratch/kocevski/159127/ft2_4FGL_J1303.0+2434_daily_bin653.fits sctable="SC_DATA" outfile=/scratch/kocevski/159127/ltcube_408585601_408844801_4FGL_J1303.0+2434_daily_bin653.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/159127/ft2_4FGL_J1303.0+2434_daily_bin653.fits
.....................!
real 17.08
user 16.66
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/159127/ft1_filtered_4FGL_J1303.0+2434_daily_bin653.fits evtable="EVENTS" scfile=/scratch/kocevski/159127/ft2_4FGL_J1303.0+2434_daily_bin653.fits sctable="SC_DATA" expcube=/scratch/kocevski/159127/ltcube_408585601_408844801_4FGL_J1303.0+2434_daily_bin653.fits outfile=/scratch/kocevski/159127/expmap_408585601_408844801_4FGL_J1303.0+2434_daily_bin653.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/159127/ltcube_408585601_408844801_4FGL_J1303.0+2434_daily_bin653.fits
.....................!
real 193.75
user 188.68
sys 4.31

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/159127/ft1_filtered_4FGL_J1303.0+2434_daily_bin653.fits scfile=/scratch/kocevski/159127/ft2_4FGL_J1303.0+2434_daily_bin653.fits outfile=/scratch/kocevski/159127/cmap_408585601_408844801_4FGL_J1303.0+2434_daily_bin653.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/159127/ft1_filtered_4FGL_J1303.0+2434_daily_bin653.fits scfile=/scratch/kocevski/159127/ft2_4FGL_J1303.0+2434_daily_bin653.fits outfile=/scratch/kocevski/159127/cmap_HighResolution_408585601_408844801_4FGL_J1303.0+2434_daily_bin653.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 3.26
user 0.40
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8069       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.9873       1.0000         .10000E-03   10000.    
     5 'norm      '    4.3503       1.0000         .10000E-03   10000.    
     6 'norm      '    1.1435       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.2775       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.620       1.0000         .10000E-03   10000.    
    10 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.575       1.0000         .10000E-03   10000.    
    12 'Prefactor '    55.952       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.0024       1.0000         .10000E-03   10000.    
    15 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .18328E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.3969       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10399E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    98.659       1.0000         .10000E-03   10000.    
    23 'norm      '    6.2145       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12786E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3137       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0900       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=   5799.539     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     3287 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8072        4.1900       -.11751E-06   -.84557E-05
   2  Prefactor     .10000E-03    1.7046       -.52775E-07** at limit **
   3  Prefactor     .10000E-03    1.0500       -.57392E-07** at limit **
   4  Prefactor     5.9874        4.6096       -.99954E-07    .23008E-04
   5  norm          4.3500        .55668       -.12340E-07   -.79761E-04
   6  norm          1.1447        3.0802        .61173E-06    .48680E-04
   7  Prefactor     6.2777        12.386        .42511E-05    .10337E-03
   8  Prefactor     .10000E-03    40.388       -.93328E-06** at limit **
   9  Prefactor     11.619        9.1879        .60420E-08   -.94841E-06
  10  norm          .10000E-03    2.8999       -.49400E-06** at limit **
  11  Prefactor     12.573        15.533        .94901E-07    .66560E-05
  12  Prefactor     55.912        49.496        .10595E-07   -.13240E-03
  13  norm          .10000E-03    2.4575        .29392E-07** at limit **
  14  norm          7.9976        13.044        .12803E-05   -.70837E-04
  15  norm          .10000E-03    5.1753       -.99336E-06** at limit **
  16  norm          .10000E-03    6.5240       -.42756E-06** at limit **
  17  norm          .10000E-03    20.665        .20584E-06** at limit **
  18  Prefactor     .10121E-03    8.2119        .98511E-06** at limit **
  19  Prefactor     .10000E-03    21.641       -.31278E-06** at limit **
  20  norm          7.3959        11.347        .12204E-06   -.27035E-05
  21  Prefactor     .10000E-03    53.020        .17432E-05** at limit **
  22  Prefactor     98.661        143.22        .24460E-05   -.14311E-04
  23  norm          6.2142        14.056        .13710E-06   -.22099E-05
  24  Prefactor     .10000E-03    101.93       -.33546E-05** at limit **
  25  Prefactor     .10000E-03    16.987       -.51428E-07** at limit **
  26  Normalizat    1.3145        .24279        .13269E-05   -.62690E-04
  27  Prefactor     1.0891        .23245       -.17178E-05    .32859E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.80718
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.98736
  norm       = 4.35004
  norm       = 1.14467
  Prefactor  = 6.27773
  Prefactor  = 0.000100001
  Prefactor  = 11.6185
  norm       = 0.0001
  Prefactor  = 12.5731
  Prefactor  = 55.9116
  norm       = 0.0001
  norm       = 7.99761
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000101214
  Prefactor  = 0.0001
  norm       = 7.39586
  Prefactor  = 0.000100003
  Prefactor  = 98.6614
  norm       = 6.21419
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Normalizat = 1.31445
  Prefactor  = 1.08912
 **********
 **   18 **HESSE 
 **********

 FCN=   5799.539     FROM HESSE     STATUS=OK           496 CALLS     3783 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8072        4.1767        .12809E-03   -1.5226    
   2  Prefactor     .10000E-03    1.7301        .96833E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.0567        .76207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.9874        4.6106        .13881E-03   -1.5219    
   5  norm          4.3500        .55934        .19331E-04   -1.5291    
   6  norm          1.1447        3.0115        .21113E-03   -1.5494    
   7  Prefactor     6.2777        12.324        .80107E-03   -1.5207    
   8  Prefactor     .10000E-03    40.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.619        9.1936        .11752E-03   -1.5026    
  10  norm          .10000E-03    2.9049        .12665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.573        15.580        .11296E-03   -1.4999    
  12  Prefactor     55.912        49.709        .26814E-03   -1.4211    
  13  norm          .10000E-03    2.4996        .11655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.9976        13.181        .14174E-03   -1.5142    
  15  norm          .10000E-03    5.2188        .16905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.5375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    20.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10121E-03    9.6761        .60183E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.3959        11.232        .14747E-03   -1.5164    
  21  Prefactor     .10000E-03    53.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     98.661        144.03        .40472E-04   -1.3718    
  23  norm          6.2142        13.903        .16103E-03   -1.5209    
  24  Prefactor     .10000E-03    106.59        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    17.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3145        .29323        .29652E-03   -.83136    
  27  Prefactor     1.0891        .27745        .31631E-03   -.89815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23506e-09
Minuit parameter uncertainties:
  1  4.17694
  2  4.0132e-06
  3  4.20865e-06
  4  4.61087
  5  0.55934
  6  3.01189
  7  12.3289
  8  0.000453133
  9  9.19474
  10  8.7281e-06
  11  15.5851
  12  49.7459
  13  7.79186e-09
  14  13.1859
  15  2.95789e-05
  16  1.60138e-05
  17  8.70412e-05
  18  0.00685564
  19  8.73275e-05
  20  11.2348
  21  0.000820727
  22  144.549
  23  13.9107
  24  0.00108804
  25  2.0481e-05
  26  0.293603
  27  0.277821
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  7.792e-09  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.089e+00  2.778e-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.314e+00  2.936e-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: 6.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/159127/likelihoodResults_408585601_408844801_4FGL_J1303.0+2434_daily_bin653.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) = 5799.54052998
delta logL = -0.00187979363091

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5799.53865022
delta logL = -3.43816282111e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0672       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3145       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0891       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5799.539     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      232 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    15.308        .11656E-02** at limit **
   2  alpha         2.0812        3.1533        .16784       -.11845E-05
   3  Normalizat    1.3145        .27885        .29652E-03    .18480E-04
   4  Prefactor     1.0891        .27517        .31631E-03    .17396E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100015
  alpha      = 2.08117
  Normalizat = 1.31445
  Prefactor  = 1.08912
 **********
 **   18 **HESSE 
 **********

 FCN=   5799.539     FROM HESSE     STATUS=OK            23 CALLS      255 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    2.5018        .23311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0812        2.5515        .67135E-02   -.16833    
   3  Normalizat    1.3145        .27917        .11861E-04   -.83136    
   4  Prefactor     1.0891        .27549        .12652E-04   -.89815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34157e-08
Minuit parameter uncertainties:
  1  0.000390148
  2  177.361
  3  0.279493
  4  0.275846
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/159127': 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) = 5799.53865017
delta logL = 7.92169885244e-09

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  3.901e-04  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.081e+00  1.774e+02  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.089e+00  2.758e-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.314e+00  2.795e-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/159127/cmap_HighResolution_408585601_408844801_4FGL_J1303.0+2434_daily_bin653.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.21e-05', job_status='DONE', photon_flux_upper_limit='6.20e-08', time_completed='2021-09-06 18:19:56.527302', job_id='159127', GAL2='1.09', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1630977596.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='7.92e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='653' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:19:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 159127: <4FGL_J1303.0+2434_daily_bin653> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin653> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 18:05:24 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 18:05:31 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:05:31 2021
Terminated at Mon Sep  6 18:19:57 2021
Results reported at Mon Sep  6 18:19:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin653 195.757 24.5821 408585601 408844801 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 :                                   736.37 sec.
    Max Memory :                                 1192 MB
    Average Memory :                             272.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            873 sec.

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

