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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin1357
RA = 64.2269, Dec = 1.088
tmin = 591062401, tmax = 591321601
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='351149', job_status='RUN', time_executed='2021-08-20 10:24:32.211976', time_epoch_executed='1629480272.21' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='1357'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351149

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351149/ft1_4FGL_J0416.9+0105_daily_bin1357.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351149/ft2_4FGL_J0416.9+0105_daily_bin1357.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351149/ft1_4FGL_J0416.9+0105_daily_bin1357.fits outfile=/scratch/kocevski/351149/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1357.fits ra=64.2269 dec=1.088 rad=12.0 tmin=591062401.0 tmax=591321601.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 3.43
user 2.80
sys 0.60

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351149/ft1_filtered_4FGL_J0416.9+0105_daily_bin1357.fits" evtable="EVENTS" scfile=/scratch/kocevski/351149/ft2_4FGL_J0416.9+0105_daily_bin1357.fits sctable="SC_DATA" outfile=/scratch/kocevski/351149/ltcube_591062401_591321601_4FGL_J0416.9+0105_daily_bin1357.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/351149/ft2_4FGL_J0416.9+0105_daily_bin1357.fits
.....................!
real 12.59
user 11.80
sys 0.76

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351149/ft1_filtered_4FGL_J0416.9+0105_daily_bin1357.fits evtable="EVENTS" scfile=/scratch/kocevski/351149/ft2_4FGL_J0416.9+0105_daily_bin1357.fits sctable="SC_DATA" expcube=/scratch/kocevski/351149/ltcube_591062401_591321601_4FGL_J0416.9+0105_daily_bin1357.fits outfile=/scratch/kocevski/351149/expmap_591062401_591321601_4FGL_J0416.9+0105_daily_bin1357.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/351149/ltcube_591062401_591321601_4FGL_J0416.9+0105_daily_bin1357.fits
.....................!
real 190.14
user 185.27
sys 4.56

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/351149/ft1_filtered_4FGL_J0416.9+0105_daily_bin1357.fits scfile=/scratch/kocevski/351149/ft2_4FGL_J0416.9+0105_daily_bin1357.fits outfile=/scratch/kocevski/351149/cmap_591062401_591321601_4FGL_J0416.9+0105_daily_bin1357.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 0.93
user 0.39
sys 0.53

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351149/ft1_filtered_4FGL_J0416.9+0105_daily_bin1357.fits scfile=/scratch/kocevski/351149/ft2_4FGL_J0416.9+0105_daily_bin1357.fits outfile=/scratch/kocevski/351149/cmap_HighResolution_591062401_591321601_4FGL_J0416.9+0105_daily_bin1357.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 0.94
user 0.41
sys 0.51

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7266       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .23711E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    1.6845       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5644       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11136E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.570       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .60535E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.0398       1.0000         .10000E-03   10000.    
    20 'norm      '    7.3819       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2526       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86059       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=   7948.804     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2042 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7267        2.0695       -.27567E-06    .16156E-03
   2  Prefactor     .10000E-03    44.329       -.70931E-06** at limit **
   3  Prefactor     .10000E-03    3.6262       -.94431E-07** at limit **
   4  norm          .10000E-03    16.216       -.26672E-06** at limit **
   5  Prefactor     .10000E-03    13.512        .14669E-06** at limit **
   6  norm          .10000E-03    4.3629       -.49736E-06** at limit **
   7  Prefactor     .10000E-03    17.152       -.42308E-06** at limit **
   8  norm          .10001E-03    33.745        .11850E-04** at limit **
   9  norm          1.6684        38.197       -.40934E-05   -.44243E-04
  10  norm          1.5624        1.1222        .35379E-06   -.30863E-03
  11  Prefactor     .10000E-03    .76532       -.58293E-06** at limit **
  12  Prefactor     19.559        16.693        .36652E-06   -.49328E-04
  13  Prefactor     .10001E-03    207.36        .28423E-05** at limit **
  14  Prefactor     .10000E-03    4.1948       -.11417E-06** at limit **
  15  norm          .10000E-03    .74781       -.86662E-07** at limit **
  16  Prefactor     .10000E-03    14.758       -.26230E-06** at limit **
  17  norm          .10000E-03    1.2482       -.11328E-06** at limit **
  18  Prefactor     .10000E-03    2.2546       -.72677E-07** at limit **
  19  Prefactor     5.0377        35.824       -.29271E-05    .74216E-05
  20  norm          7.3818        2.5603       -.10337E-06    .57677E-04
  21  Normalizat    1.2526        .21451        .52069E-05    .49112E-04
  22  Prefactor     .86058        .78981E-01    .28138E-07    .63418E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.72667
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100013
  norm       = 1.66843
  norm       = 1.56235
  Prefactor  = 0.000100004
  Prefactor  = 19.5587
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.03769
  norm       = 7.38182
  Normalizat = 1.25263
  Prefactor  = 0.86058
 **********
 **   18 **HESSE 
 **********

 FCN=   7948.804     FROM HESSE     STATUS=OK           338 CALLS     2380 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7267        2.0688        .91687E-04   -1.5322    
   2  Prefactor     .10000E-03    44.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.6288        .16582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    16.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.4739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10001E-03    34.631        .38742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.6684        37.616        .32447E-03   -1.5450    
  10  norm          1.5624        1.1191        .17004E-03   -1.5458    
  11  Prefactor     .10000E-03    1.2516        .14668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.559        16.639        .90538E-04   -1.4823    
  13  Prefactor     .10001E-03    207.35        .42119E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.2136        .17829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .75749        .75230E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.3004        .19431E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.2654        .13072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.0377        35.847        .17912E-03   -1.5259    
  20  norm          7.3818        2.5619        .80952E-04   -1.5165    
  21  Normalizat    1.2526        .23188        .34866E-03   -.84992    
  22  Prefactor     .86058        .88507E-01    .16184E-03   -.97532    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33998e-09
Minuit parameter uncertainties:
  1  2.06882
  2  9.39261e-05
  3  9.22098e-06
  4  1.40775e-05
  5  0.000117727
  6  8.39708e-05
  7  8.43636e-05
  8  0.00133859
  9  15.855
  10  1.11916
  11  0.00014142
  12  16.6433
  13  0.00225801
  14  5.96848e-05
  15  1.07825e-05
  16  2.04037e-05
  17  3.64563e-05
  18  1.56261e-05
  19  26.8989
  20  2.56198
  21  0.23207
  22  0.0885213
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  1.177e-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:  8.606e-01  8.852e-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.253e+00  2.321e-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.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/351149/likelihoodResults_591062401_591321601_4FGL_J0416.9+0105_daily_bin1357.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) = 7948.80391728
delta logL = -0.000352504152033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7948.80356476
delta logL = 6.12453732174e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8697       1.0000          .0000       10.000    
     3 'Normalizat'    1.2526       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86058       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=   7948.804     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      213 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    157.52        .90712E-02** at limit **
   2  Index         1.8632        8.6220        .50000        .37440E-05
   3  Normalizat    1.2526        .20449E-01    .78772E-01   -.11352E-04
   4  Prefactor     .86058        .80794E-02    .44501E-01   -.30267E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.86319
  Normalizat = 1.25263
  Prefactor  = 0.860579
 **********
 **   18 **HESSE 
 **********

 FCN=   7948.804     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8632        5.9117        .50000       -.67816    
   3  Normalizat    1.2526        .22183        .34866E-03   -.84992    
   4  Prefactor     .86058        .87819E-01    .16184E-03   -.97533    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26101e-11
Minuit parameter uncertainties:
  1  5.32321e-05
  2  3.96705
  3  0.221996
  4  0.0878337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351149': 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) = 7948.80356476
delta logL = 1.24318830785e-08

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  5.323e-05  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.863e+00  3.967e+00  0.000e+00  1.000e+01 (-1.000e+00)
212        Scale:  3.731e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
452    Prefactor:  8.606e-01  8.783e-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.253e+00  2.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 64.227 1.088

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/351149/cmap_HighResolution_591062401_591321601_4FGL_J0416.9+0105_daily_bin1357.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.33e-03', job_status='DONE', photon_flux_upper_limit='5.83e-08', time_completed='2021-08-20 10:35:23.993274', job_id='351149', GAL2='0.86', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1629480923.99', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.24e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='1357' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:35:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 351149: <4FGL_J0416.9+0105_daily_bin1357> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin1357> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 20 10:20:50 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:20:51 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:51 2021
Terminated at Fri Aug 20 10:35:24 2021
Results reported at Fri Aug 20 10:35:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin1357 64.2269 1.088 591062401 591321601 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 :                                   657.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             270.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            874 sec.

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

