/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 99 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 = 7441
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0416.9+0105_daily_bin1411
RA = 64.2269, Dec = 1.088
tmin = 605059201, tmax = 605318401
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='351225', job_status='RUN', time_executed='2021-08-20 10:23:07.244393', time_epoch_executed='1629480187.24' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='1411'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351225

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351225/ft1_4FGL_J0416.9+0105_daily_bin1411.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351225/ft2_4FGL_J0416.9+0105_daily_bin1411.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351225/ft1_4FGL_J0416.9+0105_daily_bin1411.fits outfile=/scratch/kocevski/351225/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1411.fits ra=64.2269 dec=1.088 rad=12.0 tmin=605059201.0 tmax=605318401.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.32
user 5.06
sys 1.12

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/351225/ft2_4FGL_J0416.9+0105_daily_bin1411.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/351225/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1411.fits evtable="EVENTS" outfile="/scratch/kocevski/351225/ft1_filtered_4FGL_J0416.9+0105_daily_bin1411.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.38
user 0.34
sys 1.01

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351225/ft1_filtered_4FGL_J0416.9+0105_daily_bin1411.fits evtable="EVENTS" scfile=/scratch/kocevski/351225/ft2_4FGL_J0416.9+0105_daily_bin1411.fits sctable="SC_DATA" expcube=/scratch/kocevski/351225/ltcube_605059201_605318401_4FGL_J0416.9+0105_daily_bin1411.fits outfile=/scratch/kocevski/351225/expmap_605059201_605318401_4FGL_J0416.9+0105_daily_bin1411.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/351225/ltcube_605059201_605318401_4FGL_J0416.9+0105_daily_bin1411.fits
.....................!
real 192.16
user 186.13
sys 5.44

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/351225/ft1_filtered_4FGL_J0416.9+0105_daily_bin1411.fits scfile=/scratch/kocevski/351225/ft2_4FGL_J0416.9+0105_daily_bin1411.fits outfile=/scratch/kocevski/351225/cmap_605059201_605318401_4FGL_J0416.9+0105_daily_bin1411.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.46
user 0.37
sys 1.03

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351225/ft1_filtered_4FGL_J0416.9+0105_daily_bin1411.fits scfile=/scratch/kocevski/351225/ft2_4FGL_J0416.9+0105_daily_bin1411.fits outfile=/scratch/kocevski/351225/cmap_HighResolution_605059201_605318401_4FGL_J0416.9+0105_daily_bin1411.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.40
user 0.39
sys 0.99

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.349       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    59.359       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    32.404       1.0000         .10000E-03   10000.    
     9 'norm      '    .11094E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .90025       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.292       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.6974       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .39836E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5190       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    11.634       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .91004       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0494       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=   7013.954     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     2405 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .91890        .21622E-06** at limit **
   2  Prefactor     .10000E-03    50.502       -.87910E-06** at limit **
   3  Prefactor     18.349        19.043       -.13280E-07    .18970E-04
   4  norm          .10000E-03    21.037        .14086E-06** at limit **
   5  Prefactor     59.322        49.803        .43571E-05   -.30851E-05
   6  norm          .10000E-03    3.5503       -.65713E-07** at limit **
   7  Prefactor     .10000E-03    12.622       -.19050E-06** at limit **
   8  norm          32.404        18.354        .25042E-06    .59190E-04
   9  norm          .10000E-03    36.846       -.15110E-06** at limit **
  10  norm          .10000E-03    .66828       -.23507E-06** at limit **
  11  Prefactor     .90246        2.2111       -.99517E-06   -.70323E-03
  12  Prefactor     19.265        36.221        .39947E-05    .45707E-04
  13  Prefactor     .10000E-03    71.399       -.63317E-06** at limit **
  14  Prefactor     .10000E-03    3.9970        .18157E-07** at limit **
  15  norm          2.6994        4.6903       -.13498E-05   -.21016E-03
  16  Prefactor     .10000E-03    46.276        .20201E-06** at limit **
  17  norm          .33230E-01    1.2541       -.67635E-07    .12626E-03
  18  Prefactor     2.5193        8.1988        .66851E-05   -.14737E-03
  19  Prefactor     .10000E-03    28.858       -.71108E-06** at limit **
  20  norm          11.635        4.1124        .22897E-07    .42711E-04
  21  Normalizat    .91006        .26349       -.66138E-06    .13200E-03
  22  Prefactor     1.0494        .94083E-01   -.21117E-06    .32802E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.3489
  norm       = 0.0001
  Prefactor  = 59.3217
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 32.4037
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.902459
  Prefactor  = 19.2651
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.69936
  Prefactor  = 0.0001
  norm       = 0.0332302
  Prefactor  = 2.51931
  Prefactor  = 0.0001
  norm       = 11.6348
  Normalizat = 0.910059
  Prefactor  = 1.0494
 **********
 **   18 **HESSE 
 **********

 FCN=   7013.954     FROM HESSE     STATUS=OK           350 CALLS     2755 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.6238        .15472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    50.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.349        19.059        .93501E-04   -1.4851    
   4  norm          .10000E-03    21.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     59.322        49.584        .52075E-04   -1.4166    
   6  norm          .10000E-03    3.5753        .15402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          32.404        18.439        .70391E-04   -1.4569    
   9  norm          .10000E-03    36.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.0041        .12967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .90246        2.1600        .17911E-03   -1.5518    
  12  Prefactor     19.265        35.782        .91189E-04   -1.4830    
  13  Prefactor     .10000E-03    71.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.0038        .16349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.6994        4.6007        .18524E-03   -1.5379    
  16  Prefactor     .10000E-03    46.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .33230E-01    3.3412        .31209E-01   -1.5672    
  18  Prefactor     2.5193        8.2454        .12870E-02   -1.5391    
  19  Prefactor     .10000E-03    28.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          11.635        4.1144        .96799E-04   -1.5026    
  21  Normalizat    .91006        .28470        .44892E-03   -.96108    
  22  Prefactor     1.0494        .10300        .16136E-03   -.91101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19604e-09
Minuit parameter uncertainties:
  1  1.47718e-06
  2  7.4524e-05
  3  19.0656
  4  3.60691e-06
  5  49.6188
  6  2.80218e-06
  7  3.19133e-05
  8  18.4421
  9  0.000551805
  10  2.36915e-06
  11  2.1602
  12  35.8222
  13  0.000144261
  14  3.03306e-06
  15  4.60129
  16  2.43593e-06
  17  0.665458
  18  8.24915
  19  6.96971e-05
  20  4.11448
  21  0.285172
  22  0.10302
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  5.932e+01  4.962e+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.049e+00  1.030e-01  0.000e+00  1.000e+01 ( 1.000e+00)
453        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
454        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
451   Normalization:  9.101e-01  2.852e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.38
Ra Dec: 64.227 1.088
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 6.01e-08 +/- 5.02e-08
Energy Flux (Fixed Index): 5.76e-05 +/- 4.82e-05

TS (Fixed Index): 2.38
Ra Dec: 64.227 1.088
Photon Flux Upper Limit: 1.68e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.25e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/351225/likelihoodResults_605059201_605318401_4FGL_J0416.9+0105_daily_bin1411.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) = 7012.95010107
delta logL = 1.00389033671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7012.9110915
delta logL = 1.04289991059

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.030       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7509       1.0000          .0000       10.000    
     3 'Normalizat'    .82697       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0605       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7012.911     FROM MIGRAD    STATUS=FAILED       103 CALLS      310 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.985        213.29        .53468E-03   -.27578E-04
   2  Index         2.7519        2.7431        .30669E-02    .92167E-03
   3  Normalizat    .82682        .34693        .46787E-03   -.67793E-05
   4  Prefactor     1.0606        .11737        .16043E-03   -.41880E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7012.911     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      400 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.985        213.29        .19810E-03   -.27578E-04
   2  Index         2.7519        2.7431        .57881E-03    .92167E-03
   3  Normalizat    .82682        .34693        .17813E-03   -.67793E-05
   4  Prefactor     1.0606        .11737        .70268E-04   -.41880E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7012.911     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      432 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.985        30.193        .21387E-04   -.30831E-04
   2  Index         2.7519        .80921        .61338E-03   -.57457E-05
   3  Normalizat    .82682        .27299        .18715E-04   -.68036E-05
   4  Prefactor     1.0606        .10219        .64173E-05   -.41809E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.9853
  Index      = 2.75186
  Normalizat = 0.826815
  Prefactor  = 1.06059
 **********
 **   18 **HESSE 
 **********

 FCN=   7012.911     FROM HESSE     STATUS=OK            23 CALLS      455 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.985        27.016        .85548E-06   -1.4960    
   2  Index         2.7519        .72429        .24535E-04   -.46635    
   3  Normalizat    .82682        .27145        .37430E-05   -.99082    
   4  Prefactor     1.0606        .10190        .12835E-05   -.90736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94531e-12
Minuit parameter uncertainties:
  1  27.04
  2  0.727502
  3  0.271901
  4  0.101916
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351225': 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) = 7012.91108978
delta logL = 1.04290162591

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.399e+01  2.704e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.752e+00  7.275e-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.061e+00  1.019e-01  0.000e+00  1.000e+01 ( 1.000e+00)
453        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
454        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
451   Normalization:  8.268e-01  2.719e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.53
Ra Dec: 64.227 1.088
Photon Index (Free Index): 2.75 +/- 0.73
Photon Flux (Free Index): 1.69e-07 +/- 1.17e-07
Energy Flux (Free Index): 3.91e-05 +/- 2.36e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/351225/cmap_HighResolution_605059201_605318401_4FGL_J0416.9+0105_daily_bin1411.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', comment='SUCCESS', photon_flux='6.01e-08', energy_flux2='3.91e-05', photon_flux_error='5.02e-08', dlogl='1.04e+00', energy_flux='5.76e-05', photon_flux2='1.69e-07', job_status='DONE', time_completed='2021-08-20 10:34:05.596446', photon_index_error2='0.73', photon_index2='2.75', ts='2.38', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.68e-07', energy_flux_error2='2.36e-05', EG='0.91', time_epoch_completed='1629480845.6', return_code='0', job_id='351225', GAL2='1.06', EG2='0.83', return_code2='0', energy_flux_error='4.82e-05', photon_flux_error2='1.17e-07', ts2='4.53', photon_index='1.88' WHERE bin_id='1411' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:34:05 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin1411 64.2269 1.088 605059201 605318401 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 :                                   671.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             292.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            792 sec.

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

