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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin1483
RA = 64.2269, Dec = 1.088
tmin = 623721601, tmax = 623980801
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='352339', job_status='RUN', time_executed='2021-08-20 10:28:18.185408', time_epoch_executed='1629480498.19' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='1483'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/352339

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/352339/ft1_4FGL_J0416.9+0105_daily_bin1483.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/352339/ft2_4FGL_J0416.9+0105_daily_bin1483.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/352339/ft1_4FGL_J0416.9+0105_daily_bin1483.fits outfile=/scratch/kocevski/352339/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1483.fits ra=64.2269 dec=1.088 rad=12.0 tmin=623721601.0 tmax=623980801.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 14.20
user 5.07
sys 8.96

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/352339/ft1_filtered_4FGL_J0416.9+0105_daily_bin1483.fits" evtable="EVENTS" scfile=/scratch/kocevski/352339/ft2_4FGL_J0416.9+0105_daily_bin1483.fits sctable="SC_DATA" outfile=/scratch/kocevski/352339/ltcube_623721601_623980801_4FGL_J0416.9+0105_daily_bin1483.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/352339/ft2_4FGL_J0416.9+0105_daily_bin1483.fits
.....................!
real 24.83
user 14.88
sys 9.72

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/352339/ft1_filtered_4FGL_J0416.9+0105_daily_bin1483.fits evtable="EVENTS" scfile=/scratch/kocevski/352339/ft2_4FGL_J0416.9+0105_daily_bin1483.fits sctable="SC_DATA" expcube=/scratch/kocevski/352339/ltcube_623721601_623980801_4FGL_J0416.9+0105_daily_bin1483.fits outfile=/scratch/kocevski/352339/expmap_623721601_623980801_4FGL_J0416.9+0105_daily_bin1483.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/352339/ltcube_623721601_623980801_4FGL_J0416.9+0105_daily_bin1483.fits
.....................!
real 205.76
user 187.46
sys 16.30

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/352339/ft1_filtered_4FGL_J0416.9+0105_daily_bin1483.fits scfile=/scratch/kocevski/352339/ft2_4FGL_J0416.9+0105_daily_bin1483.fits outfile=/scratch/kocevski/352339/cmap_623721601_623980801_4FGL_J0416.9+0105_daily_bin1483.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 10.91
user 0.41
sys 9.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/352339/ft1_filtered_4FGL_J0416.9+0105_daily_bin1483.fits scfile=/scratch/kocevski/352339/ft2_4FGL_J0416.9+0105_daily_bin1483.fits outfile=/scratch/kocevski/352339/cmap_HighResolution_623721601_623980801_4FGL_J0416.9+0105_daily_bin1483.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 10.51
user 0.40
sys 9.38

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .73189       1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.223       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.491       1.0000         .10000E-03   10000.    
     6 'norm      '    .10275E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.2884       1.0000         .10000E-03   10000.    
    10 'norm      '    5.2571       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1434       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8077       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .17992       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .77095       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0748       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=   8928.484     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2403 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .73239        1.6853        .23124E-06   -.10431E-03
   2  Prefactor     25.102        46.136        .14479E-05   -.16122E-04
   3  Prefactor     .10000E-03    5.0953       -.52430E-07** at limit **
   4  norm          .10000E-03    4.9569        .64971E-07** at limit **
   5  Prefactor     31.488        27.563       -.27662E-06    .50722E-04
   6  norm          .10000E-03    5.8971       -.77651E-07** at limit **
   7  Prefactor     .10000E-03    25.250       -.17269E-06** at limit **
   8  norm          .10000E-03    5.4633       -.53445E-07** at limit **
   9  norm          6.2783        20.611       -.32833E-05    .26199E-04
  10  norm          5.2575        1.5416       -.12834E-07   -.77125E-04
  11  Prefactor     1.1435        1.5836        .48530E-06    .10251E-02
  12  Prefactor     .10000E-03    12.052        .27684E-06** at limit **
  13  Prefactor     .10000E-03    12.620        .88432E-06** at limit **
  14  Prefactor     .10000E-03    13.014       -.28396E-06** at limit **
  15  norm          .10000E-03    1.1485        .22101E-06** at limit **
  16  Prefactor     .10000E-03    12.168       -.53012E-07** at limit **
  17  norm          .10000E-03    .80955       -.72463E-08** at limit **
  18  Prefactor     2.8085        5.0274        .41661E-05   -.77261E-04
  19  Prefactor     .10000E-03    28.183        .71437E-07** at limit **
  20  norm          .18030        1.1506        .19475E-06   -.28873E-03
  21  Normalizat    .77070        .21335       -.29637E-06    .56802E-04
  22  Prefactor     1.0749        .82562E-01   -.24996E-06    .10232E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.732386
  Prefactor  = 25.1023
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 31.4882
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.27831
  norm       = 5.25751
  Prefactor  = 1.14346
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.80848
  Prefactor  = 0.0001
  norm       = 0.1803
  Normalizat = 0.7707
  Prefactor  = 1.0749
 **********
 **   18 **HESSE 
 **********

 FCN=   8928.484     FROM HESSE     STATUS=OK           342 CALLS     2745 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .73239        1.6829        .17395E-03   -1.5537    
   2  Prefactor     25.102        46.118        .79761E-04   -1.4706    
   3  Prefactor     .10000E-03    5.1012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.9579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     31.488        27.515        .35701E-03   -1.4585    
   6  norm          .10000E-03    6.1591        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.4951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.2783        20.620        .16007E-03   -1.5207    
  10  norm          5.2575        1.5282        .58190E-04   -1.5249    
  11  Prefactor     1.1435        1.5444        .12853E-03   -1.5494    
  12  Prefactor     .10000E-03    12.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.524        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.1711        .98891E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .84387        .16582E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.8085        5.0277        .12138E-02   -1.5373    
  19  Prefactor     .10000E-03    28.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .18030        2.8356        .19375E-02   -1.5623    
  21  Normalizat    .77070        .22927        .44106E-03   -1.0116    
  22  Prefactor     1.0749        .90543E-01    .15264E-03   -.90273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.51151e-08
Minuit parameter uncertainties:
  1  1.68298
  2  46.1832
  3  1.80689e-05
  4  3.41002e-06
  5  27.5259
  6  1.29302e-05
  7  2.66224e-06
  8  1.20549e-05
  9  20.6437
  10  1.5282
  11  1.54448
  12  0.000133987
  13  2.75108e-05
  14  1.5504e-05
  15  1.23037e-05
  16  1.41589e-08
  17  2.25206e-06
  18  5.02844
  19  4.22389e-05
  20  1.42972
  21  0.229553
  22  0.090556
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  3.149e+01  2.753e+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.075e+00  9.056e-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:  7.707e-01  2.296e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.89
Ra Dec: 64.227 1.088
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 3.19e-08 +/- 2.79e-08
Energy Flux (Fixed Index): 3.06e-05 +/- 2.67e-05

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) = 8928.46887469
delta logL = 0.0146626217684

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8928.46844175
delta logL = 0.0150955629488

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.852       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6014       1.0000          .0000       10.000    
     3 'Normalizat'    .77710       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0762       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=   8928.468     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      265 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.843        116.15        .72135E-04    .33664E-04
   2  Index         1.6009        .27717        .50000       -.73647E-06
   3  Normalizat    .77686        .23254E-01    .43968E-03   -.39302E-04
   4  Prefactor     1.0762        .93716E-02    .15261E-03    .25754E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.843
  Index      = 1.60087
  Normalizat = 0.776858
  Prefactor  = 1.07623
 **********
 **   18 **HESSE 
 **********

 FCN=   8928.468     FROM HESSE     STATUS=OK            27 CALLS      292 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.843        33.438        .14427E-04   -1.4597    
   2  Index         1.6009        1.5170        .17413E-02   -.74752    
   3  Normalizat    .77686        .22169        .17587E-04   -1.0093    
   4  Prefactor     1.0762        .90135E-01    .30522E-04   -.90230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09534e-10
Minuit parameter uncertainties:
  1  33.4579
  2  1.56404
  3  0.221946
  4  0.0901474
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/352339': 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) = 8928.46843997
delta logL = 0.0150973405507

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  3.084e+01  3.346e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.601e+00  1.564e+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:  1.076e+00  9.015e-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:  7.769e-01  2.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.93
Ra Dec: 64.227 1.088
Photon Index (Free Index): 1.60 +/- 1.56
Photon Flux (Free Index): 1.66e-08 +/- 6.43e-08
Energy Flux (Free Index): 3.74e-05 +/- 6.42e-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/352339/cmap_HighResolution_623721601_623980801_4FGL_J0416.9+0105_daily_bin1483.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.19e-08', energy_flux2='3.74e-05', photon_flux_error='2.79e-08', dlogl='1.51e-02', energy_flux='3.06e-05', photon_flux2='1.66e-08', job_status='DONE', time_completed='2021-08-20 10:42:01.459166', photon_index_error2='1.56', photon_index2='1.60', ts='7.89', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='6.42e-05', EG='0.77', time_epoch_completed='1629481321.46', return_code='0', job_id='352339', GAL2='1.08', EG2='0.78', return_code2='0', energy_flux_error='2.67e-05', photon_flux_error2='6.43e-08', ts2='7.93', photon_index='1.88' WHERE bin_id='1483' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:42:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 352339: <4FGL_J0416.9+0105_daily_bin1483> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin1483> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Aug 20 10:25:28 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:25:30 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:25:30 2021
Terminated at Fri Aug 20 10:42:03 2021
Results reported at Fri Aug 20 10:42:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin1483 64.2269 1.088 623721601 623980801 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 :                                   953.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             295.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            995 sec.

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

