/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 166 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 = 7472
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0416.9+0105_daily_bin241
RA = 64.2269, Dec = 1.088
tmin = 301795201, tmax = 302054401
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='345342', job_status='RUN', time_executed='2021-08-20 10:04:25.248314', time_epoch_executed='1629479065.25' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='241'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/345342

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/345342/ft1_4FGL_J0416.9+0105_daily_bin241.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/345342/ft2_4FGL_J0416.9+0105_daily_bin241.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/345342/ft1_4FGL_J0416.9+0105_daily_bin241.fits outfile=/scratch/kocevski/345342/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin241.fits ra=64.2269 dec=1.088 rad=12.0 tmin=301795201.0 tmax=302054401.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 7.08
user 3.81
sys 3.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/345342/ft2_4FGL_J0416.9+0105_daily_bin241.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/345342/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin241.fits evtable="EVENTS" outfile="/scratch/kocevski/345342/ft1_filtered_4FGL_J0416.9+0105_daily_bin241.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 3.51
user 0.32
sys 3.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/345342/ft1_filtered_4FGL_J0416.9+0105_daily_bin241.fits" evtable="EVENTS" scfile=/scratch/kocevski/345342/ft2_4FGL_J0416.9+0105_daily_bin241.fits sctable="SC_DATA" outfile=/scratch/kocevski/345342/ltcube_301795201_302054401_4FGL_J0416.9+0105_daily_bin241.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/345342/ft2_4FGL_J0416.9+0105_daily_bin241.fits
.....................!
real 15.73
user 11.76
sys 3.89

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/345342/ft1_filtered_4FGL_J0416.9+0105_daily_bin241.fits evtable="EVENTS" scfile=/scratch/kocevski/345342/ft2_4FGL_J0416.9+0105_daily_bin241.fits sctable="SC_DATA" expcube=/scratch/kocevski/345342/ltcube_301795201_302054401_4FGL_J0416.9+0105_daily_bin241.fits outfile=/scratch/kocevski/345342/expmap_301795201_302054401_4FGL_J0416.9+0105_daily_bin241.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/345342/ltcube_301795201_302054401_4FGL_J0416.9+0105_daily_bin241.fits
.....................!
real 197.24
user 187.41
sys 9.31

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/345342/ft1_filtered_4FGL_J0416.9+0105_daily_bin241.fits scfile=/scratch/kocevski/345342/ft2_4FGL_J0416.9+0105_daily_bin241.fits outfile=/scratch/kocevski/345342/cmap_301795201_302054401_4FGL_J0416.9+0105_daily_bin241.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 3.51
user 0.38
sys 3.08

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/345342/ft1_filtered_4FGL_J0416.9+0105_daily_bin241.fits scfile=/scratch/kocevski/345342/ft2_4FGL_J0416.9+0105_daily_bin241.fits outfile=/scratch/kocevski/345342/cmap_HighResolution_301795201_302054401_4FGL_J0416.9+0105_daily_bin241.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 3.50
user 0.38
sys 3.10

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7061       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.7154       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.621       1.0000         .10000E-03   10000.    
     6 'norm      '    3.7897       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.1723       1.0000         .10000E-03   10000.    
     8 'norm      '    13.421       1.0000         .10000E-03   10000.    
     9 'norm      '    15.816       1.0000         .10000E-03   10000.    
    10 'norm      '    .10101E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3338       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    66.690       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10435E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .98133       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10155E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.367       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2188       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91193       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=   8059.795     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2365 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7065        1.5259       -.60582E-07   -.31774E-03
   2  Prefactor     .10000E-03    14.240        .13169E-05** at limit **
   3  Prefactor     9.7156        10.825        .60077E-06    .18942E-05
   4  norm          .10000E-03    5.4919       -.44516E-06** at limit **
   5  Prefactor     24.616        24.141       -.52519E-05    .55231E-05
   6  norm          3.7905        4.3222        .19572E-05   -.42514E-03
   7  Prefactor     5.1621        18.341       -.15532E-04   -.31759E-04
   8  norm          13.433        11.783        .93573E-06   -.82853E-04
   9  norm          15.812        18.353       -.32462E-05    .97645E-05
  10  norm          .10000E-03    .37941       -.69067E-07** at limit **
  11  Prefactor     2.3350        1.9522        .17554E-07   -.19034E-03
  12  Prefactor     .10000E-03    9.6989       -.27274E-05** at limit **
  13  Prefactor     66.692        54.839        .28100E-05    .73372E-05
  14  Prefactor     .10000E-03    7.9331        .19184E-05** at limit **
  15  norm          .98067        2.0109       -.29574E-06   -.11489E-02
  16  Prefactor     .10000E-03    21.084        .44985E-06** at limit **
  17  norm          .10000E-03    1.1689       -.66928E-07** at limit **
  18  Prefactor     .10000E-03    4.3189        .23391E-06** at limit **
  19  Prefactor     11.365        29.216       -.47511E-05   -.64193E-05
  20  norm          .10000E-03    .91600        .64837E-08** at limit **
  21  Normalizat    1.2180        .22890       -.91243E-06    .96557E-04
  22  Prefactor     .91221        .84007E-01    .11012E-05   -.12591E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.70654
  Prefactor  = 0.0001
  Prefactor  = 9.71559
  norm       = 0.0001
  Prefactor  = 24.6159
  norm       = 3.79052
  Prefactor  = 5.16215
  norm       = 13.433
  norm       = 15.8117
  norm       = 0.0001
  Prefactor  = 2.33502
  Prefactor  = 0.0001
  Prefactor  = 66.6921
  Prefactor  = 0.0001
  norm       = 0.980672
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.365
  norm       = 0.0001
  Normalizat = 1.21804
  Prefactor  = 0.912212
 **********
 **   18 **HESSE 
 **********

 FCN=   8059.795     FROM HESSE     STATUS=OK           342 CALLS     2707 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7065        1.5244        .80181E-04   -1.5379    
   2  Prefactor     .10000E-03    14.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.7156        10.820        .12856E-03   -1.5084    
   4  norm          .10000E-03    5.4932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.616        24.100        .80730E-04   -1.4715    
   6  norm          3.7905        4.2595        .19029E-03   -1.5319    
   7  Prefactor     5.1621        18.422        .17676E-03   -1.5254    
   8  norm          13.433        11.865        .10934E-03   -1.4975    
   9  norm          15.812        18.293        .10071E-03   -1.4912    
  10  norm          .10000E-03    .38722        .10762E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.3350        1.9324        .98284E-04   -1.5402    
  12  Prefactor     .10000E-03    9.6961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     66.692        54.691        .49147E-04   -1.4073    
  14  Prefactor     .10000E-03    8.0522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .98067        1.9852        .17437E-03   -1.5510    
  16  Prefactor     .10000E-03    21.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.1945        .18919E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.3676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.365        29.245        .11882E-03   -1.5034    
  20  norm          .10000E-03    .93461        .83878E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2180        .26185        .36685E-03   -.86047    
  22  Prefactor     .91221        .96288E-01    .16105E-03   -.95716    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.92383e-10
Minuit parameter uncertainties:
  1  1.52444
  2  3.99665e-07
  3  10.8219
  4  4.40602e-06
  5  24.1091
  6  4.25985
  7  18.4418
  8  11.8674
  9  18.2999
  10  4.1613e-06
  11  1.93249
  12  4.5851e-05
  13  54.7319
  14  5.32578e-05
  15  1.98531
  16  1.77493e-05
  17  5.13566e-06
  18  1.74501e-05
  19  29.282
  20  1.12031e-06
  21  0.262137
  22  0.0963062
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  2.462e+01  2.411e+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:  9.122e-01  9.631e-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.218e+00  2.621e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.41
Ra Dec: 64.227 1.088
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 2.49e-08 +/- 2.44e-08
Energy Flux (Fixed Index): 2.39e-05 +/- 2.34e-05

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

Saving results to:
/scratch/kocevski/345342/likelihoodResults_301795201_302054401_4FGL_J0416.9+0105_daily_bin241.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) = 8059.79412574
delta logL = 0.00116851031817

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8059.79342253
delta logL = 0.00187171190373

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.720       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8396       1.0000          .0000       10.000    
     3 'Normalizat'    1.2187       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91218       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=   8059.793     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      251 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.748        858.31        .19747E-02   -.69258E-05
   2  Index         1.8392        5.8218        .14721        .11028E-03
   3  Normalizat    1.2188        .12153        .82843E-01    .18113E-03
   4  Prefactor     .91214        .37735E-01    .45160E-01    .30678E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.7476
  Index      = 1.83923
  Normalizat = 1.21879
  Prefactor  = 0.912144
 **********
 **   18 **HESSE 
 **********

 FCN=   8059.793     FROM HESSE     STATUS=OK            31 CALLS      282 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.748        32.485        .78989E-04   -1.4693    
   2  Index         1.8392        .62968        .84156E-02   -.68433    
   3  Normalizat    1.2188        .23991        .36676E-03   -.86024    
   4  Prefactor     .91214        .93246E-01    .16106E-03   -.95718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.81479e-09
Minuit parameter uncertainties:
  1  32.507
  2  0.632486
  3  0.240128
  4  0.0932618
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/345342': 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) = 8059.79342197
delta logL = 0.00187227120841

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  2.575e+01  3.251e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.839e+00  6.325e-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:  9.121e-01  9.326e-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.219e+00  2.401e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.42
Ra Dec: 64.227 1.088
Photon Index (Free Index): 1.84 +/- 0.63
Photon Flux (Free Index): 2.38e-08 +/- 2.91e-08
Energy Flux (Free Index): 2.54e-05 +/- 3.72e-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/345342/cmap_HighResolution_301795201_302054401_4FGL_J0416.9+0105_daily_bin241.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.67e-03', comment='SUCCESS', photon_flux='2.49e-08', energy_flux2='2.54e-05', photon_flux_error='2.44e-08', dlogl='1.87e-03', energy_flux='2.39e-05', photon_flux2='2.38e-08', job_status='DONE', time_completed='2021-08-20 10:16:41.467413', photon_index_error2='0.63', photon_index2='1.84', ts='2.41', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='8.98e-08', energy_flux_error2='3.72e-05', EG='1.22', time_epoch_completed='1629479801.47', return_code='0', job_id='345342', GAL2='0.91', EG2='1.22', return_code2='0', energy_flux_error='2.34e-05', photon_flux_error2='2.91e-08', ts2='2.42', photon_index='1.88' WHERE bin_id='241' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:16:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 345342: <4FGL_J0416.9+0105_daily_bin241> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin241> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 20 10:00:42 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:00:43 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:00:43 2021
Terminated at Fri Aug 20 10:16:42 2021
Results reported at Fri Aug 20 10:16:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin241 64.2269 1.088 301795201 302054401 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 :                                   782.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             276.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            960 sec.

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

