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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin1301
RA = 64.2269, Dec = 1.088
tmin = 576547201, tmax = 576806401
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='351066', job_status='RUN', time_executed='2021-08-20 10:24:26.226595', time_epoch_executed='1629480266.23' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='1301'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351066

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351066/ft1_4FGL_J0416.9+0105_daily_bin1301.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351066/ft2_4FGL_J0416.9+0105_daily_bin1301.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351066/ft1_4FGL_J0416.9+0105_daily_bin1301.fits outfile=/scratch/kocevski/351066/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1301.fits ra=64.2269 dec=1.088 rad=12.0 tmin=576547201.0 tmax=576806401.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 5.66
user 4.75
sys 0.87

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/351066/ft2_4FGL_J0416.9+0105_daily_bin1301.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/351066/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1301.fits evtable="EVENTS" outfile="/scratch/kocevski/351066/ft1_filtered_4FGL_J0416.9+0105_daily_bin1301.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.15
user 0.36
sys 0.77

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351066/ft1_filtered_4FGL_J0416.9+0105_daily_bin1301.fits" evtable="EVENTS" scfile=/scratch/kocevski/351066/ft2_4FGL_J0416.9+0105_daily_bin1301.fits sctable="SC_DATA" outfile=/scratch/kocevski/351066/ltcube_576547201_576806401_4FGL_J0416.9+0105_daily_bin1301.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/351066/ft2_4FGL_J0416.9+0105_daily_bin1301.fits
.....................!
real 13.68
user 12.61
sys 1.02

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351066/ft1_filtered_4FGL_J0416.9+0105_daily_bin1301.fits evtable="EVENTS" scfile=/scratch/kocevski/351066/ft2_4FGL_J0416.9+0105_daily_bin1301.fits sctable="SC_DATA" expcube=/scratch/kocevski/351066/ltcube_576547201_576806401_4FGL_J0416.9+0105_daily_bin1301.fits outfile=/scratch/kocevski/351066/expmap_576547201_576806401_4FGL_J0416.9+0105_daily_bin1301.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/351066/ltcube_576547201_576806401_4FGL_J0416.9+0105_daily_bin1301.fits
.....................!
real 191.92
user 186.27
sys 5.24

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/351066/ft1_filtered_4FGL_J0416.9+0105_daily_bin1301.fits scfile=/scratch/kocevski/351066/ft2_4FGL_J0416.9+0105_daily_bin1301.fits outfile=/scratch/kocevski/351066/cmap_576547201_576806401_4FGL_J0416.9+0105_daily_bin1301.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.19
user 0.38
sys 0.76

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351066/ft1_filtered_4FGL_J0416.9+0105_daily_bin1301.fits scfile=/scratch/kocevski/351066/ft2_4FGL_J0416.9+0105_daily_bin1301.fits outfile=/scratch/kocevski/351066/cmap_HighResolution_576547201_576806401_4FGL_J0416.9+0105_daily_bin1301.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.25
user 0.40
sys 0.76

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2402       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.0965       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.5943       1.0000         .10000E-03   10000.    
     9 'norm      '    .11390E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .57701E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1142       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.5161       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .15391E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.2592       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.1005       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.2170       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2415       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92784       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=   7160.051     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2035 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .42498        .23045E-07** at limit **
   2  Prefactor     .10000E-03    41.400        .23075E-05** at limit **
   3  Prefactor     4.2343        12.440        .61945E-05   -.43742E-03
   4  norm          .10000E-03    9.4732       -.39912E-06** at limit **
   5  Prefactor     .10000E-03    13.801        .12733E-05** at limit **
   6  norm          5.1091        5.8433       -.52592E-06   -.64336E-03
   7  Prefactor     .10000E-03    12.252        .84598E-06** at limit **
   8  norm          5.5924        11.081       -.14035E-07   -.21401E-04
   9  norm          .10000E-03    35.324        .29164E-05** at limit **
  10  norm          .45032E-01    .63617        .40512E-06   -.13988E-02
  11  Prefactor     3.1163        1.9753        .34244E-07   -.33270E-03
  12  Prefactor     9.4950        21.772       -.25150E-05   -.23835E-03
  13  Prefactor     .10001E-03    48.777       -.48219E-05** at limit **
  14  Prefactor     .10000E-03    16.468       -.32084E-05** at limit **
  15  norm          .10000E-03    2.7355       -.38793E-06** at limit **
  16  Prefactor     .10000E-03    14.323        .91270E-06** at limit **
  17  norm          2.2583        2.5533        .11876E-06   -.11804E-03
  18  Prefactor     7.0998        5.3524       -.39783E-06   -.45616E-03
  19  Prefactor     .10000E-03    10.521       -.12581E-05** at limit **
  20  norm          2.2168        2.2480        .40582E-07   -.72640E-04
  21  Normalizat    1.2417        .23636        .34489E-06   -.79723E-04
  22  Prefactor     .92783        .85131E-01   -.30624E-06   -.86421E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 4.23433
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 5.10906
  Prefactor  = 0.0001
  norm       = 5.59239
  norm       = 0.000100004
  norm       = 0.0450324
  Prefactor  = 3.11634
  Prefactor  = 9.49496
  Prefactor  = 0.000100009
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.25831
  Prefactor  = 7.09983
  Prefactor  = 0.000100001
  norm       = 2.21676
  Normalizat = 1.24172
  Prefactor  = 0.927832
 **********
 **   18 **HESSE 
 **********

 FCN=   7160.051     FROM HESSE     STATUS=OK           342 CALLS     2377 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .42821        .53856E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    41.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.2343        13.268        .97840E-03   -1.5296    
   4  norm          .10000E-03    9.4854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.1091        5.9309        .17810E-03   -1.5256    
   7  Prefactor     .10000E-03    12.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.5924        11.108        .16985E-03   -1.5235    
   9  norm          .10000E-03    36.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .45032E-01    6.2548        .11926E-02   -1.5666    
  11  Prefactor     3.1163        1.9753        .88722E-04   -1.5355    
  12  Prefactor     9.4950        22.073        .12991E-03   -1.5092    
  13  Prefactor     .10001E-03    50.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.285        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.7984        .26993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.2583        2.5514        .13536E-03   -1.5407    
  18  Prefactor     7.0998        5.3839        .15054E-03   -1.5175    
  19  Prefactor     .10000E-03    10.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.2168        2.2401        .12344E-03   -1.5410    
  21  Normalizat    1.2417        .26539        .37006E-03   -.85323    
  22  Prefactor     .92783        .95726E-01    .16040E-03   -.95175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.55706e-09
Minuit parameter uncertainties:
  1  1.29414e-07
  2  0.000537863
  3  13.2774
  4  4.25265e-05
  5  0.000183625
  6  5.93161
  7  0.0001322
  8  11.1121
  9  0.000731724
  10  1.06039
  11  1.9753
  12  22.0919
  13  0.00131696
  14  0.000464757
  15  5.0139e-05
  16  0.000140608
  17  2.5515
  18  5.38429
  19  0.000154536
  20  2.24016
  21  0.265685
  22  0.0957436
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
452    Prefactor:  9.278e-01  9.574e-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.242e+00  2.657e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/351066/likelihoodResults_576547201_576806401_4FGL_J0416.9+0105_daily_bin1301.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7160.05139065
delta logL = -0.000342553881637

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7160.05104805
delta logL = 4.18294803239e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8584       1.0000          .0000       10.000    
     3 'Normalizat'    1.2417       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92783       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=   7160.051     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      245 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10045E-03    88.308        .18142E-02** at limit **
   2  Index         1.8264        6.3252        .50000        .83210E-05
   3  Normalizat    1.2417        .16381E-01    .37006E-03    .10537E-04
   4  Prefactor     .92783        .62829E-02    .16040E-03    .97810E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100453
  Index      = 1.82644
  Normalizat = 1.24172
  Prefactor  = 0.927832
 **********
 **   18 **HESSE 
 **********

 FCN=   7160.051     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10045E-03    414.47        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8264        6.7949        .50000       -.68764    
   3  Normalizat    1.2417        .36596E-01    .14802E-04   -.85323    
   4  Prefactor     .92783        .14035E-01    .64160E-05   -.95175    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.08217e-09
Minuit parameter uncertainties:
  1  0.0275903
  2  471.059
  3  0.0365968
  4  0.014035
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351066': 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): 102
logL (Free Index) = 7160.05104799
delta logL = 9.98206814984e-08

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.005e-04  2.759e-02  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.826e+00  4.711e+02  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:  9.278e-01  1.404e-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.242e+00  3.660e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.81e-03', job_status='DONE', photon_flux_upper_limit='6.48e-08', time_completed='2021-08-20 10:35:10.412958', job_id='351066', GAL2='0.93', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1629480910.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='9.98e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='1301' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:35:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 351066: <4FGL_J0416.9+0105_daily_bin1301> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin1301 64.2269 1.088 576547201 576806401 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 :                                   652.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             245.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            867 sec.

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

