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


Performing analysis on: 4FGL_J0011.4+0057_daily_bin1754
RA = 2.8551, Dec = 0.9646
tmin = 693964801, tmax = 694224001
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='624360', job_status='RUN', time_executed='2023-01-01 00:05:44.180887', time_epoch_executed='1672560344.18' WHERE source_name='4FGL J0011.4+0057' and cadence='daily' and bin_id='1754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/624360

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/624360/ft1_4FGL_J0011.4+0057_daily_bin1754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/624360/ft2_4FGL_J0011.4+0057_daily_bin1754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/624360/ft1_4FGL_J0011.4+0057_daily_bin1754.fits outfile=/scratch/kocevski/624360/ft1_filteredMKT_4FGL_J0011.4+0057_daily_bin1754.fits ra=2.8551 dec=0.9646 rad=12.0 tmin=693964801.0 tmax=694224001.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.03
user 3.72
sys 0.22

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

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

Number of photons that the gtmktime cut: 868

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/624360/ft1_filtered_4FGL_J0011.4+0057_daily_bin1754.fits" evtable="EVENTS" scfile=/scratch/kocevski/624360/ft2_4FGL_J0011.4+0057_daily_bin1754.fits sctable="SC_DATA" outfile=/scratch/kocevski/624360/ltcube_693964801_694224001_4FGL_J0011.4+0057_daily_bin1754.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/624360/ft2_4FGL_J0011.4+0057_daily_bin1754.fits
.....................!
real 14.99
user 14.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/624360/ft1_filtered_4FGL_J0011.4+0057_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/624360/ft2_4FGL_J0011.4+0057_daily_bin1754.fits sctable="SC_DATA" expcube=/scratch/kocevski/624360/ltcube_693964801_694224001_4FGL_J0011.4+0057_daily_bin1754.fits outfile=/scratch/kocevski/624360/expmap_693964801_694224001_4FGL_J0011.4+0057_daily_bin1754.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/624360/ltcube_693964801_694224001_4FGL_J0011.4+0057_daily_bin1754.fits
.....................!
real 192.18
user 186.49
sys 4.62

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/624360/ft1_filtered_4FGL_J0011.4+0057_daily_bin1754.fits scfile=/scratch/kocevski/624360/ft2_4FGL_J0011.4+0057_daily_bin1754.fits outfile=/scratch/kocevski/624360/cmap_693964801_694224001_4FGL_J0011.4+0057_daily_bin1754.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/624360/ft1_filtered_4FGL_J0011.4+0057_daily_bin1754.fits scfile=/scratch/kocevski/624360/ft2_4FGL_J0011.4+0057_daily_bin1754.fits outfile=/scratch/kocevski/624360/cmap_HighResolution_693964801_694224001_4FGL_J0011.4+0057_daily_bin1754.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92860E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .23803E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .61814E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .44409E-09   1.0000          .0000       .10000E+07
     5 'Prefactor '    12.973       1.0000          .0000       .10000E+07
     6 'norm      '    10.863       1.0000          .0000       .10000E+07
     7 'norm      '    .54481E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .12187E-01   1.0000          .0000       .10000E+07
     9 'norm      '    30.074       1.0000          .0000       .10000E+07
    10 'Prefactor '    8.4970       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.2884       1.0000          .0000       .10000E+07
    12 'Prefactor '    .49561E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .11005E-03   1.0000          .0000       .10000E+07
    14 'norm      '    7.8536       1.0000          .0000       .10000E+07
    15 'Prefactor '    .13485E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .19279E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .10117E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    5.0549       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.2009       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .89182       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=   9414.253     FROM MIGRAD    STATUS=CONVERGED    114 CALLS     1235 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37081E-07    4.1794        .19837E-06** at limit **
   2  Prefactor     .42966E-07    2.2226       -.72390E-07** at limit **
   3  Prefactor     .68612E-07    3.7845        .63075E-08** at limit **
   4  norm          .34250E-07    3.9263       -.65494E-06** at limit **
   5  Prefactor     12.957        1.3427       -.11736E-06    .40535E-02
   6  norm          10.848        3.6752        .29882E-07    .48793E-02
   7  norm          .66613E-09    2.3147        .82889E-06** at limit **
   8  Prefactor     .20817E-07    3.9239        .89721E-07** at limit **
   9  norm          30.078        1.7402        .18528E-06    .26189E-01
  10  Prefactor     8.4896        3.0080        .16594E-06    .23471E-02
  11  Prefactor     2.2895        3.0744        .19400E-06    .14306E-03
  12  Prefactor     .58287E-08    15.407       -.28343E-05** at limit **
  13  Prefactor     .48295E-08    7.5301       -.36549E-05** at limit **
  14  norm          7.8689        2.8141       -.37029E-06   -.62666E-02
  15  Prefactor     .55511E-10    2.0284        .54182E-06** at limit **
  16  Prefactor     .42022E-07    6.1157        .70844E-07** at limit **
  17  Prefactor     .66613E-09    5.6348       -.24092E-05** at limit **
  18  Prefactor     5.0544        4.9776        .27962E-06   -.23219E-03
  19  Normalizat    1.2011        .18600        .29132E-06   -.75513E-04
  20  Prefactor     .89178        .13677       -.35304E-05   -.65123E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.70814e-08
  Prefactor  = 4.29656e-08
  Prefactor  = 6.86118e-08
  norm       = 3.42504e-08
  Prefactor  = 12.9567
  norm       = 10.8485
  norm       = 6.66134e-10
  Prefactor  = 2.08167e-08
  norm       = 30.0777
  Prefactor  = 8.48961
  Prefactor  = 2.28947
  Prefactor  = 5.82867e-09
  Prefactor  = 4.82947e-09
  norm       = 7.86889
  Prefactor  = 5.55112e-11
  Prefactor  = 4.20219e-08
  Prefactor  = 6.66134e-10
  Prefactor  = 5.05441
  Normalizat = 1.20107
  Prefactor  = 0.891778
 **********
 **   18 **HESSE 
 **********

 FCN=   9414.253     FROM HESSE     STATUS=OK           331 CALLS     1566 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37081E-07    6.9364        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .42966E-07    4.3017        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .68612E-07    14.166        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .34250E-07    5.5994        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.957        13.944        .27785E-03   -1.5636    
   6  norm          10.848        4.0672        .30372E-03   -1.5642    
   7  norm          .66613E-09    2.3787        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .20817E-07    13.930        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          30.078        10.648        .18238E-03   -1.5598    
  10  Prefactor     8.4896        3.0009        .34366E-03   -1.5650    
  11  Prefactor     2.2895        3.0974        .67832E-03   -1.5678    
  12  Prefactor     .58287E-08    15.705        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .48295E-08    8.0522        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.8689        11.728        .35756E-03   -1.5652    
  15  Prefactor     .55511E-10    6.6719        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .42022E-07    12.914        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .66613E-09    5.8462        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.0544        4.9770        .44700E-03   -1.5663    
  19  Normalizat    1.2011        .16381        .62088E-01   -.86570    
  20  Prefactor     .89178        .11907        .44901E-01   -.96429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5857e-08
Minuit parameter uncertainties:
  1  0.00101451
  2  0.000859993
  3  0.00197141
  4  0.000875611
  5  13.9443
  6  4.06723
  7  7.80273e-05
  8  0.00107656
  9  10.648
  10  3.00088
  11  3.09743
  12  0.000606022
  13  0.000393609
  14  11.7278
  15  2.95951e-05
  16  0.00147353
  17  0.00012219
  18  4.977
  19  0.163876
  20  0.119106
Done.

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

Extracting fit parameters...

4FGL J0011.4+0057
   Spectrum: PowerLaw
51     Prefactor:  4.297e-08  8.600e-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:  8.918e-01  1.191e-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.201e+00  1.639e-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: 4.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/624360/likelihoodResults_693964801_694224001_4FGL_J0011.4+0057_daily_bin1754.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) = 9414.25567561
delta logL = -0.00264738029909

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9414.25302823
delta logL = 3.51246853825e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     2 'Index     '    2.6091       1.0000          .0000       10.000    
     3 'Normalizat'    1.2011       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89177       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=   9414.253     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      230 TOTAL
                     EDM=   .55E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.0921        .42118E-03** at limit **
   2  Index         .71802        .59280        .77741E-05     .0000    
   3  Normalizat    1.2011        1.1060       -.17738E-08   -.69320E-05
   4  Prefactor     .89178        1.2371        .23177E-05    .10100E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.718015
  Normalizat = 1.20107
  Prefactor  = 0.891778
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9414.253     FROM HESSE     STATUS=FAILED         9 CALLS      239 TOTAL
                     EDM=   .55E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.0921        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .26479E-02    .82978        .77741E-05   -1.0283    
   3  Normalizat    1.2011        1.1060       -.17738E-08   -.86570    
   4  Prefactor     .89178        1.2371        .23177E-05   -.96429    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.52673e-13
Minuit parameter uncertainties:
  1  6.05355e-07
  2  0.598133
  3  1.12869
  4  1.27965
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/624360': 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) = 9414.25302823
delta logL = 4.99312591273e-09

Extracting fit parameters...

4FGL J0011.4+0057
   Spectrum: PowerLaw
51     Prefactor:  0.000e+00  6.054e-07  0.000e+00  1.000e+06 ( 1.000e-13)
52         Index:  7.180e-01  5.981e-01  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:  8.918e-01  1.280e+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:  1.201e+00  1.129e+00  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/624360/cmap_HighResolution_693964801_694224001_4FGL_J0011.4+0057_daily_bin1754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.57e-03', job_status='DONE', photon_flux_upper_limit='4.64e-08', time_completed='2023-01-01 00:17:06.087980', job_id='624360', GAL2='0.89', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1672561026.09', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='4.99e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1754' AND source_name='4FGL J0011.4+0057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  1 00:17:06 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 624360: <4FGL_J0011.4+0057_daily_bin1754> in cluster <slac> Done

Job <4FGL_J0011.4+0057_daily_bin1754> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Jan  1 00:04:34 2023
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  1 00:05:17 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  1 00:05:17 2023
Terminated at Sun Jan  1 00:17:06 2023
Results reported at Sun Jan  1 00:17:06 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0011.4+0057_daily_bin1754 2.8551 0.9646 693964801 694224001 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 :                                   652.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            752 sec.

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

