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


Performing analysis on: 4FGL_J0011.4+0057_daily_bin1743
RA = 2.8551, Dec = 0.9646
tmin = 691113601, tmax = 691372801
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='445332', job_status='RUN', time_executed='2022-11-29 00:10:44.757145', time_epoch_executed='1669709444.76' WHERE source_name='4FGL J0011.4+0057' and cadence='daily' and bin_id='1743'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/445332

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/445332/ft1_4FGL_J0011.4+0057_daily_bin1743.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/445332/ft2_4FGL_J0011.4+0057_daily_bin1743.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/445332/ft1_4FGL_J0011.4+0057_daily_bin1743.fits outfile=/scratch/kocevski/445332/ft1_filteredMKT_4FGL_J0011.4+0057_daily_bin1743.fits ra=2.8551 dec=0.9646 rad=12.0 tmin=691113601.0 tmax=691372801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.71
user 2.51
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/445332/ft2_4FGL_J0011.4+0057_daily_bin1743.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/445332/ft2_4FGL_J0011.4+0057_daily_bin1743.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/445332/ft1_filteredMKT_4FGL_J0011.4+0057_daily_bin1743.fits evtable="EVENTS" outfile="/scratch/kocevski/445332/ft1_filtered_4FGL_J0011.4+0057_daily_bin1743.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.15

Number of photons that the gtmktime cut: 476

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/445332/ft1_filtered_4FGL_J0011.4+0057_daily_bin1743.fits" evtable="EVENTS" scfile=/scratch/kocevski/445332/ft2_4FGL_J0011.4+0057_daily_bin1743.fits sctable="SC_DATA" outfile=/scratch/kocevski/445332/ltcube_691113601_691372801_4FGL_J0011.4+0057_daily_bin1743.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/445332/ft2_4FGL_J0011.4+0057_daily_bin1743.fits
.....................!
real 18.48
user 17.99
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/445332/ft1_filtered_4FGL_J0011.4+0057_daily_bin1743.fits evtable="EVENTS" scfile=/scratch/kocevski/445332/ft2_4FGL_J0011.4+0057_daily_bin1743.fits sctable="SC_DATA" expcube=/scratch/kocevski/445332/ltcube_691113601_691372801_4FGL_J0011.4+0057_daily_bin1743.fits outfile=/scratch/kocevski/445332/expmap_691113601_691372801_4FGL_J0011.4+0057_daily_bin1743.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/445332/ltcube_691113601_691372801_4FGL_J0011.4+0057_daily_bin1743.fits
.....................!
real 191.33
user 185.09
sys 5.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
Added 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J0011.4+0057 @ 2.8551 0.9646

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/445332/ft1_filtered_4FGL_J0011.4+0057_daily_bin1743.fits scfile=/scratch/kocevski/445332/ft2_4FGL_J0011.4+0057_daily_bin1743.fits outfile=/scratch/kocevski/445332/cmap_691113601_691372801_4FGL_J0011.4+0057_daily_bin1743.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.8551 yref=0.9646 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/445332/ft1_filtered_4FGL_J0011.4+0057_daily_bin1743.fits scfile=/scratch/kocevski/445332/ft2_4FGL_J0011.4+0057_daily_bin1743.fits outfile=/scratch/kocevski/445332/cmap_HighResolution_691113601_691372801_4FGL_J0011.4+0057_daily_bin1743.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.8551 yref=0.9646 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.55
user 0.36
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/445332/ft1_filtered_4FGL_J0011.4+0057_daily_bin1743.fits evtable="EVENTS" scfile=/scratch/kocevski/445332/ft2_4FGL_J0011.4+0057_daily_bin1743.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/445332/Model_4FGL_J0011.4+0057_daily_bin1743.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 GAL_V02
Working on...
/scratch/kocevski/445332/ft1_filtered_4FGL_J0011.4+0057_daily_bin1743.fits.....................!
real 55.63
user 54.28
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/445332/ft1_filtered_4FGL_J0011.4+0057_daily_bin1743.fits', '/scratch/kocevski/445332/ft2_4FGL_J0011.4+0057_daily_bin1743.fits', expMap='/scratch/kocevski/445332/expmap_691113601_691372801_4FGL_J0011.4+0057_daily_bin1743.fits', expCube='/scratch/kocevski/445332/ltcube_691113601_691372801_4FGL_J0011.4+0057_daily_bin1743.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/445332/Model_4FGL_J0011.4+0057_daily_bin1743.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0011.4+0057'

4FGL J0011.4+0057
   Spectrum: PowerLaw
51     Prefactor:  3.882e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
52         Index:  2.334e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
53         Scale:  1.182e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/445332/ft1_filtered_4FGL_J0011.4+0057_daily_bin1743.fits
Spacecraft file(s): /scratch/kocevski/445332/ft2_4FGL_J0011.4+0057_daily_bin1743.fits
Exposure map: /scratch/kocevski/445332/expmap_691113601_691372801_4FGL_J0011.4+0057_daily_bin1743.fits
Exposure cube: /scratch/kocevski/445332/ltcube_691113601_691372801_4FGL_J0011.4+0057_daily_bin1743.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/445332/Model_4FGL_J0011.4+0057_daily_bin1743.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) = 5286.25050589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57224E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .95313E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    .22276E-05   1.0000          .0000       .10000E+07
     4 'norm      '    2.0575       1.0000          .0000       .10000E+07
     5 'Prefactor '    .10234E-03   1.0000          .0000       .10000E+07
     6 'norm      '    8.3761       1.0000          .0000       .10000E+07
     7 'norm      '    2.2122       1.0000          .0000       .10000E+07
     8 'Prefactor '    .22530E-03   1.0000          .0000       .10000E+07
     9 'norm      '    .21871E-07   1.0000          .0000       .10000E+07
    10 'Prefactor '    .83016       1.0000          .0000       .10000E+07
    11 'Prefactor '    4.1004       1.0000          .0000       .10000E+07
    12 'Prefactor '    .22432       1.0000          .0000       .10000E+07
    13 'Prefactor '    .11555E-03   1.0000          .0000       .10000E+07
    14 'norm      '    20.661       1.0000          .0000       .10000E+07
    15 'Prefactor '    .80030E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .38010       1.0000          .0000       .10000E+07
    17 'Prefactor '    27.203       1.0000          .0000       .10000E+07
    18 'Prefactor '    .29800E-04   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.3379       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .65834       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5286.158     FROM MIGRAD    STATUS=CONVERGED    137 CALLS     1211 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18874E-08    3.1330       -.94516E-08** at limit **
   2  Prefactor     .13212E-07    7.4373        .24283E-06** at limit **
   3  Prefactor     .55511E-10    2.5448        .13540E-06** at limit **
   4  norm          2.0548        2.7828       -.74329E-07   -.21057E-03
   5  Prefactor     .12990E-07    3.3547       -.43493E-07** at limit **
   6  norm          8.3738        3.8430        .15343E-07    .82518E-03
   7  norm          2.2113        3.0308       -.45161E-08    .37164E-03
   8  Prefactor     .13878E-08    4.0512        .19653E-06** at limit **
   9  norm          .20317E-07    3.5952        .22397E-06** at limit **
  10  Prefactor     .86950        2.5732        .34267E-07    .26827E-03
  11  Prefactor     4.1062        3.7416       -.36033E-07   -.15682E-03
  12  Prefactor     .55595E-05    138.80       -.45348E-06** at limit **
  13  Prefactor     .11102E-08    8.2781        .26231E-06** at limit **
  14  norm          20.360        6.6542        .86026E-07    .47385E-01
  15  Prefactor     .56852E-05    25.822       -.55291E-06** at limit **
  16  Prefactor     .63295E-04    79.343       -.10713E-05** at limit **
  17  Prefactor     27.226        2.3975       -.79098E-08    .10000E-01
  18  Prefactor      .0000        2.5749        .90203E-08** at limit **
  19  Normalizat    1.3384        .22429        .59812E-05    .81195E-04
  20  Prefactor     .65829        .16044       -.36291E-05    .48953E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.88738e-09
  Prefactor  = 1.32117e-08
  Prefactor  = 5.55112e-11
  norm       = 2.05476
  Prefactor  = 1.29896e-08
  norm       = 8.37383
  norm       = 2.21133
  Prefactor  = 1.38778e-09
  norm       = 2.03171e-08
  Prefactor  = 0.869499
  Prefactor  = 4.10624
  Prefactor  = 5.5595e-06
  Prefactor  = 1.11022e-09
  norm       = 20.3605
  Prefactor  = 5.68523e-06
  Prefactor  = 6.32953e-05
  Prefactor  = 27.2262
  Prefactor  = 0
  Normalizat = 1.3384
  Prefactor  = 0.658291
 **********
 **   18 **HESSE 
 **********

 FCN=   5286.158     FROM HESSE     STATUS=OK           337 CALLS     1548 TOTAL
                     EDM=   .45E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18874E-08    3.1378        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .13212E-07    7.4652        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55511E-10    2.5445        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.0548        2.7963        .72023E-03   -1.5679    
   5  Prefactor     .12990E-07    3.3825        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.3738        3.8388        .34615E-03   -1.5650    
   7  norm          2.2113        3.0402        .69127E-03   -1.5678    
   8  Prefactor     .13878E-08    4.0530        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .20317E-07    3.6309        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .86950        2.5864        .50713E-03   -1.5689    
  11  Prefactor     4.1062        3.7373        .49761E-03   -1.5667    
  12  Prefactor     .55595E-05    151.01        .11358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .11102E-08    8.3917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          20.360        22.104        .22007E-03   -1.5618    
  15  Prefactor     .56852E-05    4.1516        .48097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .63295E-04    188.01        .91830E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     27.226        20.816        .19176E-03   -1.5604    
  18  Prefactor      .0000        2.5726        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3384        .19949        .54541E-01   -.82427    
  20  Prefactor     .65829        .14119        .41844E-01   -1.0518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.53286e-07
Minuit parameter uncertainties:
  1  0.000154996
  2  0.000628065
  3  2.06243e-05
  4  2.7963
  5  0.000419408
  6  3.83879
  7  3.04018
  8  0.000149078
  9  0.000543155
  10  2.58644
  11  3.73727
  12  0.0579512
  13  0.000193136
  14  22.1039
  15  0.00971658
  16  0.218183
  17  20.8157
  18  8.84067e-06
  19  0.199609
  20  0.141266
Done.

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

Extracting fit parameters...

4FGL J0011.4+0057
   Spectrum: PowerLaw
51     Prefactor:  1.321e-08  6.281e-04  0.000e+00  1.000e+06 ( 1.000e-13)
52         Index:  2.334e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
53         Scale:  1.182e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  6.583e-01  1.413e-01  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.338e+00  1.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 2.855 0.965
Photon Flux Upper Limit: 7.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/445332/likelihoodResults_691113601_691372801_4FGL_J0011.4+0057_daily_bin1743.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) = 5286.22220372
delta logL = -0.0646310025977

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5286.15757333
delta logL = -6.14069904259e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15796E-05   1.0000          .0000       .10000E+07
     2 'Index     '    .64380       1.0000          .0000       10.000    
     3 'Normalizat'    1.3385       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65820       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5286.158     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      244 TOTAL
                     EDM=   .31E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    .30102E-01    .42118E-03** at limit **
   2  Index         2.6146        6.1537        .41648        .27297E-10
   3  Normalizat    1.3384        .37926E-03    .54541E-01    .75886E-04
   4  Prefactor     .65829        .27795E-03    .41842E-01    .95476E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 2.61456
  Normalizat = 1.3384
  Prefactor  = 0.658292
 **********
 **   18 **HESSE 
 **********

 FCN=   5286.158     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .79E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    .12466        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6146        5.9589        .51000       -.49734    
   3  Normalizat    1.3384        .77085E-03    .24116E-03   -.82427    
   4  Prefactor     .65829        .56489E-03    .24175E-03   -1.0518    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.9252e-14
Minuit parameter uncertainties:
  1  6.13307e-06
  2  26848.2
  3  0.000770846
  4  0.00056489
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/445332': 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) = 5286.15757272
delta logL = 8.80390871316e-10

Extracting fit parameters...

4FGL J0011.4+0057
   Spectrum: PowerLaw
51     Prefactor:  5.551e-11  6.133e-06  0.000e+00  1.000e+06 ( 1.000e-13)
52         Index:  2.615e+00  2.685e+04  0.000e+00  1.000e+01 (-1.000e+00)
53         Scale:  1.182e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  6.583e-01  5.649e-04  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.338e+00  7.708e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 2.855 0.965

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/445332/cmap_HighResolution_691113601_691372801_4FGL_J0011.4+0057_daily_bin1743.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.56e-03', job_status='DONE', photon_flux_upper_limit='7.23e-08', time_completed='2022-11-29 00:19:18.545138', job_id='445332', GAL2='0.66', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1669709958.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='8.80e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1743' AND source_name='4FGL J0011.4+0057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Nov 29 00:19:18 PST 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 445018: <4FGL_J0011.4+0057_daily_bin1743> in cluster <slac> Done

Job <4FGL_J0011.4+0057_daily_bin1743> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Nov 29 00:05:46 2022
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Nov 29 00:05:47 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Nov 29 00:05:47 2022
Terminated at Tue Nov 29 00:18:42 2022
Results reported at Tue Nov 29 00:18:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0011.4+0057_daily_bin1743 2.8551 0.9646 691113601 691372801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0011.4+0057 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   504.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            776 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 445332: <4FGL_J0011.4+0057_daily_bin1743> in cluster <slac> Done

Job <4FGL_J0011.4+0057_daily_bin1743> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Nov 29 00:06:13 2022
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Nov 29 00:09:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Nov 29 00:09:31 2022
Terminated at Tue Nov 29 00:19:19 2022
Results reported at Tue Nov 29 00:19:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0011.4+0057_daily_bin1743 2.8551 0.9646 691113601 691372801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0011.4+0057 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   515.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   588 sec.
    Turnaround time :                            786 sec.

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

