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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1013
RA = 195.757, Dec = 24.5821
tmin = 501897601, tmax = 502156801
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='161978', job_status='RUN', time_executed='2021-09-06 18:18:51.666654', time_epoch_executed='1630977531.67' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1013'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/161978

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/161978/ft1_4FGL_J1303.0+2434_daily_bin1013.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/161978/ft2_4FGL_J1303.0+2434_daily_bin1013.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/161978/ft1_4FGL_J1303.0+2434_daily_bin1013.fits outfile=/scratch/kocevski/161978/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1013.fits ra=195.757 dec=24.5821 rad=12.0 tmin=501897601.0 tmax=502156801.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.54
user 3.28
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/161978/ft2_4FGL_J1303.0+2434_daily_bin1013.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/161978/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1013.fits evtable="EVENTS" outfile="/scratch/kocevski/161978/ft1_filtered_4FGL_J1303.0+2434_daily_bin1013.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/161978/ft1_filtered_4FGL_J1303.0+2434_daily_bin1013.fits" evtable="EVENTS" scfile=/scratch/kocevski/161978/ft2_4FGL_J1303.0+2434_daily_bin1013.fits sctable="SC_DATA" outfile=/scratch/kocevski/161978/ltcube_501897601_502156801_4FGL_J1303.0+2434_daily_bin1013.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/161978/ft2_4FGL_J1303.0+2434_daily_bin1013.fits
.....................!
real 16.93
user 16.54
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/161978/ft1_filtered_4FGL_J1303.0+2434_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/161978/ft2_4FGL_J1303.0+2434_daily_bin1013.fits sctable="SC_DATA" expcube=/scratch/kocevski/161978/ltcube_501897601_502156801_4FGL_J1303.0+2434_daily_bin1013.fits outfile=/scratch/kocevski/161978/expmap_501897601_502156801_4FGL_J1303.0+2434_daily_bin1013.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/161978/ltcube_501897601_502156801_4FGL_J1303.0+2434_daily_bin1013.fits
.....................!
real 191.96
user 187.15
sys 4.25

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/161978/ft1_filtered_4FGL_J1303.0+2434_daily_bin1013.fits scfile=/scratch/kocevski/161978/ft2_4FGL_J1303.0+2434_daily_bin1013.fits outfile=/scratch/kocevski/161978/cmap_501897601_502156801_4FGL_J1303.0+2434_daily_bin1013.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.60
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/161978/ft1_filtered_4FGL_J1303.0+2434_daily_bin1013.fits scfile=/scratch/kocevski/161978/ft2_4FGL_J1303.0+2434_daily_bin1013.fits outfile=/scratch/kocevski/161978/cmap_HighResolution_501897601_502156801_4FGL_J1303.0+2434_daily_bin1013.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.56
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.782       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2837       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .37407       1.0000         .10000E-03   10000.    
     6 'norm      '    7.6973       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.6872       1.0000         .10000E-03   10000.    
    10 'norm      '    3.7670       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.8354       1.0000         .10000E-03   10000.    
    14 'norm      '    1.0659       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    12.490       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .88308       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    12.193       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    84.662       1.0000         .10000E-03   10000.    
    23 'norm      '    8.3549       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10456E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.6958       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1316       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0541       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=   6055.553     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3229 TOTAL
                     EDM=   .61E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.782        4.0968       -.54023E-08   -.92203E-05
   2  Prefactor     .10000E-03    .93756        .13685E-07** at limit **
   3  Prefactor     4.2837        2.3361       -.14651E-07   -.17354E-04
   4  Prefactor     .10000E-03    1.8444       -.26057E-07** at limit **
   5  norm          .37407        .20809        .14950E-08   -.11202E-03
   6  norm          7.6970        4.7256        .71109E-06   -.20210E-04
   7  Prefactor     .10000E-03    3.7440        .46695E-07** at limit **
   8  Prefactor     .10000E-03    21.845        .50015E-07** at limit **
   9  Prefactor     7.6874        8.7001        .14729E-06   -.67421E-05
  10  norm          3.7669        3.4066       -.21143E-07   -.37471E-04
  11  Prefactor     .10000E-03    6.2499        .31455E-06** at limit **
  12  Prefactor     .10000E-03    6.6007       -.54501E-07** at limit **
  13  norm          5.8353        3.3526       -.27697E-08   -.32956E-05
  14  norm          1.0665        5.8743        .21498E-05   -.48692E-04
  15  norm          .10000E-03    1.5087       -.28412E-07** at limit **
  16  norm          .10000E-03    2.5674       -.17375E-07** at limit **
  17  norm          12.490        13.305        .34603E-09   -.67422E-06
  18  Prefactor     .88368        3.0429        .70009E-06   -.84770E-04
  19  Prefactor     .10000E-03    5.5551       -.24062E-06** at limit **
  20  norm          12.192        7.6589       -.12677E-08   -.13535E-05
  21  Prefactor     .10000E-03    15.212       -.60887E-06** at limit **
  22  Prefactor     84.655        69.786       -.12468E-05   -.37736E-04
  23  norm          8.3547        9.7229        .13333E-06    .97035E-06
  24  Prefactor     .10000E-03    17.602        .16969E-07** at limit **
  25  Prefactor     2.6725        35.674       -.44802E-05   -.75313E-04
  26  Normalizat    1.1316        .18461        .15224E-06   -.69936E-04
  27  Prefactor     1.0540        .19810       -.76807E-06   -.14718E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.7821
  Prefactor  = 0.0001
  Prefactor  = 4.28373
  Prefactor  = 0.0001
  norm       = 0.374072
  norm       = 7.69696
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.68741
  norm       = 3.76692
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.83534
  norm       = 1.0665
  norm       = 0.0001
  norm       = 0.0001
  norm       = 12.4898
  Prefactor  = 0.883685
  Prefactor  = 0.0001
  norm       = 12.1925
  Prefactor  = 0.0001
  Prefactor  = 84.6555
  norm       = 8.35472
  Prefactor  = 0.0001
  Prefactor  = 2.67252
  Normalizat = 1.13163
  Prefactor  = 1.054
 **********
 **   18 **HESSE 
 **********

 FCN=   6055.553     FROM HESSE     STATUS=OK           490 CALLS     3719 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.782        4.0894        .85669E-04   -1.4993    
   2  Prefactor     .10000E-03    .94466        .73442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.2837        2.3356        .83822E-04   -1.5294    
   4  Prefactor     .10000E-03    1.8486        .10320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .37407        .20493        .25466E-04   -1.5586    
   6  norm          7.6970        4.7714        .64391E-03   -1.5153    
   7  Prefactor     .10000E-03    3.7645        .14704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.6874        8.7013        .14463E-03   -1.5153    
  10  norm          3.7669        3.4053        .13246E-03   -1.5320    
  11  Prefactor     .10000E-03    6.2753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.6054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.8353        3.3519        .10457E-03   -1.5225    
  14  norm          1.0665        5.7871        .35644E-03   -1.5501    
  15  norm          .10000E-03    1.5268        .93267E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.5803        .12175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.490        13.304        .11335E-03   -1.5001    
  18  Prefactor     .88368        2.9648        .22627E-03   -1.5520    
  19  Prefactor     .10000E-03    5.5717        .17911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          12.192        7.6494        .11472E-03   -1.5009    
  21  Prefactor     .10000E-03    15.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     84.655        69.322        .43659E-04   -1.3865    
  23  norm          8.3547        9.7109        .13869E-03   -1.5130    
  24  Prefactor     .10000E-03    17.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.6725        39.292        .24813E-03   -1.5381    
  26  Normalizat    1.1316        .22191        .24567E-03   -.88743    
  27  Prefactor     1.0540        .23728        .27931E-03   -.90950    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25426e-10
Minuit parameter uncertainties:
  1  4.08946
  2  1.62671e-07
  3  2.3357
  4  3.11253e-06
  5  0.204928
  6  4.77165
  7  2.68267e-07
  8  2.14802e-06
  9  8.70277
  10  3.40545
  11  1.27879e-05
  12  6.73091e-06
  13  3.35202
  14  4.96917
  15  2.96562e-06
  16  2.89187e-06
  17  13.3069
  18  2.96526
  19  1.58185e-05
  20  7.65001
  21  4.98703e-05
  22  69.3884
  23  9.71271
  24  0.000109044
  25  20.5105
  26  0.222095
  27  0.237517
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  1.054e+00  2.375e-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.132e+00  2.221e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.98
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 3.96e-08 +/- 2.27e-08
Energy Flux (Fixed Index): 2.05e-05 +/- 1.18e-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) = 6055.43808546
delta logL = 0.115244610917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6055.43244615
delta logL = 0.120883914273

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2023       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8340       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1391       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0494       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=   6055.432     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      203 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2023        7.3993        .40298E-02    .26988E-02
   2  alpha         1.8340        .82848        .32847        .82063E-04
   3  Normalizat    1.1391        .17971        .55405E-01    .12061E-04
   4  Prefactor     1.0494        .19763        .63275E-01    .52598E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.20229
  alpha      = 1.83398
  Normalizat = 1.13911
  Prefactor  = 1.04941
 **********
 **   18 **HESSE 
 **********

 FCN=   6055.432     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2023        3.6282        .11005E-03   -1.5210    
   2  alpha         1.8340        .46139        .12927E-01   -.26967    
   3  Normalizat    1.1391        .21447        .24500E-03   -.88506    
   4  Prefactor     1.0494        .23678        .27986E-03   -.91100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71583e-09
Minuit parameter uncertainties:
  1  3.62834
  2  0.464261
  3  0.214631
  4  0.237013
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/161978': 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) = 6055.43244614
delta logL = 0.120883923641

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  1.049e+00  2.370e-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.139e+00  2.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.21
Ra Dec: 195.757 24.582
Photon Index (Free Index): 1.83 +/- 0.46
Photon Flux (Free Index): 3.28e-08 +/- 2.32e-08
Energy Flux (Free Index): 2.63e-05 +/- 2.17e-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/161978/cmap_HighResolution_501897601_502156801_4FGL_J1303.0+2434_daily_bin1013.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.96e-08', energy_flux2='2.63e-05', photon_flux_error='2.27e-08', dlogl='1.21e-01', energy_flux='2.05e-05', photon_flux2='3.28e-08', job_status='DONE', time_completed='2021-09-06 18:30:06.910950', photon_index_error2='0.46', photon_index2='1.83', ts='10.98', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='2.17e-05', EG='1.13', time_epoch_completed='1630978206.91', return_code='0', job_id='161978', GAL2='1.05', EG2='1.14', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='2.32e-08', ts2='11.21', photon_index='2.07' WHERE bin_id='1013' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:30:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 161978: <4FGL_J1303.0+2434_daily_bin1013> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1013 195.757 24.5821 501897601 502156801 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 :                                   670.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            881 sec.

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

