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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin968
RA = 64.2269, Dec = 1.088
tmin = 490233601, tmax = 490492801
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='349488', job_status='RUN', time_executed='2021-08-20 10:19:24.630339', time_epoch_executed='1629479964.63' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='968'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/349488

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/349488/ft1_4FGL_J0416.9+0105_daily_bin968.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/349488/ft2_4FGL_J0416.9+0105_daily_bin968.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/349488/ft1_4FGL_J0416.9+0105_daily_bin968.fits outfile=/scratch/kocevski/349488/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin968.fits ra=64.2269 dec=1.088 rad=12.0 tmin=490233601.0 tmax=490492801.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 6.22
user 3.45
sys 2.75

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/349488/ft2_4FGL_J0416.9+0105_daily_bin968.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/349488/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin968.fits evtable="EVENTS" outfile="/scratch/kocevski/349488/ft1_filtered_4FGL_J0416.9+0105_daily_bin968.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.94
user 0.34
sys 2.59

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/349488/ft1_filtered_4FGL_J0416.9+0105_daily_bin968.fits evtable="EVENTS" scfile=/scratch/kocevski/349488/ft2_4FGL_J0416.9+0105_daily_bin968.fits sctable="SC_DATA" expcube=/scratch/kocevski/349488/ltcube_490233601_490492801_4FGL_J0416.9+0105_daily_bin968.fits outfile=/scratch/kocevski/349488/expmap_490233601_490492801_4FGL_J0416.9+0105_daily_bin968.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/349488/ltcube_490233601_490492801_4FGL_J0416.9+0105_daily_bin968.fits
.....................!
real 193.26
user 184.57
sys 8.35

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/349488/ft1_filtered_4FGL_J0416.9+0105_daily_bin968.fits scfile=/scratch/kocevski/349488/ft2_4FGL_J0416.9+0105_daily_bin968.fits outfile=/scratch/kocevski/349488/cmap_490233601_490492801_4FGL_J0416.9+0105_daily_bin968.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.92
user 0.37
sys 2.52

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/349488/ft1_filtered_4FGL_J0416.9+0105_daily_bin968.fits scfile=/scratch/kocevski/349488/ft2_4FGL_J0416.9+0105_daily_bin968.fits outfile=/scratch/kocevski/349488/cmap_HighResolution_490233601_490492801_4FGL_J0416.9+0105_daily_bin968.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.00
user 0.37
sys 2.53

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4935       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.969       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15631       1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    43.437       1.0000         .10000E-03   10000.    
     9 'norm      '    24.957       1.0000         .10000E-03   10000.    
    10 'norm      '    .34909       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5926       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8882       1.0000         .10000E-03   10000.    
    15 'norm      '    2.0352       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13904E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.2321       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16807E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.826       1.0000         .10000E-03   10000.    
    20 'norm      '    1.5750       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .85302       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1077       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=   8668.512     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2158 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4937        1.7898        .14990E-07    .23757E-04
   2  Prefactor     13.958        34.894       -.12719E-05   -.34873E-06
   3  Prefactor     .10000E-03    10.403        .20607E-07** at limit **
   4  norm          .10000E-03    16.027       -.60215E-07** at limit **
   5  Prefactor     .13563E-03    32.665       -.30060E-05** at limit **
   6  norm          .10000E-03    4.8701       -.89903E-07** at limit **
   7  Prefactor     .10000E-03    16.535       -.64164E-07** at limit **
   8  norm          43.438        14.691        .61552E-06    .51401E-04
   9  norm          24.969        27.113        .77462E-06    .10594E-03
  10  norm          .34945        .99940        .68160E-07    .20702E-03
  11  Prefactor     1.5932        1.7114       -.50426E-07    .30916E-03
  12  Prefactor     .10000E-03    10.370       -.33571E-07** at limit **
  13  Prefactor     .10000E-03    30.020        .99513E-07** at limit **
  14  Prefactor     2.8889        5.2362        .14892E-05    .13862E-03
  15  norm          2.0345        2.4736        .26092E-07   -.92815E-04
  16  Prefactor     .10000E-03    114.81        .23939E-06** at limit **
  17  norm          1.2323        1.6164        .46086E-07    .30327E-04
  18  Prefactor     .10003E-03    4.3758        .71609E-06** at limit **
  19  Prefactor     16.784        33.491       -.53507E-05   -.62444E-04
  20  norm          1.5750        1.4303        .14117E-07    .31444E-05
  21  Normalizat    .85284        .23420       -.47129E-06    .87270E-05
  22  Prefactor     1.1077        .87547E-01    .57721E-07    .38057E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.49372
  Prefactor  = 13.9584
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000135627
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 43.4382
  norm       = 24.9689
  norm       = 0.349452
  Prefactor  = 1.59325
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.88887
  norm       = 2.03449
  Prefactor  = 0.0001
  norm       = 1.23231
  Prefactor  = 0.000100031
  Prefactor  = 16.7842
  norm       = 1.57504
  Normalizat = 0.852844
  Prefactor  = 1.1077
 **********
 **   18 **HESSE 
 **********

 FCN=   8668.512     FROM HESSE     STATUS=OK           366 CALLS     2524 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4937        1.7904        .74998E-04   -1.5284    
   2  Prefactor     13.958        34.849        .10717E-03   -1.4961    
   3  Prefactor     .10000E-03    10.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    16.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .13563E-03    28.759        .13835       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.0600        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          43.438        14.715        .60828E-04   -1.4389    
   9  norm          24.969        27.015        .80185E-04   -1.4708    
  10  norm          .34945        .95907        .14083E-03   -1.5590    
  11  Prefactor     1.5932        1.6511        .11141E-03   -1.5456    
  12  Prefactor     .10000E-03    10.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.8889        5.2374        .11957E-02   -1.5368    
  15  norm          2.0345        2.4515        .15208E-03   -1.5423    
  16  Prefactor     .10000E-03    116.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.2323        1.5817        .13015E-03   -1.5486    
  18  Prefactor     .10003E-03    5.7754        .56304E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.784        33.828        .97639E-04   -1.4888    
  20  norm          1.5750        1.4254        .10325E-03   -1.5457    
  21  Normalizat    .85284        .25052        .44673E-03   -.98137    
  22  Prefactor     1.1077        .95244E-01    .15900E-03   -.89221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81735e-10
Minuit parameter uncertainties:
  1  1.79044
  2  34.8996
  3  5.12342e-06
  4  6.23053e-06
  5  0.0640487
  6  1.06012e-05
  7  1.35204e-06
  8  14.7165
  9  27.0281
  10  0.959115
  11  1.65111
  12  2.40764e-06
  13  2.77312e-06
  14  5.23819
  15  2.45158
  16  2.86744e-05
  17  1.58175
  18  0.00084708
  19  33.8665
  20  1.42546
  21  0.250857
  22  0.0952587
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.356e-04  6.405e-02  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.108e+00  9.526e-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:  8.528e-01  2.509e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/349488/likelihoodResults_490233601_490492801_4FGL_J0416.9+0105_daily_bin968.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8668.5116615
delta logL = -3.14186945616e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8668.5116615
delta logL = -3.13984310196e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96367E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8761       1.0000          .0000       10.000    
     3 'Normalizat'    .85284       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1077       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=   8668.147     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      279 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4728        40.047        .90712E-02    .12714E-02
   2  Index         3.0997        2.3106        .94434E-01    .28105E-03
   3  Normalizat    .81659        .57580E-01    .10269       -.66619E-05
   4  Prefactor     1.1098        .22775E-01    .37301E-01    .41918E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.47278
  Index      = 3.09973
  Normalizat = 0.816593
  Prefactor  = 1.1098
 **********
 **   18 **HESSE 
 **********

 FCN=   8668.147     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      312 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4728        113.74        .13591E-03   -1.5465    
   2  Index         3.0997        6.5456        .56103E-02   -.38985    
   3  Normalizat    .81659        .21584        .45517E-03   -.99456    
   4  Prefactor     1.1098        .84971E-01    .15876E-03   -.89154    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.73007e-09
Minuit parameter uncertainties:
  1  25.9359
  2  5.73321
  3  0.216066
  4  0.0849811
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/349488': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8668.14746646
delta logL = 0.364191900067

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.473e+00  2.594e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  3.100e+00  5.733e+00  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.110e+00  8.498e-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:  8.166e-01  2.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.15e-03', job_status='DONE', photon_flux_upper_limit='8.29e-08', time_completed='2021-08-20 10:31:40.002793', job_id='349488', GAL2='1.11', fit_tolerance='1e-08', EG2='0.82', EG='0.85', time_epoch_completed='1629480700.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='3.64e-01', ts2='0.75', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='968' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:31:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 349488: <4FGL_J0416.9+0105_daily_bin968> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin968> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 20 10:15:26 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:15:27 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:15:27 2021
Terminated at Fri Aug 20 10:31:41 2021
Results reported at Fri Aug 20 10:31:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin968 64.2269 1.088 490233601 490492801 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 :                                   773.27 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             273.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            975 sec.

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

