/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 148 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 = 7316
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1303.0+2434_daily_bin26
RA = 195.757, Dec = 24.5821
tmin = 246067201, tmax = 246326401
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='152114', job_status='RUN', time_executed='2021-09-06 17:43:26.581326', time_epoch_executed='1630975406.58' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='26'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152114

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152114/ft1_4FGL_J1303.0+2434_daily_bin26.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152114/ft2_4FGL_J1303.0+2434_daily_bin26.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152114/ft1_4FGL_J1303.0+2434_daily_bin26.fits outfile=/scratch/kocevski/152114/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin26.fits ra=195.757 dec=24.5821 rad=12.0 tmin=246067201.0 tmax=246326401.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 1.48
user 1.28
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152114/ft1_filtered_4FGL_J1303.0+2434_daily_bin26.fits evtable="EVENTS" scfile=/scratch/kocevski/152114/ft2_4FGL_J1303.0+2434_daily_bin26.fits sctable="SC_DATA" expcube=/scratch/kocevski/152114/ltcube_246067201_246326401_4FGL_J1303.0+2434_daily_bin26.fits outfile=/scratch/kocevski/152114/expmap_246067201_246326401_4FGL_J1303.0+2434_daily_bin26.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/152114/ltcube_246067201_246326401_4FGL_J1303.0+2434_daily_bin26.fits
.....................!
real 191.41
user 185.36
sys 5.66

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/152114/ft1_filtered_4FGL_J1303.0+2434_daily_bin26.fits scfile=/scratch/kocevski/152114/ft2_4FGL_J1303.0+2434_daily_bin26.fits outfile=/scratch/kocevski/152114/cmap_246067201_246326401_4FGL_J1303.0+2434_daily_bin26.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/152114/ft1_filtered_4FGL_J1303.0+2434_daily_bin26.fits scfile=/scratch/kocevski/152114/ft2_4FGL_J1303.0+2434_daily_bin26.fits outfile=/scratch/kocevski/152114/cmap_HighResolution_246067201_246326401_4FGL_J1303.0+2434_daily_bin26.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3767       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.671       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .17462       1.0000         .10000E-03   10000.    
     6 'norm      '    3.0335       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6003       1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.502       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7446       1.0000         .10000E-03   10000.    
    10 'norm      '    2.7488       1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.916       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15038E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    17.587       1.0000         .10000E-03   10000.    
    14 'norm      '    .13901E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    28.940       1.0000         .10000E-03   10000.    
    16 'norm      '    12.801       1.0000         .10000E-03   10000.    
    17 'norm      '    11.795       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .72214       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .16297E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .22217E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .33674E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11736E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .13419E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1868       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1916       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9726.350     FROM MIGRAD    STATUS=CONVERGED    154 CALLS     2815 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3781        2.9217       -.37346E-07    .30281E-03
   2  Prefactor     .10000E-03    1.8125       -.14570E-06** at limit **
   3  Prefactor     10.671        2.8020        .28445E-07    .42645E-03
   4  Prefactor     .10000E-03    2.7259        .13159E-06** at limit **
   5  norm          .17459        .14522       -.17266E-06    .19690E-02
   6  norm          3.0357        3.2216       -.23514E-06   -.87834E-04
   7  Prefactor     4.6008        2.1136       -.72537E-05   -.46825E-02
   8  Prefactor     36.038        68.192       -.39495E-04    .22877E-03
   9  Prefactor     1.7438        4.3858        .39044E-05    .79563E-04
  10  norm          2.7525        3.5026        .15628E-05    .25640E-03
  11  Prefactor     25.860        6.4025       -.52916E-05    .47528E-02
  12  Prefactor     .10000E-03    9.5951        .41064E-05** at limit **
  13  norm          17.585        4.8678       -.88359E-05   -.10029E-02
  14  norm          .10000E-03    30.755        .20646E-04** at limit **
  15  norm          28.885        7.8674       -.25194E-05   -.98691E-03
  16  norm          12.919        11.582        .43089E-05    .11619E-02
  17  norm          11.806        2.3364        .31049E-05   -.29340E-02
  18  Prefactor     .10000E-03    .89424        .48064E-06** at limit **
  19  Prefactor     .10000E-03    2.8627       -.48536E-06** at limit **
  20  norm          .72287        7.3656        .90712E-06   -.76802E-04
  21  Prefactor     .10001E-03    131.73        .35757E-04** at limit **
  22  Prefactor     .10000E-03    16.250        .14491E-05** at limit **
  23  norm          .10000E-03    30.436       -.10736E-03** at limit **
  24  Prefactor     .10000E-03    6.5142       -.17847E-05** at limit **
  25  Prefactor     .10000E-03    9.9136       -.48522E-05** at limit **
  26  Normalizat    1.1873        .19891        .10288E-04    .47992E-03
  27  Prefactor     1.1914        .20369       -.30257E-05    .42455E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.37806
  Prefactor  = 0.0001
  Prefactor  = 10.6714
  Prefactor  = 0.0001
  norm       = 0.174589
  norm       = 3.03571
  Prefactor  = 4.60076
  Prefactor  = 36.0379
  Prefactor  = 1.74376
  norm       = 2.75253
  Prefactor  = 25.8604
  Prefactor  = 0.0001
  norm       = 17.5853
  norm       = 0.000100005
  norm       = 28.8854
  norm       = 12.9191
  norm       = 11.8058
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.722873
  Prefactor  = 0.000100009
  Prefactor  = 0.000100001
  norm       = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.18725
  Prefactor  = 1.19141
 **********
 **   18 **HESSE 
 **********

 FCN=   9726.350     FROM HESSE     STATUS=OK           564 CALLS     3379 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3781        2.9653        .36918E-02   -1.5165    
   2  Prefactor     .10000E-03    .95120        .35846E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.671        2.8346        .30662E-02   -1.5055    
   4  Prefactor     .10000E-03    2.6998        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .17459        .15853        .75045E-02   -1.5624    
   6  norm          3.0357        3.2357        .58244E-02   -1.5359    
   7  Prefactor     4.6008        7.8999        .46916E-02   -1.5279    
   8  Prefactor     36.038        68.533        .16584E-02   -1.4507    
   9  Prefactor     1.7438        4.4148        .79388E-02   -1.5444    
  10  norm          2.7525        3.5295        .61386E-02   -1.5376    
  11  Prefactor     25.860        14.340        .19673E-02   -1.4690    
  12  Prefactor     .10000E-03    9.5921        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          17.585        4.8921        .23876E-02   -1.4869    
  14  norm          .10000E-03    2.7132        .58500E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          28.885        8.2369        .18619E-02   -1.4633    
  16  norm          12.919        12.632        .27990E-02   -1.4989    
  17  norm          11.806        16.445        .29160E-02   -1.5021    
  18  Prefactor     .10000E-03    .88827        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.8616        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .72287        9.5274        .12146E-01   -1.5538    
  21  Prefactor     .10001E-03    128.65        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.255        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    6.4378        .75563E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.4903        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.8907        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1873        .16681        .62396E-01   -.86998    
  27  Prefactor     1.1914        .16990        .66280E-01   -.86596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12711e-05
Minuit parameter uncertainties:
  1  2.96539
  2  1.11857e-05
  3  2.83459
  4  1.17508e-05
  5  0.158531
  6  3.2359
  7  7.90169
  8  68.6838
  9  4.41558
  10  3.5298
  11  14.3424
  12  8.27773e-06
  13  4.89221
  14  0.000229278
  15  8.23723
  16  12.6345
  17  16.4513
  18  1.28518e-05
  19  1.013e-05
  20  5.24932
  21  0.00214686
  22  0.000241211
  23  0.000221657
  24  0.000132143
  25  9.13044e-06
  26  0.166886
  27  0.169976
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.759e+01  4.892e+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.191e+00  1.700e-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.187e+00  1.669e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 50.18
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 1.19e-07 +/- 3.32e-08
Energy Flux (Fixed Index): 6.18e-05 +/- 1.72e-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) = 9726.33730172
delta logL = 0.0126425880899

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9726.3358555
delta logL = 0.0140888093174

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.395       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1131       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1802       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1957       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=   9726.336     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      205 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.395        65.858        .24008E-02   -.27297E-03
   2  alpha         2.1131        3.5559        .22813        .12158E-04
   3  Normalizat    1.1802        .29115        .62547E-01    .61422E-04
   4  Prefactor     1.1957        .19695        .66173E-01   -.31888E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.395
  alpha      = 2.11315
  Normalizat = 1.18023
  Prefactor  = 1.19573
 **********
 **   18 **HESSE 
 **********

 FCN=   9726.336     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.395        4.9720        .96030E-04   -1.4874    
   2  alpha         2.1131        .28258        .91467E-02   -.15537    
   3  Normalizat    1.1802        .19477        .27666E-03   -.87216    
   4  Prefactor     1.1957        .20351        .29271E-03   -.86463    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.57313e-11
Minuit parameter uncertainties:
  1  4.97208
  2  0.283199
  3  0.194889
  4  0.203648
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152114': 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) = 9726.33585549
delta logL = 0.0140888117185

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.739e+01  4.972e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.113e+00  2.832e-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.196e+00  2.036e-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.180e+00  1.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 49.99
Ra Dec: 195.757 24.582
Photon Index (Free Index): 2.11 +/- 0.28
Photon Flux (Free Index): 1.25e-07 +/- 4.69e-08
Energy Flux (Free Index): 6.00e-05 +/- 1.97e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/152114/cmap_HighResolution_246067201_246326401_4FGL_J1303.0+2434_daily_bin26.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.19e-07', energy_flux2='6.00e-05', photon_flux_error='3.32e-08', dlogl='1.41e-02', energy_flux='6.18e-05', photon_flux2='1.25e-07', job_status='DONE', time_completed='2021-09-06 17:56:59.854022', photon_index_error2='0.28', photon_index2='2.11', ts='50.18', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='1.97e-05', EG='1.19', time_epoch_completed='1630976219.85', return_code='0', job_id='152114', GAL2='1.20', EG2='1.18', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='4.69e-08', ts2='49.99', photon_index='2.07' WHERE bin_id='26' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 17:56:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 152114: <4FGL_J1303.0+2434_daily_bin26> in cluster <slac> Done

Job <4FGL_J1303.0+2434_daily_bin26> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 17:40:41 2021
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 17:40: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 17:40:42 2021
Terminated at Mon Sep  6 17:57:00 2021
Results reported at Mon Sep  6 17:57:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin26 195.757 24.5821 246067201 246326401 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 :                                   812.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            979 sec.

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

