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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin468
RA = 64.2269, Dec = 1.088
tmin = 360633601, tmax = 360892801
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='346697', job_status='RUN', time_executed='2021-08-20 10:08:00.926901', time_epoch_executed='1629479280.93' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='468'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/346697

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/346697/ft1_4FGL_J0416.9+0105_daily_bin468.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/346697/ft2_4FGL_J0416.9+0105_daily_bin468.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/346697/ft1_4FGL_J0416.9+0105_daily_bin468.fits outfile=/scratch/kocevski/346697/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin468.fits ra=64.2269 dec=1.088 rad=12.0 tmin=360633601.0 tmax=360892801.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 4.00
user 3.13
sys 0.85

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/346697/ft2_4FGL_J0416.9+0105_daily_bin468.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/346697/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin468.fits evtable="EVENTS" outfile="/scratch/kocevski/346697/ft1_filtered_4FGL_J0416.9+0105_daily_bin468.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 1.14
user 0.33
sys 0.80

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/346697/ft1_filtered_4FGL_J0416.9+0105_daily_bin468.fits evtable="EVENTS" scfile=/scratch/kocevski/346697/ft2_4FGL_J0416.9+0105_daily_bin468.fits sctable="SC_DATA" expcube=/scratch/kocevski/346697/ltcube_360633601_360892801_4FGL_J0416.9+0105_daily_bin468.fits outfile=/scratch/kocevski/346697/expmap_360633601_360892801_4FGL_J0416.9+0105_daily_bin468.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/346697/ltcube_360633601_360892801_4FGL_J0416.9+0105_daily_bin468.fits
.....................!
real 191.92
user 185.07
sys 6.52

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/346697/ft1_filtered_4FGL_J0416.9+0105_daily_bin468.fits scfile=/scratch/kocevski/346697/ft2_4FGL_J0416.9+0105_daily_bin468.fits outfile=/scratch/kocevski/346697/cmap_360633601_360892801_4FGL_J0416.9+0105_daily_bin468.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 1.16
user 0.37
sys 0.78

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/346697/ft1_filtered_4FGL_J0416.9+0105_daily_bin468.fits scfile=/scratch/kocevski/346697/ft2_4FGL_J0416.9+0105_daily_bin468.fits outfile=/scratch/kocevski/346697/cmap_HighResolution_360633601_360892801_4FGL_J0416.9+0105_daily_bin468.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 1.18
user 0.37
sys 0.80

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8617       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.410       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.7892       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .45765       1.0000         .10000E-03   10000.    
     9 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.7999       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .60167E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    58.899       1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.541       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0195       1.0000         .10000E-03   10000.    
    15 'norm      '    .10397E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.6725       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    9.5781       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95420       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0818       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=   8571.219     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2502 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8616        1.3306       -.10936E-06    .67599E-04
   2  Prefactor     .10000E-03    17.341        .25559E-06** at limit **
   3  Prefactor     17.401        18.143       -.28942E-06    .11741E-03
   4  norm          .10000E-03    7.1111       -.50440E-07** at limit **
   5  Prefactor     .10000E-03    12.087       -.51038E-07** at limit **
   6  norm          6.7861        5.3780        .17336E-06    .10441E-03
   7  Prefactor     .10000E-03    9.5432        .21494E-06** at limit **
   8  norm          .48234        28.063       -.26543E-05    .64749E-04
   9  norm          .10000E-03    10.384       -.22619E-07** at limit **
  10  norm          3.8028        1.8788        .13045E-06    .13343E-02
  11  Prefactor     .37909E-01    1.5254       -.87947E-06    .10546E-02
  12  Prefactor     58.926        28.819       -.29788E-06    .48871E-04
  13  Prefactor     22.870        65.776        .34084E-05    .13634E-03
  14  Prefactor     .93935        25.358       -.23505E-05   -.14766E-03
  15  norm          .10000E-03    1.6321       -.17489E-06** at limit **
  16  Prefactor     .10000E-03    13.725       -.59119E-07** at limit **
  17  norm          6.6712        3.1190       -.11604E-07    .22783E-03
  18  Prefactor     .10000E-03    2.8707       -.16341E-06** at limit **
  19  Prefactor     .10000E-03    19.146       -.22319E-06** at limit **
  20  norm          9.5780        3.5242       -.38689E-07    .37485E-04
  21  Normalizat    .95447        .27257        .33798E-05    .65946E-04
  22  Prefactor     1.0817        .92827E-01   -.36832E-06    .26922E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.86164
  Prefactor  = 0.0001
  Prefactor  = 17.4012
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.78606
  Prefactor  = 0.0001
  norm       = 0.482343
  norm       = 0.0001
  norm       = 3.8028
  Prefactor  = 0.0379095
  Prefactor  = 58.9258
  Prefactor  = 22.8698
  Prefactor  = 0.939346
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.67119
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.57804
  Normalizat = 0.95447
  Prefactor  = 1.0817
 **********
 **   18 **HESSE 
 **********

 FCN=   8571.219     FROM HESSE     STATUS=OK           350 CALLS     2852 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8616        1.3246        .86783E-04   -1.5435    
   2  Prefactor     .10000E-03    17.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.401        18.135        .95989E-04   -1.4873    
   4  norm          .10000E-03    7.1147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.7861        5.3799        .15399E-03   -1.5187    
   7  Prefactor     .10000E-03    9.5428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .48234        48.908        .41437E-02   -1.5569    
   9  norm          .10000E-03    10.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.8028        1.9065        .73601E-04   -1.5318    
  11  Prefactor     .37909E-01    48.007        .15763E-02   -1.5669    
  12  Prefactor     58.926        29.586        .52276E-04   -1.4171    
  13  Prefactor     22.870        83.189        .84367E-04   -1.4751    
  14  Prefactor     .93935        62.401        .51551E-02   -1.5514    
  15  norm          .10000E-03    6.0317        .20448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.6712        3.1256        .10375E-03   -1.5191    
  18  Prefactor     .10000E-03    2.8960        .15317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          9.5780        3.5263        .10091E-03   -1.5089    
  21  Normalizat    .95447        .29156        .45181E-03   -.94572    
  22  Prefactor     1.0817        .10166        .16555E-03   -.90054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90138e-08
Minuit parameter uncertainties:
  1  1.32461
  2  1.88656e-05
  3  18.141
  4  1.37856e-07
  5  5.99516e-06
  6  5.38031
  7  1.42269e-05
  8  9.72121
  9  3.36253e-06
  10  1.90657
  11  2.6967
  12  29.5933
  13  83.6154
  14  15.3282
  15  9.70768e-05
  16  1.4619e-05
  17  3.12567
  18  6.88711e-08
  19  6.38803e-05
  20  3.52642
  21  0.292049
  22  0.101674
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  5.995e-06  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.082e+00  1.017e-01  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:  9.545e-01  2.920e-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: 5.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/346697/likelihoodResults_360633601_360892801_4FGL_J0416.9+0105_daily_bin468.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) = 8571.21930463
delta logL = -0.000393735350372

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8571.21891086
delta logL = 4.10764187109e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8600       1.0000          .0000       10.000    
     3 'Normalizat'    .95447       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0817       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=   8571.219     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      250 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10054E-03    91.932        .18142E-02** at limit **
   2  Index         1.8245        5.0373        .50000        .86667E-05
   3  Normalizat    .95447        .17815E-01    .45180E-03    .60391E-06
   4  Prefactor     1.0817        .69592E-02    .16555E-03    .14695E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100539
  Index      = 1.82449
  Normalizat = 0.95447
  Prefactor  = 1.0817
 **********
 **   18 **HESSE 
 **********

 FCN=   8571.219     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10054E-03    429.94        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8245        6.1521        .50000       -.68814    
   3  Normalizat    .95447        .39957E-01    .18072E-04   -.94572    
   4  Prefactor     1.0817        .15606E-01    .66222E-05   -.90054    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.9632e-09
Minuit parameter uncertainties:
  1  0.0306549
  2  580.416
  3  0.0399586
  4  0.0156065
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/346697': 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) = 8571.21891079
delta logL = 1.03429556475e-07

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.005e-04  3.065e-02  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.824e+00  5.804e+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:  1.082e+00  1.561e-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:  9.545e-01  3.996e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/346697/cmap_HighResolution_360633601_360892801_4FGL_J0416.9+0105_daily_bin468.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.23e-03', job_status='DONE', photon_flux_upper_limit='5.70e-08', time_completed='2021-08-20 10:20:10.223714', job_id='346697', GAL2='1.08', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1629480010.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='468' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:20:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 346697: <4FGL_J0416.9+0105_daily_bin468> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin468 64.2269 1.088 360633601 360892801 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 :                                   738.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             317.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            879 sec.

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

