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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin644
RA = 64.2269, Dec = 1.088
tmin = 406252801, tmax = 406512001
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='348022', job_status='RUN', time_executed='2021-08-20 10:12:00.479670', time_epoch_executed='1629479520.48' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='644'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348022

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348022/ft1_4FGL_J0416.9+0105_daily_bin644.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348022/ft2_4FGL_J0416.9+0105_daily_bin644.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348022/ft1_4FGL_J0416.9+0105_daily_bin644.fits outfile=/scratch/kocevski/348022/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin644.fits ra=64.2269 dec=1.088 rad=12.0 tmin=406252801.0 tmax=406512001.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 8.58
user 3.57
sys 4.97

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/348022/ft1_filtered_4FGL_J0416.9+0105_daily_bin644.fits" evtable="EVENTS" scfile=/scratch/kocevski/348022/ft2_4FGL_J0416.9+0105_daily_bin644.fits sctable="SC_DATA" outfile=/scratch/kocevski/348022/ltcube_406252801_406512001_4FGL_J0416.9+0105_daily_bin644.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/348022/ft2_4FGL_J0416.9+0105_daily_bin644.fits
.....................!
real 16.90
user 11.57
sys 5.23

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348022/ft1_filtered_4FGL_J0416.9+0105_daily_bin644.fits evtable="EVENTS" scfile=/scratch/kocevski/348022/ft2_4FGL_J0416.9+0105_daily_bin644.fits sctable="SC_DATA" expcube=/scratch/kocevski/348022/ltcube_406252801_406512001_4FGL_J0416.9+0105_daily_bin644.fits outfile=/scratch/kocevski/348022/expmap_406252801_406512001_4FGL_J0416.9+0105_daily_bin644.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/348022/ltcube_406252801_406512001_4FGL_J0416.9+0105_daily_bin644.fits
.....................!
real 198.16
user 184.66
sys 12.78

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/348022/ft1_filtered_4FGL_J0416.9+0105_daily_bin644.fits scfile=/scratch/kocevski/348022/ft2_4FGL_J0416.9+0105_daily_bin644.fits outfile=/scratch/kocevski/348022/cmap_406252801_406512001_4FGL_J0416.9+0105_daily_bin644.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 5.22
user 0.36
sys 4.83

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/348022/ft1_filtered_4FGL_J0416.9+0105_daily_bin644.fits scfile=/scratch/kocevski/348022/ft2_4FGL_J0416.9+0105_daily_bin644.fits outfile=/scratch/kocevski/348022/cmap_HighResolution_406252801_406512001_4FGL_J0416.9+0105_daily_bin644.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 5.27
user 0.37
sys 4.85

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5959       1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.472       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    13.095       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.346       1.0000         .10000E-03   10000.    
     6 'norm      '    2.8547       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .31423       1.0000         .10000E-03   10000.    
     8 'norm      '    .10500E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    6.4103       1.0000         .10000E-03   10000.    
    10 'norm      '    2.2964       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.1911       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.783       1.0000         .10000E-03   10000.    
    15 'norm      '    .12027E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.6059       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.7775       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .46824       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2531       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=   9670.503     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2501 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5962        1.8538       -.14188E-06   -.40088E-03
   2  Prefactor     32.452        45.951        .41794E-05   -.90220E-04
   3  Prefactor     .10000E-03    13.892        .23402E-05** at limit **
   4  norm          13.096        13.115       -.33355E-06   -.51125E-05
   5  Prefactor     15.346        17.365       -.17389E-06   -.18692E-04
   6  norm          2.8554        4.6771        .31499E-05    .28632E-02
   7  Prefactor     .32562        105.92        .23559E-04   -.22539E-03
   8  norm          .10235E-03    16.844       -.95873E-05** at limit **
   9  norm          6.4121        22.617        .88167E-06    .94154E-04
  10  norm          2.2963        1.2193       -.25690E-06    .24827E-03
  11  Prefactor     4.1912        2.0831       -.18607E-06    .17130E-03
  12  Prefactor     .10000E-03    15.828        .41071E-06** at limit **
  13  Prefactor     .10000E-03    107.23       -.37027E-05** at limit **
  14  Prefactor     11.781        11.761       -.40881E-06    .34894E-03
  15  norm          .10000E-03    1.5975        .17855E-05** at limit **
  16  Prefactor     .10000E-03    13.062       -.44898E-06** at limit **
  17  norm          1.6063        2.2714       -.44745E-06    .37306E-04
  18  Prefactor     9.7781        8.3446       -.18884E-06   -.17353E-03
  19  Prefactor     .10000E-03    60.069       -.10825E-06** at limit **
  20  norm          .10000E-03    1.4006       -.40805E-06** at limit **
  21  Normalizat    .46812        .25342        .91659E-05    .26161E-03
  22  Prefactor     1.2531        .96346E-01   -.21766E-05    .47015E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.59622
  Prefactor  = 32.4521
  Prefactor  = 0.000100001
  norm       = 13.0957
  Prefactor  = 15.3458
  norm       = 2.85545
  Prefactor  = 0.32562
  norm       = 0.000102348
  norm       = 6.41214
  norm       = 2.29634
  Prefactor  = 4.19116
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.781
  norm       = 0.000100005
  Prefactor  = 0.0001
  norm       = 1.60627
  Prefactor  = 9.77806
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.468119
  Prefactor  = 1.25312
 **********
 **   18 **HESSE 
 **********

 FCN=   9670.503     FROM HESSE     STATUS=OK           364 CALLS     2865 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5962        1.8544        .80948E-04   -1.5279    
   2  Prefactor     32.452        45.488        .70317E-04   -1.4568    
   3  Prefactor     .10000E-03    13.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          13.096        13.124        .11069E-03   -1.4984    
   5  Prefactor     15.346        17.365        .10224E-03   -1.4924    
   6  norm          2.8554        5.6566        .12031E-02   -1.5370    
   7  Prefactor     .32562        18.309        .11353       -1.5594    
   8  norm          .10235E-03    7.1610        .70188E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.4121        22.583        .79262E-03   -1.5201    
  10  norm          2.2963        1.2230        .72150E-04   -1.5405    
  11  Prefactor     4.1912        2.0715        .91217E-04   -1.5298    
  12  Prefactor     .10000E-03    15.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    107.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.781        11.711        .11670E-03   -1.5021    
  15  norm          .10000E-03    14.901        .18962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6063        2.2531        .16314E-03   -1.5454    
  18  Prefactor     9.7781        8.2492        .12815E-03   -1.5082    
  19  Prefactor     .10000E-03    60.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.4486        .22765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .46812        .25677        .60025E-03   -1.1392    
  22  Prefactor     1.2531        .96978E-01    .15515E-03   -.84712    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2841e-07
Minuit parameter uncertainties:
  1  1.85444
  2  45.5365
  3  0.000216199
  4  13.1271
  5  17.3706
  6  5.65765
  7  4.88411
  8  0.00820128
  9  22.6135
  10  1.22304
  11  2.07159
  12  2.27592e-05
  13  8.59461e-05
  14  11.7137
  15  0.000528402
  16  3.74237e-06
  17  2.25323
  18  8.25014
  19  9.09676e-05
  20  8.51095e-06
  21  0.257416
  22  0.096992
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.535e+01  1.737e+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.253e+00  9.699e-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:  4.681e-01  2.574e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.17
Ra Dec: 64.227 1.088
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 1.55e-08 +/- 1.76e-08
Energy Flux (Fixed Index): 1.49e-05 +/- 1.69e-05

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

Saving results to:
/scratch/kocevski/348022/likelihoodResults_406252801_406512001_4FGL_J0416.9+0105_daily_bin644.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) = 9670.42768629
delta logL = 0.0748911058254

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9670.42446837
delta logL = 0.0781090205965

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.428       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6016       1.0000          .0000       10.000    
     3 'Normalizat'    .47058       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2532       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=   9670.424     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      304 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.429        23.110        .90869E-04    .18767E-04
   2  Index         1.6016        .68948        .12715E-01    .24778E-03
   3  Normalizat    .47068        .22557        .59875E-03   -.45418E-04
   4  Prefactor     1.2531        .92923E-01    .15516E-03   -.13980E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.4294
  Index      = 1.60155
  Normalizat = 0.470685
  Prefactor  = 1.25315
 **********
 **   18 **HESSE 
 **********

 FCN=   9670.424     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.429        22.808        .36348E-05   -1.4826    
   2  Index         1.6016        .68107        .25429E-02   -.74734    
   3  Normalizat    .47068        .22551        .23950E-04   -1.1379    
   4  Prefactor     1.2531        .92908E-01    .62063E-05   -.84711    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19343e-11
Minuit parameter uncertainties:
  1  22.818
  2  0.685047
  3  0.225952
  4  0.0929197
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348022': 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) = 9670.42446825
delta logL = 0.0781091419522

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.943e+01  2.282e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.602e+00  6.850e-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.253e+00  9.292e-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:  4.707e-01  2.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.33
Ra Dec: 64.227 1.088
Photon Index (Free Index): 1.60 +/- 0.69
Photon Flux (Free Index): 1.05e-08 +/- 1.63e-08
Energy Flux (Free Index): 2.36e-05 +/- 3.86e-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/348022/cmap_HighResolution_406252801_406512001_4FGL_J0416.9+0105_daily_bin644.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.35e-03', comment='SUCCESS', photon_flux='1.55e-08', energy_flux2='2.36e-05', photon_flux_error='1.76e-08', dlogl='7.81e-02', energy_flux='1.49e-05', photon_flux2='1.05e-08', job_status='DONE', time_completed='2021-08-20 10:26:03.689732', photon_index_error2='0.69', photon_index2='1.60', ts='2.17', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='7.21e-08', energy_flux_error2='3.86e-05', EG='0.47', time_epoch_completed='1629480363.69', return_code='0', job_id='348022', GAL2='1.25', EG2='0.47', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='1.63e-08', ts2='2.33', photon_index='1.88' WHERE bin_id='644' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:26:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 348022: <4FGL_J0416.9+0105_daily_bin644> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin644> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Aug 20 10:10:30 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:10:32 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:32 2021
Terminated at Fri Aug 20 10:26:05 2021
Results reported at Fri Aug 20 10:26:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin644 64.2269 1.088 406252801 406512001 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 :                                   915.26 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             319.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            935 sec.

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

