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


Performing analysis on: 4FGL_J0502.5+3438_daily_bin1443
RA = 75.6366, Dec = 34.6338
tmin = 613353601, tmax = 613612801
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='943707', job_status='RUN', time_executed='2021-08-21 19:06:54.431141', time_epoch_executed='1629598014.43' WHERE source_name='4FGL J0502.5+3438' and cadence='daily' and bin_id='1443'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/943707

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/943707/ft1_4FGL_J0502.5+3438_daily_bin1443.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/943707/ft2_4FGL_J0502.5+3438_daily_bin1443.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/943707/ft1_4FGL_J0502.5+3438_daily_bin1443.fits outfile=/scratch/kocevski/943707/ft1_filteredMKT_4FGL_J0502.5+3438_daily_bin1443.fits ra=75.6366 dec=34.6338 rad=12.0 tmin=613353601.0 tmax=613612801.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 7.76
user 2.52
sys 4.40

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/943707/ft2_4FGL_J0502.5+3438_daily_bin1443.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/943707/ft2_4FGL_J0502.5+3438_daily_bin1443.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/943707/ft1_filteredMKT_4FGL_J0502.5+3438_daily_bin1443.fits evtable="EVENTS" outfile="/scratch/kocevski/943707/ft1_filtered_4FGL_J0502.5+3438_daily_bin1443.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 4.86
user 0.34
sys 4.43

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/943707/ft1_filtered_4FGL_J0502.5+3438_daily_bin1443.fits" evtable="EVENTS" scfile=/scratch/kocevski/943707/ft2_4FGL_J0502.5+3438_daily_bin1443.fits sctable="SC_DATA" outfile=/scratch/kocevski/943707/ltcube_613353601_613612801_4FGL_J0502.5+3438_daily_bin1443.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/943707/ft2_4FGL_J0502.5+3438_daily_bin1443.fits
.....................!
real 17.78
user 12.54
sys 5.18

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/943707/ft1_filtered_4FGL_J0502.5+3438_daily_bin1443.fits evtable="EVENTS" scfile=/scratch/kocevski/943707/ft2_4FGL_J0502.5+3438_daily_bin1443.fits sctable="SC_DATA" expcube=/scratch/kocevski/943707/ltcube_613353601_613612801_4FGL_J0502.5+3438_daily_bin1443.fits outfile=/scratch/kocevski/943707/expmap_613353601_613612801_4FGL_J0502.5+3438_daily_bin1443.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/943707/ltcube_613353601_613612801_4FGL_J0502.5+3438_daily_bin1443.fits
.....................!
real 196.76
user 186.07
sys 10.33

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
Extended source HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Extended source S 147 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/S147.fits is the correct path to the extended template.
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source IC 443 in ROI with RadialGaussian spatial model.
Added 158 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0502.5+3438 @ 75.6366 34.6338

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/943707/ft1_filtered_4FGL_J0502.5+3438_daily_bin1443.fits scfile=/scratch/kocevski/943707/ft2_4FGL_J0502.5+3438_daily_bin1443.fits outfile=/scratch/kocevski/943707/cmap_613353601_613612801_4FGL_J0502.5+3438_daily_bin1443.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=75.6366 yref=34.6338 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 4.73
user 0.36
sys 4.33

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/943707/ft1_filtered_4FGL_J0502.5+3438_daily_bin1443.fits scfile=/scratch/kocevski/943707/ft2_4FGL_J0502.5+3438_daily_bin1443.fits outfile=/scratch/kocevski/943707/cmap_HighResolution_613353601_613612801_4FGL_J0502.5+3438_daily_bin1443.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=75.6366 yref=34.6338 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 4.73
user 0.37
sys 4.34

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/943707/ft1_filtered_4FGL_J0502.5+3438_daily_bin1443.fits evtable="EVENTS" scfile=/scratch/kocevski/943707/ft2_4FGL_J0502.5+3438_daily_bin1443.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/943707/Model_4FGL_J0502.5+3438_daily_bin1443.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 G150.3+4.5
adding source GAL_V02
adding source HB 9
adding source IC 443
adding source S 147
Working on...
/scratch/kocevski/943707/ft1_filtered_4FGL_J0502.5+3438_daily_bin1443.fits.......................!
real 43.55
user 36.55
sys 6.87

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/943707/ft1_filtered_4FGL_J0502.5+3438_daily_bin1443.fits', '/scratch/kocevski/943707/ft2_4FGL_J0502.5+3438_daily_bin1443.fits', expMap='/scratch/kocevski/943707/expmap_613353601_613612801_4FGL_J0502.5+3438_daily_bin1443.fits', expCube='/scratch/kocevski/943707/ltcube_613353601_613612801_4FGL_J0502.5+3438_daily_bin1443.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/943707/Model_4FGL_J0502.5+3438_daily_bin1443.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0502.5+3438'

4FGL J0502.5+3438
   Spectrum: LogParabola
263         norm:  2.074e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.263e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  1.268e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/943707/ft1_filtered_4FGL_J0502.5+3438_daily_bin1443.fits
Spacecraft file(s): /scratch/kocevski/943707/ft2_4FGL_J0502.5+3438_daily_bin1443.fits
Exposure map: /scratch/kocevski/943707/expmap_613353601_613612801_4FGL_J0502.5+3438_daily_bin1443.fits
Exposure cube: /scratch/kocevski/943707/ltcube_613353601_613612801_4FGL_J0502.5+3438_daily_bin1443.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/943707/Model_4FGL_J0502.5+3438_daily_bin1443.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) = 944.878895804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.2084       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1212.3       1.0000         .10000E-03   10000.    
     5 'norm      '    .42148E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    10000.       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4818.4       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    12 'Prefactor '    .76330       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   944.8511     FROM MIGRAD    STATUS=CONVERGED    184 CALLS     1074 TOTAL
                     EDM=   .56E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.2078        12.971        .24773E-05   -.74072E-04
   2  norm          .10000E-03    39.017       -.16303E-05** at limit **
   3  Prefactor     .10000E-03    61.288       -.53931E-05** at limit **
   4  norm          1213.1        5320.9        .25977E-03    .22592E-05
   5  norm          .10000E-03    1171.9       -.23854E-03** at limit **
   6  norm         10000.0        261.31        .18054E-03** at limit **
   7  Prefactor     4819.1        2253.0        .12937E-03   -.97145E-05
   8  Prefactor    10000.0        6772.0        .17981E-02** at limit **
   9  Prefactor     .10000E-03    200.07        .13092E-03** at limit **
  10  norm          .10000E-03    2.0314       -.30193E-07** at limit **
  11  Normalizat    .10000E-01    .20775       -.14452E-05** at limit **
  12  Prefactor     .76327        .12747       -.44235E-05    .10767E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.20781
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1213.13
  norm       = 0.000100003
  norm       = 10000
  Prefactor  = 4819.07
  Prefactor  = 10000
  Prefactor  = 0.000100001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.763268
 **********
 **   18 **HESSE 
 **********

 FCN=   944.8511     FROM HESSE     STATUS=OK           119 CALLS     1193 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.2078        12.985        .16404E-03   -1.5252    
   2  norm          .10000E-03    39.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    61.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1213.1        5320.5        .61276E-04   -.85928    
   5  norm          .10000E-03    1172.2        .21239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm         10000.0        261.43        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4819.1        2254.5        .40026E-04   -.36194E-01
   8  Prefactor    10000.0        6772.6        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    200.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.0320        .42795E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Normalizat    .10000E-01    .20872        .43208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .76327        .12751        .13387E-03   -1.0110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14231e-10
Minuit parameter uncertainties:
  1  12.9916
  2  6.40583e-06
  3  3.22052e-05
  4  3900.12
  5  0.00374282
  6  3.73362e-05
  7  2339.03
  8  0.000473951
  9  0.000983314
  10  5.52159e-06
  11  3.13272e-06
  12  0.127559
Done.

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

Extracting fit parameters...

4FGL J0502.5+3438
   Spectrum: LogParabola
263         norm:  1.000e+04  3.734e-05  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.263e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  1.268e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  7.633e-01  1.276e-01  0.000e+00  1.000e+01 ( 1.000e+00)
539        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
540        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  1.000e-02  3.133e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 47.91
Ra Dec: 75.637 34.634
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 1.08e-04 +/- 4.03e-13
Energy Flux (Fixed Index): 4.45e-02 +/- 1.66e-10

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) = 776.261500197
delta logL = 168.589620859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 776.261066902
delta logL = 168.590054154

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .44362       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   776.2610     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      194 TOTAL
                     EDM=   .74E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm         10000.0        96.008        .90767E-02** at limit **
   2  alpha         5.0000        .63085E-02    .46267E-01** at limit **
   3  Normalizat    .10000E-01    .10869        .12878    ** at limit **
   4  Prefactor     .44362        .89587E-01    .26771E-01    .31934E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  alpha      = 5
  Normalizat = 0.01
  Prefactor  = 0.443615
 **********
 **   18 **HESSE 
 **********

 FCN=   776.2610     FROM HESSE     STATUS=OK            25 CALLS      219 TOTAL
                     EDM=   .73E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm         10000.0        96.009        .18153E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        .63068E-02    .96697E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    .10883        .28407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .44362        .89484E-01    .11832E-03   -1.1464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.34742e-12
Minuit parameter uncertainties:
  1  3.27506e-05
  2  7.51472e-11
  3  5.89315e-07
  4  0.0895123
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/943707': 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) = 776.261017684
delta logL = 168.590103372

Extracting fit parameters...

4FGL J0502.5+3438
   Spectrum: LogParabola
263         norm:  1.000e+04  3.275e-05  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  5.000e+00  7.515e-11  0.000e+00  5.000e+00 ( 1.000e+00)
265         beta:  1.268e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  4.436e-01  8.951e-02  0.000e+00  1.000e+01 ( 1.000e+00)
539        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
540        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  1.000e-02  5.893e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 386.61
Ra Dec: 75.637 34.634
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.66e-02 +/- 5.40e-11
Energy Flux (Free Index): 2.29e+00 +/- 7.50e-09

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/943707/cmap_HighResolution_613353601_613612801_4FGL_J0502.5+3438_daily_bin1443.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.08e-04', energy_flux2='2.29e+00', photon_flux_error='4.03e-13', dlogl='1.69e+02', energy_flux='4.45e-02', photon_flux2='1.66e-02', job_status='DONE', time_completed='2021-08-21 19:13:56.106695', photon_index_error2='0.00', photon_index2='5.00', ts='47.91', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='7.50e-09', EG='0.01', time_epoch_completed='1629598436.11', return_code='0', job_id='943707', GAL2='0.44', EG2='0.01', return_code2='0', energy_flux_error='1.66e-10', photon_flux_error2='5.40e-11', ts2='386.61', photon_index='2.26' WHERE bin_id='1443' AND source_name='4FGL J0502.5+3438' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 19:13:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 943707: <4FGL_J0502.5+3438_daily_bin1443> in cluster <slac> Done

Job <4FGL_J0502.5+3438_daily_bin1443> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 21 19:05:25 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 19:05:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 21 19:05:27 2021
Terminated at Sat Aug 21 19:13:59 2021
Results reported at Sat Aug 21 19:13:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0502.5+3438_daily_bin1443 75.6366 34.6338 613353601 613612801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0502.5+3438 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   478.58 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             369.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   509 sec.
    Turnaround time :                            514 sec.

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

