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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin436
RA = 64.2269, Dec = 1.088
tmin = 352339201, tmax = 352598401
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='346655', job_status='RUN', time_executed='2021-08-20 10:07:42.939090', time_epoch_executed='1629479262.94' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='436'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346655

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346655/ft1_4FGL_J0416.9+0105_daily_bin436.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346655/ft2_4FGL_J0416.9+0105_daily_bin436.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346655/ft1_4FGL_J0416.9+0105_daily_bin436.fits outfile=/scratch/kocevski/346655/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin436.fits ra=64.2269 dec=1.088 rad=12.0 tmin=352339201.0 tmax=352598401.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.12
user 3.28
sys 0.79

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/346655/ft1_filtered_4FGL_J0416.9+0105_daily_bin436.fits" evtable="EVENTS" scfile=/scratch/kocevski/346655/ft2_4FGL_J0416.9+0105_daily_bin436.fits sctable="SC_DATA" outfile=/scratch/kocevski/346655/ltcube_352339201_352598401_4FGL_J0416.9+0105_daily_bin436.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/346655/ft2_4FGL_J0416.9+0105_daily_bin436.fits
.....................!
real 15.33
user 14.27
sys 1.02

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346655/ft1_filtered_4FGL_J0416.9+0105_daily_bin436.fits evtable="EVENTS" scfile=/scratch/kocevski/346655/ft2_4FGL_J0416.9+0105_daily_bin436.fits sctable="SC_DATA" expcube=/scratch/kocevski/346655/ltcube_352339201_352598401_4FGL_J0416.9+0105_daily_bin436.fits outfile=/scratch/kocevski/346655/expmap_352339201_352598401_4FGL_J0416.9+0105_daily_bin436.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/346655/ltcube_352339201_352598401_4FGL_J0416.9+0105_daily_bin436.fits
.....................!
real 192.29
user 186.39
sys 5.59

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/346655/ft1_filtered_4FGL_J0416.9+0105_daily_bin436.fits scfile=/scratch/kocevski/346655/ft2_4FGL_J0416.9+0105_daily_bin436.fits outfile=/scratch/kocevski/346655/cmap_352339201_352598401_4FGL_J0416.9+0105_daily_bin436.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.12
user 0.37
sys 0.74

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/346655/ft1_filtered_4FGL_J0416.9+0105_daily_bin436.fits scfile=/scratch/kocevski/346655/ft2_4FGL_J0416.9+0105_daily_bin436.fits outfile=/scratch/kocevski/346655/cmap_HighResolution_352339201_352598401_4FGL_J0416.9+0105_daily_bin436.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.13
user 0.38
sys 0.74

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96068       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13838E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.3961       1.0000         .10000E-03   10000.    
     4 'norm      '    32.297       1.0000         .10000E-03   10000.    
     5 'Prefactor '    50.955       1.0000         .10000E-03   10000.    
     6 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.223       1.0000         .10000E-03   10000.    
     8 'norm      '    .10318E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    14.640       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5060       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6167       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.6886       1.0000         .10000E-03   10000.    
    15 'norm      '    .10579E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.1037       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8738       1.0000         .10000E-03   10000.    
    19 'Prefactor '    61.170       1.0000         .10000E-03   10000.    
    20 'norm      '    2.4938       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2843       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .88618       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=   7566.072     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2392 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .96151        1.2497       -.21958E-06   -.10341E-02
   2  Prefactor     .10003E-03    174.48       -.34265E-04** at limit **
   3  Prefactor     9.3415        19.416        .16502E-04    .83605E-04
   4  norm          32.300        23.692       -.20417E-06   -.75549E-06
   5  Prefactor     50.961        36.572       -.10411E-05    .14315E-04
   6  norm          .10000E-03    2.1770        .24097E-06** at limit **
   7  Prefactor     16.239        29.641        .63805E-05    .49698E-04
   8  norm          .10000E-03    13.655        .99014E-06** at limit **
   9  norm          14.655        32.879        .32894E-05    .55313E-04
  10  norm          1.5056        1.0528        .66452E-06    .86505E-03
  11  Prefactor     .10000E-03    .81636        .22875E-07** at limit **
  12  Prefactor     1.6084        56.371       -.20746E-04   -.15769E-03
  13  Prefactor     .10000E-03    60.400       -.13390E-05** at limit **
  14  Prefactor     8.6806        11.438       -.18735E-04   -.80833E-04
  15  norm          .10000E-03    1.3497        .17774E-06** at limit **
  16  Prefactor     .10000E-03    8.8924        .83098E-07** at limit **
  17  norm          2.1033        2.2102        .36430E-06   -.24557E-03
  18  Prefactor     3.8741        5.4540       -.63480E-06   -.32506E-03
  19  Prefactor     61.168        36.703       -.86802E-06    .19777E-04
  20  norm          2.4932        2.6787       -.20693E-06   -.60676E-03
  21  Normalizat    1.2848        .24019        .70045E-05   -.84349E-04
  22  Prefactor     .88588        .85017E-01   -.23301E-05    .98078E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.961513
  Prefactor  = 0.00010003
  Prefactor  = 9.34145
  norm       = 32.3001
  Prefactor  = 50.9605
  norm       = 0.0001
  Prefactor  = 16.239
  norm       = 0.000100001
  norm       = 14.6546
  norm       = 1.50562
  Prefactor  = 0.0001
  Prefactor  = 1.60844
  Prefactor  = 0.000100001
  Prefactor  = 8.68064
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.10325
  Prefactor  = 3.87407
  Prefactor  = 61.1678
  norm       = 2.49324
  Normalizat = 1.2848
  Prefactor  = 0.885884
 **********
 **   18 **HESSE 
 **********

 FCN=   7566.072     FROM HESSE     STATUS=OK           344 CALLS     2736 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .96151        1.0977        .10613E-02   -1.5512    
   2  Prefactor     .10003E-03    177.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.3415        19.330        .13074E-03   -1.5097    
   4  norm          32.300        23.693        .70507E-04   -1.4571    
   5  Prefactor     50.961        36.526        .56182E-04   -1.4279    
   6  norm          .10000E-03    2.1871        .12530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.239        29.426        .99438E-04   -1.4902    
   8  norm          .10000E-03    13.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          14.655        32.568        .10468E-03   -1.4942    
  10  norm          1.5056        1.0523        .70767E-04   -1.5463    
  11  Prefactor     .10000E-03    .83626        .15291E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.6084        55.834        .33296E-03   -1.5454    
  13  Prefactor     .10000E-03    60.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.6806        11.449        .13599E-03   -1.5119    
  15  norm          .10000E-03    1.3975        .19658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.8936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.1033        2.2008        .12558E-03   -1.5418    
  18  Prefactor     3.8741        5.4405        .20502E-03   -1.5314    
  19  Prefactor     61.168        36.692        .51302E-04   -1.4142    
  20  norm          2.4932        2.6751        .14094E-03   -1.5392    
  21  Normalizat    1.2848        .26800        .36142E-03   -.84021    
  22  Prefactor     .88588        .95700E-01    .16346E-03   -.96636    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67007e-09
Minuit parameter uncertainties:
  1  1.09776
  2  0.00461874
  3  19.3431
  4  23.7002
  5  36.542
  6  2.43012e-05
  7  29.4527
  8  0.000264209
  9  32.6076
  10  1.05231
  11  3.94751e-06
  12  18.9717
  13  0.0004715
  14  11.4521
  15  2.09039e-05
  16  1.16034e-06
  17  2.20086
  18  5.44121
  19  36.7055
  20  2.67521
  21  0.268293
  22  0.0957186
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  5.096e+01  3.654e+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:  8.859e-01  9.572e-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.285e+00  2.683e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.51
Ra Dec: 64.227 1.088
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 5.16e-08 +/- 3.70e-08
Energy Flux (Fixed Index): 4.95e-05 +/- 3.55e-05

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) = 7564.69285657
delta logL = 1.37919086508

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7563.8002723
delta logL = 2.27177513918

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2280       1.0000         .10000E-03   10000.    
     2 'Index     '    .27558E-06   1.0000          .0000       10.000    
     3 'Normalizat'    1.2998       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89387       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=   7563.800     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      237 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2282        5.0479        .48993E-02   -.53222E-02
   2  Index         .83352E-10    .42118        .50000    ** at limit **
   3  Normalizat    1.2998        .21497        .81312E-01    .59228E-05
   4  Prefactor     .89379        .82949E-01    .44927E-01   -.23695E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.2282
  Index      = 8.33517e-11
  Normalizat = 1.29985
  Prefactor  = 0.893794
 **********
 **   18 **HESSE 
 **********

 FCN=   7563.800     FROM HESSE     STATUS=OK            29 CALLS      266 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2282        4.2484        .17398E-03   -1.5297    
   2  Index         .83352E-10    1.0408        .29288E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2998        .24086        .35994E-03   -.83571    
   4  Prefactor     .89379        .93093E-01    .16300E-03   -.96358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11264e-08
Minuit parameter uncertainties:
  1  4.24869
  2  1.89672e-05
  3  0.241069
  4  0.0931091
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346655': 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) = 7563.80027158
delta logL = 2.27177585811

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  4.228e+00  4.249e+00  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  8.335e-11  1.897e-05  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:  8.938e-01  9.311e-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.300e+00  2.411e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.05
Ra Dec: 64.227 1.088
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 4.23e-09 +/- 4.24e-09
Energy Flux (Free Index): 2.12e-04 +/- 2.12e-04

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/346655/cmap_HighResolution_352339201_352598401_4FGL_J0416.9+0105_daily_bin436.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.16e-08', energy_flux2='2.12e-04', photon_flux_error='3.70e-08', dlogl='2.27e+00', energy_flux='4.95e-05', photon_flux2='4.23e-09', job_status='DONE', time_completed='2021-08-20 10:18:12.377302', photon_index_error2='0.00', photon_index2='0.00', ts='18.51', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='2.12e-04', EG='1.28', time_epoch_completed='1629479892.38', return_code='0', job_id='346655', GAL2='0.89', EG2='1.30', return_code2='0', energy_flux_error='3.55e-05', photon_flux_error2='4.24e-09', ts2='23.05', photon_index='1.88' WHERE bin_id='436' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:18:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 346655: <4FGL_J0416.9+0105_daily_bin436> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin436 64.2269 1.088 352339201 352598401 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 :                                   639.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             322.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            763 sec.

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

