aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 66 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 = 7709
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0502.5+3438_daily_bin1692
RA = 75.6366, Dec = 34.6338
tmin = 677894401, tmax = 678153601
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='404108', job_status='RUN', time_executed='2022-06-29 04:07:37.978601', time_epoch_executed='1656500857.98' WHERE source_name='4FGL J0502.5+3438' and cadence='daily' and bin_id='1692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/404108

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/404108/ft1_4FGL_J0502.5+3438_daily_bin1692.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/404108/ft2_4FGL_J0502.5+3438_daily_bin1692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/404108/ft1_4FGL_J0502.5+3438_daily_bin1692.fits outfile=/scratch/kocevski/404108/ft1_filteredMKT_4FGL_J0502.5+3438_daily_bin1692.fits ra=75.6366 dec=34.6338 rad=12.0 tmin=677894401.0 tmax=678153601.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.63
user 4.30
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/404108/ft2_4FGL_J0502.5+3438_daily_bin1692.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/404108/ft1_filteredMKT_4FGL_J0502.5+3438_daily_bin1692.fits evtable="EVENTS" outfile="/scratch/kocevski/404108/ft1_filtered_4FGL_J0502.5+3438_daily_bin1692.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.54
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 2100

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/404108/ft1_filtered_4FGL_J0502.5+3438_daily_bin1692.fits" evtable="EVENTS" scfile=/scratch/kocevski/404108/ft2_4FGL_J0502.5+3438_daily_bin1692.fits sctable="SC_DATA" outfile=/scratch/kocevski/404108/ltcube_677894401_678153601_4FGL_J0502.5+3438_daily_bin1692.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/404108/ft2_4FGL_J0502.5+3438_daily_bin1692.fits
.....................!
real 15.73
user 15.17
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/404108/ft1_filtered_4FGL_J0502.5+3438_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/404108/ft2_4FGL_J0502.5+3438_daily_bin1692.fits sctable="SC_DATA" expcube=/scratch/kocevski/404108/ltcube_677894401_678153601_4FGL_J0502.5+3438_daily_bin1692.fits outfile=/scratch/kocevski/404108/expmap_677894401_678153601_4FGL_J0502.5+3438_daily_bin1692.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/404108/ltcube_677894401_678153601_4FGL_J0502.5+3438_daily_bin1692.fits
.....................!
real 194.53
user 187.92
sys 4.72

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/404108/ft1_filtered_4FGL_J0502.5+3438_daily_bin1692.fits scfile=/scratch/kocevski/404108/ft2_4FGL_J0502.5+3438_daily_bin1692.fits outfile=/scratch/kocevski/404108/cmap_677894401_678153601_4FGL_J0502.5+3438_daily_bin1692.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 0.57
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/404108/ft1_filtered_4FGL_J0502.5+3438_daily_bin1692.fits scfile=/scratch/kocevski/404108/ft2_4FGL_J0502.5+3438_daily_bin1692.fits outfile=/scratch/kocevski/404108/cmap_HighResolution_677894401_678153601_4FGL_J0502.5+3438_daily_bin1692.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 0.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/404108/ft1_filtered_4FGL_J0502.5+3438_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/404108/ft2_4FGL_J0502.5+3438_daily_bin1692.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/404108/Model_4FGL_J0502.5+3438_daily_bin1692.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/404108/ft1_filtered_4FGL_J0502.5+3438_daily_bin1692.fits....................!
real 556.80
user 549.91
sys 1.50

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/404108/ft1_filtered_4FGL_J0502.5+3438_daily_bin1692.fits', '/scratch/kocevski/404108/ft2_4FGL_J0502.5+3438_daily_bin1692.fits', expMap='/scratch/kocevski/404108/expmap_677894401_678153601_4FGL_J0502.5+3438_daily_bin1692.fits', expCube='/scratch/kocevski/404108/ltcube_677894401_678153601_4FGL_J0502.5+3438_daily_bin1692.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/404108/Model_4FGL_J0502.5+3438_daily_bin1692.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/404108/ft1_filtered_4FGL_J0502.5+3438_daily_bin1692.fits
Spacecraft file(s): /scratch/kocevski/404108/ft2_4FGL_J0502.5+3438_daily_bin1692.fits
Exposure map: /scratch/kocevski/404108/expmap_677894401_678153601_4FGL_J0502.5+3438_daily_bin1692.fits
Exposure cube: /scratch/kocevski/404108/ltcube_677894401_678153601_4FGL_J0502.5+3438_daily_bin1692.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/404108/Model_4FGL_J0502.5+3438_daily_bin1692.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) = 20324.2413596

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    11.994       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14124E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    80.638       1.0000         .10000E-03   10000.    
     5 'norm      '    46.766       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.100       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.9845       1.0000         .10000E-03   10000.    
    10 'norm      '    5.2245       1.0000         .10000E-03   10000.    
    11 'Normalizat'    .98881       1.0000         .10000E-01   10.000    
    12 'Prefactor '    1.0232       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=   20324.24     FROM MIGRAD    STATUS=CONVERGED    195 CALLS     1001 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5730       -.68673E-07** at limit **
   2  norm          11.993        12.839       -.67917E-06   -.30803E-04
   3  Prefactor     .10000E-03    1.7434       -.12581E-06** at limit **
   4  norm          80.637        58.375       -.17174E-05   -.70409E-06
   5  norm          46.762        39.053       -.44883E-05   -.40749E-05
   6  norm          .10000E-03    1.9501       -.50172E-07** at limit **
   7  Prefactor     .10000E-03    5.9115       -.57050E-07** at limit **
   8  Prefactor     23.099        44.879       -.22703E-05   -.54276E-05
   9  Prefactor     8.9812        16.234       -.80315E-05   -.47503E-04
  10  norm          5.2248        3.0871       -.63779E-06   -.62162E-03
  11  Normalizat    .98876        .39607        .29668E-05   -.34810E-04
  12  Prefactor     1.0232        .46347E-01    .15448E-06   -.99859E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 11.9934
  Prefactor  = 0.0001
  norm       = 80.6368
  norm       = 46.7623
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.0989
  Prefactor  = 8.98119
  norm       = 5.22483
  Normalizat = 0.988761
  Prefactor  = 1.02323
 **********
 **   18 **HESSE 
 **********

 FCN=   20324.24     FROM HESSE     STATUS=OK           129 CALLS     1130 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.6004        .17452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.993        12.840        .11567E-03   -1.5015    
   3  Prefactor     .10000E-03    9.3059        .36465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          80.637        58.312        .44726E-04   -1.3910    
   5  norm          46.762        38.942        .58633E-04   -1.4339    
   6  norm          .10000E-03    1.9804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.9779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.099        44.819        .83341E-04   -1.4746    
   9  Prefactor     8.9812        16.157        .13372E-03   -1.5109    
  10  norm          5.2248        3.1127        .17586E-03   -1.5251    
  11  Normalizat    .98876        .37421        .10155E-02   -.93408    
  12  Prefactor     1.0232        .45027E-01    .11948E-03   -.91959    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.30674e-11
Minuit parameter uncertainties:
  1  5.52554e-06
  2  12.8434
  3  1.77483e-05
  4  58.3532
  5  38.9629
  6  1.82619e-06
  7  8.4721e-07
  8  44.8841
  9  16.1649
  10  3.11278
  11  0.375211
  12  0.0450288
Done.

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

Extracting fit parameters...

4FGL J0502.5+3438
   Spectrum: LogParabola
263         norm:  1.000e-04  1.826e-06  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:  1.023e+00  4.503e-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:  9.888e-01  3.752e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 75.637 34.634
Photon Flux Upper Limit: 7.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.26e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/404108/likelihoodResults_677894401_678153601_4FGL_J0502.5+3438_daily_bin1692.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) = 20324.2398701
delta logL = -0.00240740940353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20324.2374629
delta logL = -1.95730535779e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10245E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2425       1.0000          .0000       5.0000    
     3 'Normalizat'    .98878       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0232       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   20323.65     FROM MIGRAD    STATUS=FAILED       150 CALLS      299 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21477        15.608        .26954E-01    .18912E-02
   2  alpha         .79283E-01    3.3287        .50000        .42207E-03
   3  Normalizat    .98027        .10434        .10155E-02   -.10819E-03
   4  Prefactor     1.0235        .12599E-01    .11948E-03   -.86763E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   20323.65     FROM SIMPLEX   STATUS=UNCHANGED     79 CALLS      378 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21477        15.608        .73220E-04    .18912E-02
   2  alpha         .79283E-01    3.3287        .63438E-02    .42207E-03
   3  Normalizat    .98027        .10434        .19770E-03   -.10819E-03
   4  Prefactor     1.0235        .12599E-01    .19392E-04   -.86763E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   20323.65     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      452 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21477        .70817        .45765E-04    .23947E-03
   2  alpha         .79289E-01    3.4458        .22571E-01    .66829E-04
   3  Normalizat    .98027        .36930        .81239E-05   -.10524E-03
   4  Prefactor     1.0235        .44862E-01    .47792E-05   -.83543E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.214772
  alpha      = 0.079289
  Normalizat = 0.98027
  Prefactor  = 1.0235
 **********
 **   18 **HESSE 
 **********

 FCN=   20323.65     FROM HESSE     STATUS=OK            25 CALLS      477 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21477        .68141        .18306E-05   -1.5615    
   2  alpha         .79289E-01    3.3709        .45143E-02   -7.6015    
   3  Normalizat    .98027        .36786        .16248E-05   -.93694    
   4  Prefactor     1.0235        .44719E-01    .95584E-06   -.91950    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.80219e-11
Minuit parameter uncertainties:
  1  0.681439
  2  0.967118
  3  0.368813
  4  0.0447209
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/404108': 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) = 20323.6545885
delta logL = 0.582874146327

Extracting fit parameters...

4FGL J0502.5+3438
   Spectrum: LogParabola
263         norm:  2.148e-01  6.814e-01  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  7.929e-02  9.671e-01  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:  1.023e+00  4.472e-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:  9.803e-01  3.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.17
Ra Dec: 75.637 34.634
Photon Index (Free Index): 0.08 +/- 0.97
Photon Flux (Free Index): 3.98e-09 +/- 5.46e-09
Energy Flux (Free Index): 1.07e-04 +/- 1.60e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/404108/cmap_HighResolution_677894401_678153601_4FGL_J0502.5+3438_daily_bin1692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.26e-05', comment='SUCCESS', energy_flux2='1.07e-04', dlogl='5.83e-01', photon_flux2='3.98e-09', job_status='DONE', time_completed='2022-06-29 04:33:04.243520', photon_index_error2='0.97', photon_index2='0.08', ts='-0.00', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='7.92e-08', energy_flux_error2='1.60e-04', EG='0.99', time_epoch_completed='1656502384.24', return_code='0', job_id='404108', GAL2='1.02', EG2='0.98', return_code2='0', photon_flux_error2='5.46e-09', ts2='1.17', photon_index='2.26' WHERE bin_id='1692' AND source_name='4FGL J0502.5+3438' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun 29 04:33:04 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 404109: <4FGL_J0502.5+3438_daily_bin1692> in cluster <slac> Done

Job <4FGL_J0502.5+3438_daily_bin1692> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jun 29 00:05:34 2022
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:06:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:06:21 2022
Terminated at Wed Jun 29 04:32:28 2022
Results reported at Wed Jun 29 04:32:28 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0502.5+3438_daily_bin1692 75.6366 34.6338 677894401 678153601 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 :                                   1325.00 sec.
    Max Memory :                                 621 MB
    Average Memory :                             381.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1566 sec.
    Turnaround time :                            16014 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0176>
Subject: Job 404108: <4FGL_J0502.5+3438_daily_bin1692> in cluster <slac> Done

Job <4FGL_J0502.5+3438_daily_bin1692> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Jun 29 00:05:34 2022
Job was executed on host(s) <bullet0176>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:06:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:06:21 2022
Terminated at Wed Jun 29 04:33:04 2022
Results reported at Wed Jun 29 04:33:04 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0502.5+3438_daily_bin1692 75.6366 34.6338 677894401 678153601 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 :                                   1362.04 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             410.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1603 sec.
    Turnaround time :                            16050 sec.

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

