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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1407
RA = 195.757, Dec = 24.5821
tmin = 604022401, tmax = 604281601
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='164754', job_status='RUN', time_executed='2021-09-06 18:28:24.828998', time_epoch_executed='1630978104.83' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1407'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164754

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164754/ft1_4FGL_J1303.0+2434_daily_bin1407.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164754/ft2_4FGL_J1303.0+2434_daily_bin1407.fits


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

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

Done.
real 4.24
user 3.97
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164754/ft1_filtered_4FGL_J1303.0+2434_daily_bin1407.fits evtable="EVENTS" scfile=/scratch/kocevski/164754/ft2_4FGL_J1303.0+2434_daily_bin1407.fits sctable="SC_DATA" expcube=/scratch/kocevski/164754/ltcube_604022401_604281601_4FGL_J1303.0+2434_daily_bin1407.fits outfile=/scratch/kocevski/164754/expmap_604022401_604281601_4FGL_J1303.0+2434_daily_bin1407.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/164754/ltcube_604022401_604281601_4FGL_J1303.0+2434_daily_bin1407.fits
.....................!
real 192.98
user 187.81
sys 4.47

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

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164754/ft1_filtered_4FGL_J1303.0+2434_daily_bin1407.fits scfile=/scratch/kocevski/164754/ft2_4FGL_J1303.0+2434_daily_bin1407.fits outfile=/scratch/kocevski/164754/cmap_HighResolution_604022401_604281601_4FGL_J1303.0+2434_daily_bin1407.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.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.2707       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7685       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6299       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7755       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    117.93       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.3469       1.0000         .10000E-03   10000.    
    14 'norm      '    .10499E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    19.487       1.0000         .10000E-03   10000.    
    16 'norm      '    23.739       1.0000         .10000E-03   10000.    
    17 'norm      '    18.142       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.6196       1.0000         .10000E-03   10000.    
    22 'Prefactor '    49.782       1.0000         .10000E-03   10000.    
    23 'norm      '    2.8542       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0673       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0483       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=   6482.816     FROM MIGRAD    STATUS=CONVERGED    628 CALLS     3248 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.2706        4.3973        .32899E-07   -.55790E-05
   2  Prefactor     2.7688        2.7669       -.97617E-08   -.29422E-03
   3  Prefactor     2.6302        2.0987       -.11407E-06   -.19700E-03
   4  Prefactor     2.7755        4.1892       -.37821E-06   -.41028E-03
   5  norm          .10000E-03    .66286E-01    .12276E-09** at limit **
   6  norm          .10000E-03    1.4308        .48459E-08** at limit **
   7  Prefactor     .10000E-03    4.3998       -.96873E-06** at limit **
   8  Prefactor     117.93        78.166       -.91610E-06   -.20192E-05
   9  Prefactor     .10000E-03    6.8083       -.57015E-06** at limit **
  10  norm          .10000E-03    1.4872        .69196E-07** at limit **
  11  Prefactor     .10000E-03    3.7579        .31301E-06** at limit **
  12  Prefactor     .10000E-03    9.8465        .70227E-06** at limit **
  13  norm          4.3469        3.8807       -.17172E-06   -.30882E-03
  14  norm          .10000E-03    2.8176        .10077E-05** at limit **
  15  norm          19.483        9.4069       -.27881E-05   -.25097E-04
  16  norm          23.744        16.242        .52080E-05   -.15538E-03
  17  norm          18.142        16.834        .60113E-07    .68847E-05
  18  Prefactor     .10000E-03    1.1828        .12845E-06** at limit **
  19  Prefactor     .10000E-03    8.0538       -.21341E-05** at limit **
  20  norm          .10000E-03    2.2511       -.37306E-07** at limit **
  21  Prefactor     2.6117        22.688       -.17669E-04   -.82778E-04
  22  Prefactor     49.776        71.951       -.72156E-05   -.28408E-05
  23  norm          2.8542        4.9013       -.40024E-06   -.34826E-03
  24  Prefactor     .10000E-03    6.6793        .13790E-06** at limit **
  25  Prefactor     .10000E-03    12.856        .86385E-06** at limit **
  26  Normalizat    1.0674        .17398        .12063E-05   -.65460E-04
  27  Prefactor     1.0483        .18090        .21726E-06    .14850E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.27056
  Prefactor  = 2.76878
  Prefactor  = 2.63016
  Prefactor  = 2.77545
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 117.931
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.34688
  norm       = 0.000100003
  norm       = 19.4832
  norm       = 23.7441
  norm       = 18.1419
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.61169
  Prefactor  = 49.7762
  norm       = 2.85417
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06737
  Prefactor  = 1.0483
 **********
 **   18 **HESSE 
 **********

 FCN=   6482.816     FROM HESSE     STATUS=OK           486 CALLS     3734 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.2706        4.4343        .10023E-03   -1.5099    
   2  Prefactor     2.7688        2.7805        .11587E-03   -1.5375    
   3  Prefactor     2.6302        2.0920        .99529E-04   -1.5384    
   4  Prefactor     2.7755        4.1853        .19685E-03   -1.5375    
   5  norm          .10000E-03    .71037E-01    .40330E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.4432        .94025E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.4171        .16492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     117.93        78.213        .37053E-04   -1.3532    
   9  Prefactor     .10000E-03    6.9042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.4931        .95856E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.7625        .15243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.8600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.3469        3.8788        .14394E-03   -1.5291    
  14  norm          .10000E-03    6.0513        .26169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          19.483        9.5308        .90731E-04   -1.4825    
  16  norm          23.744        16.325        .82214E-04   -1.4733    
  17  norm          18.142        16.831        .94033E-04   -1.4856    
  18  Prefactor     .10000E-03    1.1914        .85462E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.0487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.2611        .11793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.6117        23.622        .25199E-03   -1.5385    
  22  Prefactor     49.776        71.902        .56837E-04   -1.4296    
  23  norm          2.8542        4.8970        .22659E-03   -1.5370    
  24  Prefactor     .10000E-03    6.6922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    12.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0674        .20918        .25396E-03   -.90806    
  27  Prefactor     1.0483        .21749        .27106E-03   -.91137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.60266e-10
Minuit parameter uncertainties:
  1  4.43449
  2  2.78065
  3  2.09208
  4  4.18572
  5  3.75318e-07
  6  4.07687e-07
  7  9.85196e-07
  8  78.2813
  9  9.86601e-06
  10  3.56106e-06
  11  1.7448e-06
  12  2.3831e-05
  13  3.87898
  14  0.000249771
  15  9.53149
  16  16.3281
  17  16.8356
  18  9.89731e-06
  19  4.22817e-05
  20  1.05199e-06
  21  15.717
  22  72.0276
  23  4.89767
  24  4.45997e-06
  25  4.2546e-06
  26  0.20934
  27  0.217678
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  4.347e+00  3.879e+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.048e+00  2.177e-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.067e+00  2.093e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.83
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 2.95e-08 +/- 2.63e-08
Energy Flux (Fixed Index): 1.53e-05 +/- 1.36e-05

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

Saving results to:
/scratch/kocevski/164754/likelihoodResults_604022401_604281601_4FGL_J1303.0+2434_daily_bin1407.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) = 6482.67199704
delta logL = 0.14371171033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6482.66932124
delta logL = 0.146387511242

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5777       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4877       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0503       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0603       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6482.669     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      305 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5793        4.3511        .59951E-03   -.30309E-03
   2  alpha         2.4883        .92168        .14844E-01    .33009E-04
   3  Normalizat    1.0503        .20530        .25558E-03   -.13095E-03
   4  Prefactor     1.0601        .21604        .26974E-03   -.51841E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.57933
  alpha      = 2.48834
  Normalizat = 1.05031
  Prefactor  = 1.06012
 **********
 **   18 **HESSE 
 **********

 FCN=   6482.669     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5793        3.9515        .23980E-04   -1.5330    
   2  alpha         2.4883        .83988        .59374E-03   -.46633E-02
   3  Normalizat    1.0503        .20513        .10223E-04   -.91363    
   4  Prefactor     1.0601        .21583        .10789E-04   -.90751    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64088e-10
Minuit parameter uncertainties:
  1  3.95176
  2  0.856543
  3  0.205281
  4  0.216007
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164754': 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) = 6482.66931904
delta logL = 0.146389713671

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  3.579e+00  3.952e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.488e+00  8.565e-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.060e+00  2.160e-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.050e+00  2.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.12
Ra Dec: 195.757 24.582
Photon Index (Free Index): 2.49 +/- 0.86
Photon Flux (Free Index): 4.22e-08 +/- 4.02e-08
Energy Flux (Free Index): 1.28e-05 +/- 1.13e-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/164754/cmap_HighResolution_604022401_604281601_4FGL_J1303.0+2434_daily_bin1407.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.58e-05', comment='SUCCESS', photon_flux='2.95e-08', energy_flux2='1.28e-05', photon_flux_error='2.63e-08', dlogl='1.46e-01', energy_flux='1.53e-05', photon_flux2='4.22e-08', job_status='DONE', time_completed='2021-09-06 18:41:51.379308', photon_index_error2='0.86', photon_index2='2.49', ts='1.83', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='8.84e-08', energy_flux_error2='1.13e-05', EG='1.07', time_epoch_completed='1630978911.38', return_code='0', job_id='164754', GAL2='1.06', EG2='1.05', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='4.02e-08', ts2='2.12', photon_index='2.07' WHERE bin_id='1407' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:41:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 164754: <4FGL_J1303.0+2434_daily_bin1407> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin1407> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 18:25:17 2021
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 18:25:19 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:25:19 2021
Terminated at Mon Sep  6 18:41:52 2021
Results reported at Mon Sep  6 18:41:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1407 195.757 24.5821 604022401 604281601 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 :                                   770.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            995 sec.

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

