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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin1177
RA = 64.2269, Dec = 1.088
tmin = 544406401, tmax = 544665601
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='350880', job_status='RUN', time_executed='2021-08-20 10:24:49.326739', time_epoch_executed='1629480289.33' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='1177'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/350880

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

Retrieving the FT1 file...

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

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

Retrieving 36 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/350880/ft1_4FGL_J0416.9+0105_daily_bin1177.fits


Retrieving the FT1 file...

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

Retrieving 36 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/350880/ft2_4FGL_J0416.9+0105_daily_bin1177.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/350880/ft1_4FGL_J0416.9+0105_daily_bin1177.fits outfile=/scratch/kocevski/350880/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1177.fits ra=64.2269 dec=1.088 rad=12.0 tmin=544406401.0 tmax=544665601.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 9.37
user 7.35
sys 1.97

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/350880/ft2_4FGL_J0416.9+0105_daily_bin1177.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/350880/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1177.fits evtable="EVENTS" outfile="/scratch/kocevski/350880/ft1_filtered_4FGL_J0416.9+0105_daily_bin1177.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.37
user 0.31
sys 2.05

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/350880/ft1_filtered_4FGL_J0416.9+0105_daily_bin1177.fits" evtable="EVENTS" scfile=/scratch/kocevski/350880/ft2_4FGL_J0416.9+0105_daily_bin1177.fits sctable="SC_DATA" outfile=/scratch/kocevski/350880/ltcube_544406401_544665601_4FGL_J0416.9+0105_daily_bin1177.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/350880/ft2_4FGL_J0416.9+0105_daily_bin1177.fits
.....................!
real 9.58
user 7.31
sys 2.24

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/350880/ft1_filtered_4FGL_J0416.9+0105_daily_bin1177.fits evtable="EVENTS" scfile=/scratch/kocevski/350880/ft2_4FGL_J0416.9+0105_daily_bin1177.fits sctable="SC_DATA" expcube=/scratch/kocevski/350880/ltcube_544406401_544665601_4FGL_J0416.9+0105_daily_bin1177.fits outfile=/scratch/kocevski/350880/expmap_544406401_544665601_4FGL_J0416.9+0105_daily_bin1177.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/350880/ltcube_544406401_544665601_4FGL_J0416.9+0105_daily_bin1177.fits
.....................!
real 193.46
user 185.50
sys 7.53

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/350880/ft1_filtered_4FGL_J0416.9+0105_daily_bin1177.fits scfile=/scratch/kocevski/350880/ft2_4FGL_J0416.9+0105_daily_bin1177.fits outfile=/scratch/kocevski/350880/cmap_544406401_544665601_4FGL_J0416.9+0105_daily_bin1177.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.51
user 0.35
sys 2.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/350880/ft1_filtered_4FGL_J0416.9+0105_daily_bin1177.fits scfile=/scratch/kocevski/350880/ft2_4FGL_J0416.9+0105_daily_bin1177.fits outfile=/scratch/kocevski/350880/cmap_HighResolution_544406401_544665601_4FGL_J0416.9+0105_daily_bin1177.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=64.2269 yref=1.088 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 2.42
user 0.36
sys 2.04

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/350880/ft1_filtered_4FGL_J0416.9+0105_daily_bin1177.fits', '/scratch/kocevski/350880/ft2_4FGL_J0416.9+0105_daily_bin1177.fits', expMap='/scratch/kocevski/350880/expmap_544406401_544665601_4FGL_J0416.9+0105_daily_bin1177.fits', expCube='/scratch/kocevski/350880/ltcube_544406401_544665601_4FGL_J0416.9+0105_daily_bin1177.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/350880/Model_4FGL_J0416.9+0105_daily_bin1177.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/350880/ft1_filtered_4FGL_J0416.9+0105_daily_bin1177.fits
Spacecraft file(s): /scratch/kocevski/350880/ft2_4FGL_J0416.9+0105_daily_bin1177.fits
Exposure map: /scratch/kocevski/350880/expmap_544406401_544665601_4FGL_J0416.9+0105_daily_bin1177.fits
Exposure cube: /scratch/kocevski/350880/ltcube_544406401_544665601_4FGL_J0416.9+0105_daily_bin1177.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/350880/Model_4FGL_J0416.9+0105_daily_bin1177.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 146.25199132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 145.200820662

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .73126       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.9243       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.4988       1.0000         .10000E-03   10000.    
     4 'norm      '    99.308       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5142       1.0000         .10000E-03   10000.    
     6 'norm      '    .34378E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7350       1.0000         .10000E-03   10000.    
     8 'norm      '    .28089       1.0000         .10000E-03   10000.    
     9 'norm      '    2.2247       1.0000         .10000E-03   10000.    
    10 'norm      '    .10916E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.9952       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4156       1.0000         .10000E-03   10000.    
    14 'Prefactor '    80.805       1.0000         .10000E-03   10000.    
    15 'norm      '    1.7795       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.7251       1.0000         .10000E-03   10000.    
    17 'norm      '    17.556       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1630       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.4501       1.0000         .10000E-03   10000.    
    20 'norm      '    .19694E-01   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .68293       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .67094       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   145.1870     FROM MIGRAD    STATUS=CONVERGED    190 CALLS      353 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .88018        70.070        .20408E-04   -.42344E-04
   2  Prefactor     4.3399        302.81        .42524E-04    .64393E-02
   3  Prefactor     5.4988        1.0042         .0000         .0000    
   4  norm          103.66        176.04        .53025E-05   -.55799E-02
   5  Prefactor     .10000E-03    326.69        .39851E-06** at limit **
   6  norm          .10000E-03    50.982       -.15325E-05** at limit **
   7  Prefactor     2.7350        1.0178         .0000         .0000    
   8  norm          .10000E-03    30.186        .43009E-05** at limit **
   9  norm          .10000E-03    417.12       -.24847E-05** at limit **
  10  norm          .10000E-03    6.9160        .14651E-05** at limit **
  11  Prefactor     .10000E-03    17.652        .82347E-06** at limit **
  12  Prefactor     .10488E-01    6161.9        .11462E-03   -.19889E-02
  13  Prefactor     .10000E-03    512.83        .19882E-04** at limit **
  14  Prefactor     81.790        114.04       -.84337E-05    .20986E-02
  15  norm          1.7795        1.0462         .0000         .0000    
  16  Prefactor     7.7251        1.0021         .0000         .0000    
  17  norm          17.650        47.221       -.70297E-06   -.20336E-02
  18  Prefactor     1.1630        1.1507         .0000         .0000    
  19  Prefactor     6.4501        1.0030         .0000         .0000    
  20  norm          .10000E-03    21.131        .97776E-06** at limit **
  21  Normalizat    .68057        1.3238        .19685E-04   -.18878E-05
  22  Prefactor     .66600        .80937        .29973E-05   -.91490E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.880182
  Prefactor  = 4.33987
  Prefactor  = 5.4988
  norm       = 103.66
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.73503
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0104878
  Prefactor  = 0.000100005
  Prefactor  = 81.7899
  norm       = 1.77953
  Prefactor  = 7.72515
  norm       = 17.6497
  Prefactor  = 1.16299
  Prefactor  = 6.45012
  norm       = 0.0001
  Normalizat = 0.680565
  Prefactor  = 0.666003
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   145.1870     FROM HESSE     STATUS=FAILED        19 CALLS      372 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .88018        35.899        .12181E-01   -1.5520    
   2  Prefactor     4.3399        9504.9        .35609E-02   -1.5291    
   3  Prefactor     526.63        521.09         .0000       -1.5239    
   4  norm          103.66        1.0215        .53025E-05   -1.3668    
   5  Prefactor     .10000E-03    .18864        .39851E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .21130       -.15325E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.7350        1.0178         .0000       -1.5377    
   8  norm          .10000E-03    .26733        .43009E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .11874       -.24847E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .20571        .14651E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .20571        .82347E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10488E-01    .36131E-01    .11462E-03   -1.5728    
  13  Prefactor     .10000E-03    .20687        .19882E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     81.790        1.0060       -.84337E-05   -1.3897    
  15  norm          1.7795        1.0462         .0000       -1.5441    
  16  Prefactor     7.7251        1.0021         .0000       -1.5152    
  17  norm          17.650        1.0031       -.70297E-06   -1.4867    
  18  Prefactor     1.1630        1.1507         .0000       -1.5492    
  19  Prefactor     6.4501        1.0030         .0000       -1.5200    
  20  norm          .10000E-03    .20798        .97776E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .68057        1.0208        .19685E-04   -1.0467    
  22  Prefactor     .66600        1.0170        .29973E-05   -1.0487    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.45707e-10
Minuit parameter uncertainties:
  1  11.2489
  2  529.959
  3  1.00419
  4  1.02146
  5  1.27723e-05
  6  2.87614e-06
  7  1.01777
  8  1.378e-06
  9  1.27785e-05
  10  5.33061e-07
  11  4.77526e-07
  12  0.0361307
  13  6.35154e-05
  14  1.00605
  15  1.04623
  16  1.00211
  17  1.00306
  18  1.1507
  19  1.00304
  20  8.39038e-09
  21  1.05149
  22  1.04751
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 145.187041843

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  1.277e-05  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:  6.660e-01  1.048e+00  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:  6.806e-01  1.051e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 64.227 1.088
Photon Flux Upper Limit: 2.00e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.48e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/350880/likelihoodResults_544406401_544665601_4FGL_J0416.9+0105_daily_bin1177.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) = 145.187054687
delta logL = -1.28435387126e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 145.187053281
delta logL = -1.14375810085e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .76990E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8716       1.0000          .0000       10.000    
     3 'Normalizat'    .68041       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66607       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=   145.1870     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      200 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    381.86        .92712E-02** at limit **
   2  Index         1.8405        5.9150        .50000        .88596E-06
   3  Normalizat    .68057        .34749E-01    .78618E-01    .52281E-05
   4  Prefactor     .66600        .17791E-01    .41948E-01   -.24607E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.84045
  Normalizat = 0.680567
  Prefactor  = 0.666003
 **********
 **   18 **HESSE 
 **********

 FCN=   145.1870     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      231 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1803.8        .18542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8405        5.2525        .50000       -.68402    
   3  Normalizat    .68057        .77618E-01    .34815E-03   -1.0467    
   4  Prefactor     .66600        .39830E-01    .17871E-03   -1.0487    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.08456e-08
Minuit parameter uncertainties:
  1  0.00110546
  2  877.089
  3  0.0776301
  4  0.0398322
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/350880': 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) = 145.187041835
delta logL = 8.4342275386e-09

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  1.105e-03  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.840e+00  8.771e+02  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:  6.660e-01  3.983e-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:  6.806e-01  7.763e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/350880/cmap_HighResolution_544406401_544665601_4FGL_J0416.9+0105_daily_bin1177.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.48e-01', job_status='DONE', photon_flux_upper_limit='2.00e-06', time_completed='2021-08-20 10:30:39.604903', job_id='350880', GAL2='0.67', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1629480639.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.67', dlogl='8.43e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='1177' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:30:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 350880: <4FGL_J0416.9+0105_daily_bin1177> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin1177 64.2269 1.088 544406401 544665601 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 :                                   375.44 sec.
    Max Memory :                                 1254 MB
    Average Memory :                             341.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   610 sec.
    Turnaround time :                            611 sec.

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

