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


Performing analysis on: 4FGL_J0005.9+3824_daily_bin1725
RA = 1.4986, Dec = 38.401
tmin = 686448001, tmax = 686707201
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='875161', job_status='RUN', time_executed='2022-10-06 00:08:53.609973', time_epoch_executed='1665040133.61' WHERE source_name='4FGL J0005.9+3824' and cadence='daily' and bin_id='1725'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/875161

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/875161/ft1_4FGL_J0005.9+3824_daily_bin1725.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/875161/ft2_4FGL_J0005.9+3824_daily_bin1725.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/875161/ft1_4FGL_J0005.9+3824_daily_bin1725.fits outfile=/scratch/kocevski/875161/ft1_filteredMKT_4FGL_J0005.9+3824_daily_bin1725.fits ra=1.4986 dec=38.401 rad=12.0 tmin=686448001.0 tmax=686707201.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.58
user 4.30
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/875161/ft2_4FGL_J0005.9+3824_daily_bin1725.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/875161/ft2_4FGL_J0005.9+3824_daily_bin1725.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/875161/ft1_filteredMKT_4FGL_J0005.9+3824_daily_bin1725.fits evtable="EVENTS" outfile="/scratch/kocevski/875161/ft1_filtered_4FGL_J0005.9+3824_daily_bin1725.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.16

Number of photons that the gtmktime cut: 648

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/875161/ft1_filtered_4FGL_J0005.9+3824_daily_bin1725.fits" evtable="EVENTS" scfile=/scratch/kocevski/875161/ft2_4FGL_J0005.9+3824_daily_bin1725.fits sctable="SC_DATA" outfile=/scratch/kocevski/875161/ltcube_686448001_686707201_4FGL_J0005.9+3824_daily_bin1725.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/875161/ft2_4FGL_J0005.9+3824_daily_bin1725.fits
.....................!
real 12.15
user 11.80
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/875161/ft1_filtered_4FGL_J0005.9+3824_daily_bin1725.fits evtable="EVENTS" scfile=/scratch/kocevski/875161/ft2_4FGL_J0005.9+3824_daily_bin1725.fits sctable="SC_DATA" expcube=/scratch/kocevski/875161/ltcube_686448001_686707201_4FGL_J0005.9+3824_daily_bin1725.fits outfile=/scratch/kocevski/875161/expmap_686448001_686707201_4FGL_J0005.9+3824_daily_bin1725.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/875161/ltcube_686448001_686707201_4FGL_J0005.9+3824_daily_bin1725.fits
.....................!
real 192.06
user 186.39
sys 4.93

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 FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Added 158 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 J0005.9+3824 @ 1.4986 38.401

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/875161/ft1_filtered_4FGL_J0005.9+3824_daily_bin1725.fits scfile=/scratch/kocevski/875161/ft2_4FGL_J0005.9+3824_daily_bin1725.fits outfile=/scratch/kocevski/875161/cmap_686448001_686707201_4FGL_J0005.9+3824_daily_bin1725.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=1.4986 yref=38.401 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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/875161/ft1_filtered_4FGL_J0005.9+3824_daily_bin1725.fits scfile=/scratch/kocevski/875161/ft2_4FGL_J0005.9+3824_daily_bin1725.fits outfile=/scratch/kocevski/875161/cmap_HighResolution_686448001_686707201_4FGL_J0005.9+3824_daily_bin1725.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=1.4986 yref=38.401 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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/875161/ft1_filtered_4FGL_J0005.9+3824_daily_bin1725.fits evtable="EVENTS" scfile=/scratch/kocevski/875161/ft2_4FGL_J0005.9+3824_daily_bin1725.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/875161/Model_4FGL_J0005.9+3824_daily_bin1725.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 FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/875161/ft1_filtered_4FGL_J0005.9+3824_daily_bin1725.fits.....................!
real 78.69
user 77.12
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/875161/ft1_filtered_4FGL_J0005.9+3824_daily_bin1725.fits', '/scratch/kocevski/875161/ft2_4FGL_J0005.9+3824_daily_bin1725.fits', expMap='/scratch/kocevski/875161/expmap_686448001_686707201_4FGL_J0005.9+3824_daily_bin1725.fits', expCube='/scratch/kocevski/875161/ltcube_686448001_686707201_4FGL_J0005.9+3824_daily_bin1725.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/875161/Model_4FGL_J0005.9+3824_daily_bin1725.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0005.9+3824'

4FGL J0005.9+3824
   Spectrum: LogParabola
23          norm:  7.465e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
24         alpha:  2.552e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
25          beta:  1.899e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
26            Eb:  4.501e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/875161/ft1_filtered_4FGL_J0005.9+3824_daily_bin1725.fits
Spacecraft file(s): /scratch/kocevski/875161/ft2_4FGL_J0005.9+3824_daily_bin1725.fits
Exposure map: /scratch/kocevski/875161/expmap_686448001_686707201_4FGL_J0005.9+3824_daily_bin1725.fits
Exposure cube: /scratch/kocevski/875161/ltcube_686448001_686707201_4FGL_J0005.9+3824_daily_bin1725.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/875161/Model_4FGL_J0005.9+3824_daily_bin1725.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) = 6932.75101038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5130       1.0000          .0000       .10000E+07
     2 'norm      '    8.1608       1.0000          .0000       .10000E+07
     3 'Prefactor '    .55099       1.0000          .0000       .10000E+07
     4 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
     5 'Prefactor '     .0000       1.0000          .0000       .10000E+07
     6 'Prefactor '     .0000       1.0000          .0000       .10000E+07
     7 'Prefactor '    .21254E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    26.709       1.0000          .0000       .10000E+07
     9 'norm      '    5.9847       1.0000          .0000       .10000E+07
    10 'Prefactor '    .16364E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    11.391       1.0000          .0000       .10000E+07
    12 'Prefactor '    .48128E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    .38303E-08   1.0000          .0000       .10000E+07
    14 'norm      '    2.6328       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.3906       1.0000          .0000       .10000E+07
    16 'norm      '    .57732E-08   1.0000          .0000       .10000E+07
    17 'norm      '    5.0586       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.3474       1.0000          .0000       .10000E+07
    19 'norm      '    .17042E-06   1.0000          .0000       .10000E+07
    20 'Prefactor '    .33842E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    .24591E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    23 'Prefactor '    .22204E-09   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.0556       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91386       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6932.749     FROM MIGRAD    STATUS=CONVERGED    154 CALLS     2527 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5016        1.1529       -.27026E-06   -.36075E-02
   2  norm          8.1661        2.4375        .85026E-06    .39888E-01
   3  Prefactor     .55111        9.1215        .81464E-05    .43620E-02
   4  Prefactor     .61062E-09    3.9875        .66344E-06** at limit **
   5  Prefactor      .0000        1.4254        .11450E-05** at limit **
   6  Prefactor     .33307E-08    5.6295        .14627E-05** at limit **
   7  Prefactor     .44509E-04    45.589       -.10542E-04** at limit **
   8  Prefactor     26.710        1.0606        .24942E-07   -.91108E-03
   9  norm          5.9850        2.9294        .25310E-06   -.20255E-02
  10  Prefactor     .23703E-07    7.0044       -.12044E-05** at limit **
  11  Prefactor     11.392        1.1910       -.71891E-07    .55550E-02
  12  Prefactor     .72697E-05    14.302       -.40179E-05** at limit **
  13  Prefactor     .77716E-09    10.731       -.12569E-06** at limit **
  14  norm          2.6329        1.7795       -.12700E-06   -.28844E-03
  15  Prefactor     1.4023        25.245        .46082E-05    .11330E-01
  16  norm          .55511E-10    2.4497       -.19400E-06** at limit **
  17  norm          5.0597        7.5802       -.73462E-07   -.51179E-03
  18  Prefactor     2.3416        1.6881       -.76407E-06   -.44245E-02
  19  norm           .0000        2.9526        .70413E-06** at limit **
  20  Prefactor     .53867E-04    26.524        .34812E-05** at limit **
  21  Prefactor     .84108E-05    23.800        .62389E-05** at limit **
  22  Prefactor     .60446E-06    14.529        .47407E-05** at limit **
  23  Prefactor     .55511E-10    1.6031        .22040E-06** at limit **
  24  Normalizat    1.0554        .22833       -.41868E-04   -.26685E-04
  25  Prefactor     .91388        .11138        .96513E-05   -.97776E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.50162
  norm       = 8.16608
  Prefactor  = 0.551108
  Prefactor  = 6.10623e-10
  Prefactor  = 0
  Prefactor  = 3.33067e-09
  Prefactor  = 4.4509e-05
  Prefactor  = 26.7099
  norm       = 5.98498
  Prefactor  = 2.37033e-08
  Prefactor  = 11.3924
  Prefactor  = 7.26968e-06
  Prefactor  = 7.77156e-10
  norm       = 2.63294
  Prefactor  = 1.40226
  norm       = 5.55112e-11
  norm       = 5.05974
  Prefactor  = 2.34162
  norm       = 0
  Prefactor  = 5.38672e-05
  Prefactor  = 8.41083e-06
  Prefactor  = 6.04461e-07
  Prefactor  = 5.55112e-11
  Normalizat = 1.05539
  Prefactor  = 0.913876
 **********
 **   18 **HESSE 
 **********

 FCN=   6932.749     FROM HESSE     STATUS=OK           475 CALLS     3002 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5016        24.035        .53914E-03   -1.5671    
   2  norm          8.1661        14.254        .35071E-03   -1.5651    
   3  Prefactor     .55111        9.9811        .73738E-03   -1.5693    
   4  Prefactor     .61062E-09    3.9929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        1.4273        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .33307E-08    5.6494        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .44509E-04    62.979        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     26.710        34.353        .19353E-03   -1.5605    
   9  norm          5.9850        2.9351        .41022E-03   -1.5659    
  10  Prefactor     .23703E-07    26.271        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.392        14.026        .29659E-03   -1.5640    
  12  Prefactor     .72697E-05    21.204        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .77716E-09    10.772        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.6329        1.7930        .62819E-03   -1.5676    
  15  Prefactor     1.4023        25.729        .92117E-03   -1.5684    
  16  norm          .55511E-10    2.4540        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.0597        7.5793        .44683E-03   -1.5663    
  18  Prefactor     2.3416        40.236        .66882E-03   -1.5677    
  19  norm           .0000        2.9200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .53867E-04    48.621        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .84108E-05    28.519        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .60446E-06    14.928        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .55511E-10    1.6049        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0554        .20378        .71645E-01   -.91197    
  25  Prefactor     .91388        .95585E-01    .45181E-01   -.95658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54065e-06
Minuit parameter uncertainties:
  1  18.348
  2  14.2536
  3  4.6907
  4  9.97641e-05
  5  9.1999e-06
  6  0.000274365
  7  0.10589
  8  34.3535
  9  2.9351
  10  0.00157792
  11  14.0262
  12  0.0248314
  13  0.000179861
  14  1.79297
  15  12.0132
  16  2.35504e-05
  17  7.57932
  18  19.4132
  19  1.24661e-05
  20  0.102355
  21  0.0309754
  22  0.00600768
  23  1.39002e-05
  24  0.203929
  25  0.0956021
Done.

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

Extracting fit parameters...

4FGL J0005.9+3824
   Spectrum: LogParabola
23          norm:  8.166e+00  1.425e+01  0.000e+00  1.000e+06 ( 1.000e-12)
24         alpha:  2.552e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
25          beta:  1.899e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
26            Eb:  4.501e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  9.139e-01  9.560e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  1.055e+00  2.039e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.44
Ra Dec: 1.499 38.401
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.63e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/875161/likelihoodResults_686448001_686707201_4FGL_J0005.9+3824_daily_bin1725.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): 0
logL (Free Index) = 6932.39009317
delta logL = 0.359140223346

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6932.34743213
delta logL = 0.401801259244

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6932.347     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      309 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6189        79.818        .83155E-03    .13723E-01
   2  alpha         5.0000        4.5891        .46268    ** at limit **
   3  Normalizat    .99989        .14432        .73391E-01    .32404E-04
   4  Prefactor     .93231        .67388E-01    .45414E-01    .13985E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.61889
  alpha      = 5
  Normalizat = 0.999894
  Prefactor  = 0.932313
 **********
 **   18 **HESSE 
 **********

 FCN=   6932.347     FROM HESSE     STATUS=OK            33 CALLS      342 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6189        2.1885        .10212E-04   -1.5683    
   2  alpha         5.0000        4.2349        .50000        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .99989        .23759        .32473E-03   -.93034    
   4  Prefactor     .93231        .11287        .16280E-03   -.95021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09083e-10
Minuit parameter uncertainties:
  1  2.18848
  2  0.000315057
  3  0.237844
  4  0.112898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/875161': 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) = 6932.34742994
delta logL = 0.401803454819

Extracting fit parameters...

4FGL J0005.9+3824
   Spectrum: LogParabola
23          norm:  1.619e+00  2.188e+00  0.000e+00  1.000e+06 ( 1.000e-12)
24         alpha:  5.000e+00  3.151e-04  0.000e+00  5.000e+00 ( 1.000e+00)
25          beta:  1.899e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
26            Eb:  4.501e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  9.323e-01  1.129e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  9.999e-01  2.378e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.32
Ra Dec: 1.499 38.401
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 5.53e-08 +/- 7.44e-08
Energy Flux (Free Index): 7.59e-06 +/- 1.02e-05

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/875161/cmap_HighResolution_686448001_686707201_4FGL_J0005.9+3824_daily_bin1725.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.63e-05', comment='SUCCESS', energy_flux2='7.59e-06', dlogl='4.02e-01', photon_flux2='5.53e-08', job_status='DONE', time_completed='2022-10-06 00:20:23.871400', photon_index_error2='0.00', photon_index2='5.00', ts='0.44', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='1.02e-05', EG='1.06', time_epoch_completed='1665040823.87', return_code='0', job_id='875161', GAL2='0.93', EG2='1.00', return_code2='0', photon_flux_error2='7.44e-08', ts2='1.32', photon_index='2.55' WHERE bin_id='1725' AND source_name='4FGL J0005.9+3824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Oct  6 00:20:23 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 875158: <4FGL_J0005.9+3824_daily_bin1725> in cluster <slac> Done

Job <4FGL_J0005.9+3824_daily_bin1725> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Oct  6 00:05:39 2022
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct  6 00:05:40 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct  6 00:05:40 2022
Terminated at Thu Oct  6 00:19:28 2022
Results reported at Thu Oct  6 00:19:28 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0005.9+3824_daily_bin1725 1.4986 38.401 686448001 686707201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0005.9+3824 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   695.09 sec.
    Max Memory :                                 781 MB
    Average Memory :                             284.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            829 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 875161: <4FGL_J0005.9+3824_daily_bin1725> in cluster <slac> Done

Job <4FGL_J0005.9+3824_daily_bin1725> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Oct  6 00:05:39 2022
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct  6 00:05:40 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct  6 00:05:40 2022
Terminated at Thu Oct  6 00:20:24 2022
Results reported at Thu Oct  6 00:20:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0005.9+3824_daily_bin1725 1.4986 38.401 686448001 686707201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0005.9+3824 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   691.46 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             297.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            885 sec.

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

