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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1007
RA = 195.757, Dec = 24.5821
tmin = 500342401, tmax = 500601601
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='161968', job_status='RUN', time_executed='2021-09-06 18:19:06.463347', time_epoch_executed='1630977546.46' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1007'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/161968

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/161968/ft1_4FGL_J1303.0+2434_daily_bin1007.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/161968/ft2_4FGL_J1303.0+2434_daily_bin1007.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/161968/ft1_4FGL_J1303.0+2434_daily_bin1007.fits outfile=/scratch/kocevski/161968/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1007.fits ra=195.757 dec=24.5821 rad=12.0 tmin=500342401.0 tmax=500601601.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.88
user 3.62
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/161968/ft2_4FGL_J1303.0+2434_daily_bin1007.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/161968/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1007.fits evtable="EVENTS" outfile="/scratch/kocevski/161968/ft1_filtered_4FGL_J1303.0+2434_daily_bin1007.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.46
user 0.32
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/161968/ft1_filtered_4FGL_J1303.0+2434_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/161968/ft2_4FGL_J1303.0+2434_daily_bin1007.fits sctable="SC_DATA" expcube=/scratch/kocevski/161968/ltcube_500342401_500601601_4FGL_J1303.0+2434_daily_bin1007.fits outfile=/scratch/kocevski/161968/expmap_500342401_500601601_4FGL_J1303.0+2434_daily_bin1007.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/161968/ltcube_500342401_500601601_4FGL_J1303.0+2434_daily_bin1007.fits
.....................!
real 156.65
user 152.64
sys 3.62

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/161968/ft1_filtered_4FGL_J1303.0+2434_daily_bin1007.fits scfile=/scratch/kocevski/161968/ft2_4FGL_J1303.0+2434_daily_bin1007.fits outfile=/scratch/kocevski/161968/cmap_500342401_500601601_4FGL_J1303.0+2434_daily_bin1007.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.50
user 0.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/161968/ft1_filtered_4FGL_J1303.0+2434_daily_bin1007.fits scfile=/scratch/kocevski/161968/ft2_4FGL_J1303.0+2434_daily_bin1007.fits outfile=/scratch/kocevski/161968/cmap_HighResolution_500342401_500601601_4FGL_J1303.0+2434_daily_bin1007.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.50
user 0.35
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1396       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4622       1.0000         .10000E-03   10000.    
     5 'norm      '    .29887       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.422       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0776       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.2940       1.0000         .10000E-03   10000.    
    14 'norm      '    .10291E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    31.974       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6686       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .31161E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    43.432       1.0000         .10000E-03   10000.    
    23 'norm      '    12.643       1.0000         .10000E-03   10000.    
    24 'Prefactor '    34.606       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .40345       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2765       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .84251       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=   5101.705     FROM MIGRAD    STATUS=CONVERGED    688 CALLS     3393 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1394        3.2330       -.24932E-08    .79385E-04
   2  Prefactor     .10000E-03    .85291       -.10213E-07** at limit **
   3  Prefactor     .10000E-03    1.1863        .63016E-07** at limit **
   4  Prefactor     2.4621        5.8098       -.11732E-05   -.46581E-03
   5  norm          .29884        .27025       -.10583E-06   -.10805E-02
   6  norm          .10000E-03    1.9960        .30025E-07** at limit **
   7  Prefactor     10.420        12.243       -.31261E-05   -.31756E-04
   8  Prefactor     .10000E-03    132.78        .23572E-04** at limit **
   9  Prefactor     4.0756        8.4486       -.95450E-05   -.22956E-03
  10  norm          .10000E-03    2.7424       -.44430E-07** at limit **
  11  Prefactor     .10000E-03    9.9628       -.15433E-06** at limit **
  12  Prefactor     .10000E-03    26.617       -.19550E-05** at limit **
  13  norm          2.2934        3.8209        .24778E-06   -.32466E-03
  14  norm          .10012E-03    5.3870        .13094E-05** at limit **
  15  norm          .10000E-03    3.3228       -.88295E-07** at limit **
  16  norm          .10000E-03    2.2905        .64766E-08** at limit **
  17  norm          31.967        21.820       -.20278E-05   -.12699E-03
  18  Prefactor     2.6681        2.9930       -.60127E-06   -.36117E-03
  19  Prefactor     .10000E-03    4.4607       -.58349E-08** at limit **
  20  norm          .10000E-03    10.070        .27089E-05** at limit **
  21  Prefactor     .10000E-03    21.515       -.60577E-05** at limit **
  22  Prefactor     43.449        76.422        .12655E-04   -.12639E-04
  23  norm          12.610        13.707       -.21502E-05   -.97928E-03
  24  Prefactor     34.650        27.073       -.92700E-05   -.68574E-04
  25  Prefactor     .17466        25.191        .77124E-06    .22271E-03
  26  Normalizat    1.2765        .20348        .32340E-05   -.43450E-03
  27  Prefactor     .84263        .20399        .13404E-05   -.14807E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.13941
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.46206
  norm       = 0.298838
  norm       = 0.0001
  Prefactor  = 10.4202
  Prefactor  = 0.0001
  Prefactor  = 4.07564
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.29336
  norm       = 0.000100123
  norm       = 0.0001
  norm       = 0.0001
  norm       = 31.9667
  Prefactor  = 2.66812
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 43.4494
  norm       = 12.6101
  Prefactor  = 34.6504
  Prefactor  = 0.174661
  Normalizat = 1.27647
  Prefactor  = 0.842628
 **********
 **   18 **HESSE 
 **********

 FCN=   5101.705     FROM HESSE     STATUS=OK           496 CALLS     3889 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1394        3.2309        .90469E-04   -1.5212    
   2  Prefactor     .10000E-03    .85636        .64378E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.2029        .75849E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4621        5.8031        .25391E-03   -1.5394    
   5  norm          .29884        .25930        .33290E-03   -1.5599    
   6  norm          .10000E-03    2.0074        .98501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.420        12.225        .12411E-03   -1.5062    
   8  Prefactor     .10000E-03    132.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.0756        8.4639        .19966E-03   -1.5304    
  10  norm          .10000E-03    2.7711        .11547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.2934        3.7938        .17255E-03   -1.5405    
  14  norm          .10012E-03    22.893        .31742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.4235        .25397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.2936        .10557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          31.967        21.791        .70862E-04   -1.4577    
  18  Prefactor     2.6681        2.9615        .12324E-03   -1.5381    
  19  Prefactor     .10000E-03    4.4629        .14732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    27.362        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     43.449        76.170        .60831E-04   -1.4389    
  23  norm          12.610        11.669        .11266E-03   -1.4998    
  24  Prefactor     34.650        27.282        .68121E-04   -1.4530    
  25  Prefactor     .17466        26.695        .10454       -1.5624    
  26  Normalizat    1.2765        .24329        .23350E-03   -.84272    
  27  Prefactor     .84263        .24427        .29015E-03   -.98176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.3086e-09
Minuit parameter uncertainties:
  1  3.23104
  2  5.73058e-07
  3  2.60582e-06
  4  5.8044
  5  0.259302
  6  1.35957e-06
  7  12.2274
  8  0.000338639
  9  8.46641
  10  1.17704e-05
  11  3.27926e-05
  12  8.84456e-05
  13  3.79424
  14  0.00336227
  15  9.36576e-06
  16  1.99919e-06
  17  21.7963
  18  2.96171
  19  5.58283e-07
  20  0.000294529
  21  2.63489e-05
  22  76.3414
  23  11.671
  24  27.2917
  25  4.31935
  26  0.243511
  27  0.24459
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  2.293e+00  3.794e+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:  8.426e-01  2.446e-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.276e+00  2.435e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/161968/likelihoodResults_500342401_500601601_4FGL_J1303.0+2434_daily_bin1007.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) = 5101.70106351
delta logL = 0.00419139986116

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5101.70090348
delta logL = 0.00435142985498

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2714       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1883       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2737       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84419       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=   5101.701     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      228 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2690        203.14        .68124E-02    .32324E-03
   2  alpha         2.1866        3.9064        .41563       -.57775E-05
   3  Normalizat    1.2738        .89226E-01    .52859E-01   -.11386E-03
   4  Prefactor     .84427        .79652E-01    .65535E-01   -.23712E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.26903
  alpha      = 2.18659
  Normalizat = 1.27375
  Prefactor  = 0.844274
 **********
 **   18 **HESSE 
 **********

 FCN=   5101.701     FROM HESSE     STATUS=OK            31 CALLS      259 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2690        3.7870        .16854E-03   -1.5407    
   2  alpha         2.1866        1.2615        .27094E-01   -.12570    
   3  Normalizat    1.2738        .23632        .23371E-03   -.84353    
   4  Prefactor     .84427        .24345        .28990E-03   -.98116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.13256e-11
Minuit parameter uncertainties:
  1  3.78735
  2  1.3234
  3  0.236524
  4  0.243763
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/161968': 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) = 5101.70090208
delta logL = 0.00435283097886

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  2.269e+00  3.787e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.187e+00  1.323e+00  0.000e+00  5.000e+00 ( 1.000e+00)
292         beta:  8.150e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  8.679e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  8.443e-01  2.438e-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.274e+00  2.365e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.53
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/161968/cmap_HighResolution_500342401_500601601_4FGL_J1303.0+2434_daily_bin1007.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.48e-05', job_status='DONE', photon_flux_upper_limit='8.64e-08', time_completed='2021-09-06 18:28:34.038338', job_id='161968', GAL2='0.84', fit_tolerance='1e-08', EG2='1.27', EG='1.28', time_epoch_completed='1630978114.04', return_code2='0', ts='0.53', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='4.35e-03', ts2='0.53', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1007' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:28:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 161968: <4FGL_J1303.0+2434_daily_bin1007> in cluster <slac> Done

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

Your job looked like:

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

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

