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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1375
RA = 195.757, Dec = 24.5821
tmin = 595728001, tmax = 595987201
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='163624', job_status='RUN', time_executed='2021-09-06 18:21:06.062206', time_epoch_executed='1630977666.06' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/163624

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/163624/ft1_4FGL_J1303.0+2434_daily_bin1375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/163624/ft2_4FGL_J1303.0+2434_daily_bin1375.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/163624/ft1_4FGL_J1303.0+2434_daily_bin1375.fits outfile=/scratch/kocevski/163624/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1375.fits ra=195.757 dec=24.5821 rad=12.0 tmin=595728001.0 tmax=595987201.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 2.60
user 2.39
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/163624/ft1_filtered_4FGL_J1303.0+2434_daily_bin1375.fits" evtable="EVENTS" scfile=/scratch/kocevski/163624/ft2_4FGL_J1303.0+2434_daily_bin1375.fits sctable="SC_DATA" outfile=/scratch/kocevski/163624/ltcube_595728001_595987201_4FGL_J1303.0+2434_daily_bin1375.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/163624/ft2_4FGL_J1303.0+2434_daily_bin1375.fits
.....................!
real 16.77
user 16.40
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/163624/ft1_filtered_4FGL_J1303.0+2434_daily_bin1375.fits evtable="EVENTS" scfile=/scratch/kocevski/163624/ft2_4FGL_J1303.0+2434_daily_bin1375.fits sctable="SC_DATA" expcube=/scratch/kocevski/163624/ltcube_595728001_595987201_4FGL_J1303.0+2434_daily_bin1375.fits outfile=/scratch/kocevski/163624/expmap_595728001_595987201_4FGL_J1303.0+2434_daily_bin1375.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/163624/ltcube_595728001_595987201_4FGL_J1303.0+2434_daily_bin1375.fits
.....................!
real 192.63
user 187.03
sys 5.19

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/163624/ft1_filtered_4FGL_J1303.0+2434_daily_bin1375.fits scfile=/scratch/kocevski/163624/ft2_4FGL_J1303.0+2434_daily_bin1375.fits outfile=/scratch/kocevski/163624/cmap_595728001_595987201_4FGL_J1303.0+2434_daily_bin1375.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=195.757 yref=24.5821 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.44
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/163624/ft1_filtered_4FGL_J1303.0+2434_daily_bin1375.fits scfile=/scratch/kocevski/163624/ft2_4FGL_J1303.0+2434_daily_bin1375.fits outfile=/scratch/kocevski/163624/cmap_HighResolution_595728001_595987201_4FGL_J1303.0+2434_daily_bin1375.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.59
user 0.42
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.967       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.3026       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0603       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .24294       1.0000         .10000E-03   10000.    
     6 'norm      '    6.1785       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.7858       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.977       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    34.234       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.2233       1.0000         .10000E-03   10000.    
    14 'norm      '    11.385       1.0000         .10000E-03   10000.    
    15 'norm      '    44.178       1.0000         .10000E-03   10000.    
    16 'norm      '    6.8593       1.0000         .10000E-03   10000.    
    17 'norm      '    1.3739       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.1483       1.0000         .10000E-03   10000.    
    20 'norm      '    9.4436       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .35087E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    22.966       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .91762       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0253       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=   9105.825     FROM MIGRAD    STATUS=CONVERGED    654 CALLS     2817 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.967        3.7811       -.11495E-07    .40787E-04
   2  Prefactor     2.3025        2.3056        .12787E-06   -.92278E-04
   3  Prefactor     2.0602        1.6266        .38228E-07   -.46970E-04
   4  Prefactor     .10000E-03    2.3991       -.44286E-08** at limit **
   5  norm          .24293        .15420        .14936E-07   -.10609E-03
   6  norm          6.1784        3.3120        .85001E-07    .14453E-03
   7  Prefactor     8.7858        6.4592        .41841E-07   -.60694E-05
   8  Prefactor     .10000E-03    20.554       -.10567E-06** at limit **
   9  Prefactor     11.976        7.2318        .30924E-06   -.17673E-03
  10  norm          .10000E-03    1.2553        .73084E-08** at limit **
  11  Prefactor     34.225        14.629        .82185E-06    .48713E-03
  12  Prefactor     .10000E-03    4.8268        .20755E-07** at limit **
  13  norm          4.2240        3.0064        .86837E-06   -.71507E-03
  14  norm          11.386        5.0308        .92027E-07    .15378E-03
  15  norm          44.178        8.6024        .19876E-08    .43660E-03
  16  norm          6.8598        13.104        .34497E-06    .68086E-04
  17  norm          1.3587        63.499        .59241E-05    .65507E-04
  18  Prefactor     .10000E-03    1.4801        .45142E-07** at limit **
  19  Prefactor     3.1496        8.8392        .61468E-06    .33250E-04
  20  norm          9.4447        6.9663       -.38093E-07   -.20205E-03
  21  Prefactor     .10000E-03    7.4763       -.22590E-08** at limit **
  22  Prefactor     .10000E-03    12.166        .30862E-07** at limit **
  23  norm          .10000E-03    2.5492       -.29482E-07** at limit **
  24  Prefactor     .10039E-03    9.7151       -.84838E-06** at limit **
  25  Prefactor     22.963        16.691        .42439E-06    .21874E-03
  26  Normalizat    .91767        .15949       -.76799E-06    .47797E-04
  27  Prefactor     1.0253        .16301       -.15184E-06   -.48738E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10.9671
  Prefactor  = 2.30246
  Prefactor  = 2.06021
  Prefactor  = 0.0001
  norm       = 0.242931
  norm       = 6.17845
  Prefactor  = 8.78584
  Prefactor  = 0.0001
  Prefactor  = 11.9764
  norm       = 0.0001
  Prefactor  = 34.2251
  Prefactor  = 0.0001
  norm       = 4.22396
  norm       = 11.386
  norm       = 44.1778
  norm       = 6.85978
  norm       = 1.35866
  Prefactor  = 0.0001
  Prefactor  = 3.14955
  norm       = 9.44474
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100391
  Prefactor  = 22.9627
  Normalizat = 0.917668
  Prefactor  = 1.02529
 **********
 **   18 **HESSE 
 **********

 FCN=   9105.825     FROM HESSE     STATUS=OK           500 CALLS     3317 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.967        3.7903        .95009E-04   -1.5046    
   2  Prefactor     2.3025        2.2996        .12704E-03   -1.5404    
   3  Prefactor     2.0602        1.6189        .10250E-03   -1.5421    
   4  Prefactor     .10000E-03    2.4318        .14423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .24293        .15382        .28640E-04   -1.5609    
   6  norm          6.1784        3.3133        .12290E-03   -1.5211    
   7  Prefactor     8.7858        6.4554        .13523E-03   -1.5115    
   8  Prefactor     .10000E-03    20.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.976        7.2390        .57877E-03   -1.5016    
  10  norm          .10000E-03    1.2656        .10437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     34.225        15.112        .68490E-04   -1.4537    
  12  Prefactor     .10000E-03    4.8293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.2240        3.1292        .69311E-03   -1.5297    
  14  norm          11.386        5.0231        .11873E-03   -1.5033    
  15  norm          44.178        8.5456        .60318E-04   -1.4378    
  16  norm          6.8598        13.012        .15319E-03   -1.5184    
  17  norm          1.3587        67.116        .37175E-03   -1.5475    
  18  Prefactor     .10000E-03    2.9278        .21754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.1496        8.6298        .22845E-03   -1.5353    
  20  norm          9.4447        6.9450        .13041E-03   -1.5093    
  21  Prefactor     .10000E-03    7.4766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.5549        .14866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10039E-03    12.146        .82424E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     22.963        16.777        .83584E-04   -1.4749    
  26  Normalizat    .91767        .18698        .27453E-03   -.95842    
  27  Prefactor     1.0253        .19179        .28234E-03   -.91891    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.81675e-10
Minuit parameter uncertainties:
  1  3.79041
  2  2.29971
  3  1.61897
  4  3.73089e-07
  5  0.153816
  6  3.31335
  7  6.45593
  8  1.57841e-05
  9  7.23951
  10  6.49256e-07
  11  15.1134
  12  1.10971e-06
  13  3.12932
  14  5.02332
  15  8.5458
  16  13.017
  17  19.1205
  18  2.30288e-05
  19  8.63316
  20  6.94559
  21  3.68461e-07
  22  4.29211e-06
  23  5.00268e-07
  24  0.00435665
  25  16.7804
  26  0.187117
  27  0.191921
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  4.224e+00  3.129e+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.025e+00  1.919e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  9.177e-01  1.871e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.08
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 2.86e-08 +/- 2.12e-08
Energy Flux (Fixed Index): 1.49e-05 +/- 1.10e-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) = 9105.40135435
delta logL = 0.423527870103

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9105.36960011
delta logL = 0.455282104253

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3521       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4793       1.0000          .0000       5.0000    
     3 'Normalizat'    .93294       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0192       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=   9105.370     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      208 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3512        2.6614        .55261E-02    .84261E-04
   2  alpha         1.4792        .40136        .44152       -.46565E-04
   3  Normalizat    .93294        .14907        .45321E-01    .24127E-04
   4  Prefactor     1.0192        .16180        .64016E-01    .10970E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.35119
  alpha      = 1.47923
  Normalizat = 0.932935
  Prefactor  = 1.01917
 **********
 **   18 **HESSE 
 **********

 FCN=   9105.370     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3512        3.3872        .13395E-03   -1.5342    
   2  alpha         1.4792        .60682        .16293E-01   -.42060    
   3  Normalizat    .93294        .17450        .27254E-03   -.95312    
   4  Prefactor     1.0192        .18944        .28313E-03   -.92093    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43933e-09
Minuit parameter uncertainties:
  1  3.38741
  2  0.61421
  3  0.174606
  4  0.189559
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/163624': 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) = 9105.36960007
delta logL = 0.455282143927

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  3.351e+00  3.387e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  1.479e+00  6.142e-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.019e+00  1.896e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  9.329e-01  1.746e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.97
Ra Dec: 195.757 24.582
Photon Index (Free Index): 1.48 +/- 0.61
Photon Flux (Free Index): 1.37e-08 +/- 1.66e-08
Energy Flux (Free Index): 2.59e-05 +/- 2.76e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/163624/cmap_HighResolution_595728001_595987201_4FGL_J1303.0+2434_daily_bin1375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.86e-08', energy_flux2='2.59e-05', photon_flux_error='2.12e-08', dlogl='4.55e-01', energy_flux='1.49e-05', photon_flux2='1.37e-08', job_status='DONE', time_completed='2021-09-06 18:34:17.647175', photon_index_error2='0.61', photon_index2='1.48', ts='5.08', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='2.76e-05', EG='0.92', time_epoch_completed='1630978457.65', return_code='0', job_id='163624', GAL2='1.02', EG2='0.93', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='1.66e-08', ts2='5.97', photon_index='2.07' WHERE bin_id='1375' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:34:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 163624: <4FGL_J1303.0+2434_daily_bin1375> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin1375> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep  6 18:20:42 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 18:20:48 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:20:48 2021
Terminated at Mon Sep  6 18:34:18 2021
Results reported at Mon Sep  6 18:34:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1375 195.757 24.5821 595728001 595987201 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 :                                   785.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            816 sec.

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

