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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1029
RA = 195.757, Dec = 24.5821
tmin = 506044801, tmax = 506304001
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='162003', job_status='RUN', time_executed='2021-09-06 18:18:48.074085', time_epoch_executed='1630977528.07' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1029'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/162003

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/162003/ft1_4FGL_J1303.0+2434_daily_bin1029.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/162003/ft2_4FGL_J1303.0+2434_daily_bin1029.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/162003/ft1_4FGL_J1303.0+2434_daily_bin1029.fits outfile=/scratch/kocevski/162003/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1029.fits ra=195.757 dec=24.5821 rad=12.0 tmin=506044801.0 tmax=506304001.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.31
user 4.08
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/162003/ft2_4FGL_J1303.0+2434_daily_bin1029.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/162003/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1029.fits evtable="EVENTS" outfile="/scratch/kocevski/162003/ft1_filtered_4FGL_J1303.0+2434_daily_bin1029.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/162003/ft1_filtered_4FGL_J1303.0+2434_daily_bin1029.fits" evtable="EVENTS" scfile=/scratch/kocevski/162003/ft2_4FGL_J1303.0+2434_daily_bin1029.fits sctable="SC_DATA" outfile=/scratch/kocevski/162003/ltcube_506044801_506304001_4FGL_J1303.0+2434_daily_bin1029.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/162003/ft2_4FGL_J1303.0+2434_daily_bin1029.fits
.....................!
real 14.91
user 14.53
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/162003/ft1_filtered_4FGL_J1303.0+2434_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/162003/ft2_4FGL_J1303.0+2434_daily_bin1029.fits sctable="SC_DATA" expcube=/scratch/kocevski/162003/ltcube_506044801_506304001_4FGL_J1303.0+2434_daily_bin1029.fits outfile=/scratch/kocevski/162003/expmap_506044801_506304001_4FGL_J1303.0+2434_daily_bin1029.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/162003/ltcube_506044801_506304001_4FGL_J1303.0+2434_daily_bin1029.fits
.....................!
real 191.48
user 186.81
sys 4.13

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/162003/ft1_filtered_4FGL_J1303.0+2434_daily_bin1029.fits scfile=/scratch/kocevski/162003/ft2_4FGL_J1303.0+2434_daily_bin1029.fits outfile=/scratch/kocevski/162003/cmap_506044801_506304001_4FGL_J1303.0+2434_daily_bin1029.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/162003/ft1_filtered_4FGL_J1303.0+2434_daily_bin1029.fits scfile=/scratch/kocevski/162003/ft2_4FGL_J1303.0+2434_daily_bin1029.fits outfile=/scratch/kocevski/162003/cmap_HighResolution_506044801_506304001_4FGL_J1303.0+2434_daily_bin1029.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.58
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.247       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .47863       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0753       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .34256       1.0000         .10000E-03   10000.    
     6 'norm      '    5.4724       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    49.631       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .82211       1.0000         .10000E-03   10000.    
    10 'norm      '    .28188E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.805       1.0000         .10000E-03   10000.    
    13 'norm      '    7.4172       1.0000         .10000E-03   10000.    
    14 'norm      '    10.289       1.0000         .10000E-03   10000.    
    15 'norm      '    .16267E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    25.805       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.4119       1.0000         .10000E-03   10000.    
    20 'norm      '    18.136       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    12.155       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .19531E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    53.089       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .65633       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3451       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=   5480.825     FROM MIGRAD    STATUS=CONVERGED    663 CALLS     3302 TOTAL
                     EDM=   .67E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.247        4.6973       -.52428E-07   -.61552E-04
   2  Prefactor     .47911        1.9336        .11537E-06    .59889E-04
   3  Prefactor     3.0752        2.0934       -.21232E-07   -.44453E-04
   4  Prefactor     .10000E-03    4.9755        .15032E-07** at limit **
   5  norm          .34261        .21346        .50308E-08    .85552E-04
   6  norm          5.4727        3.7311        .26840E-07   -.25620E-05
   7  Prefactor     .10000E-03    8.4311       -.13903E-07** at limit **
   8  Prefactor     49.636        65.520        .39679E-06   -.25379E-04
   9  Prefactor     .82372        10.463       -.17751E-05   -.80714E-05
  10  norm          .10000E-03    2.4831       -.98194E-07** at limit **
  11  Prefactor     .10000E-03    4.9741       -.11328E-07** at limit **
  12  Prefactor     10.804        18.482        .26819E-06   -.46102E-04
  13  norm          7.4178        4.2699        .22577E-07   -.85010E-04
  14  norm          10.289        5.7785        .22475E-07   -.38039E-04
  15  norm          .10000E-03    1.5632        .32075E-06** at limit **
  16  norm          .10000E-03    3.1751        .34066E-08** at limit **
  17  norm          25.806        17.807        .40124E-09   -.88170E-05
  18  Prefactor     .10000E-03    1.2965       -.93345E-08** at limit **
  19  Prefactor     7.4077        10.537       -.79779E-07   -.53631E-04
  20  norm          18.137        10.890        .21780E-06   -.32651E-04
  21  Prefactor     .10000E-03    21.588       -.31695E-07** at limit **
  22  Prefactor     .10000E-03    68.386       -.15035E-06** at limit **
  23  norm          12.157        13.081       -.41479E-06   -.49865E-04
  24  Prefactor     .10000E-03    61.782        .52542E-05** at limit **
  25  Prefactor     53.050        26.374       -.11772E-05   -.16878E-04
  26  Normalizat    .65612        .20007       -.21953E-05   -.14152E-03
  27  Prefactor     1.3452        .21582        .11518E-05   -.25429E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.2469
  Prefactor  = 0.47911
  Prefactor  = 3.07518
  Prefactor  = 0.0001
  norm       = 0.342609
  norm       = 5.47266
  Prefactor  = 0.0001
  Prefactor  = 49.636
  Prefactor  = 0.823722
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.8043
  norm       = 7.41778
  norm       = 10.2893
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 25.8055
  Prefactor  = 0.0001
  Prefactor  = 7.4077
  norm       = 18.1372
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.157
  Prefactor  = 0.0001
  Prefactor  = 53.0503
  Normalizat = 0.65612
  Prefactor  = 1.34517
 **********
 **   18 **HESSE 
 **********

 FCN=   5480.825     FROM HESSE     STATUS=OK           496 CALLS     3798 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.247        4.6487        .85765E-04   -1.4980    
   2  Prefactor     .47911        1.8814        .18852E-03   -1.5570    
   3  Prefactor     3.0752        2.0902        .84376E-04   -1.5357    
   4  Prefactor     .10000E-03    5.1025        .32229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .34261        .21207        .25873E-04   -1.5591    
   6  norm          5.4727        3.7300        .11421E-03   -1.5240    
   7  Prefactor     .10000E-03    8.6273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     49.636        65.054        .56923E-04   -1.4298    
   9  Prefactor     .82372        10.417        .44797E-03   -1.5526    
  10  norm          .10000E-03    10.687        .20861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.9932        .16124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.804        17.632        .12188E-03   -1.5050    
  13  norm          7.4178        4.2692        .11124E-03   -1.5163    
  14  norm          10.289        5.7747        .12491E-03   -1.5066    
  15  norm          .10000E-03    9.2295        .16983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.2080        .12863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          25.806        17.807        .78859E-04   -1.4692    
  18  Prefactor     .10000E-03    1.3189        .82084E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.4077        10.477        .14732E-03   -1.5164    
  20  norm          18.137        10.900        .94048E-04   -1.4856    
  21  Prefactor     .10000E-03    21.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    68.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          12.157        13.163        .57450E-03   -1.5010    
  24  Prefactor     .10000E-03    62.463        .47742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     53.050        26.725        .27524E-03   -1.4250    
  26  Normalizat    .65612        .22544        .29475E-03   -1.0565    
  27  Prefactor     1.3452        .24607        .24189E-03   -.81974    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22679e-10
Minuit parameter uncertainties:
  1  4.64887
  2  1.88163
  3  2.09022
  4  3.32902e-06
  5  0.212073
  6  3.73011
  7  1.90784e-05
  8  65.1468
  9  5.85952
  10  0.000151157
  11  6.13846e-06
  12  17.641
  13  4.26933
  14  5.77505
  15  0.000154963
  16  1.25004e-06
  17  17.8103
  18  1.62574e-06
  19  10.4795
  20  10.9009
  21  2.95022e-05
  22  0.000326037
  23  13.166
  24  7.37094e-05
  25  26.7313
  26  0.225761
  27  0.24628
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  7.418e+00  4.269e+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.345e+00  2.463e-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:  6.561e-01  2.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.09
Ra Dec: 195.757 24.582
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 5.03e-08 +/- 2.89e-08
Energy Flux (Fixed Index): 2.61e-05 +/- 1.50e-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) = 5480.39970115
delta logL = 0.42499891296

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5480.39395972
delta logL = 0.430740339672

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8188       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5937       1.0000          .0000       5.0000    
     3 'Normalizat'    .61221       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3759       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=   5480.394     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      268 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8168        52.965        .41623E-02    .18206E-03
   2  alpha         2.5933        3.7886        .25319        .60755E-04
   3  Normalizat    .61197        .10023        .68746E-01    .36416E-04
   4  Prefactor     1.3764        .87471E-01    .54166E-01   -.52106E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.81679
  alpha      = 2.59334
  Normalizat = 0.611972
  Prefactor  = 1.37635
 **********
 **   18 **HESSE 
 **********

 FCN=   5480.394     FROM HESSE     STATUS=OK            31 CALLS      299 TOTAL
                     EDM=   .80E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8168        4.3052        .84310E-04   -1.5226    
   2  alpha         2.5933        .60255        .98963E-02    .37346E-01
   3  Normalizat    .61197        .22129        .30426E-03   -1.0748    
   4  Prefactor     1.3764        .24758        .23948E-03   -.81064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.96153e-12
Minuit parameter uncertainties:
  1  4.30548
  2  0.608552
  3  0.221607
  4  0.247789
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/162003': 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) = 5480.39395666
delta logL = 0.430743399578

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  5.817e+00  4.305e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.593e+00  6.086e-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.376e+00  2.478e-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:  6.120e-01  2.216e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.00
Ra Dec: 195.757 24.582
Photon Index (Free Index): 2.59 +/- 0.61
Photon Flux (Free Index): 7.98e-08 +/- 4.82e-08
Energy Flux (Free Index): 2.20e-05 +/- 1.14e-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/162003/cmap_HighResolution_506044801_506304001_4FGL_J1303.0+2434_daily_bin1029.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.03e-08', energy_flux2='2.20e-05', photon_flux_error='2.89e-08', dlogl='4.31e-01', energy_flux='2.61e-05', photon_flux2='7.98e-08', job_status='DONE', time_completed='2021-09-06 18:29:38.162054', photon_index_error2='0.61', photon_index2='2.59', ts='8.09', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', energy_flux_error2='1.14e-05', EG='0.66', time_epoch_completed='1630978178.16', return_code='0', job_id='162003', GAL2='1.38', EG2='0.61', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='4.82e-08', ts2='9.00', photon_index='2.07' WHERE bin_id='1029' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:29:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 162003: <4FGL_J1303.0+2434_daily_bin1029> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1029 195.757 24.5821 506044801 506304001 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 :                                   644.02 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             282.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            851 sec.

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

