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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin325
RA = 64.2269, Dec = 1.088
tmin = 323568001, tmax = 323827201
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='346498', job_status='RUN', time_executed='2021-08-20 10:09:36.190199', time_epoch_executed='1629479376.19' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='325'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346498

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346498/ft1_4FGL_J0416.9+0105_daily_bin325.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346498/ft2_4FGL_J0416.9+0105_daily_bin325.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346498/ft1_4FGL_J0416.9+0105_daily_bin325.fits outfile=/scratch/kocevski/346498/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin325.fits ra=64.2269 dec=1.088 rad=12.0 tmin=323568001.0 tmax=323827201.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 6.92
user 3.08
sys 3.79

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/346498/ft2_4FGL_J0416.9+0105_daily_bin325.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/346498/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin325.fits evtable="EVENTS" outfile="/scratch/kocevski/346498/ft1_filtered_4FGL_J0416.9+0105_daily_bin325.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 4.13
user 0.33
sys 3.77

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/346498/ft1_filtered_4FGL_J0416.9+0105_daily_bin325.fits" evtable="EVENTS" scfile=/scratch/kocevski/346498/ft2_4FGL_J0416.9+0105_daily_bin325.fits sctable="SC_DATA" outfile=/scratch/kocevski/346498/ltcube_323568001_323827201_4FGL_J0416.9+0105_daily_bin325.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/346498/ft2_4FGL_J0416.9+0105_daily_bin325.fits
.....................!
real 17.45
user 12.95
sys 4.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346498/ft1_filtered_4FGL_J0416.9+0105_daily_bin325.fits evtable="EVENTS" scfile=/scratch/kocevski/346498/ft2_4FGL_J0416.9+0105_daily_bin325.fits sctable="SC_DATA" expcube=/scratch/kocevski/346498/ltcube_323568001_323827201_4FGL_J0416.9+0105_daily_bin325.fits outfile=/scratch/kocevski/346498/expmap_323568001_323827201_4FGL_J0416.9+0105_daily_bin325.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/346498/ltcube_323568001_323827201_4FGL_J0416.9+0105_daily_bin325.fits
.....................!
real 199.02
user 188.18
sys 10.26

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/346498/ft1_filtered_4FGL_J0416.9+0105_daily_bin325.fits scfile=/scratch/kocevski/346498/ft2_4FGL_J0416.9+0105_daily_bin325.fits outfile=/scratch/kocevski/346498/cmap_323568001_323827201_4FGL_J0416.9+0105_daily_bin325.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 4.05
user 0.38
sys 3.64

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/346498/ft1_filtered_4FGL_J0416.9+0105_daily_bin325.fits scfile=/scratch/kocevski/346498/ft2_4FGL_J0416.9+0105_daily_bin325.fits outfile=/scratch/kocevski/346498/cmap_HighResolution_323568001_323827201_4FGL_J0416.9+0105_daily_bin325.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 4.09
user 0.40
sys 3.66

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8395       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .26675E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    25.871       1.0000         .10000E-03   10000.    
    10 'norm      '    1.6432       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0536       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.566       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4911       1.0000         .10000E-03   10000.    
    15 'norm      '    .10405E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.3858       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .64151       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.3933       1.0000         .10000E-03   10000.    
    20 'norm      '    3.0102       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96115       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96462       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=   7973.684     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2370 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8394        1.9271        .16559E-06   -.21065E-04
   2  Prefactor     .10000E-03    19.087       -.65989E-06** at limit **
   3  Prefactor     .10000E-03    16.103        .30797E-06** at limit **
   4  norm          .10000E-03    6.0591       -.91887E-08** at limit **
   5  Prefactor     .10000E-03    7.9298       -.28421E-07** at limit **
   6  norm          .10000E-03    2.2802       -.11284E-07** at limit **
   7  Prefactor     .10000E-03    13.553       -.49938E-06** at limit **
   8  norm          .10006E-03    6.7436        .10443E-05** at limit **
   9  norm          25.865        27.456        .57825E-06   -.10840E-03
  10  norm          1.6433        1.3065       -.12926E-06   -.28005E-03
  11  Prefactor     4.0534        2.0289       -.30177E-07   -.25588E-03
  12  Prefactor     15.567        21.617       -.48423E-06   -.15746E-03
  13  Prefactor     .10000E-03    45.724        .19661E-07** at limit **
  14  Prefactor     2.4841        9.5793        .74409E-05   -.17674E-03
  15  norm          .10000E-03    1.2430        .15540E-07** at limit **
  16  Prefactor     .10000E-03    15.244        .41562E-06** at limit **
  17  norm          1.3859        2.3454        .14487E-06   -.13247E-03
  18  Prefactor     .64296        7.1206        .35393E-07   -.42472E-04
  19  Prefactor     3.4117        101.06       -.10455E-04   -.65147E-04
  20  norm          3.0102        2.6047        .12079E-06   -.54443E-04
  21  Normalizat    .96107        .24855       -.31985E-05   -.38624E-03
  22  Prefactor     .96467        .84582E-01    .30779E-06   -.94952E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.83944
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100064
  norm       = 25.8648
  norm       = 1.64328
  Prefactor  = 4.05339
  Prefactor  = 15.5668
  Prefactor  = 0.0001
  Prefactor  = 2.48407
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.38587
  Prefactor  = 0.642958
  Prefactor  = 3.41165
  norm       = 3.01021
  Normalizat = 0.961067
  Prefactor  = 0.964668
 **********
 **   18 **HESSE 
 **********

 FCN=   7973.684     FROM HESSE     STATUS=OK           344 CALLS     2714 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8394        1.9213        .95128E-04   -1.5371    
   2  Prefactor     .10000E-03    19.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.0614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.9307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.2900        .13157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10006E-03    52.746        .42565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          25.865        27.400        .78758E-04   -1.4690    
  10  norm          1.6433        1.2867        .83656E-04   -1.5452    
  11  Prefactor     4.0534        2.0219        .82539E-04   -1.5305    
  12  Prefactor     15.567        21.530        .10152E-03   -1.4919    
  13  Prefactor     .10000E-03    45.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.4841        9.6517        .12949E-02   -1.5393    
  15  norm          .10000E-03    1.2532        .96821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3859        2.3152        .16573E-03   -1.5473    
  18  Prefactor     .64296        25.175        .41976E-02   -1.5548    
  19  Prefactor     3.4117        103.23        .21964E-03   -1.5339    
  20  norm          3.0102        2.5982        .12805E-03   -1.5361    
  21  Normalizat    .96107        .26960        .40841E-03   -.94346    
  22  Prefactor     .96467        .95510E-01    .15670E-03   -.93917    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.02951e-08
Minuit parameter uncertainties:
  1  1.92136
  2  0.000139133
  3  0.00015035
  4  3.26646e-07
  5  8.37174e-06
  6  2.60233e-06
  7  9.20314e-05
  8  0.00368578
  9  27.4135
  10  1.28667
  11  2.02194
  12  21.5412
  13  0.000111339
  14  9.65779
  15  3.65376e-06
  16  0.000105013
  17  2.31531
  18  8.04949
  19  37.6037
  20  2.59826
  21  0.269986
  22  0.0955268
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  8.372e-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:  9.647e-01  9.553e-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:  9.611e-01  2.700e-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: 4.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/346498/likelihoodResults_323568001_323827201_4FGL_J0416.9+0105_daily_bin325.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) = 7973.68430757
delta logL = -0.000591983848608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7973.68371559
delta logL = -7.39510142012e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8541       1.0000          .0000       10.000    
     3 'Normalizat'    .96104       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96468       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=   7973.684     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      242 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10124E-03    63.634        .18142E-02** at limit **
   2  Index         1.8023        5.2328        .50000        .19259E-04
   3  Normalizat    .96107        .16922E-01    .40841E-03   -.27279E-05
   4  Prefactor     .96467        .65545E-02    .15670E-03    .17267E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101238
  Index      = 1.80234
  Normalizat = 0.961068
  Prefactor  = 0.964668
 **********
 **   18 **HESSE 
 **********

 FCN=   7973.684     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10124E-03    287.17        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8023        7.5723        .50000       -.69389    
   3  Normalizat    .96107        .37171E-01    .16337E-04   -.94346    
   4  Prefactor     .96467        .14397E-01    .62681E-05   -.93917    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.74648e-08
Minuit parameter uncertainties:
  1  0.0378924
  2  478.824
  3  0.0371722
  4  0.0143971
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346498': 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) = 7973.68371526
delta logL = 3.23774656863e-07

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.012e-04  3.789e-02  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.802e+00  4.788e+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:  9.647e-01  1.440e-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:  9.611e-01  3.717e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/346498/cmap_HighResolution_323568001_323827201_4FGL_J0416.9+0105_daily_bin325.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.37e-03', job_status='DONE', photon_flux_upper_limit='4.55e-08', time_completed='2021-08-20 10:21:55.208209', job_id='346498', GAL2='0.96', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1629480115.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='3.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='325' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:21:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 346498: <4FGL_J0416.9+0105_daily_bin325> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin325> 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) <bullet0032>, 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:21:56 2021
Results reported at Fri Aug 20 10:21:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin325 64.2269 1.088 323568001 323827201 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 :                                   794.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   997 sec.
    Turnaround time :                            999 sec.

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

