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


Performing analysis on: 4FGL_J0009.3+5030_daily_bin1726
RA = 2.3466, Dec = 50.5115
tmin = 686707201, tmax = 686966401
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='77354', job_status='RUN', time_executed='2022-10-09 00:06:03.216687', time_epoch_executed='1665299163.22' WHERE source_name='4FGL J0009.3+5030' and cadence='daily' and bin_id='1726'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/77354

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/77354/ft1_4FGL_J0009.3+5030_daily_bin1726.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/77354/ft2_4FGL_J0009.3+5030_daily_bin1726.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/77354/ft1_4FGL_J0009.3+5030_daily_bin1726.fits outfile=/scratch/kocevski/77354/ft1_filteredMKT_4FGL_J0009.3+5030_daily_bin1726.fits ra=2.3466 dec=50.5115 rad=12.0 tmin=686707201.0 tmax=686966401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.10
user 2.85
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/77354/ft2_4FGL_J0009.3+5030_daily_bin1726.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/77354/ft1_filteredMKT_4FGL_J0009.3+5030_daily_bin1726.fits evtable="EVENTS" outfile="/scratch/kocevski/77354/ft1_filtered_4FGL_J0009.3+5030_daily_bin1726.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.61
user 0.35
sys 0.17

Number of photons that the gtmktime cut: 501

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/77354/ft1_filtered_4FGL_J0009.3+5030_daily_bin1726.fits" evtable="EVENTS" scfile=/scratch/kocevski/77354/ft2_4FGL_J0009.3+5030_daily_bin1726.fits sctable="SC_DATA" outfile=/scratch/kocevski/77354/ltcube_686707201_686966401_4FGL_J0009.3+5030_daily_bin1726.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/77354/ft2_4FGL_J0009.3+5030_daily_bin1726.fits
.....................!
real 15.97
user 15.51
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/77354/ft1_filtered_4FGL_J0009.3+5030_daily_bin1726.fits evtable="EVENTS" scfile=/scratch/kocevski/77354/ft2_4FGL_J0009.3+5030_daily_bin1726.fits sctable="SC_DATA" expcube=/scratch/kocevski/77354/ltcube_686707201_686966401_4FGL_J0009.3+5030_daily_bin1726.fits outfile=/scratch/kocevski/77354/expmap_686707201_686966401_4FGL_J0009.3+5030_daily_bin1726.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/77354/ltcube_686707201_686966401_4FGL_J0009.3+5030_daily_bin1726.fits
.....................!
real 194.95
user 188.74
sys 5.35

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/77354/ft1_filtered_4FGL_J0009.3+5030_daily_bin1726.fits scfile=/scratch/kocevski/77354/ft2_4FGL_J0009.3+5030_daily_bin1726.fits outfile=/scratch/kocevski/77354/cmap_686707201_686966401_4FGL_J0009.3+5030_daily_bin1726.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 1.24
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/77354/ft1_filtered_4FGL_J0009.3+5030_daily_bin1726.fits scfile=/scratch/kocevski/77354/ft2_4FGL_J0009.3+5030_daily_bin1726.fits outfile=/scratch/kocevski/77354/cmap_HighResolution_686707201_686966401_4FGL_J0009.3+5030_daily_bin1726.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 1.48
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/77354/ft1_filtered_4FGL_J0009.3+5030_daily_bin1726.fits evtable="EVENTS" scfile=/scratch/kocevski/77354/ft2_4FGL_J0009.3+5030_daily_bin1726.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/77354/Model_4FGL_J0009.3+5030_daily_bin1726.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/77354/ft1_filtered_4FGL_J0009.3+5030_daily_bin1726.fits.....................!
real 117.70
user 84.27
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/77354/ft1_filtered_4FGL_J0009.3+5030_daily_bin1726.fits', '/scratch/kocevski/77354/ft2_4FGL_J0009.3+5030_daily_bin1726.fits', expMap='/scratch/kocevski/77354/expmap_686707201_686966401_4FGL_J0009.3+5030_daily_bin1726.fits', expCube='/scratch/kocevski/77354/ltcube_686707201_686966401_4FGL_J0009.3+5030_daily_bin1726.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/77354/Model_4FGL_J0009.3+5030_daily_bin1726.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/77354/ft1_filtered_4FGL_J0009.3+5030_daily_bin1726.fits
Spacecraft file(s): /scratch/kocevski/77354/ft2_4FGL_J0009.3+5030_daily_bin1726.fits
Exposure map: /scratch/kocevski/77354/expmap_686707201_686966401_4FGL_J0009.3+5030_daily_bin1726.fits
Exposure cube: /scratch/kocevski/77354/ltcube_686707201_686966401_4FGL_J0009.3+5030_daily_bin1726.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/77354/Model_4FGL_J0009.3+5030_daily_bin1726.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) = 5242.25576891

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19141E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    57.597       1.0000          .0000       .10000E+07
     3 'norm      '    5.5847       1.0000          .0000       .10000E+07
     4 'Prefactor '    .11066E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    87.907       1.0000          .0000       .10000E+07
     6 'Prefactor '    .87153E-08   1.0000          .0000       .10000E+07
     7 'norm      '    21.623       1.0000          .0000       .10000E+07
     8 'Prefactor '    .25206E-04   1.0000          .0000       .10000E+07
     9 'norm      '    75.143       1.0000          .0000       .10000E+07
    10 'norm      '    .63910E-06   1.0000          .0000       .10000E+07
    11 'norm      '    .40664E-05   1.0000          .0000       .10000E+07
    12 'norm      '    265.98       1.0000          .0000       .10000E+07
    13 'norm      '    20.241       1.0000          .0000       .10000E+07
    14 'norm      '    22.460       1.0000          .0000       .10000E+07
    15 'Prefactor '    .42773E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    33.687       1.0000          .0000       .10000E+07
    17 'Normalizat'    .58094       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .90786       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=   5242.218     FROM MIGRAD    STATUS=CONVERGED    134 CALLS     1569 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77716E-09    65.345        .14010E-05** at limit **
   2  Prefactor     57.607        2.3607        .40427E-07    .86638E-02
   3  norm          5.5860        5.5755       -.26768E-06    .98256E-03
   4  Prefactor     .55511E-10    124.82       -.13273E-04** at limit **
   5  Prefactor     87.937        22.577       -.10886E-06   -.48371E-02
   6  Prefactor     .11102E-09    29.921        .72766E-06** at limit **
   7  norm          21.623        16.567       -.32935E-06    .43287E-03
   8  Prefactor     .23731E-06    723.05       -.16891E-05** at limit **
   9  norm          75.142        1.6613        .49572E-07   -.21677E-01
  10  norm          .16653E-09    17.245       -.10613E-05** at limit **
  11  norm          .31952E-04    150.87       -.65917E-05** at limit **
  12  norm          266.01        1.9938       -.85087E-09   -.11804E-01
  13  norm          20.247        39.224        .65856E-06    .17671E-02
  14  norm          22.464        27.929        .18213E-06    .36626E-03
  15  Prefactor     .31071E-04    160.61       -.70437E-05** at limit **
  16  Prefactor     33.683        2.5633        .81672E-07    .66754E-02
  17  Normalizat    .58123        .50079        .13095E-04   -.62283E-05
  18  Prefactor     .90786        .72200E-01   -.11958E-06   -.30126E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.77156e-10
  Prefactor  = 57.6069
  norm       = 5.58604
  Prefactor  = 5.55112e-11
  Prefactor  = 87.9371
  Prefactor  = 1.11022e-10
  norm       = 21.6227
  Prefactor  = 2.3731e-07
  norm       = 75.1418
  norm       = 1.66533e-10
  norm       = 3.19518e-05
  norm       = 266.008
  norm       = 20.2467
  norm       = 22.4644
  Prefactor  = 3.10706e-05
  Prefactor  = 33.6829
  Normalizat = 0.581232
  Prefactor  = 0.907863
 **********
 **   18 **HESSE 
 **********

 FCN=   5242.218     FROM HESSE     STATUS=OK           282 CALLS     1851 TOTAL
                     EDM=   .43E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .77716E-09    65.305        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     57.607        66.867        .13177E-03   -1.5556    
   3  norm          5.5860        5.5881        .42488E-03   -1.5661    
   4  Prefactor     .55511E-10    124.65        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     87.937        127.76        .10666E-03   -1.5520    
   6  Prefactor     .11102E-09    29.893        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          21.623        16.559        .21511E-03   -1.5615    
   8  Prefactor     .23731E-06    748.66        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          75.142        59.665        .11537E-03   -1.5535    
  10  norm          .16653E-09    17.233        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .31952E-04    315.12        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          266.01        632.98        .61324E-04   -1.5382    
  13  norm          20.247        39.813        .22234E-03   -1.5618    
  14  norm          22.464        28.116        .21106E-03   -1.5613    
  15  Prefactor     .31071E-04    306.58        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     33.683        53.399        .17231E-03   -1.5592    
  17  Normalizat    .58123        .59933        .22411       -1.0879    
  18  Prefactor     .90786        .80365E-01    .26368E-01   -.95867    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2889e-07
Minuit parameter uncertainties:
  1  0.000442679
  2  66.8679
  3  5.58809
  4  0.000120022
  5  127.762
  6  0.000123985
  7  16.5591
  8  0.0266616
  9  59.6657
  10  0.00010782
  11  0.200696
  12  633.136
  13  39.8136
  14  28.1159
  15  0.19521
  16  53.3995
  17  0.606207
  18  0.0803758
Done.

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

Extracting fit parameters...

4FGL J0009.3+5030
   Spectrum: LogParabola
49          norm:  5.586e+00  5.588e+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

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  9.079e-01  8.038e-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:  5.812e-01  6.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.18
Ra Dec: 2.347 50.511
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 6.78e-08 +/- 6.79e-08
Energy Flux (Fixed Index): 5.57e-05 +/- 5.58e-05

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) = 5242.20373833
delta logL = 0.0142761585093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5242.20298428
delta logL = 0.0150302166148

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4371       1.0000          .0000       .10000E+07
     2 'alpha     '    1.7213       1.0000          .0000       5.0000    
     3 'Normalizat'    .59479       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90700       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.

 FCN=   5242.203     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      211 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4371        11.079        .43070E-03   -.16299E-01
   2  alpha         1.7213        1.4984        .44012       -.14726E-04
   3  Normalizat    .59467        .59640        .22167        .36906E-04
   4  Prefactor     .90702        .80387E-01    .26380E-01   -.29131E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.43712
  alpha      = 1.72134
  Normalizat = 0.594668
  Prefactor  = 0.907017
 **********
 **   18 **HESSE 
 **********

 FCN=   5242.203     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4371        5.6478        .16651E-04   -1.5661    
   2  alpha         1.7213        .95135        .22587E-01   -.31673    
   3  Normalizat    .59467        .49268        .98562E-03   -1.0821    
   4  Prefactor     .90702        .71670E-01    .11659E-03   -.95896    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59897e-09
Minuit parameter uncertainties:
  1  5.64784
  2  0.978807
  3  0.496374
  4  0.071677
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/77354': 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) = 5242.20298424
delta logL = 0.0150302494449

Extracting fit parameters...

4FGL J0009.3+5030
   Spectrum: LogParabola
49          norm:  5.437e+00  5.648e+00  0.000e+00  1.000e+06 ( 1.000e-12)
50         alpha:  1.721e+00  9.788e-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:  9.070e-01  7.168e-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:  5.947e-01  4.964e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.21
Ra Dec: 2.347 50.511
Photon Index (Free Index): 1.72 +/- 0.98
Photon Flux (Free Index): 5.26e-08 +/- 8.98e-08
Energy Flux (Free Index): 6.63e-05 +/- 1.02e-04

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/77354/cmap_HighResolution_686707201_686966401_4FGL_J0009.3+5030_daily_bin1726.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.78e-08', energy_flux2='6.63e-05', photon_flux_error='6.79e-08', dlogl='1.50e-02', energy_flux='5.57e-05', photon_flux2='5.26e-08', job_status='DONE', time_completed='2022-10-09 00:15:56.970566', photon_index_error2='0.98', photon_index2='1.72', ts='4.18', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.02e-04', EG='0.58', time_epoch_completed='1665299756.97', return_code='0', job_id='77354', GAL2='0.91', EG2='0.59', return_code2='0', energy_flux_error='5.58e-05', photon_flux_error2='8.98e-08', ts2='4.21', photon_index='1.90' WHERE bin_id='1726' AND source_name='4FGL J0009.3+5030' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Oct  9 00:15:56 PDT 2022

----------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 77398: <4FGL_J0009.3+5030_daily_bin1726> in cluster <slac> Done

Job <4FGL_J0009.3+5030_daily_bin1726> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Oct  9 00:05:16 2022
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct  9 00:05:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct  9 00:05:18 2022
Terminated at Sun Oct  9 00:13:35 2022
Results reported at Sun Oct  9 00:13:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0009.3+5030_daily_bin1726 2.3466 50.5115 686707201 686966401 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 :                                   428.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             327.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   496 sec.
    Turnaround time :                            499 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 77354: <4FGL_J0009.3+5030_daily_bin1726> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0009.3+5030_daily_bin1726 2.3466 50.5115 686707201 686966401 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 :                                   558.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             329.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   644 sec.
    Turnaround time :                            645 sec.

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

