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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1553
RA = 195.757, Dec = 24.5821
tmin = 641865601, tmax = 642124801
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='165765', job_status='RUN', time_executed='2021-09-06 18:32:55.403960', time_epoch_executed='1630978375.4' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1553'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/165765

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/165765/ft1_4FGL_J1303.0+2434_daily_bin1553.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/165765/ft2_4FGL_J1303.0+2434_daily_bin1553.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/165765/ft1_4FGL_J1303.0+2434_daily_bin1553.fits outfile=/scratch/kocevski/165765/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1553.fits ra=195.757 dec=24.5821 rad=12.0 tmin=641865601.0 tmax=642124801.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.63
user 4.30
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/165765/ft2_4FGL_J1303.0+2434_daily_bin1553.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/165765/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1553.fits evtable="EVENTS" outfile="/scratch/kocevski/165765/ft1_filtered_4FGL_J1303.0+2434_daily_bin1553.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.56
user 0.37
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/165765/ft1_filtered_4FGL_J1303.0+2434_daily_bin1553.fits" evtable="EVENTS" scfile=/scratch/kocevski/165765/ft2_4FGL_J1303.0+2434_daily_bin1553.fits sctable="SC_DATA" outfile=/scratch/kocevski/165765/ltcube_641865601_642124801_4FGL_J1303.0+2434_daily_bin1553.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/165765/ft2_4FGL_J1303.0+2434_daily_bin1553.fits
.....................!
real 20.89
user 20.31
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/165765/ft1_filtered_4FGL_J1303.0+2434_daily_bin1553.fits evtable="EVENTS" scfile=/scratch/kocevski/165765/ft2_4FGL_J1303.0+2434_daily_bin1553.fits sctable="SC_DATA" expcube=/scratch/kocevski/165765/ltcube_641865601_642124801_4FGL_J1303.0+2434_daily_bin1553.fits outfile=/scratch/kocevski/165765/expmap_641865601_642124801_4FGL_J1303.0+2434_daily_bin1553.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/165765/ltcube_641865601_642124801_4FGL_J1303.0+2434_daily_bin1553.fits
.....................!
real 197.24
user 191.10
sys 5.36

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/165765/ft1_filtered_4FGL_J1303.0+2434_daily_bin1553.fits scfile=/scratch/kocevski/165765/ft2_4FGL_J1303.0+2434_daily_bin1553.fits outfile=/scratch/kocevski/165765/cmap_641865601_642124801_4FGL_J1303.0+2434_daily_bin1553.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.40
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/165765/ft1_filtered_4FGL_J1303.0+2434_daily_bin1553.fits scfile=/scratch/kocevski/165765/ft2_4FGL_J1303.0+2434_daily_bin1553.fits outfile=/scratch/kocevski/165765/cmap_HighResolution_641865601_642124801_4FGL_J1303.0+2434_daily_bin1553.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.62
user 0.43
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.2976       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8868       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2085       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6594       1.0000         .10000E-03   10000.    
     5 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    10.236       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .58784E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.5274       1.0000         .10000E-03   10000.    
    10 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10479E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.1394       1.0000         .10000E-03   10000.    
    14 'norm      '    13.995       1.0000         .10000E-03   10000.    
    15 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.7551       1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .30148E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.1770       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .31030E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .18292E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2700       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0635       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6211.216     FROM MIGRAD    STATUS=CONVERGED   1202 CALLS     3888 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.2969        3.8220        .51969E-03    .17731E-03
   2  Prefactor     1.8867        1.9710        .10631E-03    .11464E-03
   3  Prefactor     5.2053        3.0910        .98266E-04    .49933E-03
   4  Prefactor     1.6599        3.6312        .21502E-03    .23872E-03
   5  norm          .10000E-03    .37124        .50731E-03** at limit **
   6  norm          10.234        5.8267        .12524E-03    .19263E-03
   7  Prefactor     .10059E-03    14.189        .73466E-01** at limit **
   8  Prefactor     .10000E-03    57.416        .18142E-02** at limit **
   9  Prefactor     5.5286        8.4843        .17089E-03    .99455E-04
  10  norm          .10000E-03    2.6519        .12395E-02** at limit **
  11  Prefactor     .10000E-03    22.397        .18142E-02** at limit **
  12  Prefactor     .10000E-03    23.606        .18142E-02** at limit **
  13  norm          9.1391        4.5667        .11468E-03    .80992E-04
  14  norm          13.996        6.2392        .10707E-03   -.11043E-03
  15  norm          .10000E-03    1.3432        .88787E-03** at limit **
  16  norm          5.7563        4.5135        .14436E-03   -.55286E-04
  17  norm          .10000E-03    20.312        .18142E-02** at limit **
  18  Prefactor     .10002E-03    6.4909        .19000E-02** at limit **
  19  Prefactor     .10000E-03    6.8126        .18142E-02** at limit **
  20  norm          3.1763        3.6880        .15863E-03    .15172E-03
  21  Prefactor     .10000E-03    23.775        .18142E-02** at limit **
  22  Prefactor     .10111E-03    48.313        .17665    ** at limit **
  23  norm          .10006E-03    104.22        .39028E-02** at limit **
  24  Prefactor     .10000E-03    6.5276        .18142E-02** at limit **
  25  Prefactor     .10000E-03    9.9788        .18142E-02** at limit **
  26  Normalizat    1.2698        .22863        .25246E-03    .35895E-03
  27  Prefactor     1.0636        .23842        .28800E-03    .35219E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.29694
  Prefactor  = 1.88668
  Prefactor  = 5.2053
  Prefactor  = 1.65985
  norm       = 0.0001
  norm       = 10.2342
  Prefactor  = 0.000100594
  Prefactor  = 0.0001
  Prefactor  = 5.52861
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.13913
  norm       = 13.9965
  norm       = 0.0001
  norm       = 5.7563
  norm       = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  norm       = 3.17631
  Prefactor  = 0.0001
  Prefactor  = 0.00010111
  norm       = 0.000100061
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26979
  Prefactor  = 1.06356
 **********
 **   18 **HESSE 
 **********

 FCN=   6211.216     FROM HESSE     STATUS=OK           480 CALLS     4368 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.2969        3.8222        .10394E-03   -1.5168    
   2  Prefactor     1.8867        1.9711        .42524E-05   -1.5433    
   3  Prefactor     5.2053        3.0911        .39307E-05   -1.5252    
   4  Prefactor     1.6599        3.6311        .86009E-05   -1.5450    
   5  norm          .10000E-03    .37317        .10146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.234        5.8266        .50095E-05   -1.5068    
   7  Prefactor     .10059E-03    12.887        .78674E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    57.418        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.5286        8.4836        .68357E-05   -1.5238    
  10  norm          .10000E-03    2.6530        .24790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.409        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    23.612        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.1391        4.5666        .45872E-05   -1.5103    
  14  norm          13.996        6.2387        .42827E-05   -1.4960    
  15  norm          .10000E-03    1.3433        .17757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.7563        4.5133        .57742E-05   -1.5228    
  17  norm          .10000E-03    20.317        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    6.5374        .37999E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.8136        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.1763        3.6866        .63450E-05   -1.5352    
  21  Prefactor     .10000E-03    23.778        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10111E-03    48.283        .17670       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10006E-03    108.42        .15611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.5280        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.9792        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2698        .22882        .50493E-04   -.84473    
  27  Prefactor     1.0636        .23862        .57599E-04   -.90640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88549e-09
Minuit parameter uncertainties:
  1  3.82235
  2  1.97121
  3  3.09117
  4  3.63159
  5  6.25893e-06
  6  5.82691
  7  0.00553377
  8  7.34232e-05
  9  8.48549
  10  1.07015e-05
  11  4.65693e-05
  12  7.2306e-05
  13  4.56676
  14  6.23901
  15  3.28303e-06
  16  4.51358
  17  4.90051e-05
  18  0.00067889
  19  2.21397e-05
  20  3.68691
  21  1.93063e-05
  22  0.0146564
  23  0.0051586
  24  1.25219e-05
  25  1.58844e-05
  26  0.229002
  27  0.238859
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  9.139e+00  4.567e+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.064e+00  2.389e-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.270e+00  2.290e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.12
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 6.20e-08 +/- 3.10e-08
Energy Flux (Fixed Index): 3.21e-05 +/- 1.61e-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) = 6210.43664258
delta logL = 0.779735574365

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6210.42755217
delta logL = 0.788825990138

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4530       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5313       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2984       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0480       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=   6210.428     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      215 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4530        4.4818        .34470E-02    .87856E-02
   2  alpha         1.5312        .33833        .27455       -.36219E-04
   3  Normalizat    1.2984        .18689        .56573E-01    .42276E-04
   4  Prefactor     1.0480        .19783        .65542E-01   -.18929E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.45303
  alpha      = 1.53123
  Normalizat = 1.29836
  Prefactor  = 1.04802
 **********
 **   18 **HESSE 
 **********

 FCN=   6210.428     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4530        5.0408        .11810E-03   -1.5126    
   2  alpha         1.5312        .40816        .11294E-01   -.39793    
   3  Normalizat    1.2984        .22490        .25017E-03   -.83615    
   4  Prefactor     1.0480        .23795        .28992E-03   -.91146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30253e-08
Minuit parameter uncertainties:
  1  5.04109
  2  0.410327
  3  0.225066
  4  0.238189
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/165765': 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) = 6210.42755215
delta logL = 0.788826008618

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  8.453e+00  5.041e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  1.531e+00  4.103e-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.048e+00  2.382e-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.298e+00  2.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.69
Ra Dec: 195.757 24.582
Photon Index (Free Index): 1.53 +/- 0.41
Photon Flux (Free Index): 3.55e-08 +/- 2.58e-08
Energy Flux (Free Index): 5.85e-05 +/- 4.56e-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/165765/cmap_HighResolution_641865601_642124801_4FGL_J1303.0+2434_daily_bin1553.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.20e-08', energy_flux2='5.85e-05', photon_flux_error='3.10e-08', dlogl='7.89e-01', energy_flux='3.21e-05', photon_flux2='3.55e-08', job_status='DONE', time_completed='2021-09-06 18:45:23.760618', photon_index_error2='0.41', photon_index2='1.53', ts='13.12', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='4.56e-05', EG='1.27', time_epoch_completed='1630979123.76', return_code='0', job_id='165765', GAL2='1.05', EG2='1.30', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='2.58e-08', ts2='14.69', photon_index='2.07' WHERE bin_id='1553' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:45:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 165765: <4FGL_J1303.0+2434_daily_bin1553> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin1553> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 18:30:40 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 18:30:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 18:30:47 2021
Terminated at Mon Sep  6 18:45:24 2021
Results reported at Mon Sep  6 18:45:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1553 195.757 24.5821 641865601 642124801 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 :                                   743.61 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            884 sec.

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

