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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1137
RA = 195.757, Dec = 24.5821
tmin = 534038401, tmax = 534297601
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='162173', job_status='RUN', time_executed='2021-09-06 18:20:32.380140', time_epoch_executed='1630977632.38' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1137'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/162173

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/162173/ft1_4FGL_J1303.0+2434_daily_bin1137.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/162173/ft2_4FGL_J1303.0+2434_daily_bin1137.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/162173/ft1_4FGL_J1303.0+2434_daily_bin1137.fits outfile=/scratch/kocevski/162173/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1137.fits ra=195.757 dec=24.5821 rad=12.0 tmin=534038401.0 tmax=534297601.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.83
user 3.43
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/162173/ft1_filtered_4FGL_J1303.0+2434_daily_bin1137.fits" evtable="EVENTS" scfile=/scratch/kocevski/162173/ft2_4FGL_J1303.0+2434_daily_bin1137.fits sctable="SC_DATA" outfile=/scratch/kocevski/162173/ltcube_534038401_534297601_4FGL_J1303.0+2434_daily_bin1137.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/162173/ft2_4FGL_J1303.0+2434_daily_bin1137.fits
.....................!
real 15.60
user 15.20
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/162173/ft1_filtered_4FGL_J1303.0+2434_daily_bin1137.fits evtable="EVENTS" scfile=/scratch/kocevski/162173/ft2_4FGL_J1303.0+2434_daily_bin1137.fits sctable="SC_DATA" expcube=/scratch/kocevski/162173/ltcube_534038401_534297601_4FGL_J1303.0+2434_daily_bin1137.fits outfile=/scratch/kocevski/162173/expmap_534038401_534297601_4FGL_J1303.0+2434_daily_bin1137.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/162173/ltcube_534038401_534297601_4FGL_J1303.0+2434_daily_bin1137.fits
.....................!
real 192.24
user 187.03
sys 4.78

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/162173/ft1_filtered_4FGL_J1303.0+2434_daily_bin1137.fits scfile=/scratch/kocevski/162173/ft2_4FGL_J1303.0+2434_daily_bin1137.fits outfile=/scratch/kocevski/162173/cmap_534038401_534297601_4FGL_J1303.0+2434_daily_bin1137.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/162173/ft1_filtered_4FGL_J1303.0+2434_daily_bin1137.fits scfile=/scratch/kocevski/162173/ft2_4FGL_J1303.0+2434_daily_bin1137.fits outfile=/scratch/kocevski/162173/cmap_HighResolution_534038401_534297601_4FGL_J1303.0+2434_daily_bin1137.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.60
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0894       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.1799       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.5660       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4270       1.0000         .10000E-03   10000.    
     5 'norm      '    .10088E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.3397       1.0000         .10000E-03   10000.    
    14 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.1730       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12758       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.7775       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10459E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.504       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11399E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0179       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .96118       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=   5209.068     FROM MIGRAD    STATUS=CONVERGED    649 CALLS     2824 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0891        3.9486       -.80358E-07   -.29272E-05
   2  Prefactor     5.1803        3.1658       -.29490E-06   -.10572E-03
   3  Prefactor     7.5667        2.9344        .30475E-06   -.13299E-05
   4  Prefactor     1.4275        4.6041       -.11532E-05   -.76921E-03
   5  norm          .10000E-03    .15717       -.74193E-07** at limit **
   6  norm          .10000E-03    1.3000        .86484E-07** at limit **
   7  Prefactor     .10000E-03    2.7818        .15375E-05** at limit **
   8  Prefactor     .10000E-03    19.367       -.13125E-04** at limit **
   9  Prefactor     .10000E-03    4.5590       -.51437E-06** at limit **
  10  norm          .10000E-03    2.9902        .48849E-06** at limit **
  11  Prefactor     .10000E-03    5.7294        .58017E-06** at limit **
  12  Prefactor     .10000E-03    14.387        .46413E-05** at limit **
  13  norm          4.3401        3.0936       -.20599E-06    .32679E-04
  14  norm          .10000E-03    1.9906       -.34670E-06** at limit **
  15  norm          4.1729        2.8890       -.25220E-06   -.10624E-02
  16  norm          .10000E-03    2.8246       -.18347E-05** at limit **
  17  norm          .10000E-03    11.684        .83557E-05** at limit **
  18  Prefactor     .12785        1.5549       -.14960E-06   -.20871E-04
  19  Prefactor     .10000E-03    10.272       -.63287E-05** at limit **
  20  norm          6.7639        8.8927        .83227E-06    .45595E-03
  21  Prefactor     .10000E-03    16.164       -.53759E-05** at limit **
  22  Prefactor     .10000E-03    24.907        .13840E-04** at limit **
  23  norm          .10004E-03    7.1061       -.15783E-05** at limit **
  24  Prefactor     14.521        15.588       -.19474E-05    .28765E-04
  25  Prefactor     .10000E-03    10.689       -.17560E-06** at limit **
  26  Normalizat    1.0177        .18037        .12071E-05    .34992E-03
  27  Prefactor     .96134        .18939        .42585E-06    .28565E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.08913
  Prefactor  = 5.18032
  Prefactor  = 7.56669
  Prefactor  = 1.42751
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.34006
  norm       = 0.0001
  norm       = 4.17285
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.127847
  Prefactor  = 0.0001
  norm       = 6.76388
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100042
  Prefactor  = 14.5212
  Prefactor  = 0.0001
  Normalizat = 1.01773
  Prefactor  = 0.961341
 **********
 **   18 **HESSE 
 **********

 FCN=   5209.068     FROM HESSE     STATUS=OK           484 CALLS     3308 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0891        3.9588        .97421E-04   -1.5175    
   2  Prefactor     5.1803        3.1723        .91468E-04   -1.5253    
   3  Prefactor     7.5667        2.9333        .72922E-04   -1.5158    
   4  Prefactor     1.4275        4.6291        .27085E-03   -1.5469    
   5  norm          .10000E-03    .33447        .54779E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.3031        .80316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.7828        .11748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.5916        .15047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.0618        .24355E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.7542        .16868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.3401        3.0943        .10395E-03   -1.5291    
  14  norm          .10000E-03    2.0006        .99419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.1729        2.9029        .49013E-03   -1.5299    
  16  norm          .10000E-03    2.8175        .11799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    11.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .12785        13.333        .17109E-02   -1.5636    
  19  Prefactor     .10000E-03    10.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.7639        7.6586        .15412E-03   -1.5188    
  21  Prefactor     .10000E-03    16.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    24.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10004E-03    63.431        .31164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     14.521        15.621        .10517E-03   -1.4946    
  25  Prefactor     .10000E-03    10.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0177        .21304        .22595E-03   -.92439    
  27  Prefactor     .96134        .22359        .25364E-03   -.94029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48352e-08
Minuit parameter uncertainties:
  1  3.95898
  2  3.17239
  3  2.93331
  4  4.63023
  5  2.03e-07
  6  6.53362e-07
  7  2.56475e-06
  8  4.26691e-06
  9  8.87845e-06
  10  6.03209e-06
  11  8.7065e-06
  12  1.38298e-05
  13  3.09438
  14  2.55383e-07
  15  2.90299
  16  7.40133e-06
  17  1.82206e-05
  18  2.61079
  19  2.36145e-05
  20  7.65967
  21  3.74488e-06
  22  3.14837e-06
  23  0.00327125
  24  15.6259
  25  1.50975e-05
  26  0.213222
  27  0.223801
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  4.340e+00  3.094e+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.613e-01  2.238e-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.018e+00  2.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.24
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 2.94e-08 +/- 2.10e-08
Energy Flux (Fixed Index): 1.53e-05 +/- 1.09e-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) = 5208.95383255
delta logL = 0.114295049887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5208.95319327
delta logL = 0.114934326497

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3356       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7561       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0276       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95583       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=   5208.953     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      201 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3097        4.2666        .48364E-02   -.31421E-04
   2  alpha         1.7553        .69686        .40849       -.12500E-04
   3  Normalizat    1.0278        .17432        .42416E-01    .76652E-05
   4  Prefactor     .95565        .19001        .45713E-01    .96357E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.30965
  alpha      = 1.75531
  Normalizat = 1.02775
  Prefactor  = 0.955651
 **********
 **   18 **HESSE 
 **********

 FCN=   5208.953     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3097        3.2396        .10746E-03   -1.5293    
   2  alpha         1.7553        .62031        .15306E-01   -.30247    
   3  Normalizat    1.0278        .20240        .22497E-03   -.92106    
   4  Prefactor     .95565        .22184        .25433E-03   -.94223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80538e-10
Minuit parameter uncertainties:
  1  3.23974
  2  0.627519
  3  0.202556
  4  0.22205
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/162173': 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) = 5208.95316105
delta logL = 0.114966548419

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  4.310e+00  3.240e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  1.755e+00  6.275e-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:  9.557e-01  2.220e-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.028e+00  2.026e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.47
Ra Dec: 195.757 24.582
Photon Index (Free Index): 1.76 +/- 0.63
Photon Flux (Free Index): 2.12e-08 +/- 2.14e-08
Energy Flux (Free Index): 2.02e-05 +/- 2.09e-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/162173/cmap_HighResolution_534038401_534297601_4FGL_J1303.0+2434_daily_bin1137.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.94e-08', energy_flux2='2.02e-05', photon_flux_error='2.10e-08', dlogl='1.15e-01', energy_flux='1.53e-05', photon_flux2='2.12e-08', job_status='DONE', time_completed='2021-09-06 18:30:32.192662', photon_index_error2='0.63', photon_index2='1.76', ts='6.24', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='2.09e-05', EG='1.02', time_epoch_completed='1630978232.19', return_code='0', job_id='162173', GAL2='0.96', EG2='1.03', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='2.14e-08', ts2='6.47', photon_index='2.07' WHERE bin_id='1137' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:30:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 162173: <4FGL_J1303.0+2434_daily_bin1137> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1137 195.757 24.5821 534038401 534297601 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 :                                   595.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             255.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            889 sec.

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

