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 204 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 = 7548
number of fields = 31
RA_SUN column already exists. File will not be modifiedDoDone.


Performing analysis on: 4FGL_J0011.4+0057_daily_bin1765
RA = 2.8551, Dec = 0.9646
tmin = 696816001, tmax = 697075201
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='620621', job_status='RUN', time_executed='2023-02-03 00:11:32.432415', time_epoch_executed='1675411892.43' WHERE source_name='4FGL J0011.4+0057' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/620621

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/620621/ft1_4FGL_J0011.4+0057_daily_bin1765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/620621/ft2_4FGL_J0011.4+0057_daily_bin1765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/620621/ft1_4FGL_J0011.4+0057_daily_bin1765.fits outfile=/scratch/kocevski/620621/ft1_filteredMKT_4FGL_J0011.4+0057_daily_bin1765.fits ra=2.8551 dec=0.9646 rad=12.0 tmin=696816001.0 tmax=697075201.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.72
user 3.42
sys 0.24

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

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

Number of photons that the gtmktime cut: 493

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/620621/ft1_filtered_4FGL_J0011.4+0057_daily_bin1765.fits" evtable="EVENTS" scfile=/scratch/kocevski/620621/ft2_4FGL_J0011.4+0057_daily_bin1765.fits sctable="SC_DATA" outfile=/scratch/kocevski/620621/ltcube_696816001_697075201_4FGL_J0011.4+0057_daily_bin1765.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/620621/ft2_4FGL_J0011.4+0057_daily_bin1765.fits
.....................!
real 15.49
user 15.00
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/620621/ft1_filtered_4FGL_J0011.4+0057_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/620621/ft2_4FGL_J0011.4+0057_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/620621/ltcube_696816001_697075201_4FGL_J0011.4+0057_daily_bin1765.fits outfile=/scratch/kocevski/620621/expmap_696816001_697075201_4FGL_J0011.4+0057_daily_bin1765.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/620621/ltcube_696816001_697075201_4FGL_J0011.4+0057_daily_bin1765.fits
.....................!
real 194.11
user 188.76
sys 4.90

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/620621/ft1_filtered_4FGL_J0011.4+0057_daily_bin1765.fits scfile=/scratch/kocevski/620621/ft2_4FGL_J0011.4+0057_daily_bin1765.fits outfile=/scratch/kocevski/620621/cmap_696816001_697075201_4FGL_J0011.4+0057_daily_bin1765.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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/620621/ft1_filtered_4FGL_J0011.4+0057_daily_bin1765.fits scfile=/scratch/kocevski/620621/ft2_4FGL_J0011.4+0057_daily_bin1765.fits outfile=/scratch/kocevski/620621/cmap_HighResolution_696816001_697075201_4FGL_J0011.4+0057_daily_bin1765.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.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/620621/ft1_filtered_4FGL_J0011.4+0057_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/620621/ft2_4FGL_J0011.4+0057_daily_bin1765.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/620621/Model_4FGL_J0011.4+0057_daily_bin1765.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/620621/ft1_filtered_4FGL_J0011.4+0057_daily_bin1765.fits.....................!
real 57.30
user 55.25
sys 1.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/620621/ft1_filtered_4FGL_J0011.4+0057_daily_bin1765.fits', '/scratch/kocevski/620621/ft2_4FGL_J0011.4+0057_daily_bin1765.fits', expMap='/scratch/kocevski/620621/expmap_696816001_697075201_4FGL_J0011.4+0057_daily_bin1765.fits', expCube='/scratch/kocevski/620621/ltcube_696816001_697075201_4FGL_J0011.4+0057_daily_bin1765.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/620621/Model_4FGL_J0011.4+0057_daily_bin1765.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/620621/ft1_filtered_4FGL_J0011.4+0057_daily_bin1765.fits
Spacecraft file(s): /scratch/kocevski/620621/ft2_4FGL_J0011.4+0057_daily_bin1765.fits
Exposure map: /scratch/kocevski/620621/expmap_696816001_697075201_4FGL_J0011.4+0057_daily_bin1765.fits
Exposure cube: /scratch/kocevski/620621/ltcube_696816001_697075201_4FGL_J0011.4+0057_daily_bin1765.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/620621/Model_4FGL_J0011.4+0057_daily_bin1765.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) = 5608.47863338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.154       1.0000          .0000       .10000E+07
     2 'Prefactor '    .58770E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .84927E-06   1.0000          .0000       .10000E+07
     4 'norm      '    .17141E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    13.670       1.0000          .0000       .10000E+07
     6 'norm      '    10.307       1.0000          .0000       .10000E+07
     7 'norm      '    .40867E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .15638E-02   1.0000          .0000       .10000E+07
     9 'norm      '    2.1803       1.0000          .0000       .10000E+07
    10 'Prefactor '    7.8927       1.0000          .0000       .10000E+07
    11 'Prefactor '    3.6420       1.0000          .0000       .10000E+07
    12 'Prefactor '    24.864       1.0000          .0000       .10000E+07
    13 'Prefactor '    4.8731       1.0000          .0000       .10000E+07
    14 'norm      '    10.882       1.0000          .0000       .10000E+07
    15 'Prefactor '    .47468E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .17929       1.0000          .0000       .10000E+07
    17 'Prefactor '    18.308       1.0000          .0000       .10000E+07
    18 'Prefactor '    13.026       1.0000          .0000       .10000E+07
    19 'Normalizat'    .53862       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1360       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=   5608.401     FROM MIGRAD    STATUS=CONVERGED    143 CALLS     1245 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9165        9.3418       -.44081E-06   -.14469E-01
   2  Prefactor     .55511E-09    6.5538        .10402E-05** at limit **
   3  Prefactor     .55511E-10    5.0005        .10384E-05** at limit **
   4  norm          .55511E-10    2.5966       -.21563E-07** at limit **
   5  Prefactor     13.658        2.0732        .13854E-06    .47983E-02
   6  norm          10.316        4.8498        .16547E-06   -.76719E-03
   7  norm           .0000        1.5856        .13958E-06** at limit **
   8  Prefactor     .52736E-08    9.0004       -.28788E-06** at limit **
   9  norm          2.1627        6.4490       -.41366E-06   -.18452E-03
  10  Prefactor     7.8854        3.3451        .47299E-08    .26091E-02
  11  Prefactor     3.6408        4.1643        .60578E-06    .86408E-03
  12  Prefactor     23.224        35.154       -.12791E-05    .44505E-02
  13  Prefactor     4.8629        2.3552        .77099E-07   -.44574E-02
  14  norm          10.981        15.113       -.13700E-05    .25902E-01
  15  Prefactor     .14438E-06    32.749        .38131E-05** at limit **
  16  Prefactor     .11634E-04    92.024       -.66754E-05** at limit **
  17  Prefactor     18.179        4.3916        .45190E-06   -.15114E-01
  18  Prefactor     12.939        10.848        .19098E-05    .67757E-01
  19  Normalizat    .53959        .20656       -.30659E-04   -.70555E-04
  20  Prefactor     1.1362        .15946        .39753E-05   -.70639E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.91655
  Prefactor  = 5.55112e-10
  Prefactor  = 5.55112e-11
  norm       = 5.55112e-11
  Prefactor  = 13.6581
  norm       = 10.3155
  norm       = 0
  Prefactor  = 5.27356e-09
  norm       = 2.1627
  Prefactor  = 7.88542
  Prefactor  = 3.64075
  Prefactor  = 23.224
  Prefactor  = 4.86293
  norm       = 10.9807
  Prefactor  = 1.44385e-07
  Prefactor  = 1.16343e-05
  Prefactor  = 18.1794
  Prefactor  = 12.9389
  Normalizat = 0.539591
  Prefactor  = 1.13619
 **********
 **   18 **HESSE 
 **********

 FCN=   5608.401     FROM HESSE     STATUS=OK           347 CALLS     1592 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9165        9.6326        .31420E-03   -1.5645    
   2  Prefactor     .55511E-09    6.5542        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55511E-10    4.9971        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .55511E-10    2.5549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.658        17.985        .27065E-03   -1.5634    
   6  norm          10.316        5.3995        .31185E-03   -1.5644    
   7  norm           .0000        1.5866        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .52736E-08    8.9979        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.1627        6.4786        .69692E-03   -1.5679    
  10  Prefactor     7.8854        3.3561        .35667E-03   -1.5652    
  11  Prefactor     3.6408        4.1855        .52911E-03   -1.5670    
  12  Prefactor     23.224        35.284        .20059E-03   -1.5612    
  13  Prefactor     4.8629        18.264        .45543E-03   -1.5664    
  14  norm          10.981        17.553        .30346E-03   -1.5642    
  15  Prefactor     .14438E-06    3.4353        .48768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .11634E-04    21.210        .12157E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.179        16.834        .23380E-03   -1.5623    
  18  Prefactor     12.939        14.575        .27728E-03   -1.5636    
  19  Normalizat    .53959        .19547        .78083E-01   -1.1061    
  20  Prefactor     1.1362        .14644        .36354E-01   -.88318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.39717e-07
Minuit parameter uncertainties:
  1  9.63266
  2  0.000117619
  3  2.46533e-05
  4  2.0119e-05
  5  17.9846
  6  5.39953
  7  1.32106e-05
  8  0.000435633
  9  6.47865
  10  3.35614
  11  4.18549
  12  35.2839
  13  18.2638
  14  17.5529
  15  0.00140862
  16  0.0314179
  17  16.834
  18  14.5754
  19  0.195721
  20  0.146494
Done.

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

Extracting fit parameters...

4FGL J0011.4+0057
   Spectrum: PowerLaw
51     Prefactor:  5.551e-10  1.176e-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:  1.136e+00  1.465e-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:  5.396e-01  1.957e-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: 6.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/620621/likelihoodResults_696816001_697075201_4FGL_J0011.4+0057_daily_bin1765.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) = 5608.40193055
delta logL = -0.000538004736882

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5608.4013928
delta logL = -2.56123712461e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
     2 'Index     '    1.7950       1.0000          .0000       10.000    
     3 'Normalizat'    .53973       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1361       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5608.401     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      286 TOTAL
                     EDM=   .35E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.7807        .42118E-03** at limit **
   2  Index         3.7077        1.2940        .98358E-05     .0000    
   3  Normalizat    .53959        .87388        .95221E-05   -.88209E-05
   4  Prefactor     1.1362        1.1284        .82857E-05    .10479E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.70766
  Normalizat = 0.53959
  Prefactor  = 1.13619
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5608.401     FROM HESSE     STATUS=FAILED         9 CALLS      295 TOTAL
                     EDM=   .35E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.7807        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5142        2.2407        .98358E-05   -.26143    
   3  Normalizat    .53959        .87388        .95221E-05   -1.1061    
   4  Prefactor     1.1362        1.1284        .82857E-05   -.88318    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.52775e-11
Minuit parameter uncertainties:
  1  1.96124e-07
  2  1.30996
  3  0.897756
  4  1.15364
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/620621': 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) = 5608.40139255
delta logL = 3.18323145621e-11

Extracting fit parameters...

4FGL J0011.4+0057
   Spectrum: PowerLaw
51     Prefactor:  0.000e+00  1.961e-07  0.000e+00  1.000e+06 ( 1.000e-13)
52         Index:  3.708e+00  1.310e+00  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:  1.136e+00  1.154e+00  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:  5.396e-01  8.978e-01  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/620621/cmap_HighResolution_696816001_697075201_4FGL_J0011.4+0057_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.18e-03', job_status='DONE', photon_flux_upper_limit='6.74e-08', time_completed='2023-02-03 00:20:18.105893', job_id='620621', GAL2='1.14', fit_tolerance='1e-08', EG2='0.54', EG='0.54', time_epoch_completed='1675412418.11', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='3.18e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1765' AND source_name='4FGL J0011.4+0057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 00:20:18 PST 2023

-----------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 620644: <4FGL_J0011.4+0057_daily_bin1765> in cluster <slac> Done

Job <4FGL_J0011.4+0057_daily_bin1765> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Feb  3 00:05:16 2023
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 00:08:05 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 00:08:05 2023
Terminated at Fri Feb  3 00:16:53 2023
Results reported at Fri Feb  3 00:16:53 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0011.4+0057_daily_bin1765 2.8551 0.9646 696816001 697075201 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 :                                   510.54 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             341.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   527 sec.
    Turnaround time :                            697 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 620621: <4FGL_J0011.4+0057_daily_bin1765> in cluster <slac> Done

Job <4FGL_J0011.4+0057_daily_bin1765> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Feb  3 00:05:16 2023
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 00:07:53 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 00:07:53 2023
Terminated at Fri Feb  3 00:20:18 2023
Results reported at Fri Feb  3 00:20:18 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0011.4+0057_daily_bin1765 2.8551 0.9646 696816001 697075201 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 :                                   514.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             252.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            902 sec.

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

