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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1155
RA = 195.757, Dec = 24.5821
tmin = 538704001, tmax = 538963201
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='162202', job_status='RUN', time_executed='2021-09-06 18:20:06.732728', time_epoch_executed='1630977606.73' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1155'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/162202

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/162202/ft1_4FGL_J1303.0+2434_daily_bin1155.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/162202/ft2_4FGL_J1303.0+2434_daily_bin1155.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/162202/ft1_4FGL_J1303.0+2434_daily_bin1155.fits outfile=/scratch/kocevski/162202/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1155.fits ra=195.757 dec=24.5821 rad=12.0 tmin=538704001.0 tmax=538963201.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.54
user 3.31
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/162202/ft1_filtered_4FGL_J1303.0+2434_daily_bin1155.fits" evtable="EVENTS" scfile=/scratch/kocevski/162202/ft2_4FGL_J1303.0+2434_daily_bin1155.fits sctable="SC_DATA" outfile=/scratch/kocevski/162202/ltcube_538704001_538963201_4FGL_J1303.0+2434_daily_bin1155.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/162202/ft2_4FGL_J1303.0+2434_daily_bin1155.fits
.....................!
real 16.81
user 16.36
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/162202/ft1_filtered_4FGL_J1303.0+2434_daily_bin1155.fits evtable="EVENTS" scfile=/scratch/kocevski/162202/ft2_4FGL_J1303.0+2434_daily_bin1155.fits sctable="SC_DATA" expcube=/scratch/kocevski/162202/ltcube_538704001_538963201_4FGL_J1303.0+2434_daily_bin1155.fits outfile=/scratch/kocevski/162202/expmap_538704001_538963201_4FGL_J1303.0+2434_daily_bin1155.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/162202/ltcube_538704001_538963201_4FGL_J1303.0+2434_daily_bin1155.fits
.....................!
real 191.64
user 187.01
sys 4.02

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/162202/ft1_filtered_4FGL_J1303.0+2434_daily_bin1155.fits scfile=/scratch/kocevski/162202/ft2_4FGL_J1303.0+2434_daily_bin1155.fits outfile=/scratch/kocevski/162202/cmap_538704001_538963201_4FGL_J1303.0+2434_daily_bin1155.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.59
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/162202/ft1_filtered_4FGL_J1303.0+2434_daily_bin1155.fits scfile=/scratch/kocevski/162202/ft2_4FGL_J1303.0+2434_daily_bin1155.fits outfile=/scratch/kocevski/162202/cmap_HighResolution_538704001_538963201_4FGL_J1303.0+2434_daily_bin1155.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.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/162202/ft1_filtered_4FGL_J1303.0+2434_daily_bin1155.fits', '/scratch/kocevski/162202/ft2_4FGL_J1303.0+2434_daily_bin1155.fits', expMap='/scratch/kocevski/162202/expmap_538704001_538963201_4FGL_J1303.0+2434_daily_bin1155.fits', expCube='/scratch/kocevski/162202/ltcube_538704001_538963201_4FGL_J1303.0+2434_daily_bin1155.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/162202/Model_4FGL_J1303.0+2434_daily_bin1155.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/162202/ft1_filtered_4FGL_J1303.0+2434_daily_bin1155.fits
Spacecraft file(s): /scratch/kocevski/162202/ft2_4FGL_J1303.0+2434_daily_bin1155.fits
Exposure map: /scratch/kocevski/162202/expmap_538704001_538963201_4FGL_J1303.0+2434_daily_bin1155.fits
Exposure cube: /scratch/kocevski/162202/ltcube_538704001_538963201_4FGL_J1303.0+2434_daily_bin1155.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/162202/Model_4FGL_J1303.0+2434_daily_bin1155.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5766.28806588

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4047       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4026       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .91666       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .39663       1.0000         .10000E-03   10000.    
     5 'norm      '    .17194       1.0000         .10000E-03   10000.    
     6 'norm      '    3.9463       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.156       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10418E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.8151       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.3773       1.0000         .10000E-03   10000.    
    14 'norm      '    5.8704       1.0000         .10000E-03   10000.    
    15 'norm      '    .55296       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0360       1.0000         .10000E-03   10000.    
    17 'norm      '    .49904E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2621       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 '    32.064       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10497E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    18.120       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .84209       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1836       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=   5766.283     FROM MIGRAD    STATUS=CONVERGED    661 CALLS     3814 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4046        3.0281        .20233E-06    .15900E-03
   2  Prefactor     2.4026        2.1041       -.60899E-07    .37414E-04
   3  Prefactor     .91630        1.8533       -.54422E-06   -.21415E-03
   4  Prefactor     .39746        4.4943       -.24496E-06   -.28872E-03
   5  norm          .17193        .17285       -.34300E-07   -.61831E-03
   6  norm          3.9463        3.9631        .11939E-05    .49643E-03
   7  Prefactor     17.154        10.617        .17068E-06    .76113E-04
   8  Prefactor     .10000E-03    30.116        .14649E-05** at limit **
   9  Prefactor     .10000E-03    11.160       -.28223E-06** at limit **
  10  norm          .10000E-03    1.1074        .32326E-08** at limit **
  11  Prefactor     9.8108        15.679       -.16505E-05   -.45002E-04
  12  Prefactor     .10000E-03    7.4167       -.22155E-06** at limit **
  13  norm          7.3776        4.0420       -.27698E-06   -.15424E-03
  14  norm          5.8704        5.2520       -.13986E-06   -.16688E-04
  15  norm          .54279        7.7288        .57429E-07    .64813E-04
  16  norm          1.0542        15.349       -.31804E-05    .22642E-03
  17  norm          .10001E-03    64.743        .19225E-04** at limit **
  18  Prefactor     3.2615        2.7207       -.10342E-06   -.20386E-03
  19  Prefactor     .10000E-03    4.2117       -.91050E-06** at limit **
  20  norm          .10000E-03    2.2927       -.10664E-07** at limit **
  21  Prefactor     32.074        35.433       -.43806E-05   -.14017E-03
  22  Prefactor     .10000E-03    94.740        .77432E-05** at limit **
  23  norm          18.119        9.0770       -.67324E-07    .40446E-05
  24  Prefactor     .10000E-03    4.1541        .90482E-06** at limit **
  25  Prefactor     .10000E-03    5.6192        .70261E-07** at limit **
  26  Normalizat    .84244        .17710        .43900E-06   -.58240E-04
  27  Prefactor     1.1833        .19153        .54225E-06   -.12047E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.40457
  Prefactor  = 2.40262
  Prefactor  = 0.916297
  Prefactor  = 0.397456
  norm       = 0.171929
  norm       = 3.94629
  Prefactor  = 17.1539
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.81082
  Prefactor  = 0.0001
  norm       = 7.37761
  norm       = 5.87037
  norm       = 0.542792
  norm       = 1.05423
  norm       = 0.000100006
  Prefactor  = 3.26149
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 32.074
  Prefactor  = 0.000100002
  norm       = 18.1186
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.842441
  Prefactor  = 1.18327
 **********
 **   18 **HESSE 
 **********

 FCN=   5766.283     FROM HESSE     STATUS=OK           498 CALLS     4312 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4046        3.0294        .10207E-03   -1.5288    
   2  Prefactor     2.4026        2.1056        .96317E-04   -1.5398    
   3  Prefactor     .91630        1.7194        .13892E-02   -1.5517    
   4  Prefactor     .39746        10.554        .29747E-02   -1.5582    
   5  norm          .17193        .16203        .30266E-03   -1.5625    
   6  norm          3.9463        3.9930        .14397E-03   -1.5311    
   7  Prefactor     17.154        10.593        .96696E-04   -1.4879    
   8  Prefactor     .10000E-03    30.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.601        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.1106        .78018E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.8108        15.706        .12791E-03   -1.5081    
  12  Prefactor     .10000E-03    7.4287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.3776        4.0436        .10864E-03   -1.5165    
  14  norm          5.8704        5.2468        .15830E-03   -1.5223    
  15  norm          .54279        42.824        .20764E-02   -1.5561    
  16  norm          1.0542        55.403        .31281E-03   -1.5503    
  17  norm          .10001E-03    64.733        .46884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.2615        2.7177        .10841E-03   -1.5347    
  19  Prefactor     .10000E-03    4.2328        .15241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.3003        .11221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     32.074        35.923        .70762E-04   -1.4575    
  22  Prefactor     .10000E-03    96.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          18.119        9.0729        .94090E-04   -1.4856    
  24  Prefactor     .10000E-03    4.1806        .15130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.6279        .17580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .84244        .21139        .25259E-03   -.98513    
  27  Prefactor     1.1833        .22780        .24404E-03   -.86848    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.49053e-09
Minuit parameter uncertainties:
  1  3.02954
  2  2.10567
  3  1.71951
  4  4.09649
  5  0.162027
  6  3.99329
  7  10.5944
  8  8.51671e-05
  9  2.66584e-05
  10  8.37853e-07
  11  15.7122
  12  1.28822e-05
  13  4.04371
  14  5.24725
  15  9.64882
  16  15.2992
  17  0.00122693
  18  2.71782
  19  2.62686e-05
  20  8.08912e-07
  21  35.9473
  22  0.00078455
  23  9.07359
  24  1.91401e-05
  25  1.90269e-06
  26  0.211602
  27  0.227994
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  7.378e+00  4.044e+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.183e+00  2.280e-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.424e-01  2.116e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.94
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 5.00e-08 +/- 2.74e-08
Energy Flux (Fixed Index): 2.59e-05 +/- 1.42e-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) = 5766.15530724
delta logL = 0.12764978803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5766.15303912
delta logL = 0.129917909988

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7032       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3489       1.0000          .0000       5.0000    
     3 'Normalizat'    .82051       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1982       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=   5766.153     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      299 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7054        4.1193        .96034E-04    .10678E-02
   2  alpha         2.3494        .56689        .11038E-01    .10166E-03
   3  Normalizat    .82049        .20438        .25555E-03    .97695E-04
   4  Prefactor     1.1981        .22617        .24270E-03   -.64782E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.70535
  alpha      = 2.34944
  Normalizat = 0.82049
  Prefactor  = 1.19815
 **********
 **   18 **HESSE 
 **********

 FCN=   5766.153     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7054        4.0080        .38413E-05   -1.5190    
   2  alpha         2.3494        .55119        .44151E-03   -.60262E-01
   3  Normalizat    .82049        .20434        .10222E-04   -.99313    
   4  Prefactor     1.1981        .22624        .97081E-05   -.86388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00072e-10
Minuit parameter uncertainties:
  1  4.00817
  2  0.55577
  3  0.204536
  4  0.226428
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/162202': 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) = 5766.15303775
delta logL = 0.129919277661

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  6.705e+00  4.008e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.349e+00  5.558e-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.198e+00  2.264e-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.205e-01  2.045e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.18
Ra Dec: 195.757 24.582
Photon Index (Free Index): 2.35 +/- 0.56
Photon Flux (Free Index): 6.51e-08 +/- 4.39e-08
Energy Flux (Free Index): 2.28e-05 +/- 1.25e-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/162202/cmap_HighResolution_538704001_538963201_4FGL_J1303.0+2434_daily_bin1155.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.00e-08', energy_flux2='2.28e-05', photon_flux_error='2.74e-08', dlogl='1.30e-01', energy_flux='2.59e-05', photon_flux2='6.51e-08', job_status='DONE', time_completed='2021-09-06 18:31:45.919042', photon_index_error2='0.56', photon_index2='2.35', ts='8.94', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='1.25e-05', EG='0.84', time_epoch_completed='1630978305.92', return_code='0', job_id='162202', GAL2='1.20', EG2='0.82', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='4.39e-08', ts2='9.18', photon_index='2.07' WHERE bin_id='1155' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:31:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 162202: <4FGL_J1303.0+2434_daily_bin1155> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1155 195.757 24.5821 538704001 538963201 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 :                                   694.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             239.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            960 sec.

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

