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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin802
RA = 195.757, Dec = 24.5821
tmin = 447206401, tmax = 447465601
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='160526', job_status='RUN', time_executed='2021-09-06 18:11:02.026399', time_epoch_executed='1630977062.03' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='802'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/160526

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/160526/ft1_4FGL_J1303.0+2434_daily_bin802.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/160526/ft2_4FGL_J1303.0+2434_daily_bin802.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/160526/ft1_4FGL_J1303.0+2434_daily_bin802.fits outfile=/scratch/kocevski/160526/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin802.fits ra=195.757 dec=24.5821 rad=12.0 tmin=447206401.0 tmax=447465601.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.44
user 3.20
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/160526/ft1_filtered_4FGL_J1303.0+2434_daily_bin802.fits" evtable="EVENTS" scfile=/scratch/kocevski/160526/ft2_4FGL_J1303.0+2434_daily_bin802.fits sctable="SC_DATA" outfile=/scratch/kocevski/160526/ltcube_447206401_447465601_4FGL_J1303.0+2434_daily_bin802.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/160526/ft2_4FGL_J1303.0+2434_daily_bin802.fits
.....................!
real 17.14
user 16.71
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/160526/ft1_filtered_4FGL_J1303.0+2434_daily_bin802.fits evtable="EVENTS" scfile=/scratch/kocevski/160526/ft2_4FGL_J1303.0+2434_daily_bin802.fits sctable="SC_DATA" expcube=/scratch/kocevski/160526/ltcube_447206401_447465601_4FGL_J1303.0+2434_daily_bin802.fits outfile=/scratch/kocevski/160526/expmap_447206401_447465601_4FGL_J1303.0+2434_daily_bin802.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/160526/ltcube_447206401_447465601_4FGL_J1303.0+2434_daily_bin802.fits
.....................!
real 193.48
user 187.05
sys 5.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/160526/ft1_filtered_4FGL_J1303.0+2434_daily_bin802.fits scfile=/scratch/kocevski/160526/ft2_4FGL_J1303.0+2434_daily_bin802.fits outfile=/scratch/kocevski/160526/cmap_447206401_447465601_4FGL_J1303.0+2434_daily_bin802.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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/160526/ft1_filtered_4FGL_J1303.0+2434_daily_bin802.fits scfile=/scratch/kocevski/160526/ft2_4FGL_J1303.0+2434_daily_bin802.fits outfile=/scratch/kocevski/160526/cmap_HighResolution_447206401_447465601_4FGL_J1303.0+2434_daily_bin802.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=195.757 yref=24.5821 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8782       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7517       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.5893       1.0000         .10000E-03   10000.    
     5 'norm      '    .73440       1.0000         .10000E-03   10000.    
     6 'norm      '    59.041       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.661       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11080E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1462       1.0000         .10000E-03   10000.    
    10 'norm      '    3.7132       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.1823       1.0000         .10000E-03   10000.    
    14 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.724       1.0000         .10000E-03   10000.    
    16 'norm      '    .74114E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10180E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.0903       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1937       1.0000         .10000E-03   10000.    
    20 'norm      '    4.2246       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.9447       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.7154       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.6765       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .38283       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=   6115.959     FROM MIGRAD    STATUS=CONVERGED    646 CALLS     2800 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8777        3.2306       -.17544E-08   -.75208E-05
   2  Prefactor     1.7517        1.6988       -.37817E-07    .16816E-04
   3  Prefactor     .10000E-03    .75471        .30232E-08** at limit **
   4  Prefactor     6.5910        5.6768       -.31505E-06   -.80532E-04
   5  norm          .73441        .29834       -.25472E-08   -.46336E-04
   6  norm          59.045        9.9260        .39668E-07    .34718E-04
   7  Prefactor     16.662        10.552        .28892E-08    .12432E-04
   8  Prefactor     .10000E-03    54.383        .47844E-06** at limit **
   9  Prefactor     2.1457        4.8775        .30746E-06   -.55179E-04
  10  norm          3.7100        3.8158        .10815E-05   -.46411E-03
  11  Prefactor     .10000E-03    11.697        .91649E-07** at limit **
  12  Prefactor     .10000E-03    13.976       -.14581E-05** at limit **
  13  norm          2.1814        2.6063       -.12743E-07   -.43494E-05
  14  norm          .10000E-03    2.0142        .94011E-08** at limit **
  15  norm          10.741        4.8240        .17000E-06    .66284E-03
  16  norm          .10001E-03    7.2739        .16021E-06** at limit **
  17  norm          .10000E-03    7.8900       -.20972E-06** at limit **
  18  Prefactor     3.0936        5.4947       -.85090E-06   -.25477E-03
  19  Prefactor     2.1898        44.953       -.36782E-06   -.13211E-04
  20  norm          4.2285        7.4995        .27216E-07   -.36157E-04
  21  Prefactor     .10000E-03    12.427        .13541E-05** at limit **
  22  Prefactor     .10000E-03    31.762        .86519E-06** at limit **
  23  norm          7.9493        10.052        .41446E-07    .88810E-06
  24  Prefactor     .10000E-03    5.0981        .17688E-06** at limit **
  25  Prefactor     3.6777        23.677       -.52317E-05   -.82079E-04
  26  Normalizat    1.6760        .20518        .40757E-06   -.45230E-05
  27  Prefactor     .38333        .19880       -.72841E-06    .19197E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.87768
  Prefactor  = 1.75171
  Prefactor  = 0.0001
  Prefactor  = 6.591
  norm       = 0.734408
  norm       = 59.0452
  Prefactor  = 16.6618
  Prefactor  = 0.0001
  Prefactor  = 2.14568
  norm       = 3.70996
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.18135
  norm       = 0.0001
  norm       = 10.741
  norm       = 0.000100006
  norm       = 0.0001
  Prefactor  = 3.09362
  Prefactor  = 2.18976
  norm       = 4.22852
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.94928
  Prefactor  = 0.0001
  Prefactor  = 3.67772
  Normalizat = 1.67603
  Prefactor  = 0.383333
 **********
 **   18 **HESSE 
 **********

 FCN=   6115.959     FROM HESSE     STATUS=OK           494 CALLS     3294 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8777        3.2239        .10884E-03   -1.5266    
   2  Prefactor     1.7517        1.7123        .95742E-04   -1.5443    
   3  Prefactor     .10000E-03    .76337        .66297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.5910        5.6789        .15633E-03   -1.5194    
   5  norm          .73441        .29713        .25982E-04   -1.5537    
   6  norm          59.045        9.9386        .52214E-04   -1.4170    
   7  Prefactor     16.662        10.560        .98122E-04   -1.4891    
   8  Prefactor     .10000E-03    54.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.1457        4.8648        .25208E-03   -1.5415    
  10  norm          3.7100        4.3203        .84150E-03   -1.5323    
  11  Prefactor     .10000E-03    11.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.1814        2.6010        .13387E-03   -1.5413    
  14  norm          .10000E-03    2.0215        .10838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.741        4.5998        .10190E-03   -1.5052    
  16  norm          .10001E-03    19.387        .35777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.8958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.0936        5.1676        .17275E-03   -1.5356    
  19  Prefactor     2.1898        38.181        .27784E-03   -1.5412    
  20  norm          4.2285        7.4379        .19605E-03   -1.5297    
  21  Prefactor     .10000E-03    12.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    31.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.9493        9.9750        .14225E-03   -1.5144    
  24  Prefactor     .10000E-03    5.1136        .17255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.6777        24.416        .20950E-03   -1.5324    
  26  Normalizat    1.6760        .22740        .21566E-03   -.72945    
  27  Prefactor     .38333        .21470        .42358E-03   -1.1767    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.35537e-10
Minuit parameter uncertainties:
  1  3.224
  2  1.71234
  3  9.54728e-08
  4  5.67932
  5  0.297128
  6  9.93886
  7  10.5612
  8  5.75755e-06
  9  4.86572
  10  4.32063
  11  6.6755e-07
  12  9.1564e-05
  13  2.60111
  14  2.33862e-06
  15  4.59995
  16  0.000699632
  17  7.52129e-06
  18  5.1683
  19  18.3006
  20  7.43951
  21  6.50697e-05
  22  9.99042e-05
  23  9.97707
  24  1.73113e-05
  25  18.963
  26  0.227539
  27  0.215153
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  2.181e+00  2.601e+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:  3.833e-01  2.152e-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.676e+00  2.275e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.65
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 1.48e-08 +/- 1.76e-08
Energy Flux (Fixed Index): 7.67e-06 +/- 9.15e-06

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

Saving results to:
/scratch/kocevski/160526/likelihoodResults_447206401_447465601_4FGL_J1303.0+2434_daily_bin802.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) = 6115.83221445
delta logL = 0.126950598327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6115.82272978
delta logL = 0.136435268974

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8327       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5164       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6852       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .37840       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=   6115.823     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      206 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8335        2.1984        .77063E-02   -.86448E-04
   2  alpha         1.5165        .68577        .46150       -.31519E-04
   3  Normalizat    1.6855        .19536        .48672E-01   -.54342E-05
   4  Prefactor     .37803        .19729        .96150E-01    .48957E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.83348
  alpha      = 1.51647
  Normalizat = 1.68551
  Prefactor  = 0.378031
 **********
 **   18 **HESSE 
 **********

 FCN=   6115.823     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8335        2.4820        .12286E-03   -1.5437    
   2  alpha         1.5165        .92173        .22889E-01   -.40434    
   3  Normalizat    1.6855        .20978        .21515E-03   -.72691    
   4  Prefactor     .37803        .21113        .42632E-03   -1.1794    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71569e-09
Minuit parameter uncertainties:
  1  2.48215
  2  0.948412
  3  0.20989
  4  0.211561
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/160526': 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) = 6115.82272816
delta logL = 0.136436882553

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.833e+00  2.482e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  1.516e+00  9.484e-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:  3.780e-01  2.116e-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.686e+00  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.92
Ra Dec: 195.757 24.582
Photon Index (Free Index): 1.52 +/- 0.95
Photon Flux (Free Index): 7.64e-09 +/- 1.26e-08
Energy Flux (Free Index): 1.31e-05 +/- 2.34e-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/160526/cmap_HighResolution_447206401_447465601_4FGL_J1303.0+2434_daily_bin802.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.57e-05', comment='SUCCESS', photon_flux='1.48e-08', energy_flux2='1.31e-05', photon_flux_error='1.76e-08', dlogl='1.36e-01', energy_flux='7.67e-06', photon_flux2='7.64e-09', job_status='DONE', time_completed='2021-09-06 18:23:23.965507', photon_index_error2='0.95', photon_index2='1.52', ts='1.65', fit_tolerance='1e-08', GAL='0.38', photon_index_error='0.00', photon_flux_upper_limit='6.88e-08', energy_flux_error2='2.34e-05', EG='1.68', time_epoch_completed='1630977803.97', return_code='0', job_id='160526', GAL2='0.38', EG2='1.69', return_code2='0', energy_flux_error='9.15e-06', photon_flux_error2='1.26e-08', ts2='1.92', photon_index='2.07' WHERE bin_id='802' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:23:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 160526: <4FGL_J1303.0+2434_daily_bin802> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin802> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Sep  6 18:10:23 2021
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 18:10:45 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:10:45 2021
Terminated at Mon Sep  6 18:23:24 2021
Results reported at Mon Sep  6 18:23:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin802 195.757 24.5821 447206401 447465601 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 :                                   738.51 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            781 sec.

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

