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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin830
RA = 64.2269, Dec = 1.088
tmin = 454464001, tmax = 454723201
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='348292', job_status='RUN', time_executed='2021-08-20 10:11:33.257410', time_epoch_executed='1629479493.26' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='830'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348292

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348292/ft1_4FGL_J0416.9+0105_daily_bin830.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348292/ft2_4FGL_J0416.9+0105_daily_bin830.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348292/ft1_4FGL_J0416.9+0105_daily_bin830.fits outfile=/scratch/kocevski/348292/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin830.fits ra=64.2269 dec=1.088 rad=12.0 tmin=454464001.0 tmax=454723201.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.25
user 3.45
sys 1.77

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/348292/ft2_4FGL_J0416.9+0105_daily_bin830.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/348292/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin830.fits evtable="EVENTS" outfile="/scratch/kocevski/348292/ft1_filtered_4FGL_J0416.9+0105_daily_bin830.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 2.49
user 0.39
sys 2.08

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/348292/ft1_filtered_4FGL_J0416.9+0105_daily_bin830.fits" evtable="EVENTS" scfile=/scratch/kocevski/348292/ft2_4FGL_J0416.9+0105_daily_bin830.fits sctable="SC_DATA" outfile=/scratch/kocevski/348292/ltcube_454464001_454723201_4FGL_J0416.9+0105_daily_bin830.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/348292/ft2_4FGL_J0416.9+0105_daily_bin830.fits
.....................!
real 19.18
user 17.04
sys 2.07

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348292/ft1_filtered_4FGL_J0416.9+0105_daily_bin830.fits evtable="EVENTS" scfile=/scratch/kocevski/348292/ft2_4FGL_J0416.9+0105_daily_bin830.fits sctable="SC_DATA" expcube=/scratch/kocevski/348292/ltcube_454464001_454723201_4FGL_J0416.9+0105_daily_bin830.fits outfile=/scratch/kocevski/348292/expmap_454464001_454723201_4FGL_J0416.9+0105_daily_bin830.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/348292/ltcube_454464001_454723201_4FGL_J0416.9+0105_daily_bin830.fits
.....................!
real 197.74
user 189.72
sys 7.46

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/348292/ft1_filtered_4FGL_J0416.9+0105_daily_bin830.fits scfile=/scratch/kocevski/348292/ft2_4FGL_J0416.9+0105_daily_bin830.fits outfile=/scratch/kocevski/348292/cmap_454464001_454723201_4FGL_J0416.9+0105_daily_bin830.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 2.14
user 0.43
sys 1.69

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/348292/ft1_filtered_4FGL_J0416.9+0105_daily_bin830.fits scfile=/scratch/kocevski/348292/ft2_4FGL_J0416.9+0105_daily_bin830.fits outfile=/scratch/kocevski/348292/cmap_HighResolution_454464001_454723201_4FGL_J0416.9+0105_daily_bin830.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 2.14
user 0.43
sys 1.69

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.6609       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.434       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.1124       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.132       1.0000         .10000E-03   10000.    
     6 'norm      '    .11069E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.0965       1.0000         .10000E-03   10000.    
     9 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10905E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6469       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5364       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .27603E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    1.4139       1.0000         .10000E-03   10000.    
    16 'Prefactor '    85.823       1.0000         .10000E-03   10000.    
    17 'norm      '    6.0002       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.8781       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.2168       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0271       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0758       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=   9616.352     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2428 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.6607        2.2417       -.19159E-07   -.17905E-04
   2  Prefactor     16.433        54.277       -.56908E-05   -.34170E-04
   3  Prefactor     7.1106        15.077       -.82725E-07   -.23551E-04
   4  norm          .10000E-03    5.7085       -.29551E-07** at limit **
   5  Prefactor     30.144        33.094       -.34533E-05   -.99424E-04
   6  norm          .10000E-03    8.1292        .71381E-07** at limit **
   7  Prefactor     .10000E-03    10.032       -.11916E-06** at limit **
   8  norm          5.0927        7.6999        .15386E-06    .14202E-04
   9  norm          .10000E-03    31.318       -.91794E-07** at limit **
  10  norm          .10000E-03    .55828        .27196E-07** at limit **
  11  Prefactor     1.6471        1.7776        .94601E-07   -.54659E-04
  12  Prefactor     .10000E-03    19.795        .57715E-07** at limit **
  13  Prefactor     2.3645        255.79        .17905E-06   -.38402E-06
  14  Prefactor     .10000E-03    7.0893       -.20084E-06** at limit **
  15  norm          1.4144        3.6984       -.63148E-07   -.45901E-03
  16  Prefactor     85.821        56.299       -.89756E-06   -.15685E-04
  17  norm          5.9997        2.3510        .12086E-06   -.19591E-02
  18  Prefactor     8.8762        8.6621        .45655E-06   -.74840E-03
  19  Prefactor     .10000E-03    17.943       -.80672E-07** at limit **
  20  norm          5.2166        2.4273       -.40261E-07   -.18282E-04
  21  Normalizat    1.0271        .24748        .36574E-06    .38658E-04
  22  Prefactor     1.0758        .90334E-01    .21238E-06    .21461E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.6607
  Prefactor  = 16.4331
  Prefactor  = 7.11059
  norm       = 0.0001
  Prefactor  = 30.1438
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.09268
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.64715
  Prefactor  = 0.0001
  Prefactor  = 2.36449
  Prefactor  = 0.000100003
  norm       = 1.41443
  Prefactor  = 85.8213
  norm       = 5.99967
  Prefactor  = 8.87619
  Prefactor  = 0.0001
  norm       = 5.21661
  Normalizat = 1.02713
  Prefactor  = 1.07576
 **********
 **   18 **HESSE 
 **********

 FCN=   9616.352     FROM HESSE     STATUS=OK           350 CALLS     2778 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.6607        2.2497        .75419E-04   -1.5154    
   2  Prefactor     16.433        54.894        .98799E-04   -1.4897    
   3  Prefactor     7.1106        15.043        .15041E-03   -1.5175    
   4  norm          .10000E-03    5.7096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     30.144        33.443        .72989E-04   -1.4609    
   6  norm          .10000E-03    8.4115        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.0927        7.6821        .17810E-03   -1.5257    
   9  norm          .10000E-03    31.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .81790        .13526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.6471        1.7236        .11867E-03   -1.5451    
  12  Prefactor     .10000E-03    19.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.3645        231.67        .25644E-03   -1.5400    
  14  Prefactor     .10000E-03    87.559        .47480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4144        3.6378        .26487E-03   -1.5470    
  16  Prefactor     85.821        56.414        .43365E-04   -1.3853    
  17  norm          5.9997        2.8216        .52419E-03   -1.5218    
  18  Prefactor     8.8762        9.9799        .67260E-03   -1.5112    
  19  Prefactor     .10000E-03    17.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.2166        2.4269        .10072E-03   -1.5251    
  21  Normalizat    1.0271        .27213        .44487E-03   -.92127    
  22  Prefactor     1.0758        .10002        .16910E-03   -.90245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34203e-09
Minuit parameter uncertainties:
  1  2.24972
  2  55.0638
  3  15.0514
  4  1.36591e-06
  5  33.4636
  6  6.01811e-06
  7  2.5213e-06
  8  7.6836
  9  4.81722e-05
  10  1.38622e-06
  11  1.72361
  12  1.11277e-05
  13  46.9968
  14  0.000984614
  15  3.63834
  16  56.4492
  17  2.82167
  18  9.98178
  19  9.29422e-06
  20  2.42698
  21  0.272504
  22  0.100036
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  3.014e+01  3.346e+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.076e+00  1.000e-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:  1.027e+00  2.725e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.32
Ra Dec: 64.227 1.088
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 3.05e-08 +/- 3.39e-08
Energy Flux (Fixed Index): 2.93e-05 +/- 3.25e-05

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

Saving results to:
/scratch/kocevski/348292/likelihoodResults_454464001_454723201_4FGL_J0416.9+0105_daily_bin830.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) = 9616.15201859
delta logL = 0.199828405965

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9616.12959741
delta logL = 0.222249586452

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.422       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2294       1.0000          .0000       10.000    
     3 'Normalizat'    1.0164       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0755       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.

 FCN=   9616.130     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      279 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.397        385.85        .22720E-02    .41198E-03
   2  Index         2.2297        2.1573        .14601        .40117E-03
   3  Normalizat    1.0161        .79882E-01    .10085        .42056E-03
   4  Prefactor     1.0756        .27880E-01    .38600E-01    .11047E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.3975
  Index      = 2.22972
  Normalizat = 1.01613
  Prefactor  = 1.07563
 **********
 **   18 **HESSE 
 **********

 FCN=   9616.130     FROM HESSE     STATUS=OK            29 CALLS      308 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.397        30.848        .90881E-04   -1.4827    
   2  Index         2.2297        .60256        .52856E-02   -.58723    
   3  Normalizat    1.0161        .24725        .44690E-03   -.92492    
   4  Prefactor     1.0756        .96650E-01    .16907E-03   -.90249    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.51126e-10
Minuit parameter uncertainties:
  1  30.8732
  2  0.604684
  3  0.247534
  4  0.0966661
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348292': 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) = 9616.1295965
delta logL = 0.222250500339

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.940e+01  3.087e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.230e+00  6.047e-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.076e+00  9.667e-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.016e+00  2.475e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.76
Ra Dec: 64.227 1.088
Photon Index (Free Index): 2.23 +/- 0.60
Photon Flux (Free Index): 5.04e-08 +/- 5.11e-08
Energy Flux (Free Index): 2.15e-05 +/- 2.45e-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/348292/cmap_HighResolution_454464001_454723201_4FGL_J0416.9+0105_daily_bin830.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.18e-03', comment='SUCCESS', photon_flux='3.05e-08', energy_flux2='2.15e-05', photon_flux_error='3.39e-08', dlogl='2.22e-01', energy_flux='2.93e-05', photon_flux2='5.04e-08', job_status='DONE', time_completed='2021-08-20 10:25:15.227135', photon_index_error2='0.60', photon_index2='2.23', ts='1.32', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='2.45e-05', EG='1.03', time_epoch_completed='1629480315.23', return_code='0', job_id='348292', GAL2='1.08', EG2='1.02', return_code2='0', energy_flux_error='3.25e-05', photon_flux_error2='5.11e-08', ts2='1.76', photon_index='1.88' WHERE bin_id='830' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:25:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 348292: <4FGL_J0416.9+0105_daily_bin830> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin830> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Aug 20 10:10:50 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:10:51 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:10:51 2021
Terminated at Fri Aug 20 10:25:16 2021
Results reported at Fri Aug 20 10:25:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin830 64.2269 1.088 454464001 454723201 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 :                                   846.12 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             366.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            866 sec.

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

