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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin699
RA = 64.2269, Dec = 1.088
tmin = 420508801, tmax = 420768001
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='348101', job_status='RUN', time_executed='2021-08-20 10:13:00.859659', time_epoch_executed='1629479580.86' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='699'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348101

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348101/ft1_4FGL_J0416.9+0105_daily_bin699.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348101/ft2_4FGL_J0416.9+0105_daily_bin699.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348101/ft1_4FGL_J0416.9+0105_daily_bin699.fits outfile=/scratch/kocevski/348101/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin699.fits ra=64.2269 dec=1.088 rad=12.0 tmin=420508801.0 tmax=420768001.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.80
user 3.19
sys 3.55

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/348101/ft1_filtered_4FGL_J0416.9+0105_daily_bin699.fits" evtable="EVENTS" scfile=/scratch/kocevski/348101/ft2_4FGL_J0416.9+0105_daily_bin699.fits sctable="SC_DATA" outfile=/scratch/kocevski/348101/ltcube_420508801_420768001_4FGL_J0416.9+0105_daily_bin699.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/348101/ft2_4FGL_J0416.9+0105_daily_bin699.fits
.....................!
real 17.02
user 12.89
sys 4.07

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348101/ft1_filtered_4FGL_J0416.9+0105_daily_bin699.fits evtable="EVENTS" scfile=/scratch/kocevski/348101/ft2_4FGL_J0416.9+0105_daily_bin699.fits sctable="SC_DATA" expcube=/scratch/kocevski/348101/ltcube_420508801_420768001_4FGL_J0416.9+0105_daily_bin699.fits outfile=/scratch/kocevski/348101/expmap_420508801_420768001_4FGL_J0416.9+0105_daily_bin699.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/348101/ltcube_420508801_420768001_4FGL_J0416.9+0105_daily_bin699.fits
.....................!
real 196.20
user 186.16
sys 9.31

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/348101/ft1_filtered_4FGL_J0416.9+0105_daily_bin699.fits scfile=/scratch/kocevski/348101/ft2_4FGL_J0416.9+0105_daily_bin699.fits outfile=/scratch/kocevski/348101/cmap_420508801_420768001_4FGL_J0416.9+0105_daily_bin699.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 3.84
user 0.38
sys 3.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/348101/ft1_filtered_4FGL_J0416.9+0105_daily_bin699.fits scfile=/scratch/kocevski/348101/ft2_4FGL_J0416.9+0105_daily_bin699.fits outfile=/scratch/kocevski/348101/cmap_HighResolution_420508801_420768001_4FGL_J0416.9+0105_daily_bin699.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.82
user 0.39
sys 3.41

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8872       1.0000         .10000E-03   10000.    
     2 'Prefactor '    84.757       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.6424       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19549E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.0069       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12019E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.3143       1.0000         .10000E-03   10000.    
     9 'norm      '    1.4508       1.0000         .10000E-03   10000.    
    10 'norm      '    .11026E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12877E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.556       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10741E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    2.6968       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.1636       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17004E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.819       1.0000         .10000E-03   10000.    
    20 'norm      '    10.765       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4391       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89553       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=   8000.600     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2517 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8865        1.9215       -.95535E-07   -.34148E-03
   2  Prefactor     84.722        57.041       -.26871E-06    .30470E-04
   3  Prefactor     .10000E-03    10.372        .69275E-06** at limit **
   4  norm          1.6415        32.067       -.21674E-05   -.56942E-04
   5  Prefactor     .10001E-03    196.43        .53753E-05** at limit **
   6  norm          6.0042        5.4680       -.47008E-06   -.52469E-03
   7  Prefactor     .10000E-03    88.972        .11128E-05** at limit **
   8  norm          8.3119        9.8262       -.63387E-06   -.57256E-04
   9  norm          1.4414        68.652       -.84591E-06   -.87528E-04
  10  norm          .10000E-03    1.1385        .76056E-06** at limit **
  11  Prefactor     .10000E-03    1.6666        .75624E-06** at limit **
  12  Prefactor     20.566        27.934       -.10777E-05   -.18588E-03
  13  Prefactor     .10000E-03    38.891        .24730E-06** at limit **
  14  Prefactor     .10022E-03    37.658        .59675E-06** at limit **
  15  norm          2.6969        2.6670        .19768E-07   -.15726E-03
  16  Prefactor     .10000E-03    10.581        .16464E-07** at limit **
  17  norm          6.1628        2.7165       -.92341E-07   -.42189E-03
  18  Prefactor     .10009E-03    55.232       -.22394E-05** at limit **
  19  Prefactor     12.848        33.480        .24805E-06    .24856E-04
  20  norm          10.764        3.6450       -.48338E-08   -.76389E-04
  21  Normalizat    1.4392        .25054       -.15557E-05   -.23237E-03
  22  Prefactor     .89557        .87612E-01    .35522E-06   -.39462E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.88651
  Prefactor  = 84.7218
  Prefactor  = 0.0001
  norm       = 1.64152
  Prefactor  = 0.000100006
  norm       = 6.00418
  Prefactor  = 0.0001
  norm       = 8.31188
  norm       = 1.44143
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 20.566
  Prefactor  = 0.0001
  Prefactor  = 0.00010022
  norm       = 2.69685
  Prefactor  = 0.0001
  norm       = 6.1628
  Prefactor  = 0.000100086
  Prefactor  = 12.8484
  norm       = 10.764
  Normalizat = 1.43922
  Prefactor  = 0.895569
 **********
 **   18 **HESSE 
 **********

 FCN=   8000.600     FROM HESSE     STATUS=OK           362 CALLS     2879 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8865        1.9255        .11845E-03   -1.5433    
   2  Prefactor     84.722        57.218        .43634E-04   -1.3864    
   3  Prefactor     .10000E-03    10.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.6415        32.560        .32966E-03   -1.5452    
   5  Prefactor     .10001E-03    202.14        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.0042        5.5273        .16383E-03   -1.5218    
   7  Prefactor     .10000E-03    90.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.3119        9.8341        .13903E-03   -1.5131    
   9  norm          1.4414        66.831        .35768E-03   -1.5468    
  10  norm          .10000E-03    1.8547        .16064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.9463        .19845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.566        27.738        .44170E-03   -1.4801    
  13  Prefactor     .10000E-03    38.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10022E-03    96.177        .52488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.6969        2.6380        .12605E-03   -1.5380    
  16  Prefactor     .10000E-03    10.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.1628        2.7257        .93816E-04   -1.5211    
  18  Prefactor     .10009E-03    6.9283        .58215E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.848        33.545        .11188E-03   -1.4991    
  20  norm          10.764        3.6503        .95675E-04   -1.5052    
  21  Normalizat    1.4392        .28128        .37584E-03   -.79501    
  22  Prefactor     .89557        .98113E-01    .17302E-03   -.96296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.381e-09
Minuit parameter uncertainties:
  1  1.92558
  2  57.2554
  3  5.34285e-05
  4  14.6303
  5  0.00211894
  6  5.5278
  7  0.000164514
  8  9.83603
  9  19.6524
  10  4.99324e-05
  11  0.000116833
  12  27.7552
  13  6.29714e-05
  14  0.00920528
  15  2.63806
  16  1.31192e-06
  17  2.72574
  18  0.00153999
  19  33.5941
  20  3.65037
  21  0.281584
  22  0.0981322
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  2.119e-03  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:  8.956e-01  9.813e-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.439e+00  2.816e-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.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/348101/likelihoodResults_420508801_420768001_4FGL_J0416.9+0105_daily_bin699.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) = 8000.59997978
delta logL = -2.33012169701e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7999.6509966
delta logL = 0.948959884929

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29700E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    5.8839       1.0000          .0000       10.000    
     3 'Normalizat'    1.3306       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91760       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=   7999.651     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      416 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29353E-03    .49910E-02    .26984E-03** at limit **
   2  Index         5.8877        1.5552        .69387E-01    .33684E-03
   3  Normalizat    1.3303        .60465E-01    .87647E-01    .15521E-04
   4  Prefactor     .91768        .22727E-01    .45229E-01   -.31650E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000293528
  Index      = 5.88771
  Normalizat = 1.33032
  Prefactor  = 0.91768
 **********
 **   18 **HESSE 
 **********

 FCN=   7999.651     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      447 TOTAL
                     EDM=   .88E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29353E-03    .14781E-01    .14932E-05   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.8877        3.0847        .33988E-02    .17849    
   3  Normalizat    1.3303        .22652        .38810E-03   -.82666    
   4  Prefactor     .91768        .83491E-01    .17112E-03   -.95526    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.76333e-07
Minuit parameter uncertainties:
  1  0.00338266
  2  3.33395
  3  0.226694
  4  0.0835029
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348101': 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) = 7999.65099427
delta logL = 0.948962213219

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  2.935e-04  3.383e-03  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  5.888e+00  3.334e+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:  9.177e-01  8.350e-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.330e+00  2.267e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.04
Ra Dec: 64.227 1.088
Photon Index (Free Index): 5.89 +/- 3.33
Photon Flux (Free Index): 1.09e-07 +/- 8.62e-08
Energy Flux (Free Index): 1.36e-05 +/- 1.14e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.33e-03', comment='SUCCESS', energy_flux2='1.36e-05', dlogl='9.49e-01', photon_flux2='1.09e-07', job_status='DONE', time_completed='2021-08-20 10:25:55.405317', photon_index_error2='3.33', photon_index2='5.89', ts='-0.00', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='8.53e-08', energy_flux_error2='1.14e-05', EG='1.44', time_epoch_completed='1629480355.41', return_code='0', job_id='348101', GAL2='0.92', EG2='1.33', return_code2='102', photon_flux_error2='8.62e-08', ts2='2.04', photon_index='1.88' WHERE bin_id='699' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:25:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 348101: <4FGL_J0416.9+0105_daily_bin699> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin699> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Aug 20 10:10:36 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:10:38 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:10:38 2021
Terminated at Fri Aug 20 10:25:56 2021
Results reported at Fri Aug 20 10:25:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin699 64.2269 1.088 420508801 420768001 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 :                                   825.02 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             304.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            920 sec.

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

