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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1098
RA = 195.757, Dec = 24.5821
tmin = 523929601, tmax = 524188801
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='162110', job_status='RUN', time_executed='2021-09-06 18:18:17.303277', time_epoch_executed='1630977497.3' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1098'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/162110

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/162110/ft1_4FGL_J1303.0+2434_daily_bin1098.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/162110/ft2_4FGL_J1303.0+2434_daily_bin1098.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/162110/ft1_4FGL_J1303.0+2434_daily_bin1098.fits outfile=/scratch/kocevski/162110/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1098.fits ra=195.757 dec=24.5821 rad=12.0 tmin=523929601.0 tmax=524188801.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.57
user 3.33
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/162110/ft1_filtered_4FGL_J1303.0+2434_daily_bin1098.fits" evtable="EVENTS" scfile=/scratch/kocevski/162110/ft2_4FGL_J1303.0+2434_daily_bin1098.fits sctable="SC_DATA" outfile=/scratch/kocevski/162110/ltcube_523929601_524188801_4FGL_J1303.0+2434_daily_bin1098.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/162110/ft2_4FGL_J1303.0+2434_daily_bin1098.fits
.....................!
real 16.94
user 16.55
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/162110/ft1_filtered_4FGL_J1303.0+2434_daily_bin1098.fits evtable="EVENTS" scfile=/scratch/kocevski/162110/ft2_4FGL_J1303.0+2434_daily_bin1098.fits sctable="SC_DATA" expcube=/scratch/kocevski/162110/ltcube_523929601_524188801_4FGL_J1303.0+2434_daily_bin1098.fits outfile=/scratch/kocevski/162110/expmap_523929601_524188801_4FGL_J1303.0+2434_daily_bin1098.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/162110/ltcube_523929601_524188801_4FGL_J1303.0+2434_daily_bin1098.fits
.....................!
real 193.24
user 187.59
sys 5.22

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/162110/ft1_filtered_4FGL_J1303.0+2434_daily_bin1098.fits scfile=/scratch/kocevski/162110/ft2_4FGL_J1303.0+2434_daily_bin1098.fits outfile=/scratch/kocevski/162110/cmap_523929601_524188801_4FGL_J1303.0+2434_daily_bin1098.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.56
user 0.39
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.401       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.0009       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3294       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .92995E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    4.7617       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .38586E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.7787       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.392       1.0000         .10000E-03   10000.    
    13 'norm      '    1.6155       1.0000         .10000E-03   10000.    
    14 'norm      '    2.7205       1.0000         .10000E-03   10000.    
    15 'norm      '    3.8494       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    14.111       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    34.122       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.1545       1.0000         .10000E-03   10000.    
    25 'Prefactor '    33.124       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .93295       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1213       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=   6419.801     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     2825 TOTAL
                     EDM=   .43E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.401        5.7441       -.28546E-07    .38976E-04
   2  Prefactor     4.0011        3.3273        .83627E-07    .66846E-04
   3  Prefactor     3.3300        2.2768       -.70985E-08   -.78869E-04
   4  Prefactor     .10000E-03    1.7559       -.47433E-07** at limit **
   5  norm          .92974E-01    .20858        .20508E-06   -.30784E-03
   6  norm          4.7621        3.7164        .90070E-06   -.10818E-03
   7  Prefactor     .10000E-03    5.8836       -.53183E-08** at limit **
   8  Prefactor     .10001E-03    213.71       -.69758E-05** at limit **
   9  Prefactor     .10000E-03    7.5220        .70643E-07** at limit **
  10  norm          4.7768        4.6697       -.30182E-06    .32512E-04
  11  Prefactor     .10000E-03    15.861        .11255E-06** at limit **
  12  Prefactor     11.377        25.873        .11093E-06   -.38185E-04
  13  norm          1.6171        4.5921        .16527E-05   -.16326E-04
  14  norm          2.7216        4.3742        .31778E-06    .17752E-05
  15  norm          3.8501        2.7589        .12066E-06   -.18272E-04
  16  norm          .10000E-03    4.4778        .87781E-07** at limit **
  17  norm          14.111        18.517       -.11246E-06   -.18993E-04
  18  Prefactor     .10000E-03    2.1527       -.93176E-07** at limit **
  19  Prefactor     .10000E-03    4.0889       -.45165E-07** at limit **
  20  norm          34.123        9.6462        .56299E-07   -.60172E-04
  21  Prefactor     .10000E-03    34.954        .70032E-06** at limit **
  22  Prefactor     .10000E-03    42.085       -.40885E-06** at limit **
  23  norm          .10000E-03    2.6319        .23611E-07** at limit **
  24  Prefactor     2.1533        14.780        .16668E-05   -.72952E-06
  25  Prefactor     33.129        21.018        .38817E-07    .47116E-06
  26  Normalizat    .93270        .17759       -.86477E-06   -.12306E-03
  27  Prefactor     1.1215        .18709       -.90641E-06   -.93763E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 20.4013
  Prefactor  = 4.00111
  Prefactor  = 3.33002
  Prefactor  = 0.0001
  norm       = 0.0929738
  norm       = 4.76212
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 4.77682
  Prefactor  = 0.0001
  Prefactor  = 11.3772
  norm       = 1.61705
  norm       = 2.72158
  norm       = 3.8501
  norm       = 0.0001
  norm       = 14.1105
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 34.1232
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.15326
  Prefactor  = 33.1286
  Normalizat = 0.932698
  Prefactor  = 1.12152
 **********
 **   18 **HESSE 
 **********

 FCN=   6419.801     FROM HESSE     STATUS=OK           494 CALLS     3319 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.401        5.7614        .87710E-04   -1.4804    
   2  Prefactor     4.0011        3.3320        .11526E-03   -1.5308    
   3  Prefactor     3.3300        2.2733        .94826E-04   -1.5343    
   4  Prefactor     .10000E-03    1.7592        .10369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .92974E-01    .21420        .50888E-03   -1.5647    
   6  norm          4.7621        3.6969        .65663E-03   -1.5271    
   7  Prefactor     .10000E-03    5.9074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    219.86        .42560E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.6218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.7768        4.6350        .14812E-03   -1.5271    
  11  Prefactor     .10000E-03    16.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.377        25.812        .11870E-03   -1.5033    
  13  norm          1.6171        4.6079        .27136E-03   -1.5454    
  14  norm          2.7216        4.3519        .20334E-03   -1.5378    
  15  norm          3.8501        2.7282        .10614E-03   -1.5316    
  16  norm          .10000E-03    4.5212        .32814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          14.111        18.496        .10663E-03   -1.4957    
  18  Prefactor     .10000E-03    2.2362        .22904E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.0957        .15820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          34.123        9.6492        .68602E-04   -1.4539    
  21  Prefactor     .10000E-03    35.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    42.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.6356        .12690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.1533        14.725        .28068E-03   -1.5414    
  25  Prefactor     33.129        20.975        .69624E-04   -1.4556    
  26  Normalizat    .93270        .20930        .25928E-03   -.95321    
  27  Prefactor     1.1215        .22078        .26424E-03   -.88782    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04669e-08
Minuit parameter uncertainties:
  1  5.76151
  2  3.33211
  3  2.27339
  4  3.18576e-06
  5  0.214199
  6  3.69713
  7  7.08494e-06
  8  0.0021704
  9  6.0379e-06
  10  4.63539
  11  1.41595e-05
  12  25.8371
  13  4.6089
  14  4.35241
  15  2.72833
  16  1.33559e-06
  17  18.5033
  18  5.36852e-06
  19  1.08524e-06
  20  9.64962
  21  0.000289561
  22  0.000237512
  23  1.51973e-06
  24  11.2655
  25  20.9796
  26  0.209487
  27  0.220956
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.617e+00  4.609e+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.122e+00  2.210e-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:  9.327e-01  2.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/162110/likelihoodResults_523929601_524188801_4FGL_J1303.0+2434_daily_bin1098.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) = 6419.05222983
delta logL = 0.74926396194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6419.05010764
delta logL = 0.751386146557

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6268       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2072       1.0000          .0000       5.0000    
     3 'Normalizat'    .87586       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1533       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=   6419.050     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      213 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6268        24.444        .82913E-02    .80026E-03
   2  alpha         3.2072        4.0508        .35639        .57349E-04
   3  Normalizat    .87588        .46040E-01    .44592E-01    .16854E-04
   4  Prefactor     1.1532        .50530E-01    .58982E-01    .59924E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.62679
  alpha      = 3.20723
  Normalizat = 0.875876
  Prefactor  = 1.15323
 **********
 **   18 **HESSE 
 **********

 FCN=   6419.050     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6268        3.4065        .82478E-04   -1.5453    
   2  alpha         3.2072        1.1816        .13047E-01    .28681    
   3  Normalizat    .87588        .20386        .26641E-03   -.97313    
   4  Prefactor     1.1532        .22148        .26082E-03   -.87783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38724e-08
Minuit parameter uncertainties:
  1  3.40691
  2  1.23552
  3  0.204037
  4  0.221655
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/162110': 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) = 6419.05010764
delta logL = 0.751386151446

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.627e+00  3.407e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  3.207e+00  1.236e+00  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.153e+00  2.217e-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.759e-01  2.040e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.71
Ra Dec: 195.757 24.582
Photon Index (Free Index): 3.21 +/- 1.24
Photon Flux (Free Index): 5.88e-08 +/- 5.16e-08
Energy Flux (Free Index): 1.14e-05 +/- 1.06e-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/162110/cmap_HighResolution_523929601_524188801_4FGL_J1303.0+2434_daily_bin1098.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.15e-05', comment='SUCCESS', energy_flux2='1.14e-05', dlogl='7.51e-01', photon_flux2='5.88e-08', job_status='DONE', time_completed='2021-09-06 18:30:46.627595', photon_index_error2='1.24', photon_index2='3.21', ts='0.14', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='8.01e-08', energy_flux_error2='1.06e-05', EG='0.93', time_epoch_completed='1630978246.63', return_code='0', job_id='162110', GAL2='1.15', EG2='0.88', return_code2='0', photon_flux_error2='5.16e-08', ts2='1.71', photon_index='2.07' WHERE bin_id='1098' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:30:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 162110: <4FGL_J1303.0+2434_daily_bin1098> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1098 195.757 24.5821 523929601 524188801 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 :                                   743.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            910 sec.

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

