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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin1565
RA = 64.2269, Dec = 1.088
tmin = 644976001, tmax = 645235201
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='352468', job_status='RUN', time_executed='2021-08-20 10:31:22.404214', time_epoch_executed='1629480682.4' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='1565'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/352468

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/352468/ft1_4FGL_J0416.9+0105_daily_bin1565.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/352468/ft2_4FGL_J0416.9+0105_daily_bin1565.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/352468/ft1_4FGL_J0416.9+0105_daily_bin1565.fits outfile=/scratch/kocevski/352468/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1565.fits ra=64.2269 dec=1.088 rad=12.0 tmin=644976001.0 tmax=645235201.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 9.46
user 2.78
sys 6.64

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/352468/ft2_4FGL_J0416.9+0105_daily_bin1565.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/352468/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1565.fits evtable="EVENTS" outfile="/scratch/kocevski/352468/ft1_filtered_4FGL_J0416.9+0105_daily_bin1565.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 7.00
user 0.33
sys 6.65

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/352468/ft1_filtered_4FGL_J0416.9+0105_daily_bin1565.fits" evtable="EVENTS" scfile=/scratch/kocevski/352468/ft2_4FGL_J0416.9+0105_daily_bin1565.fits sctable="SC_DATA" outfile=/scratch/kocevski/352468/ltcube_644976001_645235201_4FGL_J0416.9+0105_daily_bin1565.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/352468/ft2_4FGL_J0416.9+0105_daily_bin1565.fits
.....................!
real 19.48
user 11.84
sys 7.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/352468/ft1_filtered_4FGL_J0416.9+0105_daily_bin1565.fits evtable="EVENTS" scfile=/scratch/kocevski/352468/ft2_4FGL_J0416.9+0105_daily_bin1565.fits sctable="SC_DATA" expcube=/scratch/kocevski/352468/ltcube_644976001_645235201_4FGL_J0416.9+0105_daily_bin1565.fits outfile=/scratch/kocevski/352468/expmap_644976001_645235201_4FGL_J0416.9+0105_daily_bin1565.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/352468/ltcube_644976001_645235201_4FGL_J0416.9+0105_daily_bin1565.fits
.....................!
real 201.82
user 187.47
sys 13.96

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/352468/ft1_filtered_4FGL_J0416.9+0105_daily_bin1565.fits scfile=/scratch/kocevski/352468/ft2_4FGL_J0416.9+0105_daily_bin1565.fits outfile=/scratch/kocevski/352468/cmap_644976001_645235201_4FGL_J0416.9+0105_daily_bin1565.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 6.94
user 0.38
sys 6.53

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/352468/ft1_filtered_4FGL_J0416.9+0105_daily_bin1565.fits scfile=/scratch/kocevski/352468/ft2_4FGL_J0416.9+0105_daily_bin1565.fits outfile=/scratch/kocevski/352468/cmap_HighResolution_644976001_645235201_4FGL_J0416.9+0105_daily_bin1565.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 7.29
user 0.38
sys 6.84

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11651E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    37.770       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13567E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .50752E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    58.877       1.0000         .10000E-03   10000.    
     6 'norm      '    .85384E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10452E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .20990       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20742E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    25.741       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11694E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .98996E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.2626       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .57834       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1481       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=   2336.405     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2427 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.9061        .32182E-07** at limit **
   2  Prefactor     37.508        117.18        .18683E-05    .11107E-04
   3  Prefactor     .10001E-03    73.454        .26099E-05** at limit **
   4  norm          .10355E-03    53.955       -.70531E-05** at limit **
   5  Prefactor     58.809        68.686       -.63424E-07   -.43464E-05
   6  norm          .10002E-03    51.407       -.76694E-05** at limit **
   7  Prefactor     .10000E-03    75.684        .17934E-06** at limit **
   8  norm          .10000E-03    15.906        .85364E-06** at limit **
   9  norm          .10000E-03    39.980        .29794E-06** at limit **
  10  norm          .20147        3.4250       -.13907E-05    .40992E-03
  11  Prefactor     .10000E-03    2.0486        .14195E-06** at limit **
  12  Prefactor     .10000E-03    175.74        .76598E-06** at limit **
  13  Prefactor     .10000E-03    54.740        .20136E-06** at limit **
  14  Prefactor     .10000E-03    9.0355        .22945E-06** at limit **
  15  norm          25.647        27.058        .65003E-06   -.49899E-04
  16  Prefactor     .10000E-03    385.50        .22632E-05** at limit **
  17  norm          .10000E-03    3.4993        .87417E-07** at limit **
  18  Prefactor     .10000E-03    423.17        .18233E-05** at limit **
  19  Prefactor     .10000E-03    466.29        .55340E-06** at limit **
  20  norm          6.2614        6.0844        .16503E-06   -.14711E-04
  21  Normalizat    .57808        .38650        .40340E-05   -.85775E-05
  22  Prefactor     1.1484        .18196       -.37770E-05   -.18306E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 37.508
  Prefactor  = 0.000100005
  norm       = 0.000103549
  Prefactor  = 58.8094
  norm       = 0.000100018
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.201474
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 25.6471
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 6.2614
  Normalizat = 0.578078
  Prefactor  = 1.14835
 **********
 **   18 **HESSE 
 **********

 FCN=   2336.405     FROM HESSE     STATUS=OK           342 CALLS     2769 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7970        .12663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     37.508        117.63        .32608E-03   -1.4482    
   3  Prefactor     .10001E-03    74.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10355E-03    518.63        .48732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     58.809        68.633        .26143E-03   -1.4173    
   6  norm          .10002E-03    54.145        .27647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    75.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    16.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    40.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .20147        8.0032        .13663E-02   -1.5618    
  11  Prefactor     .10000E-03    2.0563        .67550E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    176.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    54.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.0477        .14193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          25.647        27.014        .78957E-04   -1.4695    
  16  Prefactor     .10000E-03    385.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.5191        .88323E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    425.65        .20769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    466.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.2614        6.0817        .11441E-03   -1.5207    
  21  Normalizat    .57808        .39720        .48009E-03   -1.0892    
  22  Prefactor     1.1484        .18740        .15840E-03   -.87936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.68808e-09
Minuit parameter uncertainties:
  1  8.55854e-05
  2  118.367
  3  0.00123947
  4  0.0865641
  5  68.7259
  6  0.00198911
  7  0.000165593
  8  7.16018e-06
  9  8.62342e-05
  10  2.53937
  11  1.36049e-05
  12  0.000656593
  13  6.09308e-05
  14  6.67233e-06
  15  27.0266
  16  0.000332447
  17  8.0092e-06
  18  0.0012952
  19  7.4757e-05
  20  6.08234
  21  0.399176
  22  0.187509
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  5.881e+01  6.873e+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.148e+00  1.875e-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:  5.781e-01  3.992e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.62
Ra Dec: 64.227 1.088
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 5.95e-08 +/- 6.96e-08
Energy Flux (Fixed Index): 5.71e-05 +/- 6.67e-05

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

Saving results to:
/scratch/kocevski/352468/likelihoodResults_644976001_645235201_4FGL_J0416.9+0105_daily_bin1565.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) = 2335.43316625
delta logL = 0.971969189179

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2335.42951214
delta logL = 0.975623304213

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    63.856       1.0000         .10000E-03   10000.    
     2 'Index     '    .81708       1.0000          .0000       10.000    
     3 'Normalizat'    .57601       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1567       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=   2335.430     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      203 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     63.821        90.103       -.11024E-04   -.16910E-05
   2  Index         .81678        .74641       -.53967E-04    .12864E-05
   3  Normalizat    .57606        .37208       -.45703E-06    .15135E-04
   4  Prefactor     1.1567        .16996        .40683E-06    .13600E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 63.8209
  Index      = 0.816783
  Normalizat = 0.576061
  Prefactor  = 1.15671
 **********
 **   18 **HESSE 
 **********

 FCN=   2335.430     FROM HESSE     STATUS=OK            29 CALLS      232 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     63.821        89.823        .25109E-03   -1.4109    
   2  Index         .81678        .74510        .99974E-03   -.99113    
   3  Normalizat    .57606        .39379        .48052E-03   -1.0901    
   4  Prefactor     1.1567        .18078        .15784E-03   -.87674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36284e-11
Minuit parameter uncertainties:
  1  90.0143
  2  0.75461
  3  0.395727
  4  0.180877
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/352468': 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) = 2335.42951197
delta logL = 0.975623474399

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  6.382e+01  9.001e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  8.168e-01  7.546e-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.157e+00  1.809e-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:  5.761e-01  3.957e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.57
Ra Dec: 64.227 1.088
Photon Index (Free Index): 0.82 +/- 0.75
Photon Flux (Free Index): 1.70e-08 +/- 2.02e-08
Energy Flux (Free Index): 3.68e-04 +/- 5.19e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/352468/cmap_HighResolution_644976001_645235201_4FGL_J0416.9+0105_daily_bin1565.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.98e-02', comment='SUCCESS', photon_flux='5.95e-08', energy_flux2='3.68e-04', photon_flux_error='6.96e-08', dlogl='9.76e-01', energy_flux='5.71e-05', photon_flux2='1.70e-08', job_status='DONE', time_completed='2021-08-20 10:39:44.670615', photon_index_error2='0.75', photon_index2='0.82', ts='1.62', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='2.66e-07', energy_flux_error2='5.19e-04', EG='0.58', time_epoch_completed='1629481184.67', return_code='0', job_id='352468', GAL2='1.16', EG2='0.58', return_code2='0', energy_flux_error='6.67e-05', photon_flux_error2='2.02e-08', ts2='3.57', photon_index='1.88' WHERE bin_id='1565' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:39:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 352468: <4FGL_J0416.9+0105_daily_bin1565> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin1565 64.2269 1.088 644976001 645235201 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 :                                   603.24 sec.
    Max Memory :                                 1254 MB
    Average Memory :                             236.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            848 sec.

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

