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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin1167
RA = 64.2269, Dec = 1.088
tmin = 541814401, tmax = 542073601
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='350865', job_status='RUN', time_executed='2021-08-20 10:23:59.760900', time_epoch_executed='1629480239.76' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='1167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/350865

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/350865/ft1_4FGL_J0416.9+0105_daily_bin1167.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/350865/ft2_4FGL_J0416.9+0105_daily_bin1167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/350865/ft1_4FGL_J0416.9+0105_daily_bin1167.fits outfile=/scratch/kocevski/350865/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1167.fits ra=64.2269 dec=1.088 rad=12.0 tmin=541814401.0 tmax=542073601.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.35
user 3.46
sys 0.83

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/350865/ft1_filtered_4FGL_J0416.9+0105_daily_bin1167.fits evtable="EVENTS" scfile=/scratch/kocevski/350865/ft2_4FGL_J0416.9+0105_daily_bin1167.fits sctable="SC_DATA" expcube=/scratch/kocevski/350865/ltcube_541814401_542073601_4FGL_J0416.9+0105_daily_bin1167.fits outfile=/scratch/kocevski/350865/expmap_541814401_542073601_4FGL_J0416.9+0105_daily_bin1167.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/350865/ltcube_541814401_542073601_4FGL_J0416.9+0105_daily_bin1167.fits
.....................!
real 192.30
user 185.96
sys 5.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/350865/ft1_filtered_4FGL_J0416.9+0105_daily_bin1167.fits scfile=/scratch/kocevski/350865/ft2_4FGL_J0416.9+0105_daily_bin1167.fits outfile=/scratch/kocevski/350865/cmap_541814401_542073601_4FGL_J0416.9+0105_daily_bin1167.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.16
user 0.36
sys 0.77

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/350865/ft1_filtered_4FGL_J0416.9+0105_daily_bin1167.fits scfile=/scratch/kocevski/350865/ft2_4FGL_J0416.9+0105_daily_bin1167.fits outfile=/scratch/kocevski/350865/cmap_HighResolution_541814401_542073601_4FGL_J0416.9+0105_daily_bin1167.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.18
user 0.38
sys 0.76

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8691       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10850E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.981       1.0000         .10000E-03   10000.    
     4 'norm      '    6.5990       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.763       1.0000         .10000E-03   10000.    
     8 'norm      '    3.2024       1.0000         .10000E-03   10000.    
     9 'norm      '    17.514       1.0000         .10000E-03   10000.    
    10 'norm      '    .22313       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1314       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.218       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.9177       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.6501       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.875       1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.157       1.0000         .10000E-03   10000.    
    20 'norm      '    6.8473       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .97565       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0425       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10195.17     FROM MIGRAD    STATUS=CONVERGED     66 CALLS     1965 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8692        1.2938       -.23327E-05    .41319E-05
   2  Prefactor     .10099E-03    50.464       -.27155E-03** at limit **
   3  Prefactor     18.973        1.2537       -.35820E-05    .15678E-02
   4  norm          6.5988        1.0029       -.34135E-07   -.10408E-04
   5  Prefactor     .10000E-03    13.917       -.54889E-05** at limit **
   6  norm          .10000E-03    1.8202        .38669E-05** at limit **
   7  Prefactor     18.761        1.0250       -.10975E-05    .72660E-03
   8  norm          3.2031        1.0154        .57006E-06    .23056E-03
   9  norm          17.514        1.0014       -.19422E-06    .53029E-03
  10  norm          .22328        .81454       -.88344E-05   -.17822E-03
  11  Prefactor     2.1312        1.6000        .30127E-05   -.10660E-03
  12  Prefactor     12.230        1.6220        .76887E-05   -.25644E-02
  13  Prefactor     .10431E-03    13.804        .29454E-04** at limit **
  14  Prefactor     .10000E-03    3.6243        .38450E-05** at limit **
  15  norm          1.9144        2.4470       -.54799E-05    .90551E-04
  16  Prefactor     .10169E-03    22.412        .16421E-03** at limit **
  17  norm          2.6503        1.8505        .11341E-05   -.56029E-04
  18  Prefactor     13.878        1.0462       -.17279E-05   -.27014E-02
  19  Prefactor     28.156        1.0038       -.36112E-06    .27484E-03
  20  norm          6.8474        2.6962       -.11613E-04   -.14001E-03
  21  Normalizat    .97557        .21860        .36163E-04   -.14615E-04
  22  Prefactor     1.0425        .85744E-01   -.46825E-05    .49180E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.86917
  Prefactor  = 0.000100994
  Prefactor  = 18.9727
  norm       = 6.5988
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.7609
  norm       = 3.20311
  norm       = 17.5136
  norm       = 0.223285
  Prefactor  = 2.13123
  Prefactor  = 12.2296
  Prefactor  = 0.000104312
  Prefactor  = 0.0001
  norm       = 1.91443
  Prefactor  = 0.000101687
  norm       = 2.65033
  Prefactor  = 13.878
  Prefactor  = 28.1564
  norm       = 6.84744
  Normalizat = 0.975574
  Prefactor  = 1.04253
 **********
 **   18 **HESSE 
 **********

 FCN=   10195.17     FROM HESSE     STATUS=OK           394 CALLS     2359 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8692        1.3077        .76167E-02   -1.5435    
   2  Prefactor     .10099E-03    56.521        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.973        20.823        .22983E-02   -1.4837    
   4  norm          6.5988        8.4679        .39054E-02   -1.5194    
   5  Prefactor     .10000E-03    13.878        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.7910        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.761        28.061        .23116E-02   -1.4841    
   8  norm          3.2031        7.8363        .56603E-02   -1.5350    
   9  norm          17.514        22.735        .23926E-02   -1.4871    
  10  norm          .22328        .83510        .10083E-01   -1.5613    
  11  Prefactor     2.1312        1.6897        .70599E-02   -1.5416    
  12  Prefactor     12.230        22.244        .28650E-02   -1.5008    
  13  Prefactor     .10431E-03    35.528        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.5902        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.9144        2.8685        .75024E-02   -1.5431    
  16  Prefactor     .10169E-03    30.834        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.6503        1.8584        .62606E-02   -1.5382    
  18  Prefactor     13.878        8.8284        .26882E-02   -1.4963    
  19  Prefactor     28.156        37.401        .18875E-02   -1.4646    
  20  norm          6.8474        2.7018        .38332E-02   -1.5185    
  21  Normalizat    .97557        .21040        .94657E-01   -.93853    
  22  Prefactor     1.0425        .79872E-01    .40369E-01   -.91325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44884e-07
Minuit parameter uncertainties:
  1  1.30768
  2  0.0150025
  3  20.8315
  4  8.46941
  5  0.000112544
  6  1.83623e-06
  7  28.0809
  8  7.83883
  9  22.7458
  10  0.835148
  11  1.6897
  12  22.259
  13  0.0247685
  14  1.19243e-06
  15  2.86867
  16  0.0144341
  17  1.85848
  18  8.82925
  19  37.4326
  20  2.70187
  21  0.210578
  22  0.0798814
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  1.125e-04  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.043e+00  7.988e-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.756e-01  2.106e-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: 5.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/350865/likelihoodResults_541814401_542073601_4FGL_J0416.9+0105_daily_bin1167.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) = 10195.1693399
delta logL = -0.000342679521054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10195.1689973
delta logL = -1.2607415556e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8730       1.0000          .0000       10.000    
     3 'Normalizat'    .97556       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0425       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=   10195.17     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      210 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    282.58        .90712E-02** at limit **
   2  Index         1.8700        8.7488        .50000        .15955E-05
   3  Normalizat    .97557        .26023E-01    .94657E-01    .34545E-04
   4  Prefactor     1.0425        .10578E-01    .40368E-01   -.45996E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.87
  Normalizat = 0.975574
  Prefactor  = 1.04253
 **********
 **   18 **HESSE 
 **********

 FCN=   10195.17     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      243 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    781.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8700        5.7003        .50000       -.67641    
   3  Normalizat    .97557        .45491E-01    .41929E-03   -.93853    
   4  Prefactor     1.0425        .18543E-01    .16451E-03   -.91325    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.55627e-10
Minuit parameter uncertainties:
  1  9.11553e-06
  2  29.689
  3  0.0454924
  4  0.0185433
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/350865': 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) = 10195.1689973
delta logL = 2.58660293184e-09

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  9.116e-06  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.870e+00  2.969e+01  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.043e+00  1.854e-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.756e-01  4.549e-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/350865/cmap_HighResolution_541814401_542073601_4FGL_J0416.9+0105_daily_bin1167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.99e-03', job_status='DONE', photon_flux_upper_limit='5.37e-08', time_completed='2021-08-20 10:36:55.349410', job_id='350865', GAL2='1.04', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1629481015.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.59e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='1167' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:36:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 350865: <4FGL_J0416.9+0105_daily_bin1167> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin1167> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 20 10:20:27 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:20:29 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:20:29 2021
Terminated at Fri Aug 20 10:36:55 2021
Results reported at Fri Aug 20 10:36:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin1167 64.2269 1.088 541814401 542073601 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 :                                   781.04 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             301.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            988 sec.

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

