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


Performing analysis on: 4FGL_J0005.9+3824_daily_bin1752
RA = 1.4986, Dec = 38.401
tmin = 693446401, tmax = 693705601
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='248090', job_status='RUN', time_executed='2022-12-26 00:08:30.708333', time_epoch_executed='1672042110.71' WHERE source_name='4FGL J0005.9+3824' and cadence='daily' and bin_id='1752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248090

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248090/ft1_4FGL_J0005.9+3824_daily_bin1752.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248090/ft2_4FGL_J0005.9+3824_daily_bin1752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248090/ft1_4FGL_J0005.9+3824_daily_bin1752.fits outfile=/scratch/kocevski/248090/ft1_filteredMKT_4FGL_J0005.9+3824_daily_bin1752.fits ra=1.4986 dec=38.401 rad=12.0 tmin=693446401.0 tmax=693705601.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.95
user 3.29
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/248090/ft2_4FGL_J0005.9+3824_daily_bin1752.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/248090/ft1_filteredMKT_4FGL_J0005.9+3824_daily_bin1752.fits evtable="EVENTS" outfile="/scratch/kocevski/248090/ft1_filtered_4FGL_J0005.9+3824_daily_bin1752.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.52
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 837

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248090/ft1_filtered_4FGL_J0005.9+3824_daily_bin1752.fits" evtable="EVENTS" scfile=/scratch/kocevski/248090/ft2_4FGL_J0005.9+3824_daily_bin1752.fits sctable="SC_DATA" outfile=/scratch/kocevski/248090/ltcube_693446401_693705601_4FGL_J0005.9+3824_daily_bin1752.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/248090/ft2_4FGL_J0005.9+3824_daily_bin1752.fits
.....................!
real 14.44
user 14.03
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248090/ft1_filtered_4FGL_J0005.9+3824_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/248090/ft2_4FGL_J0005.9+3824_daily_bin1752.fits sctable="SC_DATA" expcube=/scratch/kocevski/248090/ltcube_693446401_693705601_4FGL_J0005.9+3824_daily_bin1752.fits outfile=/scratch/kocevski/248090/expmap_693446401_693705601_4FGL_J0005.9+3824_daily_bin1752.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/248090/ltcube_693446401_693705601_4FGL_J0005.9+3824_daily_bin1752.fits
.....................!
real 192.49
user 187.31
sys 4.66

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/248090/ft1_filtered_4FGL_J0005.9+3824_daily_bin1752.fits scfile=/scratch/kocevski/248090/ft2_4FGL_J0005.9+3824_daily_bin1752.fits outfile=/scratch/kocevski/248090/cmap_693446401_693705601_4FGL_J0005.9+3824_daily_bin1752.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.59
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248090/ft1_filtered_4FGL_J0005.9+3824_daily_bin1752.fits scfile=/scratch/kocevski/248090/ft2_4FGL_J0005.9+3824_daily_bin1752.fits outfile=/scratch/kocevski/248090/cmap_HighResolution_693446401_693705601_4FGL_J0005.9+3824_daily_bin1752.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.57
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/248090/ft1_filtered_4FGL_J0005.9+3824_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/248090/ft2_4FGL_J0005.9+3824_daily_bin1752.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/248090/Model_4FGL_J0005.9+3824_daily_bin1752.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/248090/ft1_filtered_4FGL_J0005.9+3824_daily_bin1752.fits.....................!
real 99.19
user 97.07
sys 1.37

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/248090/ft1_filtered_4FGL_J0005.9+3824_daily_bin1752.fits', '/scratch/kocevski/248090/ft2_4FGL_J0005.9+3824_daily_bin1752.fits', expMap='/scratch/kocevski/248090/expmap_693446401_693705601_4FGL_J0005.9+3824_daily_bin1752.fits', expCube='/scratch/kocevski/248090/ltcube_693446401_693705601_4FGL_J0005.9+3824_daily_bin1752.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/248090/Model_4FGL_J0005.9+3824_daily_bin1752.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/248090/ft1_filtered_4FGL_J0005.9+3824_daily_bin1752.fits
Spacecraft file(s): /scratch/kocevski/248090/ft2_4FGL_J0005.9+3824_daily_bin1752.fits
Exposure map: /scratch/kocevski/248090/expmap_693446401_693705601_4FGL_J0005.9+3824_daily_bin1752.fits
Exposure cube: /scratch/kocevski/248090/ltcube_693446401_693705601_4FGL_J0005.9+3824_daily_bin1752.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/248090/Model_4FGL_J0005.9+3824_daily_bin1752.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) = 9100.71238917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60786E-05   1.0000          .0000       .10000E+07
     2 'norm      '    .27986E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    4.0109       1.0000          .0000       .10000E+07
     4 'Prefactor '    .52564E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    2.6077       1.0000          .0000       .10000E+07
     6 'Prefactor '    .64469E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .37394E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    43.920       1.0000          .0000       .10000E+07
     9 'norm      '    2.0263       1.0000          .0000       .10000E+07
    10 'Prefactor '    .48788E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .39522E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .82674E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .86797E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .65196       1.0000          .0000       .10000E+07
    15 'Prefactor '    8.0677       1.0000          .0000       .10000E+07
    16 'norm      '    6.4981       1.0000          .0000       .10000E+07
    17 'norm      '    .29396E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    30.607       1.0000          .0000       .10000E+07
    19 'norm      '    1.3882       1.0000          .0000       .10000E+07
    20 'Prefactor '    .14849E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .53923       1.0000          .0000       .10000E+07
    22 'Prefactor '    20.465       1.0000          .0000       .10000E+07
    23 'Prefactor '    .15594E-03   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.3298       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90204       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=   9100.694     FROM MIGRAD    STATUS=CONVERGED    157 CALLS     2107 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53618E-05    16.315       -.27973E-06** at limit **
   2  norm          .22204E-09    6.0821        .24012E-06** at limit **
   3  Prefactor     4.0558        5.5273       -.85147E-06   -.10452E-02
   4  Prefactor      .0000        5.0278       -.45597E-08** at limit **
   5  Prefactor     2.6099        2.3476       -.40930E-06    .10221E-02
   6  Prefactor     .16721E-05    8.5546       -.33127E-06** at limit **
   7  Prefactor     .69389E-08    8.9397       -.10480E-05** at limit **
   8  Prefactor     43.359        10.486       -.85358E-07    .36122E-01
   9  norm          2.0256        1.8078       -.83312E-08    .53860E-03
  10  Prefactor      .0000        1.9571        .30585E-06** at limit **
  11  Prefactor     .17286E-05    11.096        .89528E-06** at limit **
  12  Prefactor     .92656E-05    30.562        .25312E-05** at limit **
  13  Prefactor     .51947E-06    9.4808       -.10886E-05** at limit **
  14  norm          .65096        1.2815       -.15683E-06   -.10627E-02
  15  Prefactor     8.0825        1.6459        .11399E-06    .32491E-01
  16  norm          6.5088        5.0343        .16158E-06    .20559E-03
  17  norm          .72164E-09    5.1101       -.17826E-06** at limit **
  18  Prefactor     30.722        2.1430        .90649E-07    .32249E-02
  19  norm          1.3868        1.8628        .38930E-07    .23846E-03
  20  Prefactor     .22626E-06    11.021       -.18666E-05** at limit **
  21  Prefactor     .19681E-04    136.72       -.33915E-06** at limit **
  22  Prefactor     20.368        1.0698       -.92213E-08   -.17703E-03
  23  Prefactor      .0000        2.3102       -.81776E-06** at limit **
  24  Normalizat    1.3305        .22260       -.18107E-04    .11669E-04
  25  Prefactor     .90189        .10542        .76812E-05    .18530E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.36182e-06
  norm       = 2.22045e-10
  Prefactor  = 4.05575
  Prefactor  = 0
  Prefactor  = 2.60992
  Prefactor  = 1.67205e-06
  Prefactor  = 6.93889e-09
  Prefactor  = 43.359
  norm       = 2.02558
  Prefactor  = 0
  Prefactor  = 1.72856e-06
  Prefactor  = 9.26564e-06
  Prefactor  = 5.19473e-07
  norm       = 0.650955
  Prefactor  = 8.08253
  norm       = 6.50876
  norm       = 7.21645e-10
  Prefactor  = 30.7217
  norm       = 1.38681
  Prefactor  = 2.26263e-07
  Prefactor  = 1.96805e-05
  Prefactor  = 20.3685
  Prefactor  = 0
  Normalizat = 1.33052
  Prefactor  = 0.901888
 **********
 **   18 **HESSE 
 **********

 FCN=   9100.694     FROM HESSE     STATUS=OK           473 CALLS     2580 TOTAL
                     EDM=   .93E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .53618E-05    24.144        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .22204E-09    6.0917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.0558        5.5516        .50331E-03   -1.5668    
   4  Prefactor      .0000        5.0158        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.6099        2.3573        .63144E-03   -1.5676    
   6  Prefactor     .16721E-05    17.378        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .69389E-08    8.9674        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     43.359        36.839        .15091E-03   -1.5576    
   9  norm          2.0256        1.7980        .72656E-03   -1.5679    
  10  Prefactor      .0000        1.9543        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .17286E-05    13.779        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .92656E-05    41.058        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .51947E-06    19.750        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .65096        1.3053        .64697E-03   -1.5692    
  15  Prefactor     8.0825        11.355        .35275E-03   -1.5651    
  16  norm          6.5088        5.3656        .39346E-03   -1.5657    
  17  norm          .72164E-09    5.1210        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     30.722        25.692        .18078E-03   -1.5597    
  19  norm          1.3868        1.9020        .92234E-03   -1.5684    
  20  Prefactor     .22626E-06    11.367        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .19681E-04    178.61        .74858E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     20.368        28.957        .22112E-03   -1.5618    
  23  Prefactor      .0000        2.3093        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3305        .19519        .72773E-01   -.82660    
  25  Prefactor     .90189        .90662E-01    .45031E-01   -.96075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.30417e-07
Minuit parameter uncertainties:
  1  0.0227557
  2  7.41195e-05
  3  5.55158
  4  2.2584e-05
  5  2.35735
  6  0.010781
  7  0.000499421
  8  36.8395
  9  1.79799
  10  1.35682e-06
  11  0.00976079
  12  0.0390095
  13  0.00640596
  14  1.30534
  15  11.3548
  16  5.36563
  17  0.000121028
  18  25.692
  19  1.90204
  20  0.0032076
  21  0.11858
  22  28.9572
  23  8.7977e-07
  24  0.195295
  25  0.0906774
Done.

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

Extracting fit parameters...

4FGL J0005.9+3824
   Spectrum: LogParabola
23          norm:  2.220e-10  7.412e-05  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.019e-01  9.068e-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.331e+00  1.953e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 1.499 38.401
Photon Flux Upper Limit: 6.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.57e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/248090/likelihoodResults_693446401_693705601_4FGL_J0005.9+3824_daily_bin1752.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9100.69446836
delta logL = -0.000145235339005

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9100.6943232
delta logL = -8.06230673334e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .36360E-07   1.0000          .0000       .10000E+07
     2 'alpha     '    1.4874       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3306       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90188       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9100.694     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      240 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.5388        .42118E-03** at limit **
   2  alpha         3.9050        .92792        .27287E-04     .0000    
   3  Normalizat    1.3305        1.0733       -.30982E-05    .11659E-03
   4  Prefactor     .90189        1.2467        .25557E-06    .14873E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 3.90503
  Normalizat = 1.33052
  Prefactor  = 0.901888
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9100.694     FROM HESSE     STATUS=FAILED         9 CALLS      249 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        2.5388        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7168        1.0389        .27287E-04    .59682    
   3  Normalizat    1.3305        1.0733       -.30982E-05   -.82660    
   4  Prefactor     .90189        1.2467        .25557E-06   -.96075    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.15056e-11
Minuit parameter uncertainties:
  1  4.32343e-06
  2  0.962276
  3  1.09216
  4  1.28986
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248090': 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): 101
logL (Free Index) = 9100.69432312
delta logL = 9.09494701773e-12

Extracting fit parameters...

4FGL J0005.9+3824
   Spectrum: LogParabola
23          norm:  0.000e+00  4.323e-06  0.000e+00  1.000e+06 ( 1.000e-12)
24         alpha:  3.905e+00  9.623e-01  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.019e-01  1.290e+00  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.331e+00  1.092e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 1.499 38.401

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/248090/cmap_HighResolution_693446401_693705601_4FGL_J0005.9+3824_daily_bin1752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.57e-05', job_status='DONE', photon_flux_upper_limit='6.06e-08', time_completed='2022-12-26 00:21:08.238399', job_id='248090', GAL2='0.90', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1672042868.24', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='9.09e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1752' AND source_name='4FGL J0005.9+3824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 26 00:21:08 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 248089: <4FGL_J0005.9+3824_daily_bin1752> in cluster <slac> Done

Job <4FGL_J0005.9+3824_daily_bin1752> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Dec 26 00:06:07 2022
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 26 00:06:52 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 26 00:06:52 2022
Terminated at Mon Dec 26 00:20:10 2022
Results reported at Mon Dec 26 00:20:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0005.9+3824_daily_bin1752 1.4986 38.401 693446401 693705601 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 :                                   752.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             367.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            843 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 248090: <4FGL_J0005.9+3824_daily_bin1752> in cluster <slac> Done

Job <4FGL_J0005.9+3824_daily_bin1752> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Dec 26 00:06:07 2022
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 26 00:06:52 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 26 00:06:52 2022
Terminated at Mon Dec 26 00:21:09 2022
Results reported at Mon Dec 26 00:21:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0005.9+3824_daily_bin1752 1.4986 38.401 693446401 693705601 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 :                                   753.34 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             326.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            902 sec.

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

