/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 135 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 = 7469
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0416.9+0105_daily_bin618
RA = 64.2269, Dec = 1.088
tmin = 399513601, tmax = 399772801
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='346914', job_status='RUN', time_executed='2021-08-20 10:08:26.828703', time_epoch_executed='1629479306.83' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='618'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346914

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346914/ft1_4FGL_J0416.9+0105_daily_bin618.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346914/ft2_4FGL_J0416.9+0105_daily_bin618.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346914/ft1_4FGL_J0416.9+0105_daily_bin618.fits outfile=/scratch/kocevski/346914/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin618.fits ra=64.2269 dec=1.088 rad=12.0 tmin=399513601.0 tmax=399772801.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 5.95
user 4.93
sys 0.99

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/346914/ft2_4FGL_J0416.9+0105_daily_bin618.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/346914/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin618.fits evtable="EVENTS" outfile="/scratch/kocevski/346914/ft1_filtered_4FGL_J0416.9+0105_daily_bin618.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 1.24
user 0.31
sys 0.92

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/346914/ft1_filtered_4FGL_J0416.9+0105_daily_bin618.fits" evtable="EVENTS" scfile=/scratch/kocevski/346914/ft2_4FGL_J0416.9+0105_daily_bin618.fits sctable="SC_DATA" outfile=/scratch/kocevski/346914/ltcube_399513601_399772801_4FGL_J0416.9+0105_daily_bin618.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/346914/ft2_4FGL_J0416.9+0105_daily_bin618.fits
.....................!
real 12.71
user 11.51
sys 1.14

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346914/ft1_filtered_4FGL_J0416.9+0105_daily_bin618.fits evtable="EVENTS" scfile=/scratch/kocevski/346914/ft2_4FGL_J0416.9+0105_daily_bin618.fits sctable="SC_DATA" expcube=/scratch/kocevski/346914/ltcube_399513601_399772801_4FGL_J0416.9+0105_daily_bin618.fits outfile=/scratch/kocevski/346914/expmap_399513601_399772801_4FGL_J0416.9+0105_daily_bin618.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/346914/ltcube_399513601_399772801_4FGL_J0416.9+0105_daily_bin618.fits
.....................!
real 190.71
user 184.79
sys 5.60

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/346914/ft1_filtered_4FGL_J0416.9+0105_daily_bin618.fits scfile=/scratch/kocevski/346914/ft2_4FGL_J0416.9+0105_daily_bin618.fits outfile=/scratch/kocevski/346914/cmap_399513601_399772801_4FGL_J0416.9+0105_daily_bin618.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 1.31
user 0.35
sys 0.90

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/346914/ft1_filtered_4FGL_J0416.9+0105_daily_bin618.fits scfile=/scratch/kocevski/346914/ft2_4FGL_J0416.9+0105_daily_bin618.fits outfile=/scratch/kocevski/346914/cmap_HighResolution_399513601_399772801_4FGL_J0416.9+0105_daily_bin618.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 1.19
user 0.38
sys 0.81

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/346914/ft1_filtered_4FGL_J0416.9+0105_daily_bin618.fits', '/scratch/kocevski/346914/ft2_4FGL_J0416.9+0105_daily_bin618.fits', expMap='/scratch/kocevski/346914/expmap_399513601_399772801_4FGL_J0416.9+0105_daily_bin618.fits', expCube='/scratch/kocevski/346914/ltcube_399513601_399772801_4FGL_J0416.9+0105_daily_bin618.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/346914/Model_4FGL_J0416.9+0105_daily_bin618.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/346914/ft1_filtered_4FGL_J0416.9+0105_daily_bin618.fits
Spacecraft file(s): /scratch/kocevski/346914/ft2_4FGL_J0416.9+0105_daily_bin618.fits
Exposure map: /scratch/kocevski/346914/expmap_399513601_399772801_4FGL_J0416.9+0105_daily_bin618.fits
Exposure cube: /scratch/kocevski/346914/ltcube_399513601_399772801_4FGL_J0416.9+0105_daily_bin618.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/346914/Model_4FGL_J0416.9+0105_daily_bin618.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) = 6161.03340217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9948       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.289       1.0000         .10000E-03   10000.    
     4 'norm      '    28.382       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.6682       1.0000         .10000E-03   10000.    
     8 'norm      '    13.645       1.0000         .10000E-03   10000.    
     9 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.5116       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4199       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.822       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.0174       1.0000         .10000E-03   10000.    
    15 'norm      '    3.3303       1.0000         .10000E-03   10000.    
    16 'Prefactor '    34.060       1.0000         .10000E-03   10000.    
    17 'norm      '    17.254       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8126       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.1692       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2822       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .72946       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=   6161.030     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2682 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9949        2.3154        .41644E-07   -.55817E-05
   2  Prefactor     .10000E-03    34.497       -.25896E-06** at limit **
   3  Prefactor     10.286        18.250        .26618E-06   -.73929E-06
   4  norm          28.384        29.680       -.99831E-07   -.13907E-05
   5  Prefactor     .10000E-03    35.826        .35433E-06** at limit **
   6  norm          .10000E-03    4.6428        .34921E-06** at limit **
   7  Prefactor     9.6680        23.865        .98292E-07    .10087E-05
   8  norm          13.649        13.083        .50217E-08   -.13204E-04
   9  norm          .10000E-03    21.263        .14098E-06** at limit **
  10  norm          4.5123        2.0644       -.14461E-06   -.15943E-03
  11  Prefactor     2.4190        3.5219       -.14452E-05   -.40960E-03
  12  Prefactor     .10000E-03    24.155       -.30689E-06** at limit **
  13  Prefactor     10.720        219.19        .25112E-04   -.18274E-04
  14  Prefactor     6.0187        9.0179       -.26433E-06   -.27154E-04
  15  norm          3.3299        3.2376       -.12600E-06    .62018E-05
  16  Prefactor     34.064        47.268       -.51086E-06    .59671E-05
  17  norm          17.254        4.4863       -.13732E-06   -.90379E-04
  18  Prefactor     2.8133        10.128        .30158E-05   -.53847E-04
  19  Prefactor     .10000E-03    18.742        .16400E-06** at limit **
  20  norm          7.1695        3.3940        .13805E-08   -.11078E-04
  21  Normalizat    1.2820        .28716       -.30866E-07   -.78286E-06
  22  Prefactor     .72954        .95185E-01   -.30292E-06   -.38895E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.99492
  Prefactor  = 0.0001
  Prefactor  = 10.2864
  norm       = 28.3844
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.668
  norm       = 13.649
  norm       = 0.0001
  norm       = 4.51229
  Prefactor  = 2.419
  Prefactor  = 0.0001
  Prefactor  = 10.7201
  Prefactor  = 6.01873
  norm       = 3.32993
  Prefactor  = 34.0636
  norm       = 17.2542
  Prefactor  = 2.8133
  Prefactor  = 0.0001
  norm       = 7.16953
  Normalizat = 1.28197
  Prefactor  = 0.729539
 **********
 **   18 **HESSE 
 **********

 FCN=   6161.030     FROM HESSE     STATUS=OK           354 CALLS     3036 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9949        2.3133        .99882E-04   -1.5362    
   2  Prefactor     .10000E-03    34.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.286        18.262        .12492E-03   -1.5066    
   4  norm          28.384        29.562        .75201E-04   -1.4642    
   5  Prefactor     .10000E-03    35.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    13.591        .31844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.6680        23.848        .12888E-03   -1.5086    
   8  norm          13.649        13.172        .10843E-03   -1.4969    
   9  norm          .10000E-03    21.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.5123        2.0283        .63965E-04   -1.5283    
  11  Prefactor     2.4190        3.5249        .12938E-03   -1.5397    
  12  Prefactor     .10000E-03    24.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.720        220.24        .12179E-03   -1.5053    
  14  Prefactor     6.0187        9.0187        .16368E-03   -1.5217    
  15  norm          3.3299        3.2247        .12874E-03   -1.5343    
  16  Prefactor     34.064        47.326        .68664E-04   -1.4540    
  17  norm          17.254        4.4954        .77544E-04   -1.4877    
  18  Prefactor     2.8133        10.250        .12127E-02   -1.5372    
  19  Prefactor     .10000E-03    18.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.1695        3.4036        .94923E-04   -1.5172    
  21  Normalizat    1.2820        .32736        .37696E-03   -.84106    
  22  Prefactor     .72954        .10797        .17551E-03   -1.0238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.88465e-11
Minuit parameter uncertainties:
  1  2.31336
  2  1.12532e-05
  3  18.2718
  4  29.5774
  5  5.72195e-05
  6  0.000149667
  7  23.8711
  8  13.1743
  9  1.60746e-06
  10  2.02831
  11  3.52518
  12  3.59025e-05
  13  97.5936
  14  9.02072
  15  3.22489
  16  47.3778
  17  4.49546
  18  10.2566
  19  5.39154e-07
  20  3.40365
  21  0.327892
  22  0.108003
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  5.722e-05  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.295e-01  1.080e-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:  1.282e+00  3.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/346914/likelihoodResults_399513601_399772801_4FGL_J0416.9+0105_daily_bin618.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) = 6161.03014355
delta logL = -0.00013264334666

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6161.03001133
delta logL = -4.28610292147e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13116E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9443       1.0000          .0000       10.000    
     3 'Normalizat'    1.2820       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72954       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.

 FCN=   6161.030     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      233 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    278.62        .90712E-02** at limit **
   2  Index         1.9458        7.3451        .50000       -.37005E-06
   3  Normalizat    1.2820        .20762E-01    .85138E-01   -.26740E-04
   4  Prefactor     .72954        .75567E-02    .42793E-01   -.49340E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.94581
  Normalizat = 1.28197
  Prefactor  = 0.729539
 **********
 **   18 **HESSE 
 **********

 FCN=   6161.030     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .81E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9458        5.9602        .50000       -.65712    
   3  Normalizat    1.2820        .28229        .37695E-03   -.84106    
   4  Prefactor     .72954        .10300        .17551E-03   -1.0238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.14125e-12
Minuit parameter uncertainties:
  1  0.000137696
  2  4.01566
  3  0.282631
  4  0.103028
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346914': 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) = 6161.0300109
delta logL = 3.8480720832e-09

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  1.377e-04  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.946e+00  4.016e+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.295e-01  1.030e-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:  1.282e+00  2.826e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/346914/cmap_HighResolution_399513601_399772801_4FGL_J0416.9+0105_daily_bin618.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.34e-03', job_status='DONE', photon_flux_upper_limit='9.89e-08', time_completed='2021-08-20 10:18:47.772785', job_id='346914', GAL2='0.73', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1629479927.77', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='3.85e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='618' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:18:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 346914: <4FGL_J0416.9+0105_daily_bin618> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin618> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 20 10:05:47 2021
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:05:50 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:50 2021
Terminated at Fri Aug 20 10:18:48 2021
Results reported at Fri Aug 20 10:18:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin618 64.2269 1.088 399513601 399772801 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 :                                   632.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             279.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            781 sec.

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

