/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 118 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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 = 7397
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0416.9+0105_daily_bin322
RA = 64.2269, Dec = 1.088
tmin = 322790401, tmax = 323049601
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='346493', job_status='RUN', time_executed='2021-08-20 10:08:51.951759', time_epoch_executed='1629479331.95' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346493

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346493/ft1_4FGL_J0416.9+0105_daily_bin322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346493/ft2_4FGL_J0416.9+0105_daily_bin322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346493/ft1_4FGL_J0416.9+0105_daily_bin322.fits outfile=/scratch/kocevski/346493/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin322.fits ra=64.2269 dec=1.088 rad=12.0 tmin=322790401.0 tmax=323049601.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 17.30
user 11.60
sys 5.65

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/346493/ft2_4FGL_J0416.9+0105_daily_bin322.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/346493/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin322.fits evtable="EVENTS" outfile="/scratch/kocevski/346493/ft1_filtered_4FGL_J0416.9+0105_daily_bin322.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 5.80
user 0.34
sys 5.43

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/346493/ft1_filtered_4FGL_J0416.9+0105_daily_bin322.fits" evtable="EVENTS" scfile=/scratch/kocevski/346493/ft2_4FGL_J0416.9+0105_daily_bin322.fits sctable="SC_DATA" outfile=/scratch/kocevski/346493/ltcube_322790401_323049601_4FGL_J0416.9+0105_daily_bin322.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/346493/ft2_4FGL_J0416.9+0105_daily_bin322.fits
.....................!
real 17.27
user 11.01
sys 6.21

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346493/ft1_filtered_4FGL_J0416.9+0105_daily_bin322.fits evtable="EVENTS" scfile=/scratch/kocevski/346493/ft2_4FGL_J0416.9+0105_daily_bin322.fits sctable="SC_DATA" expcube=/scratch/kocevski/346493/ltcube_322790401_323049601_4FGL_J0416.9+0105_daily_bin322.fits outfile=/scratch/kocevski/346493/expmap_322790401_323049601_4FGL_J0416.9+0105_daily_bin322.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/346493/ltcube_322790401_323049601_4FGL_J0416.9+0105_daily_bin322.fits
.....................!
real 197.64
user 185.65
sys 11.66

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/346493/ft1_filtered_4FGL_J0416.9+0105_daily_bin322.fits scfile=/scratch/kocevski/346493/ft2_4FGL_J0416.9+0105_daily_bin322.fits outfile=/scratch/kocevski/346493/cmap_322790401_323049601_4FGL_J0416.9+0105_daily_bin322.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 5.72
user 0.37
sys 5.33

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/346493/ft1_filtered_4FGL_J0416.9+0105_daily_bin322.fits scfile=/scratch/kocevski/346493/ft2_4FGL_J0416.9+0105_daily_bin322.fits outfile=/scratch/kocevski/346493/cmap_HighResolution_322790401_323049601_4FGL_J0416.9+0105_daily_bin322.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 5.74
user 0.39
sys 5.32

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/346493/ft1_filtered_4FGL_J0416.9+0105_daily_bin322.fits', '/scratch/kocevski/346493/ft2_4FGL_J0416.9+0105_daily_bin322.fits', expMap='/scratch/kocevski/346493/expmap_322790401_323049601_4FGL_J0416.9+0105_daily_bin322.fits', expCube='/scratch/kocevski/346493/ltcube_322790401_323049601_4FGL_J0416.9+0105_daily_bin322.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/346493/Model_4FGL_J0416.9+0105_daily_bin322.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  1.000e-04  1.000e+04 ( 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/346493/ft1_filtered_4FGL_J0416.9+0105_daily_bin322.fits
Spacecraft file(s): /scratch/kocevski/346493/ft2_4FGL_J0416.9+0105_daily_bin322.fits
Exposure map: /scratch/kocevski/346493/expmap_322790401_323049601_4FGL_J0416.9+0105_daily_bin322.fits
Exposure cube: /scratch/kocevski/346493/ltcube_322790401_323049601_4FGL_J0416.9+0105_daily_bin322.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/346493/Model_4FGL_J0416.9+0105_daily_bin322.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) = 1691.63876785

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6187       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.668       1.0000         .10000E-03   10000.    
     4 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.719       1.0000         .10000E-03   10000.    
     6 'norm      '    10.600       1.0000         .10000E-03   10000.    
     7 'Prefactor '    84.345       1.0000         .10000E-03   10000.    
     8 'norm      '    1.7515       1.0000         .10000E-03   10000.    
     9 'norm      '    49.788       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3574       1.0000         .10000E-03   10000.    
    12 'Prefactor '    72.772       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17168E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .14435E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    52.541       1.0000         .10000E-03   10000.    
    17 'norm      '    .15467E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12106E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    73.057       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98713       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .72228       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.

 FCN=   1691.626     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2372 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6177        4.6355       -.17257E-06    .55389E-04
   2  Prefactor     .10000E-03    50.450       -.15942E-05** at limit **
   3  Prefactor     31.665        36.659       -.69011E-06    .76076E-05
   4  norm          .10000E-03    23.848        .10843E-05** at limit **
   5  Prefactor     27.755        50.290       -.13146E-05   -.13389E-04
   6  norm          10.601        10.412        .12856E-06    .66244E-04
   7  Prefactor     84.330        66.666        .47430E-07    .18109E-04
   8  norm          1.6552        213.07       -.99653E-05    .14173E-04
   9  norm          49.790        78.667        .20450E-05   -.59449E-05
  10  norm          .10000E-03    1.1289       -.15867E-06** at limit **
  11  Prefactor     4.3579        4.2635        .83061E-06   -.19128E-03
  12  Prefactor     72.794        66.578        .40143E-06    .55757E-04
  13  Prefactor     .10008E-03    926.56        .17740E-04** at limit **
  14  Prefactor     .10000E-03    26.702       -.22085E-05** at limit **
  15  norm          .10000E-03    9.0867       -.17219E-05** at limit **
  16  Prefactor     52.544        66.151       -.40679E-06    .58827E-05
  17  norm          .10000E-03    40.143       -.15464E-04** at limit **
  18  Prefactor     .10000E-03    19.707       -.36074E-06** at limit **
  19  Prefactor     73.056        122.26       -.88341E-06    .44463E-04
  20  norm          .10000E-03    3.7410       -.14562E-06** at limit **
  21  Normalizat    .98748        .52607        .39623E-05    .14349E-03
  22  Prefactor     .72229        .16393        .34509E-06    .51846E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.61773
  Prefactor  = 0.0001
  Prefactor  = 31.6652
  norm       = 0.0001
  Prefactor  = 27.7553
  norm       = 10.6013
  Prefactor  = 84.3304
  norm       = 1.65519
  norm       = 49.7901
  norm       = 0.0001
  Prefactor  = 4.35792
  Prefactor  = 72.7937
  Prefactor  = 0.000100077
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 52.5442
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 73.0559
  norm       = 0.0001
  Normalizat = 0.987484
  Prefactor  = 0.722294
 **********
 **   18 **HESSE 
 **********

 FCN=   1691.626     FROM HESSE     STATUS=OK           336 CALLS     2708 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6177        4.6408        .83946E-04   -1.5278    
   2  Prefactor     .10000E-03    50.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     31.665        36.824        .71202E-04   -1.4582    
   4  norm          .10000E-03    23.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.755        50.343        .76093E-04   -1.4654    
   6  norm          10.601        10.417        .12306E-03   -1.5057    
   7  Prefactor     84.330        66.883        .43740E-04   -1.3869    
   8  norm          1.6552        217.06        .31679E-03   -1.5451    
   9  norm          49.790        78.414        .56834E-04   -1.4296    
  10  norm          .10000E-03    1.1343        .42691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.3579        4.2540        .79632E-04   -1.5290    
  12  Prefactor     72.794        66.481        .47062E-04   -1.4000    
  13  Prefactor     .10008E-03    921.38        .20361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    26.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    9.3362        .12146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     52.544        66.199        .55332E-04   -1.4257    
  17  norm          .10000E-03    40.121        .21065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.777        .17809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     73.056        122.13        .46971E-04   -1.3996    
  20  norm          .10000E-03    3.7474        .77679E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .98748        .56541        .39660E-03   -.93451    
  22  Prefactor     .72229        .18377        .15902E-03   -1.0266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.53556e-10
Minuit parameter uncertainties:
  1  4.64116
  2  0.000112566
  3  36.8503
  4  4.00947e-05
  5  50.4197
  6  10.4189
  7  66.9432
  8  38.0497
  9  78.5775
  10  6.42897e-06
  11  4.25433
  12  66.5489
  13  0.0171019
  14  8.52451e-05
  15  5.92376e-05
  16  66.292
  17  0.000224984
  18  7.67996e-05
  19  122.554
  20  3.0254e-06
  21  0.568883
  22  0.183925
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  2.776e+01  5.042e+01  1.000e-04  1.000e+04 ( 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:  7.223e-01  1.839e-01  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:  9.875e-01  5.689e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.51
Ra Dec: 64.227 1.088
Photon Flux Upper Limit: 2.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.60e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/346493/likelihoodResults_322790401_323049601_4FGL_J0416.9+0105_daily_bin322.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) = 1691.5504716
delta logL = 0.0754250733121

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1691.54652971
delta logL = 0.0793669587333

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.679       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3860       1.0000          .0000       10.000    
     3 'Normalizat'    .97741       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72353       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=   1691.547     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      300 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.700        51.342        .11722E-03   -.25458E-05
   2  Index         2.3863        1.6598        .47417E-02    .13282E-03
   3  Normalizat    .97710        .48762        .39827E-03   -.93629E-05
   4  Prefactor     .72350        .17098        .15883E-03    .26899E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6996
  Index      = 2.38634
  Normalizat = 0.977103
  Prefactor  = 0.723496
 **********
 **   18 **HESSE 
 **********

 FCN=   1691.547     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.700        40.605        .46889E-05   -1.5024    
   2  Index         2.3863        1.3879        .94834E-03   -.55005    
   3  Normalizat    .97710        .48737        .15931E-04   -.93801    
   4  Prefactor     .72350        .17098        .31766E-04   -1.0261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0049e-11
Minuit parameter uncertainties:
  1  40.7006
  2  1.41366
  3  0.489609
  4  0.171108
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346493': 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) = 1691.54652782
delta logL = 0.079368855379

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.170e+01  4.070e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.386e+00  1.414e+00  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:  7.235e-01  1.711e-01  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:  9.771e-01  4.896e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.51
Ra Dec: 64.227 1.088

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/346493/cmap_HighResolution_322790401_323049601_4FGL_J0416.9+0105_daily_bin322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.60e-02', job_status='DONE', photon_flux_upper_limit='2.16e-07', time_completed='2021-08-20 10:17:15.915450', job_id='346493', GAL2='0.72', fit_tolerance='1e-08', EG2='0.98', EG='0.99', time_epoch_completed='1629479835.92', return_code2='0', ts='0.51', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='7.94e-02', ts2='0.67', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='322' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:17:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 346493: <4FGL_J0416.9+0105_daily_bin322> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin322> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 20 10:05:17 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:05:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 10:05:19 2021
Terminated at Fri Aug 20 10:17:17 2021
Results reported at Fri Aug 20 10:17:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin322 64.2269 1.088 322790401 323049601 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 :                                   585.00 sec.
    Max Memory :                                 1254 MB
    Average Memory :                             260.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            720 sec.

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

