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


Performing analysis on: 4FGL_J1303.0+2434_daily_bin1463
RA = 195.757, Dec = 24.5821
tmin = 618537601, tmax = 618796801
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='164841', job_status='RUN', time_executed='2021-09-06 18:25:52.200865', time_epoch_executed='1630977952.2' WHERE source_name='4FGL J1303.0+2434' and cadence='daily' and bin_id='1463'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164841

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164841/ft1_4FGL_J1303.0+2434_daily_bin1463.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164841/ft2_4FGL_J1303.0+2434_daily_bin1463.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164841/ft1_4FGL_J1303.0+2434_daily_bin1463.fits outfile=/scratch/kocevski/164841/ft1_filteredMKT_4FGL_J1303.0+2434_daily_bin1463.fits ra=195.757 dec=24.5821 rad=12.0 tmin=618537601.0 tmax=618796801.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.90
user 3.62
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164841/ft1_filtered_4FGL_J1303.0+2434_daily_bin1463.fits" evtable="EVENTS" scfile=/scratch/kocevski/164841/ft2_4FGL_J1303.0+2434_daily_bin1463.fits sctable="SC_DATA" outfile=/scratch/kocevski/164841/ltcube_618537601_618796801_4FGL_J1303.0+2434_daily_bin1463.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/164841/ft2_4FGL_J1303.0+2434_daily_bin1463.fits
.....................!
real 15.98
user 15.47
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164841/ft1_filtered_4FGL_J1303.0+2434_daily_bin1463.fits evtable="EVENTS" scfile=/scratch/kocevski/164841/ft2_4FGL_J1303.0+2434_daily_bin1463.fits sctable="SC_DATA" expcube=/scratch/kocevski/164841/ltcube_618537601_618796801_4FGL_J1303.0+2434_daily_bin1463.fits outfile=/scratch/kocevski/164841/expmap_618537601_618796801_4FGL_J1303.0+2434_daily_bin1463.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/164841/ltcube_618537601_618796801_4FGL_J1303.0+2434_daily_bin1463.fits
.....................!
real 191.20
user 185.42
sys 4.81

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/164841/ft1_filtered_4FGL_J1303.0+2434_daily_bin1463.fits scfile=/scratch/kocevski/164841/ft2_4FGL_J1303.0+2434_daily_bin1463.fits outfile=/scratch/kocevski/164841/cmap_618537601_618796801_4FGL_J1303.0+2434_daily_bin1463.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164841/ft1_filtered_4FGL_J1303.0+2434_daily_bin1463.fits scfile=/scratch/kocevski/164841/ft2_4FGL_J1303.0+2434_daily_bin1463.fits outfile=/scratch/kocevski/164841/cmap_HighResolution_618537601_618796801_4FGL_J1303.0+2434_daily_bin1463.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3239       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.8815       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5861       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .38029       1.0000         .10000E-03   10000.    
     6 'norm      '    2.5214       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.720       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5420       1.0000         .10000E-03   10000.    
    10 'norm      '    19.575       1.0000         .10000E-03   10000.    
    11 'Prefactor '    38.364       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10893E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    11.443       1.0000         .10000E-03   10000.    
    15 'norm      '    12.413       1.0000         .10000E-03   10000.    
    16 'norm      '    .50472E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .13975E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10294E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.258       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12106       1.0000         .10000E-03   10000.    
    23 'norm      '    7.6851       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12323E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    50.221       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2335       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .52365       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=   5710.111     FROM MIGRAD    STATUS=CONVERGED    705 CALLS     3888 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3230        2.6172        .91561E-07    .62265E-04
   2  Prefactor     3.8822        2.3420       -.32288E-07   -.42717E-04
   3  Prefactor     2.5870        2.5585        .17393E-06    .11802E-03
   4  Prefactor     .10000E-03    2.8236       -.15530E-06** at limit **
   5  norm          .38026        .21578        .21420E-07    .27699E-03
   6  norm          2.5219        3.2118        .14329E-06    .95880E-04
   7  Prefactor     18.702        12.296        .12099E-06    .32481E-04
   8  Prefactor     .10000E-03    21.026       -.11303E-06** at limit **
   9  Prefactor     2.5428        4.5358        .34839E-06    .11085E-03
  10  norm          19.574        7.2690        .11937E-06   -.13155E-03
  11  Prefactor     38.369        17.530        .26503E-06    .13450E-03
  12  Prefactor     .10000E-03    27.914       -.69239E-06** at limit **
  13  norm          .10000E-03    .92875       -.51912E-07** at limit **
  14  norm          11.448        7.9201        .20524E-06    .39439E-04
  15  norm          12.420        6.4257       -.21539E-06   -.85897E-03
  16  norm          .10001E-03    10.789        .76614E-06** at limit **
  17  norm          .10000E-03    12.865       -.16410E-07** at limit **
  18  Prefactor     .10000E-03    2.5231       -.18533E-06** at limit **
  19  Prefactor     .10000E-03    5.0511       -.12558E-07** at limit **
  20  norm          .10000E-03    10.695        .17169E-05** at limit **
  21  Prefactor     18.257        19.006       -.41864E-07   -.70832E-05
  22  Prefactor     .21172E-03    86.111       -.40000E-05** at limit **
  23  norm          7.6793        9.7500        .26573E-06   -.57628E-04
  24  Prefactor     .10000E-03    34.755        .33047E-05** at limit **
  25  Prefactor     50.214        33.671        .76290E-06    .58067E-04
  26  Normalizat    1.2335        .21493       -.36741E-05    .26885E-04
  27  Prefactor     .52374        .20065        .47756E-05   -.13578E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.32305
  Prefactor  = 3.88217
  Prefactor  = 2.58697
  Prefactor  = 0.0001
  norm       = 0.380265
  norm       = 2.52186
  Prefactor  = 18.7022
  Prefactor  = 0.0001
  Prefactor  = 2.54282
  norm       = 19.5744
  Prefactor  = 38.3687
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.448
  norm       = 12.4204
  norm       = 0.000100008
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.2568
  Prefactor  = 0.000211721
  norm       = 7.67934
  Prefactor  = 0.000100002
  Prefactor  = 50.2137
  Normalizat = 1.23351
  Prefactor  = 0.523741
 **********
 **   18 **HESSE 
 **********

 FCN=   5710.111     FROM HESSE     STATUS=OK           508 CALLS     4396 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3230        2.6109        .12145E-03   -1.5403    
   2  Prefactor     3.8822        2.3527        .84058E-04   -1.5314    
   3  Prefactor     2.5870        2.5380        .11076E-03   -1.5386    
   4  Prefactor     .10000E-03    2.8589        .12391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .38026        .21357        .25324E-04   -1.5585    
   6  norm          2.5219        3.1975        .14739E-03   -1.5390    
   7  Prefactor     18.702        12.272        .92571E-04   -1.4843    
   8  Prefactor     .10000E-03    21.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.5428        4.5257        .20807E-03   -1.5389    
  10  norm          19.574        7.2742        .90526E-04   -1.4823    
  11  Prefactor     38.369        17.575        .64710E-04   -1.4468    
  12  Prefactor     .10000E-03    27.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .93192        .71113E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          11.448        7.9078        .11843E-03   -1.5031    
  15  norm          12.420        7.0236        .10170E-03   -1.5003    
  16  norm          .10001E-03    15.497        .55939E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    12.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.5473        .11671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.0546        .16583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    11.029        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.257        19.007        .93735E-04   -1.4853    
  22  Prefactor     .21172E-03    64.365        .18676       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.6793        9.6332        .14465E-03   -1.5154    
  24  Prefactor     .10000E-03    35.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     50.214        33.660        .56589E-04   -1.4290    
  26  Normalizat    1.2335        .21753        .22587E-03   -.85573    
  27  Prefactor     .52374        .20144        .32964E-03   -1.1090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.46151e-10
Minuit parameter uncertainties:
  1  2.61103
  2  2.3528
  3  2.53809
  4  7.6949e-06
  5  0.213574
  6  3.19774
  7  12.2741
  8  1.06295e-05
  9  4.52628
  10  7.27455
  11  17.577
  12  6.73111e-05
  13  9.7469e-07
  14  7.90851
  15  7.02409
  16  0.000696335
  17  4.48738e-06
  18  3.17063e-06
  19  4.8621e-06
  20  0.00010987
  21  19.0135
  22  0.169782
  23  9.6351
  24  0.000495487
  25  33.6726
  26  0.217691
  27  0.201714
Done.

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

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  9.747e-07  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:  5.237e-01  2.017e-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.234e+00  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/164841/likelihoodResults_618537601_618796801_4FGL_J1303.0+2434_daily_bin1463.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): 102
logL (Free Index) = 5710.110669
delta logL = -1.48688477566e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5710.11065451
delta logL = -3.72710928787e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0559       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2336       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52379       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=   5710.111     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      240 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.4658        .71223E-03** at limit **
   2  alpha         1.9028        3.4598        .16801       -.41885E-07
   3  Normalizat    1.2335        .20080        .22587E-03    .51918E-03
   4  Prefactor     .52374        .19878        .32964E-03    .33747E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.90283
  Normalizat = 1.23352
  Prefactor  = 0.523742
 **********
 **   18 **HESSE 
 **********

 FCN=   5710.111     FROM HESSE     STATUS=OK            23 CALLS      263 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .94807        .14245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9028        3.5389        .67206E-02   -.24120    
   3  Normalizat    1.2335        .20093        .45175E-04   -.85573    
   4  Prefactor     .52374        .19891        .13186E-04   -1.1090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04279e-10
Minuit parameter uncertainties:
  1  1.22146e-05
  2  119.902
  3  0.201053
  4  0.199177
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164841': 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) = 5710.11065322
delta logL = 9.11567440198e-07

Extracting fit parameters...

4FGL J1303.0+2434
   Spectrum: LogParabola
290         norm:  1.000e-04  1.221e-05  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  1.903e+00  1.199e+02  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:  5.237e-01  1.992e-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.234e+00  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 195.757 24.582

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/164841/cmap_HighResolution_618537601_618796801_4FGL_J1303.0+2434_daily_bin1463.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.77e-05', job_status='DONE', photon_flux_upper_limit='3.41e-08', time_completed='2021-09-06 18:38:28.814233', job_id='164841', GAL2='0.52', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1630978708.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.52', dlogl='9.12e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1463' AND source_name='4FGL J1303.0+2434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 18:38:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 164841: <4FGL_J1303.0+2434_daily_bin1463> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1303.0+2434_daily_bin1463 195.757 24.5821 618537601 618796801 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 :                                   751.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            785 sec.

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

