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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin502
RA = 64.2269, Dec = 1.088
tmin = 369446401, tmax = 369705601
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='346746', job_status='RUN', time_executed='2021-08-20 10:06:07.479887', time_epoch_executed='1629479167.48' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='502'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346746

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346746/ft1_4FGL_J0416.9+0105_daily_bin502.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346746/ft2_4FGL_J0416.9+0105_daily_bin502.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346746/ft1_4FGL_J0416.9+0105_daily_bin502.fits outfile=/scratch/kocevski/346746/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin502.fits ra=64.2269 dec=1.088 rad=12.0 tmin=369446401.0 tmax=369705601.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.34
user 3.20
sys 1.11

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/346746/ft2_4FGL_J0416.9+0105_daily_bin502.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/346746/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin502.fits evtable="EVENTS" outfile="/scratch/kocevski/346746/ft1_filtered_4FGL_J0416.9+0105_daily_bin502.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.39
user 0.31
sys 1.05

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/346746/ft1_filtered_4FGL_J0416.9+0105_daily_bin502.fits" evtable="EVENTS" scfile=/scratch/kocevski/346746/ft2_4FGL_J0416.9+0105_daily_bin502.fits sctable="SC_DATA" outfile=/scratch/kocevski/346746/ltcube_369446401_369705601_4FGL_J0416.9+0105_daily_bin502.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/346746/ft2_4FGL_J0416.9+0105_daily_bin502.fits
.....................!
real 13.52
user 12.18
sys 1.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346746/ft1_filtered_4FGL_J0416.9+0105_daily_bin502.fits evtable="EVENTS" scfile=/scratch/kocevski/346746/ft2_4FGL_J0416.9+0105_daily_bin502.fits sctable="SC_DATA" expcube=/scratch/kocevski/346746/ltcube_369446401_369705601_4FGL_J0416.9+0105_daily_bin502.fits outfile=/scratch/kocevski/346746/expmap_369446401_369705601_4FGL_J0416.9+0105_daily_bin502.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/346746/ltcube_369446401_369705601_4FGL_J0416.9+0105_daily_bin502.fits
.....................!
real 193.47
user 186.44
sys 6.59

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 140 point sources and 0 extended sources

Setting source of interest to:
4FGL J0416.9+0105 @ 64.2269 1.088

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/346746/ft1_filtered_4FGL_J0416.9+0105_daily_bin502.fits scfile=/scratch/kocevski/346746/ft2_4FGL_J0416.9+0105_daily_bin502.fits outfile=/scratch/kocevski/346746/cmap_369446401_369705601_4FGL_J0416.9+0105_daily_bin502.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.47
user 0.37
sys 1.03

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/346746/ft1_filtered_4FGL_J0416.9+0105_daily_bin502.fits scfile=/scratch/kocevski/346746/ft2_4FGL_J0416.9+0105_daily_bin502.fits outfile=/scratch/kocevski/346746/cmap_HighResolution_369446401_369705601_4FGL_J0416.9+0105_daily_bin502.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.45
user 0.39
sys 1.04

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .46096       1.0000         .10000E-03   10000.    
     2 'Prefactor '    71.846       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.4666       1.0000         .10000E-03   10000.    
     4 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.878       1.0000         .10000E-03   10000.    
     6 'norm      '    .10201E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.2147       1.0000         .10000E-03   10000.    
     8 'norm      '    2.7817       1.0000         .10000E-03   10000.    
     9 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.0062       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.535       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.8864       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10529E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.0191       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9703       1.0000         .10000E-03   10000.    
    17 'norm      '    .10919E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10469E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12638E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    33.920       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0793       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0167       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=   10766.86     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2423 TOTAL
                     EDM=   .91E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .46222        1.4548        .12767E-05   -.18479E-03
   2  Prefactor     71.908        49.653        .49164E-06    .40006E-04
   3  Prefactor     9.4577        10.471        .24796E-06    .84691E-04
   4  norm          .10000E-03    5.7134        .54995E-08** at limit **
   5  Prefactor     15.883        19.315        .22153E-06    .46836E-04
   6  norm          .10000E-03    1.9867        .30890E-07** at limit **
   7  Prefactor     7.2232        16.760        .52132E-06    .73729E-04
   8  norm          2.7913        9.1227        .11179E-05    .31350E-04
   9  norm          .10000E-03    11.770       -.22280E-06** at limit **
  10  norm          3.0054        1.2183        .29809E-07    .16750E-03
  11  Prefactor     .10000E-03    .95256       -.41529E-06** at limit **
  12  Prefactor     19.591        24.367       -.31147E-06   -.10077E-03
  13  Prefactor     5.9383        54.377        .14964E-05   -.29304E-05
  14  Prefactor     .10000E-03    8.3705       -.10677E-07** at limit **
  15  norm          1.0132        2.6312        .79041E-06    .29082E-04
  16  Prefactor     1.7746        257.35        .16443E-05   -.96979E-05
  17  norm          .10000E-03    1.0484       -.18285E-06** at limit **
  18  Prefactor     .10000E-03    4.4630       -.22619E-06** at limit **
  19  Prefactor     .10000E-03    17.384       -.49880E-07** at limit **
  20  norm          33.921        4.6688        .45768E-07    .14405E-03
  21  Normalizat    1.0789        .21344       -.67738E-06   -.93779E-04
  22  Prefactor     1.0168        .79142E-01   -.29526E-06   -.13921E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.462218
  Prefactor  = 71.9082
  Prefactor  = 9.45768
  norm       = 0.0001
  Prefactor  = 15.8834
  norm       = 0.0001
  Prefactor  = 7.22317
  norm       = 2.79135
  norm       = 0.0001
  norm       = 3.00536
  Prefactor  = 0.0001
  Prefactor  = 19.5914
  Prefactor  = 5.93831
  Prefactor  = 0.0001
  norm       = 1.01325
  Prefactor  = 1.77464
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 33.9213
  Normalizat = 1.0789
  Prefactor  = 1.0168
 **********
 **   18 **HESSE 
 **********

 FCN=   10766.86     FROM HESSE     STATUS=OK           348 CALLS     2771 TOTAL
                     EDM=   .70E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .46222        1.4630        .20141E-02   -1.5572    
   2  Prefactor     71.908        49.719        .47363E-04   -1.4010    
   3  Prefactor     9.4577        10.478        .13025E-03   -1.5093    
   4  norm          .10000E-03    5.7165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.883        19.331        .10051E-03   -1.4911    
   6  norm          .10000E-03    2.0064        .14274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.2232        16.807        .14933E-03   -1.5170    
   8  norm          2.7913        9.1587        .24398E-03   -1.5374    
   9  norm          .10000E-03    11.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.0054        1.2138        .66705E-04   -1.5361    
  11  Prefactor     .10000E-03    .98093        .19621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.591        23.428        .90620E-04   -1.4822    
  13  Prefactor     5.9383        53.861        .16552E-03   -1.5221    
  14  Prefactor     .10000E-03    8.5876        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.0132        2.5396        .22606E-03   -1.5507    
  16  Prefactor     1.7746        262.06        .29541E-03   -1.5442    
  17  norm          .10000E-03    2.7432        .20276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.5264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          33.921        4.6711        .68805E-04   -1.4542    
  21  Normalizat    1.0789        .23460        .41717E-03   -.90432    
  22  Prefactor     1.0168        .88181E-01    .16855E-03   -.92172    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.00181e-08
Minuit parameter uncertainties:
  1  1.46314
  2  49.7474
  3  10.4804
  4  6.17908e-07
  5  19.339
  6  3.97385e-08
  7  16.8183
  8  9.16328
  9  2.60452e-06
  10  1.21384
  11  7.98188e-07
  12  23.4385
  13  35.811
  14  2.63761e-07
  15  2.5399
  16  43.3243
  17  6.1892e-05
  18  1.23935e-06
  19  5.83454e-06
  20  4.67112
  21  0.234822
  22  0.0881936
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
452    Prefactor:  1.017e+00  8.819e-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.079e+00  2.348e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.32
Ra Dec: 64.227 1.088
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 1.61e-08 +/- 1.96e-08
Energy Flux (Fixed Index): 1.54e-05 +/- 1.88e-05

TS (Fixed Index): 1.32
Ra Dec: 64.227 1.088
Photon Flux Upper Limit: 7.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/346746/likelihoodResults_369446401_369705601_4FGL_J0416.9+0105_daily_bin502.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): 0
logL (Free Index) = 10766.8473445
delta logL = 0.014519361197

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10766.8429852
delta logL = 0.0188786551953

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.968       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7273       1.0000          .0000       10.000    
     3 'Normalizat'    1.0808       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0169       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=   10766.84     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      266 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.966        24.229        .94486E-04   -.84225E-05
   2  Index         1.7277        .77555        .14280E-01    .39570E-03
   3  Normalizat    1.0808        .21307        .41688E-03    .85085E-05
   4  Prefactor     1.0168        .84531E-01    .16855E-03   -.47349E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.9658
  Index      = 1.72771
  Normalizat = 1.08078
  Prefactor  = 1.01685
 **********
 **   18 **HESSE 
 **********

 FCN=   10766.84     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.966        23.594        .37794E-05   -1.4860    
   2  Index         1.7277        .75642        .28560E-02   -.71347    
   3  Normalizat    1.0808        .21312        .16675E-04   -.90371    
   4  Prefactor     1.0168        .84568E-01    .67421E-05   -.92170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50026e-12
Minuit parameter uncertainties:
  1  23.6066
  2  0.761555
  3  0.213288
  4  0.0845786
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346746': 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) = 10766.8429851
delta logL = 0.0188788111973

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.797e+01  2.361e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.728e+00  7.616e-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.017e+00  8.458e-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.081e+00  2.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.36
Ra Dec: 64.227 1.088
Photon Index (Free Index): 1.73 +/- 0.76
Photon Flux (Free Index): 1.27e-08 +/- 2.25e-08
Energy Flux (Free Index): 1.91e-05 +/- 3.17e-05

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/346746/cmap_HighResolution_369446401_369705601_4FGL_J0416.9+0105_daily_bin502.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.39e-03', comment='SUCCESS', photon_flux='1.61e-08', energy_flux2='1.91e-05', photon_flux_error='1.96e-08', dlogl='1.89e-02', energy_flux='1.54e-05', photon_flux2='1.27e-08', job_status='DONE', time_completed='2021-08-20 10:20:18.661620', photon_index_error2='0.76', photon_index2='1.73', ts='1.32', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='7.27e-08', energy_flux_error2='3.17e-05', EG='1.08', time_epoch_completed='1629480018.66', return_code='0', job_id='346746', GAL2='1.02', EG2='1.08', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='2.25e-08', ts2='1.36', photon_index='1.88' WHERE bin_id='502' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:20:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0044>
Subject: Job 346746: <4FGL_J0416.9+0105_daily_bin502> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin502 64.2269 1.088 369446401 369705601 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 :                                   864.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             333.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            885 sec.

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

