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 206 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 = 7445
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0230.8+4032_daily_bin1673
RA = 37.7086, Dec = 40.5416
tmin = 672969601, tmax = 673228801
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='351233', job_status='RUN', time_executed='2022-05-03 00:12:41.783143', time_epoch_executed='1651561961.78' WHERE source_name='4FGL J0230.8+4032' and cadence='daily' and bin_id='1673'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351233

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351233/ft1_4FGL_J0230.8+4032_daily_bin1673.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351233/ft2_4FGL_J0230.8+4032_daily_bin1673.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351233/ft1_4FGL_J0230.8+4032_daily_bin1673.fits outfile=/scratch/kocevski/351233/ft1_filteredMKT_4FGL_J0230.8+4032_daily_bin1673.fits ra=37.7086 dec=40.5416 rad=12.0 tmin=672969601.0 tmax=673228801.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 2.98
user 2.73
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/351233/ft2_4FGL_J0230.8+4032_daily_bin1673.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/351233/ft2_4FGL_J0230.8+4032_daily_bin1673.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/351233/ft1_filteredMKT_4FGL_J0230.8+4032_daily_bin1673.fits evtable="EVENTS" outfile="/scratch/kocevski/351233/ft1_filtered_4FGL_J0230.8+4032_daily_bin1673.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.49
user 0.33
sys 0.14

Number of photons that the gtmktime cut: 89

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351233/ft1_filtered_4FGL_J0230.8+4032_daily_bin1673.fits" evtable="EVENTS" scfile=/scratch/kocevski/351233/ft2_4FGL_J0230.8+4032_daily_bin1673.fits sctable="SC_DATA" outfile=/scratch/kocevski/351233/ltcube_672969601_673228801_4FGL_J0230.8+4032_daily_bin1673.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/351233/ft2_4FGL_J0230.8+4032_daily_bin1673.fits
.....................!
real 15.46
user 15.03
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351233/ft1_filtered_4FGL_J0230.8+4032_daily_bin1673.fits evtable="EVENTS" scfile=/scratch/kocevski/351233/ft2_4FGL_J0230.8+4032_daily_bin1673.fits sctable="SC_DATA" expcube=/scratch/kocevski/351233/ltcube_672969601_673228801_4FGL_J0230.8+4032_daily_bin1673.fits outfile=/scratch/kocevski/351233/expmap_672969601_673228801_4FGL_J0230.8+4032_daily_bin1673.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/351233/ltcube_672969601_673228801_4FGL_J0230.8+4032_daily_bin1673.fits
.....................!
real 193.03
user 188.07
sys 4.60

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 W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Added 185 point sources and 1 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 J0230.8+4032 @ 37.7086 40.5416

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/351233/ft1_filtered_4FGL_J0230.8+4032_daily_bin1673.fits scfile=/scratch/kocevski/351233/ft2_4FGL_J0230.8+4032_daily_bin1673.fits outfile=/scratch/kocevski/351233/cmap_672969601_673228801_4FGL_J0230.8+4032_daily_bin1673.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=37.7086 yref=40.5416 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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351233/ft1_filtered_4FGL_J0230.8+4032_daily_bin1673.fits scfile=/scratch/kocevski/351233/ft2_4FGL_J0230.8+4032_daily_bin1673.fits outfile=/scratch/kocevski/351233/cmap_HighResolution_672969601_673228801_4FGL_J0230.8+4032_daily_bin1673.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=37.7086 yref=40.5416 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/351233/ft1_filtered_4FGL_J0230.8+4032_daily_bin1673.fits evtable="EVENTS" scfile=/scratch/kocevski/351233/ft2_4FGL_J0230.8+4032_daily_bin1673.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/351233/Model_4FGL_J0230.8+4032_daily_bin1673.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
adding source W 3
Working on...
/scratch/kocevski/351233/ft1_filtered_4FGL_J0230.8+4032_daily_bin1673.fits.......................!
real 24.59
user 23.31
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/351233/ft1_filtered_4FGL_J0230.8+4032_daily_bin1673.fits', '/scratch/kocevski/351233/ft2_4FGL_J0230.8+4032_daily_bin1673.fits', expMap='/scratch/kocevski/351233/expmap_672969601_673228801_4FGL_J0230.8+4032_daily_bin1673.fits', expCube='/scratch/kocevski/351233/ltcube_672969601_673228801_4FGL_J0230.8+4032_daily_bin1673.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/351233/Model_4FGL_J0230.8+4032_daily_bin1673.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0230.8+4032'

4FGL J0230.8+4032
   Spectrum: LogParabola
305         norm:  3.060e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  2.306e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
307         beta:  1.406e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  7.188e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/351233/ft1_filtered_4FGL_J0230.8+4032_daily_bin1673.fits
Spacecraft file(s): /scratch/kocevski/351233/ft2_4FGL_J0230.8+4032_daily_bin1673.fits
Exposure map: /scratch/kocevski/351233/expmap_672969601_673228801_4FGL_J0230.8+4032_daily_bin1673.fits
Exposure cube: /scratch/kocevski/351233/ltcube_672969601_673228801_4FGL_J0230.8+4032_daily_bin1673.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/351233/Model_4FGL_J0230.8+4032_daily_bin1673.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) = 915.606603087

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .13234E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8346.9       1.0000         .10000E-03   10000.    
    13 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    15 'norm      '    10000.       1.0000         .10000E-03   10000.    
    16 'norm      '    61.110       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14300E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    24.488       1.0000         .10000E-03   10000.    
    20 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.1726       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .44676       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   908.2165     FROM MIGRAD    STATUS=CONVERGED    140 CALLS     2912 TOTAL
                     EDM=   .38E-07  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .73359         .0000    ** at limit **
   2  Prefactor     .10000E-03    10.551         .0000    ** at limit **
   3  Prefactor     .10000E-03    9.1346         .0000    ** at limit **
   4  Prefactor     .10042E-03    39.916         .0000    ** at limit **
   5  Prefactor     .10022E-03    53.207         .0000    ** at limit **
   6  norm          .10000E-03    11.616         .0000    ** at limit **
   7  Prefactor     .10001E-03    15.806         .0000    ** at limit **
   8  norm          .10182E-03    73.549         .0000    ** at limit **
   9  Prefactor     .10280E-03    49.936         .0000    ** at limit **
  10  norm          .10000E-03    12.499         .0000    ** at limit **
  11  norm          .10000E-03    2.7028         .0000    ** at limit **
  12  Prefactor     8346.9        1.0001         .0000        .47636E-04
  13  norm         10000.0        265.72         .0000    ** at limit **
  14  Prefactor    10000.0        35.261         .0000       -.10833E-02
  15  norm         10000.0        222.25         .0000    ** at limit **
  16  norm          61.107        1.1794         .0000        .39956E-03
  17  Prefactor     .84494E-02    2.6654         .0000        .32333E-03
  18  Prefactor     .10000E-03    4.5888         .0000    ** at limit **
  19  norm          24.487        1.0061         .0000       -.22476E-05
  20  norm          .10579E-03    69.698         .0000    ** at limit **
  21  Prefactor     .10030E-03    19.737         .0000    ** at limit **
  22  Prefactor     .10943E-03    39.395         .0000    ** at limit **
  23  norm          4.1725        2.0136         .0000       -.79026E-02
  24  Normalizat    .10000E-01    .67197E-01     .0000    ** at limit **
  25  Prefactor     .44679        .10502         .0000        .14547E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100417
  Prefactor  = 0.000100215
  norm       = 0.000100003
  Prefactor  = 0.000100011
  norm       = 0.000101825
  Prefactor  = 0.000102805
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 8346.85
  norm       = 10000
  Prefactor  = 9999.99
  norm       = 10000
  norm       = 61.1071
  Prefactor  = 0.00844939
  Prefactor  = 0.000100002
  norm       = 24.4868
  norm       = 0.000105788
  Prefactor  = 0.000100297
  Prefactor  = 0.000109429
  norm       = 4.17246
  Normalizat = 0.01
  Prefactor  = 0.446788
 **********
 **   18 **HESSE 
 **********

 FCN=   908.2165     FROM HESSE     STATUS=OK           457 CALLS     3369 TOTAL
                     EDM=   .34E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .73363        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.551        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.0185        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10042E-03    39.933        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10022E-03    53.507        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    11.616        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    15.805        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10182E-03    83.495        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10280E-03    132.74        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    12.497        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.7031        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8346.9        2715.3        .26920E-03    .73336    
  13  norm         10000.0        370.62        .90712E-02    1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor    10000.0        6508.9        .90712E-02    1.5693    
  15  norm         10000.0        888.22        .90712E-02    1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          61.107        146.40        .12832E-02   -1.4143    
  17  Prefactor     .84494E-02    9301.7        .90712E-02   -1.5690    
  18  Prefactor     .10000E-03    4.5889        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          24.487        16.674        .20237E-02   -1.4718    
  20  norm          .10579E-03    158.56        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10030E-03    19.696        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10943E-03    113.83        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.1725        2.0119        .49327E-02   -1.5299    
  24  Normalizat    .10000E-01    .67119E-01    .10938       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .44679        .10898        .38921E-01   -1.1448    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42784e-06
Minuit parameter uncertainties:
  1  1.7875e-05
  2  3.82558e-05
  3  0.000214783
  4  0.00817069
  5  0.00679595
  6  0.000381335
  7  0.000820497
  8  0.0247217
  9  0.0386779
  10  0.000321352
  11  1.95067e-05
  12  3045.12
  13  0.387424
  14  8.49204
  15  1.61712
  16  147.279
  17  21.7238
  18  0.000213389
  19  16.6767
  20  0.0607489
  21  0.00484274
  22  0.0656464
  23  2.01196
  24  3.89834e-06
  25  0.109033
Done.

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

Extracting fit parameters...

4FGL J0230.8+4032
   Spectrum: LogParabola
305         norm:  1.000e+04  3.874e-01  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  2.306e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
307         beta:  1.406e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  7.188e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  4.468e-01  1.090e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.000e-02  3.898e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 34.56
Ra Dec: 37.709 40.542
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 5.52e-05 +/- 2.14e-09
Energy Flux (Fixed Index): 1.96e-02 +/- 7.60e-07

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) = 849.317255077
delta logL = 58.8992817375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 849.308652108
delta logL = 58.9078847066

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     '    4.8108       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .28295       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   849.3086     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      195 TOTAL
                     EDM=   .78E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm         10000.0        543.44        .90718E-02** at limit **
   2  alpha         4.8106        .11119        .74977E-01   -.75692E-05
   3  Normalizat    .10000E-01    .49515E-01    .90809E-01** at limit **
   4  Prefactor     .28299        .81590E-01    .36534E-01   -.37721E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  alpha      = 4.81056
  Normalizat = 0.01
  Prefactor  = 0.282989
 **********
 **   18 **HESSE 
 **********

 FCN=   849.3086     FROM HESSE     STATUS=OK            27 CALLS      222 TOTAL
                     EDM=   .46E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm         10000.0        543.44        .18144E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         4.8106        .11098        .33176E-03    1.1790    
   3  Normalizat    .10000E-01    .49575E-01    .20031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .28299        .81489E-01    .13970E-03   -1.2327    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58733e-15
Minuit parameter uncertainties:
  1  6.79353e-05
  2  0.111228
  3  2.23377e-09
  4  0.0815214
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351233': 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) = 849.308641039
delta logL = 58.9078957756

Extracting fit parameters...

4FGL J0230.8+4032
   Spectrum: LogParabola
305         norm:  1.000e+04  6.794e-05  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  4.811e+00  1.112e-01  0.000e+00  5.000e+00 ( 1.000e+00)
307         beta:  1.406e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  7.188e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  2.830e-01  8.152e-02  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.000e-02  2.234e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 154.48
Ra Dec: 37.709 40.542
Photon Index (Free Index): 4.81 +/- 0.11
Photon Flux (Free Index): 2.30e-03 +/- 4.28e-04
Energy Flux (Free Index): 3.23e-01 +/- 5.63e-02

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/351233/cmap_HighResolution_672969601_673228801_4FGL_J0230.8+4032_daily_bin1673.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.52e-05', energy_flux2='3.23e-01', photon_flux_error='2.14e-09', dlogl='5.89e+01', energy_flux='1.96e-02', photon_flux2='2.30e-03', job_status='DONE', time_completed='2022-05-03 00:19:02.186809', photon_index_error2='0.11', photon_index2='4.81', ts='34.56', fit_tolerance='1e-08', GAL='0.45', photon_index_error='0.00', energy_flux_error2='5.63e-02', EG='0.01', time_epoch_completed='1651562342.19', return_code='0', job_id='351233', GAL2='0.28', EG2='0.01', return_code2='0', energy_flux_error='7.60e-07', photon_flux_error2='4.28e-04', ts2='154.48', photon_index='2.31' WHERE bin_id='1673' AND source_name='4FGL J0230.8+4032' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue May  3 00:19:02 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 351127: <4FGL_J0230.8+4032_daily_bin1673> in cluster <slac> Done

Job <4FGL_J0230.8+4032_daily_bin1673> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue May  3 00:05:36 2022
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 00:07:57 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 00:07:57 2022
Terminated at Tue May  3 00:17:29 2022
Results reported at Tue May  3 00:17:29 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0230.8+4032_daily_bin1673 37.7086 40.5416 672969601 673228801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0230.8+4032 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   381.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             216.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   571 sec.
    Turnaround time :                            713 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 351233: <4FGL_J0230.8+4032_daily_bin1673> in cluster <slac> Done

Job <4FGL_J0230.8+4032_daily_bin1673> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue May  3 00:05:42 2022
Job was executed on host(s) <bullet0155>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 00:09:08 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 00:09:08 2022
Terminated at Tue May  3 00:19:02 2022
Results reported at Tue May  3 00:19:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0230.8+4032_daily_bin1673 37.7086 40.5416 672969601 673228801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0230.8+4032 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   383.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             248.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   594 sec.
    Turnaround time :                            800 sec.

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

