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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1002
RA = 195.757, Dec = 24.5821
tmin = 499046401, tmax = 499305601
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='161961', job_status='RUN', time_executed='2021-09-06 18:17:40.362137', time_epoch_executed='1630977460.36' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1002'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/161961

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/161961/ft1_4FGL_J1303.0+2434_daily_bin1002.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/161961/ft2_4FGL_J1303.0+2434_daily_bin1002.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/161961/ft1_4FGL_J1303.0+2434_daily_bin1002.fits outfile=/scratch/kocevski/161961/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1002.fits ra=195.757 dec=24.5821 rad=12.0 tmin=499046401.0 tmax=499305601.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.36
user 4.07
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/161961/ft1_filtered_4FGL_J1303.0+2434_daily_bin1002.fits evtable="EVENTS" scfile=/scratch/kocevski/161961/ft2_4FGL_J1303.0+2434_daily_bin1002.fits sctable="SC_DATA" expcube=/scratch/kocevski/161961/ltcube_499046401_499305601_4FGL_J1303.0+2434_daily_bin1002.fits outfile=/scratch/kocevski/161961/expmap_499046401_499305601_4FGL_J1303.0+2434_daily_bin1002.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/161961/ltcube_499046401_499305601_4FGL_J1303.0+2434_daily_bin1002.fits
.....................!
real 192.84
user 188.19
sys 4.07

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/161961/ft1_filtered_4FGL_J1303.0+2434_daily_bin1002.fits scfile=/scratch/kocevski/161961/ft2_4FGL_J1303.0+2434_daily_bin1002.fits outfile=/scratch/kocevski/161961/cmap_499046401_499305601_4FGL_J1303.0+2434_daily_bin1002.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/161961/ft1_filtered_4FGL_J1303.0+2434_daily_bin1002.fits scfile=/scratch/kocevski/161961/ft2_4FGL_J1303.0+2434_daily_bin1002.fits outfile=/scratch/kocevski/161961/cmap_HighResolution_499046401_499305601_4FGL_J1303.0+2434_daily_bin1002.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.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4764       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5442       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .61912E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.044       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.2807       1.0000         .10000E-03   10000.    
    10 'norm      '    .12596E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.481       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.563       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8963       1.0000         .10000E-03   10000.    
    14 'norm      '    .10722E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11817E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    16.841       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.2670       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .74949E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.078       1.0000         .10000E-03   10000.    
    22 'Prefactor '    43.665       1.0000         .10000E-03   10000.    
    23 'norm      '    2.3208       1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.806       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.2539       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .80523       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2441       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=   4944.458     FROM MIGRAD    STATUS=CONVERGED    672 CALLS     3538 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4767        4.2621       -.86199E-07    .18163E-03
   2  Prefactor     .10000E-03    1.5410        .73692E-07** at limit **
   3  Prefactor     1.5443        2.2192        .67376E-07   -.16894E-04
   4  Prefactor     .10000E-03    4.9616       -.84050E-08** at limit **
   5  norm          .61958E-01    .20315        .49640E-07   -.36049E-03
   6  norm          .10000E-03    1.6798        .21094E-08** at limit **
   7  Prefactor     .10000E-03    5.7637       -.97575E-07** at limit **
   8  Prefactor     32.018        59.264        .25895E-05   -.77768E-04
   9  Prefactor     3.2815        9.0969        .29785E-05   -.13241E-03
  10  norm          .10000E-03    6.6262       -.23253E-05** at limit **
  11  Prefactor     13.483        20.567        .24720E-06   -.27560E-04
  12  Prefactor     16.528        29.664        .35343E-05    .62313E-04
  13  norm          1.8962        2.2093       -.71100E-07   -.50599E-04
  14  norm          .10002E-03    7.0283       -.12378E-05** at limit **
  15  norm          .10000E-03    1.9454       -.81397E-06** at limit **
  16  norm          .10000E-03    4.3635        .30483E-06** at limit **
  17  norm          16.841        19.356       -.21386E-06   -.14595E-03
  18  Prefactor     1.2684        4.9657        .91209E-07    .25146E-03
  19  Prefactor     .10000E-03    6.3924        .23088E-06** at limit **
  20  norm          .10011E-03    7.0249        .16687E-05** at limit **
  21  Prefactor     32.088        42.734       -.52995E-06    .55429E-04
  22  Prefactor     43.669        81.954        .37106E-06    .55175E-04
  23  norm          2.3286        12.786       -.16940E-05   -.31957E-03
  24  Prefactor     18.808        19.510        .21883E-06   -.10726E-05
  25  Prefactor     7.2587        26.996       -.23414E-07   -.76513E-05
  26  Normalizat    .80503        .20655        .31724E-06   -.23282E-04
  27  Prefactor     1.2443        .20921       -.10008E-05   -.37596E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.47667
  Prefactor  = 0.0001
  Prefactor  = 1.54433
  Prefactor  = 0.0001
  norm       = 0.0619578
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.0177
  Prefactor  = 3.28152
  norm       = 0.000100001
  Prefactor  = 13.4834
  Prefactor  = 16.528
  norm       = 1.89624
  norm       = 0.000100019
  norm       = 0.0001
  norm       = 0.000100005
  norm       = 16.8412
  Prefactor  = 1.26841
  Prefactor  = 0.0001
  norm       = 0.000100113
  Prefactor  = 32.0879
  Prefactor  = 43.6693
  norm       = 2.32858
  Prefactor  = 18.8078
  Prefactor  = 7.25872
  Normalizat = 0.805034
  Prefactor  = 1.2443
 **********
 **   18 **HESSE 
 **********

 FCN=   4944.458     FROM HESSE     STATUS=OK           506 CALLS     4044 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4767        4.2481        .98381E-04   -1.5126    
   2  Prefactor     .10000E-03    1.5758        .17011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.5443        2.1891        .11936E-03   -1.5459    
   4  Prefactor     .10000E-03    5.0364        .15288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .61958E-01    .25642        .52842E-03   -1.5658    
   6  norm          .10000E-03    1.6835        .88984E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.7826        .16484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     32.018        58.735        .70784E-04   -1.4576    
   9  Prefactor     3.2815        9.1260        .11178E-02   -1.5346    
  10  norm          .10000E-03    7.0937        .35710E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.483        20.544        .10909E-03   -1.4973    
  12  Prefactor     16.528        29.951        .98411E-04   -1.4895    
  13  norm          1.8962        2.2067        .54868E-03   -1.5433    
  14  norm          .10002E-03    38.054        .32831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.8581        .17987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.9883        .47936E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          16.841        19.191        .97597E-04   -1.4887    
  18  Prefactor     1.2684        4.5899        .24085E-03   -1.5483    
  19  Prefactor     .10000E-03    6.3915        .17344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10011E-03    56.162        .28719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     32.088        42.743        .70747E-04   -1.4574    
  22  Prefactor     43.669        79.647        .60670E-04   -1.4385    
  23  norm          2.3286        9.6167        .26925E-03   -1.5403    
  24  Prefactor     18.808        19.436        .92358E-04   -1.4840    
  25  Prefactor     7.2587        26.867        .14893E-03   -1.5169    
  26  Normalizat    .80503        .24109        .26824E-03   -.99882    
  27  Prefactor     1.2443        .24646        .23745E-03   -.84979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23122e-08
Minuit parameter uncertainties:
  1  4.24827
  2  2.70779e-06
  3  2.18918
  4  2.73509e-07
  5  0.251889
  6  4.05227e-07
  7  6.87354e-06
  8  58.8409
  9  9.12991
  10  0.000164534
  11  20.5545
  12  29.9784
  13  2.2068
  14  0.00171827
  15  6.27612e-06
  16  0.000276853
  17  19.1983
  18  4.59119
  19  1.80441e-05
  20  0.0050398
  21  42.7834
  22  79.8425
  23  9.46673
  24  19.4422
  25  26.9116
  26  0.241412
  27  0.246692
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.896e+00  2.207e+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.244e+00  2.467e-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:  8.050e-01  2.414e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.95
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 1.29e-08 +/- 1.50e-08
Energy Flux (Fixed Index): 6.67e-06 +/- 7.76e-06

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

Saving results to:
/scratch/kocevski/161961/likelihoodResults_499046401_499305601_4FGL_J1303.0+2434_daily_bin1002.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) = 4944.14205
delta logL = 0.315520717497

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4944.14157924
delta logL = 0.315991475512

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8935       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4399       1.0000          .0000       5.0000    
     3 'Normalizat'    .81020       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2412       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=   4944.142     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      191 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8790        2.1744        .75586E-02   -.37225E-03
   2  alpha         1.4374        .59826        .46793       -.51313E-04
   3  Normalizat    .81020        .18792        .43743E-01    .96130E-04
   4  Prefactor     1.2412        .20308        .53752E-01    .54443E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.879
  alpha      = 1.43744
  Normalizat = 0.8102
  Prefactor  = 1.24125
 **********
 **   18 **HESSE 
 **********

 FCN=   4944.142     FROM HESSE     STATUS=OK            31 CALLS      222 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8790        2.2548        .10395E-03   -1.5434    
   2  alpha         1.4374        .72708        .17533E-01   -.43899    
   3  Normalizat    .81020        .22213        .26743E-03   -.99691    
   4  Prefactor     1.2412        .24017        .23766E-03   -.85071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12651e-10
Minuit parameter uncertainties:
  1  2.25493
  2  0.74021
  3  0.222381
  4  0.240382
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/161961': 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) = 4944.14155899
delta logL = 0.316011726099

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.879e+00  2.255e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  1.437e+00  7.402e-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.241e+00  2.404e-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:  8.102e-01  2.224e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.58
Ra Dec: 195.757 24.582
Photon Index (Free Index): 1.44 +/- 0.74
Photon Flux (Free Index): 7.56e-09 +/- 1.01e-08
Energy Flux (Free Index): 1.60e-05 +/- 2.66e-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/161961/cmap_HighResolution_499046401_499305601_4FGL_J1303.0+2434_daily_bin1002.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.23e-05', comment='SUCCESS', photon_flux='1.29e-08', energy_flux2='1.60e-05', photon_flux_error='1.50e-08', dlogl='3.16e-01', energy_flux='6.67e-06', photon_flux2='7.56e-09', job_status='DONE', time_completed='2021-09-06 18:29:10.117322', photon_index_error2='0.74', photon_index2='1.44', ts='1.95', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='6.24e-08', energy_flux_error2='2.66e-05', EG='0.81', time_epoch_completed='1630978150.12', return_code='0', job_id='161961', GAL2='1.24', EG2='0.81', return_code2='0', energy_flux_error='7.76e-06', photon_flux_error2='1.01e-08', ts2='2.58', photon_index='2.07' WHERE bin_id='1002' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:29:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 161961: <4FGL_J1303.0+2434_daily_bin1002> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1002 195.757 24.5821 499046401 499305601 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 :                                   683.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            826 sec.

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

