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


Performing analysis on: 4FGL_J0033.9+3858_daily_bin1723
RA = 8.483, Dec = 38.9716
tmin = 685929601, tmax = 686188801
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='430071', job_status='RUN', time_executed='2022-09-30 00:07:00.396015', time_epoch_executed='1664521620.4' WHERE source_name='4FGL J0033.9+3858' and cadence='daily' and bin_id='1723'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/430071

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/430071/ft1_4FGL_J0033.9+3858_daily_bin1723.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/430071/ft2_4FGL_J0033.9+3858_daily_bin1723.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/430071/ft1_4FGL_J0033.9+3858_daily_bin1723.fits outfile=/scratch/kocevski/430071/ft1_filteredMKT_4FGL_J0033.9+3858_daily_bin1723.fits ra=8.483 dec=38.9716 rad=12.0 tmin=685929601.0 tmax=686188801.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.62
user 3.37
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/430071/ft2_4FGL_J0033.9+3858_daily_bin1723.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/430071/ft2_4FGL_J0033.9+3858_daily_bin1723.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/430071/ft1_filteredMKT_4FGL_J0033.9+3858_daily_bin1723.fits evtable="EVENTS" outfile="/scratch/kocevski/430071/ft1_filtered_4FGL_J0033.9+3858_daily_bin1723.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.50
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 835

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/430071/ft1_filtered_4FGL_J0033.9+3858_daily_bin1723.fits" evtable="EVENTS" scfile=/scratch/kocevski/430071/ft2_4FGL_J0033.9+3858_daily_bin1723.fits sctable="SC_DATA" outfile=/scratch/kocevski/430071/ltcube_685929601_686188801_4FGL_J0033.9+3858_daily_bin1723.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/430071/ft2_4FGL_J0033.9+3858_daily_bin1723.fits
.....................!
real 14.22
user 13.81
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/430071/ft1_filtered_4FGL_J0033.9+3858_daily_bin1723.fits evtable="EVENTS" scfile=/scratch/kocevski/430071/ft2_4FGL_J0033.9+3858_daily_bin1723.fits sctable="SC_DATA" expcube=/scratch/kocevski/430071/ltcube_685929601_686188801_4FGL_J0033.9+3858_daily_bin1723.fits outfile=/scratch/kocevski/430071/expmap_685929601_686188801_4FGL_J0033.9+3858_daily_bin1723.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/430071/ltcube_685929601_686188801_4FGL_J0033.9+3858_daily_bin1723.fits
.....................!
real 191.92
user 186.85
sys 4.65

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 169 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 J0033.9+3858 @ 8.483 38.9716

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/430071/ft1_filtered_4FGL_J0033.9+3858_daily_bin1723.fits scfile=/scratch/kocevski/430071/ft2_4FGL_J0033.9+3858_daily_bin1723.fits outfile=/scratch/kocevski/430071/cmap_685929601_686188801_4FGL_J0033.9+3858_daily_bin1723.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=8.483 yref=38.9716 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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/430071/ft1_filtered_4FGL_J0033.9+3858_daily_bin1723.fits scfile=/scratch/kocevski/430071/ft2_4FGL_J0033.9+3858_daily_bin1723.fits outfile=/scratch/kocevski/430071/cmap_HighResolution_685929601_686188801_4FGL_J0033.9+3858_daily_bin1723.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=8.483 yref=38.9716 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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/430071/ft1_filtered_4FGL_J0033.9+3858_daily_bin1723.fits evtable="EVENTS" scfile=/scratch/kocevski/430071/ft2_4FGL_J0033.9+3858_daily_bin1723.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/430071/Model_4FGL_J0033.9+3858_daily_bin1723.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/430071/ft1_filtered_4FGL_J0033.9+3858_daily_bin1723.fits.....................!
real 89.87
user 88.32
sys 1.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/430071/ft1_filtered_4FGL_J0033.9+3858_daily_bin1723.fits', '/scratch/kocevski/430071/ft2_4FGL_J0033.9+3858_daily_bin1723.fits', expMap='/scratch/kocevski/430071/expmap_685929601_686188801_4FGL_J0033.9+3858_daily_bin1723.fits', expCube='/scratch/kocevski/430071/ltcube_685929601_686188801_4FGL_J0033.9+3858_daily_bin1723.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/430071/Model_4FGL_J0033.9+3858_daily_bin1723.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0033.9+3858'

4FGL J0033.9+3858
   Spectrum: PowerLaw
95     Prefactor:  4.490e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
96         Index:  2.458e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
97         Scale:  9.074e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/430071/ft1_filtered_4FGL_J0033.9+3858_daily_bin1723.fits
Spacecraft file(s): /scratch/kocevski/430071/ft2_4FGL_J0033.9+3858_daily_bin1723.fits
Exposure map: /scratch/kocevski/430071/expmap_685929601_686188801_4FGL_J0033.9+3858_daily_bin1723.fits
Exposure cube: /scratch/kocevski/430071/ltcube_685929601_686188801_4FGL_J0033.9+3858_daily_bin1723.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/430071/Model_4FGL_J0033.9+3858_daily_bin1723.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) = 8904.11396077

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.431       1.0000          .0000       .10000E+07
     2 'norm      '    8.6745       1.0000          .0000       .10000E+07
     3 'Prefactor '    11.988       1.0000          .0000       .10000E+07
     4 'Prefactor '    .71082E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    2.6075       1.0000          .0000       .10000E+07
     6 'Prefactor '    23.747       1.0000          .0000       .10000E+07
     7 'Prefactor '    .68612E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .16079E-04   1.0000          .0000       .10000E+07
     9 'norm      '    6.4438       1.0000          .0000       .10000E+07
    10 'Prefactor '    .44461E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    3.9889       1.0000          .0000       .10000E+07
    12 'Prefactor '    1.5016       1.0000          .0000       .10000E+07
    13 'Prefactor '    5.8600       1.0000          .0000       .10000E+07
    14 'norm      '    3.5914       1.0000          .0000       .10000E+07
    15 'Prefactor '    .15705E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .15489E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    16.710       1.0000          .0000       .10000E+07
    18 'Prefactor '    15.314       1.0000          .0000       .10000E+07
    19 'Prefactor '    .73896E-02   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0155       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .89758       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8904.097     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     1656 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.412        18.664        .20538E-07   -.18864E-03
   2  norm          8.7550        12.174       -.15064E-06   -.15901E-02
   3  Prefactor     12.172        6.9444        .59429E-08   -.16257E-03
   4  Prefactor      .0000        3.8069       -.77426E-08** at limit **
   5  Prefactor     2.6124        2.5408        .14898E-07    .57463E-04
   6  Prefactor     23.675        15.208        .26276E-07   -.84041E-04
   7  Prefactor      .0000        13.567        .39103E-07** at limit **
   8  Prefactor      .0000        8.2061        .32255E-07** at limit **
   9  norm          6.4503        2.6621        .66168E-08   -.86986E-03
  10  Prefactor      .0000        3.1717        .75704E-08** at limit **
  11  Prefactor     4.0011        10.002        .10612E-06    .10169E-03
  12  Prefactor     1.5344        8.0005        .16724E-05   -.16902E-02
  13  Prefactor     5.8736        12.144       -.13059E-06    .43417E-04
  14  norm          3.5958        1.5070        .79588E-08   -.16927E-02
  15  Prefactor      .0000        10.041       -.49101E-07** at limit **
  16  Prefactor      .0000        15.995        .11598E-07** at limit **
  17  Prefactor     18.668        35.383        .36805E-06    .23806E-03
  18  Prefactor     14.594        37.362        .12776E-05    .12950E-02
  19  Prefactor     .46629E-08    7.0668       -.25367E-06** at limit **
  20  Normalizat    1.0133        .18037       -.39953E-05    .71090E-04
  21  Prefactor     .89800        .90455E-01    .46730E-06   -.44316E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.412
  norm       = 8.75496
  Prefactor  = 12.1716
  Prefactor  = 0
  Prefactor  = 2.61238
  Prefactor  = 23.6752
  Prefactor  = 0
  Prefactor  = 0
  norm       = 6.45028
  Prefactor  = 0
  Prefactor  = 4.00115
  Prefactor  = 1.53435
  Prefactor  = 5.87365
  norm       = 3.59583
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 18.6678
  Prefactor  = 14.5937
  Prefactor  = 4.66294e-09
  Normalizat = 1.01331
  Prefactor  = 0.897999
 **********
 **   18 **HESSE 
 **********

 FCN=   8904.097     FROM HESSE     STATUS=OK           321 CALLS     1977 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.412        18.660        .12400E-04   -1.5643    
   2  norm          8.7550        12.169        .13604E-04   -1.5649    
   3  Prefactor     12.172        6.9384        .11563E-04   -1.5638    
   4  Prefactor      .0000        3.8239        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.6124        2.5244        .13905E-04   -1.5676    
   6  Prefactor     23.675        15.177        .82103E-05   -1.5611    
   7  Prefactor      .0000        13.580        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        8.2068        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.4503        2.6616        .95391E-05   -1.5657    
  10  Prefactor      .0000        3.1895        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.0011        9.9871        .20190E-04   -1.5668    
  12  Prefactor     1.5344        8.0512        .17468E-03   -1.5683    
  13  Prefactor     5.8736        12.151        .16585E-04   -1.5659    
  14  norm          3.5958        1.5068        .71478E-05   -1.5670    
  15  Prefactor      .0000        10.041        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        16.075        .34707E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.668        35.439        .97896E-05   -1.5622    
  18  Prefactor     14.594        37.445        .10227E-04   -1.5632    
  19  Prefactor     .46629E-08    7.1754        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0133        .20819        .31528E-03   -.92586    
  21  Prefactor     .89800        .10517        .17550E-03   -.96211    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01718e-09
Minuit parameter uncertainties:
  1  18.6597
  2  12.1688
  3  6.93841
  4  6.95551e-06
  5  2.52439
  6  15.1775
  7  2.73636e-05
  8  1.10633e-05
  9  2.66162
  10  5.71934e-06
  11  9.9871
  12  7.02951
  13  12.1511
  14  1.50675
  15  1.17972e-05
  16  2.76706e-05
  17  35.4392
  18  37.4452
  19  0.000365721
  20  0.208353
  21  0.10519
Done.

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

Extracting fit parameters...

4FGL J0033.9+3858
   Spectrum: PowerLaw
95     Prefactor:  0.000e+00  2.736e-05  0.000e+00  1.000e+06 ( 1.000e-13)
96         Index:  2.458e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
97         Scale:  9.074e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  8.980e-01  1.052e-01  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.013e+00  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 8.483 38.972
Photon Flux Upper Limit: 6.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/430071/likelihoodResults_685929601_686188801_4FGL_J0033.9+3858_daily_bin1723.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) = 8904.13251377
delta logL = -0.0358612897999

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8904.09665251
delta logL = -2.75595084531e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56805E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.5773       1.0000          .0000       10.000    
     3 'Normalizat'    1.0133       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89801       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8904.097     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      236 TOTAL
                     EDM=   .34E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33307E-09    .44487E-01    .42118E-03** at limit **
   2  Index         2.7242        5.2806        .50000        .18190E-09
   3  Normalizat    1.0133        .33052E-03    .71259E-01   -.35622E-03
   4  Prefactor     .89800        .17518E-03    .44980E-01   -.81158E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33067e-10
  Index      = 2.72421
  Normalizat = 1.01331
  Prefactor  = 0.897999
 **********
 **   18 **HESSE 
 **********

 FCN=   8904.097     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      267 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33307E-09    .22879        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7242        5.2508        .50000       -.47255    
   3  Normalizat    1.0133        .74779E-03    .31527E-03   -.92586    
   4  Prefactor     .89800        .39682E-03    .17550E-03   -.96211    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.7574e-12
Minuit parameter uncertainties:
  1  1.76879e-05
  2  7058.48
  3  0.000747794
  4  0.000396825
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/430071': 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): 102
logL (Free Index) = 8904.09665248
delta logL = -1.21872290038e-10

Extracting fit parameters...

4FGL J0033.9+3858
   Spectrum: PowerLaw
95     Prefactor:  3.331e-10  1.769e-05  0.000e+00  1.000e+06 ( 1.000e-13)
96         Index:  2.724e+00  7.058e+03  0.000e+00  1.000e+01 (-1.000e+00)
97         Scale:  9.074e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  8.980e-01  3.968e-04  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.013e+00  7.478e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 8.483 38.972

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/430071/cmap_HighResolution_685929601_686188801_4FGL_J0033.9+3858_daily_bin1723.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-03', job_status='DONE', photon_flux_upper_limit='6.17e-08', time_completed='2022-09-30 00:18:24.584781', job_id='430071', GAL2='0.90', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1664522304.58', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='-1.22e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1723' AND source_name='4FGL J0033.9+3858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 30 00:18:24 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 430071: <4FGL_J0033.9+3858_daily_bin1723> in cluster <slac> Done

Job <4FGL_J0033.9+3858_daily_bin1723> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 30 00:04:51 2022
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 30 00:04:52 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 30 00:04:52 2022
Terminated at Fri Sep 30 00:18:25 2022
Results reported at Fri Sep 30 00:18:25 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0033.9+3858_daily_bin1723 8.483 38.9716 685929601 686188801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0033.9+3858 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   686.46 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             320.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            814 sec.

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

