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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin1247
RA = 64.2269, Dec = 1.088
tmin = 562550401, tmax = 562809601
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='350986', job_status='RUN', time_executed='2021-08-20 10:24:45.637238', time_epoch_executed='1629480285.64' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='1247'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/350986

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/350986/ft1_4FGL_J0416.9+0105_daily_bin1247.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/350986/ft2_4FGL_J0416.9+0105_daily_bin1247.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/350986/ft1_4FGL_J0416.9+0105_daily_bin1247.fits outfile=/scratch/kocevski/350986/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1247.fits ra=64.2269 dec=1.088 rad=12.0 tmin=562550401.0 tmax=562809601.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 3.73
user 3.23
sys 0.45

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/350986/ft1_filtered_4FGL_J0416.9+0105_daily_bin1247.fits evtable="EVENTS" scfile=/scratch/kocevski/350986/ft2_4FGL_J0416.9+0105_daily_bin1247.fits sctable="SC_DATA" expcube=/scratch/kocevski/350986/ltcube_562550401_562809601_4FGL_J0416.9+0105_daily_bin1247.fits outfile=/scratch/kocevski/350986/expmap_562550401_562809601_4FGL_J0416.9+0105_daily_bin1247.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/350986/ltcube_562550401_562809601_4FGL_J0416.9+0105_daily_bin1247.fits
.....................!
real 193.05
user 186.61
sys 5.73

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/350986/ft1_filtered_4FGL_J0416.9+0105_daily_bin1247.fits scfile=/scratch/kocevski/350986/ft2_4FGL_J0416.9+0105_daily_bin1247.fits outfile=/scratch/kocevski/350986/cmap_562550401_562809601_4FGL_J0416.9+0105_daily_bin1247.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 0.83
user 0.36
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/350986/ft1_filtered_4FGL_J0416.9+0105_daily_bin1247.fits scfile=/scratch/kocevski/350986/ft2_4FGL_J0416.9+0105_daily_bin1247.fits outfile=/scratch/kocevski/350986/cmap_HighResolution_562550401_562809601_4FGL_J0416.9+0105_daily_bin1247.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 0.83
user 0.37
sys 0.38

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5387       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.655       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.017       1.0000         .10000E-03   10000.    
     6 'norm      '    16.366       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.8243       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2586       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .23414       1.0000         .10000E-03   10000.    
    12 'Prefactor '    85.986       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.4235       1.0000         .10000E-03   10000.    
    16 'Prefactor '    64.593       1.0000         .10000E-03   10000.    
    17 'norm      '    .11717E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.4770       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0392       1.0000         .10000E-03   10000.    
    20 'norm      '    15.868       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .73429       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96387       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=   10449.34     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     2369 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5390        1.7771        .37363E-08   -.59215E-04
   2  Prefactor     22.658        32.277        .22082E-05    .12127E-03
   3  Prefactor     .10000E-03    6.2554        .13642E-06** at limit **
   4  norm          .10000E-03    5.4106       -.46809E-07** at limit **
   5  Prefactor     30.013        21.512       -.17739E-05   -.28491E-03
   6  norm          16.366        5.8056        .26385E-07   -.14708E-04
   7  Prefactor     .10000E-03    7.7204        .16211E-07** at limit **
   8  norm          .10000E-03    6.3060       -.57306E-07** at limit **
   9  norm          6.8218        11.329       -.51188E-06   -.97737E-04
  10  norm          1.2583        .97231        .16187E-08   -.42012E-03
  11  Prefactor     .23407        .69755        .19728E-06   -.74696E-03
  12  Prefactor     85.987        26.362        .36299E-06    .12948E-03
  13  Prefactor     .10000E-03    14.922        .17027E-06** at limit **
  14  Prefactor     .10000E-03    2.6559        .47153E-07** at limit **
  15  norm          2.4226        3.0136       -.70192E-07   -.39963E-03
  16  Prefactor     64.589        45.533       -.22100E-05   -.14990E-03
  17  norm          .10000E-03    1.0429        .63249E-07** at limit **
  18  Prefactor     8.4775        5.6550        .87990E-06   -.13373E-02
  19  Prefactor     7.0413        21.830        .13753E-05    .63296E-04
  20  norm          15.868        3.4369       -.53074E-07   -.25072E-03
  21  Normalizat    .73402        .20242       -.54516E-06   -.72895E-05
  22  Prefactor     .96393        .74006E-01    .12125E-06    .10022E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.539
  Prefactor  = 22.6581
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 30.0131
  norm       = 16.3659
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.82185
  norm       = 1.25828
  Prefactor  = 0.234073
  Prefactor  = 85.9874
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.42262
  Prefactor  = 64.5888
  norm       = 0.0001
  Prefactor  = 8.47749
  Prefactor  = 7.04129
  norm       = 15.8676
  Normalizat = 0.734022
  Prefactor  = 0.963931
 **********
 **   18 **HESSE 
 **********

 FCN=   10449.34     FROM HESSE     STATUS=OK           346 CALLS     2715 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5390        1.7773        .73840E-04   -1.5237    
   2  Prefactor     22.658        32.517        .84154E-04   -1.4756    
   3  Prefactor     .10000E-03    6.2864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.4116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     30.013        21.945        .73130E-04   -1.4612    
   6  norm          16.366        5.8021        .99004E-04   -1.4899    
   7  Prefactor     .10000E-03    7.7345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.4476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.8218        11.316        .15359E-03   -1.5186    
  10  norm          1.2583        .93714        .81424E-04   -1.5484    
  11  Prefactor     .23407        .79182        .13804E-02   -1.5611    
  12  Prefactor     85.987        26.263        .43324E-04   -1.3851    
  13  Prefactor     .10000E-03    14.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.6727        .16265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.4226        2.9550        .16496E-03   -1.5397    
  16  Prefactor     64.589        45.746        .49933E-04   -1.4099    
  17  norm          .10000E-03    2.2506        .19954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.4775        7.0882        .68842E-03   -1.5126    
  19  Prefactor     7.0413        22.287        .15120E-03   -1.5177    
  20  norm          15.868        3.4375        .84350E-04   -1.4911    
  21  Normalizat    .73402        .21467        .46400E-03   -1.0256    
  22  Prefactor     .96393        .80701E-01    .15897E-03   -.93942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39754e-08
Minuit parameter uncertainties:
  1  1.77729
  2  32.5422
  3  2.25603e-06
  4  2.85763e-06
  5  21.9507
  6  5.8023
  7  1.43987e-06
  8  3.98709e-06
  9  11.3195
  10  0.937153
  11  0.79186
  12  26.2664
  13  1.66836e-05
  14  1.80992e-06
  15  2.95519
  16  45.7711
  17  1.06603e-05
  18  7.08895
  19  22.3132
  20  3.43752
  21  0.214919
  22  0.0807107
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  3.001e+01  2.195e+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.639e-01  8.071e-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:  7.340e-01  2.149e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.06
Ra Dec: 64.227 1.088
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 3.04e-08 +/- 2.22e-08
Energy Flux (Fixed Index): 2.91e-05 +/- 2.13e-05

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) = 10449.1952148
delta logL = 0.147805878927

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10449.1950844
delta logL = 0.147936265324

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.261       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6154       1.0000          .0000       10.000    
     3 'Normalizat'    .73930       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96389       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=   10449.20     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      322 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.193        31.215        .64797E-04   -.19440E-04
   2  Index         1.6136        .48612        .96360E-02    .19531E-04
   3  Normalizat    .73939        .20223        .46253E-03   -.46700E-04
   4  Prefactor     .96391        .79298E-01    .15899E-03   -.18974E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.1926
  Index      = 1.61364
  Normalizat = 0.739391
  Prefactor  = 0.963914
 **********
 **   18 **HESSE 
 **********

 FCN=   10449.20     FROM HESSE     STATUS=OK            25 CALLS      347 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.193        30.677        .12959E-04   -1.4471    
   2  Index         1.6136        .47795        .38544E-03   -.74405    
   3  Normalizat    .73939        .20226        .18501E-04   -1.0236    
   4  Prefactor     .96391        .79319E-01    .31799E-04   -.93942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03592e-11
Minuit parameter uncertainties:
  1  30.6899
  2  0.479306
  3  0.202461
  4  0.0793286
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/350986': 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) = 10449.1950714
delta logL = 0.147949240285

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  3.819e+01  3.069e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.614e+00  4.793e-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.639e-01  7.933e-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:  7.394e-01  2.025e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.36
Ra Dec: 64.227 1.088
Photon Index (Free Index): 1.61 +/- 0.48
Photon Flux (Free Index): 2.11e-08 +/- 2.27e-08
Energy Flux (Free Index): 4.56e-05 +/- 5.15e-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/350986/cmap_HighResolution_562550401_562809601_4FGL_J0416.9+0105_daily_bin1247.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.04e-08', energy_flux2='4.56e-05', photon_flux_error='2.22e-08', dlogl='1.48e-01', energy_flux='2.91e-05', photon_flux2='2.11e-08', job_status='DONE', time_completed='2021-08-20 10:36:56.560067', photon_index_error2='0.48', photon_index2='1.61', ts='7.06', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='5.15e-05', EG='0.73', time_epoch_completed='1629481016.56', return_code='0', job_id='350986', GAL2='0.96', EG2='0.74', return_code2='0', energy_flux_error='2.13e-05', photon_flux_error2='2.27e-08', ts2='7.36', photon_index='1.88' WHERE bin_id='1247' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:36:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 350986: <4FGL_J0416.9+0105_daily_bin1247> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin1247> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 20 10:20:37 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:20:41 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:41 2021
Terminated at Fri Aug 20 10:36:57 2021
Results reported at Fri Aug 20 10:36:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin1247 64.2269 1.088 562550401 562809601 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 :                                   732.47 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             303.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            980 sec.

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

