/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 2 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 = 7484
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0416.9+0105_daily_bin129
RA = 64.2269, Dec = 1.088
tmin = 272764801, tmax = 273024001
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='345179', job_status='RUN', time_executed='2021-08-20 10:00:45.154272', time_epoch_executed='1629478845.15' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='129'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/345179

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/345179/ft1_4FGL_J0416.9+0105_daily_bin129.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/345179/ft2_4FGL_J0416.9+0105_daily_bin129.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/345179/ft1_4FGL_J0416.9+0105_daily_bin129.fits outfile=/scratch/kocevski/345179/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin129.fits ra=64.2269 dec=1.088 rad=12.0 tmin=272764801.0 tmax=273024001.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 2.08
user 1.57
sys 0.49

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/345179/ft1_filtered_4FGL_J0416.9+0105_daily_bin129.fits" evtable="EVENTS" scfile=/scratch/kocevski/345179/ft2_4FGL_J0416.9+0105_daily_bin129.fits sctable="SC_DATA" outfile=/scratch/kocevski/345179/ltcube_272764801_273024001_4FGL_J0416.9+0105_daily_bin129.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/345179/ft2_4FGL_J0416.9+0105_daily_bin129.fits
.....................!
real 12.66
user 11.97
sys 0.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/345179/ft1_filtered_4FGL_J0416.9+0105_daily_bin129.fits evtable="EVENTS" scfile=/scratch/kocevski/345179/ft2_4FGL_J0416.9+0105_daily_bin129.fits sctable="SC_DATA" expcube=/scratch/kocevski/345179/ltcube_272764801_273024001_4FGL_J0416.9+0105_daily_bin129.fits outfile=/scratch/kocevski/345179/expmap_272764801_273024001_4FGL_J0416.9+0105_daily_bin129.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/345179/ltcube_272764801_273024001_4FGL_J0416.9+0105_daily_bin129.fits
.....................!
real 191.33
user 185.23
sys 5.78

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 140 point sources and 0 extended sources

Setting source of interest to:
4FGL J0416.9+0105 @ 64.2269 1.088

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/345179/ft1_filtered_4FGL_J0416.9+0105_daily_bin129.fits scfile=/scratch/kocevski/345179/ft2_4FGL_J0416.9+0105_daily_bin129.fits outfile=/scratch/kocevski/345179/cmap_272764801_273024001_4FGL_J0416.9+0105_daily_bin129.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.35
sys 0.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/345179/ft1_filtered_4FGL_J0416.9+0105_daily_bin129.fits scfile=/scratch/kocevski/345179/ft2_4FGL_J0416.9+0105_daily_bin129.fits outfile=/scratch/kocevski/345179/cmap_HighResolution_272764801_273024001_4FGL_J0416.9+0105_daily_bin129.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.45

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .41998       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6203       1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.679       1.0000         .10000E-03   10000.    
     4 'norm      '    .10250E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .68853       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    39.057       1.0000         .10000E-03   10000.    
    10 'norm      '    4.1421       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .64035       1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.691       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11584E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6764       1.0000         .10000E-03   10000.    
    15 'norm      '    .80852E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .32543       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.2026       1.0000         .10000E-03   10000.    
    20 'norm      '    2.3806       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3531       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95742       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=   12089.13     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     3060 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .42026        .95178        .39303E-06   -.10401E-02
   2  Prefactor     1.6241        164.70        .71380E-05    .54053E-05
   3  Prefactor     28.678        15.076        .10460E-06   -.84203E-04
   4  norm          .10000E-03    6.4718       -.20946E-06** at limit **
   5  Prefactor     .10000E-03    5.8091       -.93841E-07** at limit **
   6  norm          .68884        2.4386        .11957E-05   -.75794E-03
   7  Prefactor     .10000E-03    26.363       -.13800E-05** at limit **
   8  norm          .10000E-03    6.1486        .29945E-06** at limit **
   9  norm          39.047        29.514       -.21606E-05   -.54637E-03
  10  norm          4.1415        1.2610       -.10124E-06   -.11364E-02
  11  Prefactor     .64181        1.7639        .94293E-06   -.71605E-03
  12  Prefactor     23.671        20.238       -.26273E-05   -.95287E-03
  13  Prefactor     .10000E-03    34.209        .15973E-05** at limit **
  14  Prefactor     2.6779        6.3937       -.12870E-07   -.23094E-03
  15  norm          .82507E-01    .91268        .62375E-06   -.94444E-03
  16  Prefactor     .10000E-03    15.312        .14249E-06** at limit **
  17  norm          .32469        1.3186        .10618E-05   -.13531E-02
  18  Prefactor     .10000E-03    2.9806       -.20751E-09** at limit **
  19  Prefactor     4.2029        12.510        .18640E-06   -.37213E-04
  20  norm          2.3807        1.7516       -.55605E-09   -.21337E-03
  21  Normalizat    1.3530        .19116       -.16822E-06   -.41725E-03
  22  Prefactor     .95743        .71599E-01   -.59954E-07   -.70894E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.420258
  Prefactor  = 1.62409
  Prefactor  = 28.6778
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.688844
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 39.0473
  norm       = 4.14145
  Prefactor  = 0.64181
  Prefactor  = 23.6709
  Prefactor  = 0.0001
  Prefactor  = 2.67794
  norm       = 0.0825075
  Prefactor  = 0.0001
  norm       = 0.324694
  Prefactor  = 0.0001
  Prefactor  = 4.20286
  norm       = 2.38073
  Normalizat = 1.35298
  Prefactor  = 0.957425
 **********
 **   18 **HESSE 
 **********

 FCN=   12089.13     FROM HESSE     STATUS=OK           348 CALLS     3408 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .42026        .96526        .15759E-03   -1.5578    
   2  Prefactor     1.6241        164.95        .33249E-03   -1.5453    
   3  Prefactor     28.678        15.023        .74812E-04   -1.4636    
   4  norm          .10000E-03    6.4794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.8093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .68884        2.4955        .32379E-03   -1.5542    
   7  Prefactor     .10000E-03    26.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.1961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          39.047        29.000        .64135E-04   -1.4457    
  10  norm          4.1415        1.2483        .61844E-04   -1.5301    
  11  Prefactor     .64181        1.7083        .20095E-03   -1.5548    
  12  Prefactor     23.671        22.351        .82297E-04   -1.4735    
  13  Prefactor     .10000E-03    34.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.6779        6.3915        .24909E-03   -1.5381    
  15  norm          .82507E-01    11.974        .18192E-02   -1.5651    
  16  Prefactor     .10000E-03    15.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .32469        1.5076        .25273E-02   -1.5594    
  18  Prefactor     .10000E-03    3.0276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.2029        12.498        .19658E-03   -1.5298    
  20  norm          2.3807        1.7489        .12087E-03   -1.5399    
  21  Normalizat    1.3530        .21455        .37556E-03   -.81998    
  22  Prefactor     .95743        .80838E-01    .17040E-03   -.94162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10374e-09
Minuit parameter uncertainties:
  1  0.965293
  2  32.8272
  3  15.0248
  4  1.47615e-05
  5  9.68052e-07
  6  2.4959
  7  8.55561e-05
  8  1.03365e-05
  9  29.01
  10  1.24832
  11  1.70847
  12  22.359
  13  0.000237799
  14  6.39315
  15  1.98711
  16  1.60678e-05
  17  1.39914
  18  1.54939e-06
  19  12.5055
  20  1.74892
  21  0.214693
  22  0.0808486
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  9.681e-07  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.574e-01  8.085e-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:  1.353e+00  2.147e-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: 3.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/345179/likelihoodResults_272764801_273024001_4FGL_J0416.9+0105_daily_bin129.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) = 12089.1335161
delta logL = -0.000815730021714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12089.1327001
delta logL = 2.48903234024e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8487       1.0000          .0000       10.000    
     3 'Normalizat'    1.3530       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95743       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=   12089.13     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      244 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10119E-03    40.660        .18142E-02** at limit **
   2  Index         1.7987        5.5489        .50000        .29904E-04
   3  Normalizat    1.3530        .13609E-01    .37556E-03    .56062E-04
   4  Prefactor     .95742        .53400E-02    .17040E-03    .16413E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101194
  Index      = 1.79866
  Normalizat = 1.35298
  Prefactor  = 0.957425
 **********
 **   18 **HESSE 
 **********

 FCN=   12089.13     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10119E-03    181.43        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7987        5.8192        .50000       -.69485    
   3  Normalizat    1.3530        .29531E-01    .15023E-04   -.81998    
   4  Prefactor     .95742        .11587E-01    .68159E-05   -.94162    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.92326e-08
Minuit parameter uncertainties:
  1  0.0295315
  2  318.058
  3  0.0295318
  4  0.0115872
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/345179': 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) = 12089.1326998
delta logL = 5.65240043215e-07

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.012e-04  2.953e-02  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.799e+00  3.181e+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:  9.574e-01  1.159e-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:  1.353e+00  2.953e-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/345179/cmap_HighResolution_272764801_273024001_4FGL_J0416.9+0105_daily_bin129.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.49e-03', job_status='DONE', photon_flux_upper_limit='3.36e-08', time_completed='2021-08-20 10:16:39.075102', job_id='345179', GAL2='0.96', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1629479799.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='5.65e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='129' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:16:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 345179: <4FGL_J0416.9+0105_daily_bin129> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin129> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 20 10:00:28 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:00: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:00:30 2021
Terminated at Fri Aug 20 10:16:39 2021
Results reported at Fri Aug 20 10:16:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin129 64.2269 1.088 272764801 273024001 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 :                                   957.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             344.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            971 sec.

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

