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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin1718
RA = 64.2269, Dec = 1.088
tmin = 684633601, tmax = 684892801
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='19016', job_status='RUN', time_executed='2022-09-16 11:09:52.080821', time_epoch_executed='1663351792.08' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='1718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/19016

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/19016/ft1_4FGL_J0416.9+0105_daily_bin1718.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/19016/ft2_4FGL_J0416.9+0105_daily_bin1718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/19016/ft1_4FGL_J0416.9+0105_daily_bin1718.fits outfile=/scratch/kocevski/19016/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1718.fits ra=64.2269 dec=1.088 rad=12.0 tmin=684633601.0 tmax=684892801.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.20
user 2.99
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/19016/ft2_4FGL_J0416.9+0105_daily_bin1718.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/19016/ft2_4FGL_J0416.9+0105_daily_bin1718.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/19016/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1718.fits evtable="EVENTS" outfile="/scratch/kocevski/19016/ft1_filtered_4FGL_J0416.9+0105_daily_bin1718.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.51
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 965

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/19016/ft1_filtered_4FGL_J0416.9+0105_daily_bin1718.fits" evtable="EVENTS" scfile=/scratch/kocevski/19016/ft2_4FGL_J0416.9+0105_daily_bin1718.fits sctable="SC_DATA" outfile=/scratch/kocevski/19016/ltcube_684633601_684892801_4FGL_J0416.9+0105_daily_bin1718.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/19016/ft2_4FGL_J0416.9+0105_daily_bin1718.fits
.....................!
real 13.21
user 12.85
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/19016/ft1_filtered_4FGL_J0416.9+0105_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/19016/ft2_4FGL_J0416.9+0105_daily_bin1718.fits sctable="SC_DATA" expcube=/scratch/kocevski/19016/ltcube_684633601_684892801_4FGL_J0416.9+0105_daily_bin1718.fits outfile=/scratch/kocevski/19016/expmap_684633601_684892801_4FGL_J0416.9+0105_daily_bin1718.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/19016/ltcube_684633601_684892801_4FGL_J0416.9+0105_daily_bin1718.fits
.....................!
real 192.93
user 185.27
sys 5.25

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 140 point sources and 0 extended sources

Setting source of interest to:
4FGL J0416.9+0105 @ 64.2269 1.088

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/19016/ft1_filtered_4FGL_J0416.9+0105_daily_bin1718.fits scfile=/scratch/kocevski/19016/ft2_4FGL_J0416.9+0105_daily_bin1718.fits outfile=/scratch/kocevski/19016/cmap_684633601_684892801_4FGL_J0416.9+0105_daily_bin1718.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=64.2269 yref=1.088 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 2.87
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/19016/ft1_filtered_4FGL_J0416.9+0105_daily_bin1718.fits scfile=/scratch/kocevski/19016/ft2_4FGL_J0416.9+0105_daily_bin1718.fits outfile=/scratch/kocevski/19016/cmap_HighResolution_684633601_684892801_4FGL_J0416.9+0105_daily_bin1718.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=64.2269 yref=1.088 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/19016/ft1_filtered_4FGL_J0416.9+0105_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/19016/ft2_4FGL_J0416.9+0105_daily_bin1718.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/19016/Model_4FGL_J0416.9+0105_daily_bin1718.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/19016/ft1_filtered_4FGL_J0416.9+0105_daily_bin1718.fits.....................!
real 140.53
user 139.07
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/19016/ft1_filtered_4FGL_J0416.9+0105_daily_bin1718.fits', '/scratch/kocevski/19016/ft2_4FGL_J0416.9+0105_daily_bin1718.fits', expMap='/scratch/kocevski/19016/expmap_684633601_684892801_4FGL_J0416.9+0105_daily_bin1718.fits', expCube='/scratch/kocevski/19016/ltcube_684633601_684892801_4FGL_J0416.9+0105_daily_bin1718.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/19016/Model_4FGL_J0416.9+0105_daily_bin1718.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0416.9+0105'

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  4.655e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
211        Index:  1.876e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  3.731e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/19016/ft1_filtered_4FGL_J0416.9+0105_daily_bin1718.fits
Spacecraft file(s): /scratch/kocevski/19016/ft2_4FGL_J0416.9+0105_daily_bin1718.fits
Exposure map: /scratch/kocevski/19016/expmap_684633601_684892801_4FGL_J0416.9+0105_daily_bin1718.fits
Exposure cube: /scratch/kocevski/19016/ltcube_684633601_684892801_4FGL_J0416.9+0105_daily_bin1718.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/19016/Model_4FGL_J0416.9+0105_daily_bin1718.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) = 10271.1168856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7183       1.0000          .0000       .10000E+07
     2 'Prefactor '    .10453E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .68047E-04   1.0000          .0000       .10000E+07
     4 'norm      '    .16979E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    15.705       1.0000          .0000       .10000E+07
     6 'norm      '    .17775E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    14.708       1.0000          .0000       .10000E+07
     8 'norm      '    11.217       1.0000          .0000       .10000E+07
     9 'norm      '    1.5183       1.0000          .0000       .10000E+07
    10 'Prefactor '    .81657E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    23.651       1.0000          .0000       .10000E+07
    12 'Prefactor '    15.176       1.0000          .0000       .10000E+07
    13 'Prefactor '    .56767E-03   1.0000          .0000       .10000E+07
    14 'norm      '    2.8968       1.0000          .0000       .10000E+07
    15 'Prefactor '    18.867       1.0000          .0000       .10000E+07
    16 'norm      '    3.1424       1.0000          .0000       .10000E+07
    17 'Prefactor '    .29377E-02   1.0000          .0000       .10000E+07
    18 'norm      '    6.4966       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.1403       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96723       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10271.10     FROM MIGRAD    STATUS=CONVERGED    144 CALLS     1539 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7192        1.4573        .10261E-07   -.57327E-04
   2  Prefactor     .31597E-06    81.968        .32412E-06** at limit **
   3  Prefactor     .16542E-07    36.177       -.21975E-07** at limit **
   4  norm          .55511E-10    6.7063        .13550E-06** at limit **
   5  Prefactor     15.691        15.922        .53036E-06    .31458E-01
   6  norm           .0000        1.1634        .61907E-07** at limit **
   7  Prefactor     14.752        3.3068       -.33199E-07    .12550E-01
   8  norm          11.059        8.4244        .43763E-07    .12789E-02
   9  norm          1.5128        .85789        .11143E-07   -.87602E-04
  10  Prefactor      .0000        5.6840       -.63004E-06** at limit **
  11  Prefactor     23.533        12.276       -.25194E-06    .78283E-01
  12  Prefactor     16.041        34.126        .33442E-06    .26361E-01
  13  Prefactor      .0000        4.8750        .11434E-07** at limit **
  14  norm          2.9038        2.2923        .72344E-07   -.18327E-02
  15  Prefactor     18.843        5.8464        .18418E-06   -.42096E-01
  16  norm          3.1335        2.2715        .44836E-07   -.64482E-03
  17  Prefactor     .20539E-08    16.047        .12791E-06** at limit **
  18  norm          6.4957        2.2767       -.15652E-07    .93956E-03
  19  Normalizat    1.1406        .22500       -.88416E-06   -.57203E-06
  20  Prefactor     .96711        .83197E-01   -.65181E-06   -.84503E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.71925
  Prefactor  = 3.15969e-07
  Prefactor  = 1.65423e-08
  norm       = 5.55112e-11
  Prefactor  = 15.6909
  norm       = 0
  Prefactor  = 14.7519
  norm       = 11.0594
  norm       = 1.5128
  Prefactor  = 0
  Prefactor  = 23.5327
  Prefactor  = 16.0405
  Prefactor  = 0
  norm       = 2.9038
  Prefactor  = 18.8429
  norm       = 3.13355
  Prefactor  = 2.05391e-09
  norm       = 6.49574
  Normalizat = 1.14057
  Prefactor  = 0.967112
 **********
 **   18 **HESSE 
 **********

 FCN=   10271.10     FROM HESSE     STATUS=OK           339 CALLS     1878 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7192        1.4750        .80122E-03   -1.5682    
   2  Prefactor     .31597E-06    83.264        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .16542E-07    36.120        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .55511E-10    6.7103        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.691        16.515        .25247E-03   -1.5629    
   6  norm           .0000        1.1716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.752        25.311        .26090E-03   -1.5631    
   8  norm          11.059        8.4044        .29888E-03   -1.5641    
   9  norm          1.5128        .86627        .86700E-03   -1.5683    
  10  Prefactor      .0000        1.0196        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.533        23.552        .20567E-03   -1.5611    
  12  Prefactor     16.041        43.661        .25684E-03   -1.5628    
  13  Prefactor      .0000        4.8642        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.9038        2.5344        .59679E-03   -1.5674    
  15  Prefactor     18.843        20.368        .23031E-03   -1.5621    
  16  norm          3.1335        2.2786        .57159E-03   -1.5673    
  17  Prefactor     .20539E-08    16.053        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.4957        2.2823        .39351E-03   -1.5657    
  19  Normalizat    1.1406        .20658        .88368E-01   -.88460    
  20  Prefactor     .96711        .74703E-01    .45856E-01   -.93834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74799e-07
Minuit parameter uncertainties:
  1  1.47498
  2  0.0102585
  3  0.00154658
  4  3.02002e-05
  5  16.5146
  6  6.27171e-06
  7  25.3112
  8  8.40439
  9  0.866272
  10  3.12397e-06
  11  23.552
  12  43.6615
  13  5.00268e-06
  14  2.53439
  15  20.3677
  16  2.2786
  17  0.000360763
  18  2.28228
  19  0.206727
  20  0.0747105
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.569e+01  1.651e+01  0.000e+00  1.000e+06 ( 1.000e-14)
211        Index:  1.876e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  3.731e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
452    Prefactor:  9.671e-01  7.471e-02  0.000e+00  1.000e+01 ( 1.000e+00)
453        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
454        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
451   Normalization:  1.141e+00  2.067e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.11
Ra Dec: 64.227 1.088
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 1.59e-08 +/- 1.67e-08
Energy Flux (Fixed Index): 1.52e-05 +/- 1.60e-05

TS (Fixed Index): 3.11
Ra Dec: 64.227 1.088
Photon Flux Upper Limit: 6.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/19016/likelihoodResults_684633601_684892801_4FGL_J0416.9+0105_daily_bin1718.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): 0
logL (Free Index) = 10271.084865
delta logL = 0.014941310963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10271.0803047
delta logL = 0.0195016127745

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10271.08     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      248 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.479        20.036        .95724E-05   -.22532E-02
   2  Index         1.6746        .97022        .11089E-01   -.82330E-04
   3  Normalizat    1.1437        .20992        .39090E-03    .31515E-03
   4  Prefactor     .96709        .81793E-01    .16315E-03    .80371E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.4787
  Index      = 1.67464
  Normalizat = 1.14374
  Prefactor  = 0.967086
 **********
 **   18 **HESSE 
 **********

 FCN=   10271.08     FROM HESSE     STATUS=OK            23 CALLS      271 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.479        19.755        .19145E-05   -1.5624    
   2  Index         1.6746        .95670        .44358E-03   -.72759    
   3  Normalizat    1.1437        .20995        .15636E-04   -.88359    
   4  Prefactor     .96709        .81829E-01    .32630E-04   -.93835    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.81999e-10
Minuit parameter uncertainties:
  1  19.755
  2  0.967489
  3  0.210105
  4  0.0818393
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/19016': 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): 0
logL (Free Index) = 10271.0803047
delta logL = 0.0195016226025

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.748e+01  1.976e+01  0.000e+00  1.000e+06 ( 1.000e-14)
211        Index:  1.675e+00  9.675e-01  0.000e+00  1.000e+01 (-1.000e+00)
212        Scale:  3.731e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
452    Prefactor:  9.671e-01  8.184e-02  0.000e+00  1.000e+01 ( 1.000e+00)
453        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
454        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
451   Normalization:  1.144e+00  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.15
Ra Dec: 64.227 1.088
Photon Index (Free Index): 1.67 +/- 0.97
Photon Flux (Free Index): 1.10e-08 +/- 2.27e-08
Energy Flux (Free Index): 1.95e-05 +/- 3.38e-05

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/19016/cmap_HighResolution_684633601_684892801_4FGL_J0416.9+0105_daily_bin1718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.11e-03', comment='SUCCESS', photon_flux='1.59e-08', energy_flux2='1.95e-05', photon_flux_error='1.67e-08', dlogl='1.95e-02', energy_flux='1.52e-05', photon_flux2='1.10e-08', job_status='DONE', time_completed='2022-09-16 11:21:49.917338', photon_index_error2='0.97', photon_index2='1.67', ts='3.11', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='6.89e-08', energy_flux_error2='3.38e-05', EG='1.14', time_epoch_completed='1663352509.92', return_code='0', job_id='19016', GAL2='0.97', EG2='1.14', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='2.27e-08', ts2='3.15', photon_index='1.88' WHERE bin_id='1718' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 11:21:49 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 19016: <4FGL_J0416.9+0105_daily_bin1718> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin1718> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 16 11:05:32 2022
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 11:09:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 11:09:18 2022
Terminated at Fri Sep 16 11:21:50 2022
Results reported at Fri Sep 16 11:21:50 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin1718 64.2269 1.088 684633601 684892801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0416.9+0105 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   715.04 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             367.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            978 sec.

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

