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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin1567
RA = 64.2269, Dec = 1.088
tmin = 645494401, tmax = 645753601
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='352470', job_status='RUN', time_executed='2021-08-20 10:31:33.622265', time_epoch_executed='1629480693.62' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='1567'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/352470

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/352470/ft1_4FGL_J0416.9+0105_daily_bin1567.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/352470/ft2_4FGL_J0416.9+0105_daily_bin1567.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/352470/ft1_4FGL_J0416.9+0105_daily_bin1567.fits outfile=/scratch/kocevski/352470/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1567.fits ra=64.2269 dec=1.088 rad=12.0 tmin=645494401.0 tmax=645753601.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 10.59
user 2.38
sys 8.13

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/352470/ft1_filtered_4FGL_J0416.9+0105_daily_bin1567.fits" evtable="EVENTS" scfile=/scratch/kocevski/352470/ft2_4FGL_J0416.9+0105_daily_bin1567.fits sctable="SC_DATA" outfile=/scratch/kocevski/352470/ltcube_645494401_645753601_4FGL_J0416.9+0105_daily_bin1567.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/352470/ft2_4FGL_J0416.9+0105_daily_bin1567.fits
.....................!
real 21.91
user 12.62
sys 9.23

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/352470/ft1_filtered_4FGL_J0416.9+0105_daily_bin1567.fits evtable="EVENTS" scfile=/scratch/kocevski/352470/ft2_4FGL_J0416.9+0105_daily_bin1567.fits sctable="SC_DATA" expcube=/scratch/kocevski/352470/ltcube_645494401_645753601_4FGL_J0416.9+0105_daily_bin1567.fits outfile=/scratch/kocevski/352470/expmap_645494401_645753601_4FGL_J0416.9+0105_daily_bin1567.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/352470/ltcube_645494401_645753601_4FGL_J0416.9+0105_daily_bin1567.fits
.....................!
real 200.60
user 185.18
sys 14.94

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/352470/ft1_filtered_4FGL_J0416.9+0105_daily_bin1567.fits scfile=/scratch/kocevski/352470/ft2_4FGL_J0416.9+0105_daily_bin1567.fits outfile=/scratch/kocevski/352470/cmap_645494401_645753601_4FGL_J0416.9+0105_daily_bin1567.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 7.62
user 0.37
sys 7.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/352470/ft1_filtered_4FGL_J0416.9+0105_daily_bin1567.fits scfile=/scratch/kocevski/352470/ft2_4FGL_J0416.9+0105_daily_bin1567.fits outfile=/scratch/kocevski/352470/cmap_HighResolution_645494401_645753601_4FGL_J0416.9+0105_daily_bin1567.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 8.25
user 0.38
sys 7.79

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .71289E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11537E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .81992E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12706E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .11044E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    2.7314       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    63.860       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.765       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5679       1.0000         .10000E-03   10000.    
    15 'norm      '    6.1151       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .98610E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    4.8891       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10628E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    192.62       1.0000         .10000E-03   10000.    
    20 'norm      '    9.7997       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .35755       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2387       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=   4162.445     FROM MIGRAD    STATUS=CONVERGED    927 CALLS     2907 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.1467        .10537E-02** at limit **
   2  Prefactor     .10000E-03    856.10        .18670E-02** at limit **
   3  Prefactor     .10000E-03    61.896        .18142E-02** at limit **
   4  norm          .10009E-03    71.773        .51924E-02** at limit **
   5  Prefactor     .10000E-03    17.553        .18142E-02** at limit **
   6  norm          .10000E-03    3.0461        .10954E-02** at limit **
   7  Prefactor     .10000E-03    70.900        .18142E-02** at limit **
   8  norm          .10000E-03    5.1502        .14273E-02** at limit **
   9  norm          .10002E-03    508.78        .97403E-02** at limit **
  10  norm          2.7307        1.8502        .64811E-04    .56132E-05
  11  Prefactor     .10000E-03    2.5649        .15980E-02** at limit **
  12  Prefactor     63.739        85.616        .50217E-04    .15621E-04
  13  Prefactor     13.687        125.85        .10796E-03    .17480E-04
  14  Prefactor     2.5728        9.6534        .12737E-02    .11604E-04
  15  norm          6.1076        12.242        .16235E-03   -.31161E-04
  16  Prefactor     .10004E-03    139.82        .22575    ** at limit **
  17  norm          4.8891        3.7325        .10355E-03   -.29644E-04
  18  Prefactor     .10000E-03    12.317        .18142E-02** at limit **
  19  Prefactor     192.63        158.58        .14552E-03   -.37501E-05
  20  norm          9.7996        5.2833        .10464E-03   -.64427E-04
  21  Normalizat    .35779        .32669        .63125E-03   -.25394E-05
  22  Prefactor     1.2387        .14176        .15399E-03   -.23592E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.000100086
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100017
  norm       = 2.73075
  Prefactor  = 0.0001
  Prefactor  = 63.7389
  Prefactor  = 13.6866
  Prefactor  = 2.57281
  norm       = 6.10757
  Prefactor  = 0.000100035
  norm       = 4.88905
  Prefactor  = 0.0001
  Prefactor  = 192.631
  norm       = 9.79956
  Normalizat = 0.357788
  Prefactor  = 1.23871
 **********
 **   18 **HESSE 
 **********

 FCN=   4162.445     FROM HESSE     STATUS=OK           332 CALLS     3239 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.1480        .21075E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    856.77        .37340E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    61.922        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10009E-03    72.836        .10385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.553        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.0464        .21907E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    70.907        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.1506        .28546E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10002E-03    527.21        .38961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.7307        1.8503        .25924E-05   -1.5377    
  11  Prefactor     .10000E-03    2.5682        .31960E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     63.739        85.520        .20087E-05   -1.4110    
  13  Prefactor     13.687        125.86        .43184E-05   -1.4968    
  14  Prefactor     2.5728        9.6455        .50946E-04   -1.5387    
  15  norm          6.1076        12.239        .64941E-05   -1.5214    
  16  Prefactor     .10004E-03    142.27        .22287       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.8891        3.7325        .41419E-05   -1.5266    
  18  Prefactor     .10000E-03    12.317        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     192.63        158.60        .58206E-05   -1.2923    
  20  norm          9.7996        5.2833        .41856E-05   -1.5082    
  21  Normalizat    .35779        .32642        .25250E-04   -1.1954    
  22  Prefactor     1.2387        .14164        .30798E-04   -.85148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34505e-09
Minuit parameter uncertainties:
  1  1.38708e-06
  2  0.0014586
  3  0.000374716
  4  0.00501218
  5  2.06689e-06
  6  1.98679e-06
  7  0.000106303
  8  1.39704e-05
  9  0.00611087
  10  1.85034
  11  1.05288e-05
  12  85.6858
  13  83.2419
  14  9.65133
  15  12.244
  16  0.00448799
  17  3.73272
  18  2.62776e-07
  19  158.95
  20  5.28353
  21  0.328175
  22  0.141688
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  2.067e-06  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:  1.239e+00  1.417e-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:  3.578e-01  3.282e-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: 8.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/352470/likelihoodResults_645494401_645753601_4FGL_J0416.9+0105_daily_bin1567.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) = 4162.44563138
delta logL = -0.000269757482783

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4162.44536253
delta logL = -9.00560735317e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1269       1.0000          .0000       10.000    
     3 'Normalizat'    .35778       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2387       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=   4162.445     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      271 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10142E-03    67.899        .18142E-02** at limit **
   2  Index         2.0715        8.7085        .50000        .17322E-04
   3  Normalizat    .35779        .17922E-01    .63126E-03   -.33606E-04
   4  Prefactor     1.2387        .78887E-02    .15399E-03   -.19805E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101423
  Index      = 2.07155
  Normalizat = 0.357786
  Prefactor  = 1.23871
 **********
 **   18 **HESSE 
 **********

 FCN=   4162.445     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      300 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10142E-03    331.89        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0715        8.8742        .50000       -.62573    
   3  Normalizat    .35779        .40610E-01    .25251E-04   -1.1954    
   4  Prefactor     1.2387        .17874E-01    .30798E-04   -.85148    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.82776e-09
Minuit parameter uncertainties:
  1  0.0437042
  2  371.963
  3  0.0406137
  4  0.0178739
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/352470': 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): 102
logL (Free Index) = 4162.44536233
delta logL = -7.0095211413e-07

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.014e-04  4.370e-02  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.072e+00  3.720e+02  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:  1.239e+00  1.787e-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:  3.578e-01  4.061e-02  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/352470/cmap_HighResolution_645494401_645753601_4FGL_J0416.9+0105_daily_bin1567.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.65e-03', job_status='DONE', photon_flux_upper_limit='8.96e-08', time_completed='2021-08-20 10:42:02.960049', job_id='352470', GAL2='1.24', fit_tolerance='1e-08', EG2='0.36', EG='0.36', time_epoch_completed='1629481322.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='-7.01e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='1567' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:42:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 352470: <4FGL_J0416.9+0105_daily_bin1567> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin1567> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Aug 20 10:25:38 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:25:39 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:25:39 2021
Terminated at Fri Aug 20 10:42:05 2021
Results reported at Fri Aug 20 10:42:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin1567 64.2269 1.088 645494401 645753601 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 :                                   752.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             188.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            987 sec.

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

