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 54 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0009.3+5030_daily_bin1728
RA = 2.3466, Dec = 50.5115
tmin = 687225601, tmax = 687484801
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='294201', job_status='RUN', time_executed='2022-10-15 00:06:19.535936', time_epoch_executed='1665817579.54' WHERE source_name='4FGL J0009.3+5030' and cadence='daily' and bin_id='1728'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/294201

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/294201/ft1_4FGL_J0009.3+5030_daily_bin1728.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/294201/ft2_4FGL_J0009.3+5030_daily_bin1728.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/294201/ft1_4FGL_J0009.3+5030_daily_bin1728.fits outfile=/scratch/kocevski/294201/ft1_filteredMKT_4FGL_J0009.3+5030_daily_bin1728.fits ra=2.3466 dec=50.5115 rad=12.0 tmin=687225601.0 tmax=687484801.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.87
user 2.57
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/294201/ft2_4FGL_J0009.3+5030_daily_bin1728.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/294201/ft2_4FGL_J0009.3+5030_daily_bin1728.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/294201/ft1_filteredMKT_4FGL_J0009.3+5030_daily_bin1728.fits evtable="EVENTS" outfile="/scratch/kocevski/294201/ft1_filtered_4FGL_J0009.3+5030_daily_bin1728.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.83
user 0.32
sys 0.18

Number of photons that the gtmktime cut: 95

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/294201/ft1_filtered_4FGL_J0009.3+5030_daily_bin1728.fits" evtable="EVENTS" scfile=/scratch/kocevski/294201/ft2_4FGL_J0009.3+5030_daily_bin1728.fits sctable="SC_DATA" outfile=/scratch/kocevski/294201/ltcube_687225601_687484801_4FGL_J0009.3+5030_daily_bin1728.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/294201/ft2_4FGL_J0009.3+5030_daily_bin1728.fits
.....................!
real 13.00
user 12.56
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/294201/ft1_filtered_4FGL_J0009.3+5030_daily_bin1728.fits evtable="EVENTS" scfile=/scratch/kocevski/294201/ft2_4FGL_J0009.3+5030_daily_bin1728.fits sctable="SC_DATA" expcube=/scratch/kocevski/294201/ltcube_687225601_687484801_4FGL_J0009.3+5030_daily_bin1728.fits outfile=/scratch/kocevski/294201/expmap_687225601_687484801_4FGL_J0009.3+5030_daily_bin1728.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/294201/ltcube_687225601_687484801_4FGL_J0009.3+5030_daily_bin1728.fits
.....................!
real 193.15
user 187.20
sys 5.24

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 CTB 109 in ROI with RadialDisk spatial model.
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W3.fits is the correct path to the extended template.
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Added 192 point sources and 5 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 J0009.3+5030 @ 2.3466 50.5115

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/294201/ft1_filtered_4FGL_J0009.3+5030_daily_bin1728.fits scfile=/scratch/kocevski/294201/ft2_4FGL_J0009.3+5030_daily_bin1728.fits outfile=/scratch/kocevski/294201/cmap_687225601_687484801_4FGL_J0009.3+5030_daily_bin1728.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=2.3466 yref=50.5115 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.41
user 0.38
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/294201/ft1_filtered_4FGL_J0009.3+5030_daily_bin1728.fits scfile=/scratch/kocevski/294201/ft2_4FGL_J0009.3+5030_daily_bin1728.fits outfile=/scratch/kocevski/294201/cmap_HighResolution_687225601_687484801_4FGL_J0009.3+5030_daily_bin1728.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=2.3466 yref=50.5115 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 2.11
user 0.39
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/294201/ft1_filtered_4FGL_J0009.3+5030_daily_bin1728.fits evtable="EVENTS" scfile=/scratch/kocevski/294201/ft2_4FGL_J0009.3+5030_daily_bin1728.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/294201/Model_4FGL_J0009.3+5030_daily_bin1728.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 CTB 109
adding source EG_v02
adding source FHES J2208.4+6443
adding source FHES J2304.0+5406
adding source GAL_V02
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/294201/ft1_filtered_4FGL_J0009.3+5030_daily_bin1728.fits........................!
real 51.67
user 26.62
sys 1.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/294201/ft1_filtered_4FGL_J0009.3+5030_daily_bin1728.fits', '/scratch/kocevski/294201/ft2_4FGL_J0009.3+5030_daily_bin1728.fits', expMap='/scratch/kocevski/294201/expmap_687225601_687484801_4FGL_J0009.3+5030_daily_bin1728.fits', expCube='/scratch/kocevski/294201/ltcube_687225601_687484801_4FGL_J0009.3+5030_daily_bin1728.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/294201/Model_4FGL_J0009.3+5030_daily_bin1728.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0009.3+5030'

4FGL J0009.3+5030
   Spectrum: LogParabola
49          norm:  1.541e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
50         alpha:  1.898e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
51          beta:  6.229e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
52            Eb:  1.317e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/294201/ft1_filtered_4FGL_J0009.3+5030_daily_bin1728.fits
Spacecraft file(s): /scratch/kocevski/294201/ft2_4FGL_J0009.3+5030_daily_bin1728.fits
Exposure map: /scratch/kocevski/294201/expmap_687225601_687484801_4FGL_J0009.3+5030_daily_bin1728.fits
Exposure cube: /scratch/kocevski/294201/ltcube_687225601_687484801_4FGL_J0009.3+5030_daily_bin1728.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/294201/Model_4FGL_J0009.3+5030_daily_bin1728.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) = 1052.76958695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29444E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    .10086E-06   1.0000          .0000       .10000E+07
     3 'norm      '    9440.1       1.0000          .0000       .10000E+07
     4 'Prefactor '    .10000E+07   1.0000          .0000       .10000E+07
     5 'Prefactor '    .10000E+07   1.0000          .0000       .10000E+07
     6 'Prefactor '    15.652       1.0000          .0000       .10000E+07
     7 'norm      '    31.213       1.0000          .0000       .10000E+07
     8 'Prefactor '    .10000E+07   1.0000          .0000       .10000E+07
     9 'norm      '    41.098       1.0000          .0000       .10000E+07
    10 'norm      '    19.136       1.0000          .0000       .10000E+07
    11 'norm      '    706.94       1.0000          .0000       .10000E+07
    12 'norm      '    .26701E-07   1.0000          .0000       .10000E+07
    13 'norm      '    .91132E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .48992E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .95038E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .94595E-04   1.0000          .0000       .10000E+07
    17 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    18 'Prefactor '    .24277       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   981.5907     FROM MIGRAD    STATUS=CONVERGED     88 CALLS     1643 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30207E-01    245.37        .21427E-05** at limit **
   2  Prefactor     .36282E-05    255.72        .24661E-05** at limit **
   3  norm          9440.1        1.0003        .10431E-10    .25021E-02
   4  Prefactor     .10000E+07    3.1898       -.18644E-06   -.26011E-01
   5  Prefactor     .10000E+07    1.3978       -.74667E-07   -.10769E-01
   6  Prefactor     15.669        11.755       -.16269E-06   -.33213E-01
   7  norm          31.197        40.876       -.45386E-06   -.73348E-01
   8  Prefactor     .10000E+07    .76971       -.12802E-07** at limit **
   9  norm          41.161        1.8137       -.11246E-07   -.43127E-03
  10  norm          19.132        17.809        .74972E-06   -.11778E-03
  11  norm          706.96        1.0454       -.36668E-09   -.86527E-02
  12  norm           .0000        23.736        .88926E-06** at limit **
  13  norm          .21216E-02    119.18        .78525E-06** at limit **
  14  norm          .38358E-07    109.07       -.22460E-05** at limit **
  15  Prefactor     .53020E-02    204.57        .23834E-05** at limit **
  16  Prefactor     .14990E-02    228.52       -.27632E-06** at limit **
  17  Normalizat    .10000E-01    .10049        .21392E-05** at limit **
  18  Prefactor     .24275        .58747E-01    .62264E-05   -.89448E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0302069
  Prefactor  = 3.62821e-06
  norm       = 9440.09
  Prefactor  = 999999
  Prefactor  = 999999
  Prefactor  = 15.6694
  norm       = 31.1973
  Prefactor  = 1e+06
  norm       = 41.1608
  norm       = 19.1315
  norm       = 706.955
  norm       = 0
  norm       = 0.00212162
  norm       = 3.83582e-08
  Prefactor  = 0.005302
  Prefactor  = 0.00149905
  Normalizat = 0.01
  Prefactor  = 0.242754
 **********
 **   18 **HESSE 
 **********

 FCN=   981.5907     FROM HESSE     STATUS=OK           274 CALLS     1917 TOTAL
                     EDM=   .12E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30207E-01    1052.3        .42118E-03   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .36282E-05    706.87        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9440.1        5452.1        .10341E-04   -1.3762    
   4  Prefactor     .10000E+07    17334.        .42118E-03    1.5690    
   5  Prefactor     .10000E+07    43402.        .42118E-03    1.5689    
   6  Prefactor     15.669        62.034        .25290E-03   -1.5629    
   7  norm          31.197        45.207        .17902E-03   -1.5596    
   8  Prefactor     .10000E+07    .72812E+06    .17380E-01    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          41.161        124.27        .15600E-03   -1.5580    
  10  norm          19.132        17.929        .22868E-03   -1.5620    
  11  norm          706.96        708.16        .37624E-04   -1.5176    
  12  norm           .0000        23.730        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .21216E-02    400.93        .42118E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .38358E-07    109.10        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .53020E-02    551.00        .42118E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .14990E-02    304.60        .42118E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .10000E-01    .10034        .13924       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .24275        .61694E-01    .25164E-01   -1.2579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.000116659
Minuit parameter uncertainties:
  1  11.2778
  2  0.101297
  3  5454.97
  4  239.526
  5  398.188
  6  62.0366
  7  45.2072
  8  175.42
  9  124.275
  10  17.929
  11  708.244
  12  8.50598e-07
  13  1.84471
  14  0.00409249
  15  3.41873
  16  1.35152
  17  5.41856e-08
  18  0.061711
Done.

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

Extracting fit parameters...

4FGL J0009.3+5030
   Spectrum: LogParabola
49          norm:  9.440e+03  5.455e+03  0.000e+00  1.000e+06 ( 1.000e-12)
50         alpha:  1.898e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
51          beta:  6.229e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
52            Eb:  1.317e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  2.428e-01  6.171e-02  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  1.000e-02  5.419e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.83
Ra Dec: 2.347 50.511
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 1.15e-04 +/- 6.62e-05
Energy Flux (Fixed Index): 9.42e-02 +/- 5.44e-02

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) = 974.477511934
delta logL = 7.11321012472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 974.466455308
delta logL = 7.12426675066

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    923.00       1.0000          .0000       .10000E+07
     2 'alpha     '    3.9092       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .23565       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6610E+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=   974.4665     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      300 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          922.78        1319.9        .65861E-05    .18829E-02
   2  alpha         3.9094        .68343        .27497E-03    .23871E-03
   3  Normalizat    .10000E-01    .84501E-01    .27996E-02** at limit **
   4  Prefactor     .23564        .55418E-01    .10902E-03   -.11628E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 922.778
  alpha      = 3.90936
  Normalizat = 0.01
  Prefactor  = 0.235639
 **********
 **   18 **HESSE 
 **********

 FCN=   974.4665     FROM HESSE     STATUS=OK            23 CALLS      323 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          922.78        1306.7        .13172E-05   -1.5100    
   2  alpha         3.9094        .67689        .54994E-04    .59891    
   3  Normalizat    .10000E-01    .84501E-01    .55993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .23564        .55402E-01    .21805E-04   -1.2626    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.32788e-10
Minuit parameter uncertainties:
  1  1307.15
  2  0.689645
  3  2.5618e-07
  4  0.0554148
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/294201': 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) = 974.46645525
delta logL = 7.12426680834

Extracting fit parameters...

4FGL J0009.3+5030
   Spectrum: LogParabola
49          norm:  9.228e+02  1.307e+03  0.000e+00  1.000e+06 ( 1.000e-12)
50         alpha:  3.909e+00  6.896e-01  0.000e+00  5.000e+00 ( 1.000e+00)
51          beta:  6.229e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
52            Eb:  1.317e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  2.356e-01  5.541e-02  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  1.000e-02  2.562e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 25.38
Ra Dec: 2.347 50.511
Photon Index (Free Index): 3.91 +/- 0.69
Photon Flux (Free Index): 5.52e-04 +/- 2.29e-04
Energy Flux (Free Index): 8.75e-02 +/- 3.37e-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/294201/cmap_HighResolution_687225601_687484801_4FGL_J0009.3+5030_daily_bin1728.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.15e-04', energy_flux2='8.75e-02', photon_flux_error='6.62e-05', dlogl='7.12e+00', energy_flux='9.42e-02', photon_flux2='5.52e-04', job_status='DONE', time_completed='2022-10-15 00:13:18.223992', photon_index_error2='0.69', photon_index2='3.91', ts='10.83', fit_tolerance='1e-08', GAL='0.24', photon_index_error='0.00', energy_flux_error2='3.37e-02', EG='0.01', time_epoch_completed='1665817998.22', return_code='0', job_id='294201', GAL2='0.24', EG2='0.01', return_code2='0', energy_flux_error='5.44e-02', photon_flux_error2='2.29e-04', ts2='25.38', photon_index='1.90' WHERE bin_id='1728' AND source_name='4FGL J0009.3+5030' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Oct 15 00:13:18 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 294201: <4FGL_J0009.3+5030_daily_bin1728> in cluster <slac> Done

Job <4FGL_J0009.3+5030_daily_bin1728> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Oct 15 00:05:05 2022
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct 15 00:05:06 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct 15 00:05:06 2022
Terminated at Sat Oct 15 00:13:20 2022
Results reported at Sat Oct 15 00:13:20 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0009.3+5030_daily_bin1728 2.3466 50.5115 687225601 687484801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0009.3+5030 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   370.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   494 sec.
    Turnaround time :                            495 sec.

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

