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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin1510
RA = 64.2269, Dec = 1.088
tmin = 630720001, tmax = 630979201
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='352381', job_status='RUN', time_executed='2021-08-20 10:30:01.485510', time_epoch_executed='1629480601.49' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='1510'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/352381

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/352381/ft1_4FGL_J0416.9+0105_daily_bin1510.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/352381/ft2_4FGL_J0416.9+0105_daily_bin1510.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/352381/ft1_4FGL_J0416.9+0105_daily_bin1510.fits outfile=/scratch/kocevski/352381/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1510.fits ra=64.2269 dec=1.088 rad=12.0 tmin=630720001.0 tmax=630979201.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 10.30
user 2.66
sys 7.36

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/352381/ft2_4FGL_J0416.9+0105_daily_bin1510.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/352381/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1510.fits evtable="EVENTS" outfile="/scratch/kocevski/352381/ft1_filtered_4FGL_J0416.9+0105_daily_bin1510.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 8.48
user 0.32
sys 7.35

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/352381/ft1_filtered_4FGL_J0416.9+0105_daily_bin1510.fits" evtable="EVENTS" scfile=/scratch/kocevski/352381/ft2_4FGL_J0416.9+0105_daily_bin1510.fits sctable="SC_DATA" outfile=/scratch/kocevski/352381/ltcube_630720001_630979201_4FGL_J0416.9+0105_daily_bin1510.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/352381/ft2_4FGL_J0416.9+0105_daily_bin1510.fits
.....................!
real 21.76
user 12.79
sys 8.85

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/352381/ft1_filtered_4FGL_J0416.9+0105_daily_bin1510.fits evtable="EVENTS" scfile=/scratch/kocevski/352381/ft2_4FGL_J0416.9+0105_daily_bin1510.fits sctable="SC_DATA" expcube=/scratch/kocevski/352381/ltcube_630720001_630979201_4FGL_J0416.9+0105_daily_bin1510.fits outfile=/scratch/kocevski/352381/expmap_630720001_630979201_4FGL_J0416.9+0105_daily_bin1510.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/352381/ltcube_630720001_630979201_4FGL_J0416.9+0105_daily_bin1510.fits
.....................!
real 202.67
user 187.57
sys 14.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/352381/ft1_filtered_4FGL_J0416.9+0105_daily_bin1510.fits scfile=/scratch/kocevski/352381/ft2_4FGL_J0416.9+0105_daily_bin1510.fits outfile=/scratch/kocevski/352381/cmap_630720001_630979201_4FGL_J0416.9+0105_daily_bin1510.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 7.75
user 0.37
sys 7.27

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/352381/ft1_filtered_4FGL_J0416.9+0105_daily_bin1510.fits scfile=/scratch/kocevski/352381/ft2_4FGL_J0416.9+0105_daily_bin1510.fits outfile=/scratch/kocevski/352381/cmap_HighResolution_630720001_630979201_4FGL_J0416.9+0105_daily_bin1510.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 7.79
user 0.38
sys 7.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10631E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2557       1.0000         .10000E-03   10000.    
     4 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.7845       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.933       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .11123E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .49677       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.0765       1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.817       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4159       1.0000         .10000E-03   10000.    
    15 'norm      '    7.3830       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11022E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1511       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90636       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=   4313.502     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2411 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .88377        .20501E-06** at limit **
   2  Prefactor     .10000E-03    89.518        .29373E-06** at limit **
   3  Prefactor     6.2278        65.446       -.23862E-05    .32653E-05
   4  norm          .10000E-03    19.142        .24125E-06** at limit **
   5  Prefactor     .10000E-03    20.973       -.12216E-06** at limit **
   6  norm          5.7845        5.6172       -.29621E-06   -.20135E-03
   7  Prefactor     18.794        74.154       -.15425E-05   -.11075E-03
   8  norm          .10000E-03    12.251        .32133E-06** at limit **
   9  norm          .10000E-03    16.920       -.20726E-06** at limit **
  10  norm          .10000E-03    1.4026        .56132E-06** at limit **
  11  Prefactor     .50269        4.4699        .56052E-05   -.10638E-03
  12  Prefactor     4.0712        279.52       -.64322E-05   -.78671E-06
  13  Prefactor     26.837        99.865       -.27041E-04   -.98533E-04
  14  Prefactor     6.4182        10.760        .26775E-05   -.56524E-03
  15  norm          7.3755        10.968        .42225E-06   -.84863E-05
  16  Prefactor     .10000E-03    54.766       -.53842E-06** at limit **
  17  norm          .10000E-03    1.4451        .25886E-06** at limit **
  18  Prefactor     .10000E-03    8.2391       -.75753E-07** at limit **
  19  Prefactor     .10000E-03    112.47       -.15588E-06** at limit **
  20  norm          .10000E-03    3.4548        .21881E-06** at limit **
  21  Normalizat    1.1506        .28484       -.35068E-05   -.15996E-04
  22  Prefactor     .90654        .11574        .10261E-05   -.51264E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 6.22785
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.78449
  Prefactor  = 18.794
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.502687
  Prefactor  = 4.07121
  Prefactor  = 26.8366
  Prefactor  = 6.41816
  norm       = 7.37553
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.15056
  Prefactor  = 0.906544
 **********
 **   18 **HESSE 
 **********

 FCN=   4313.502     FROM HESSE     STATUS=OK           338 CALLS     2749 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.9005        .11706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    89.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.2278        64.819        .16049E-03   -1.5209    
   4  norm          .10000E-03    19.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.7845        5.5892        .14697E-03   -1.5227    
   7  Prefactor     18.794        73.768        .92048E-04   -1.4841    
   8  norm          .10000E-03    12.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    16.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.7153        .13807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .50269        4.3260        .21071E-03   -1.5566    
  12  Prefactor     4.0712        255.66        .19969E-03   -1.5304    
  13  Prefactor     26.837        100.57        .77360E-04   -1.4671    
  14  Prefactor     6.4182        10.597        .79227E-03   -1.5201    
  15  norm          7.3755        10.537        .14761E-03   -1.5165    
  16  Prefactor     .10000E-03    54.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.4548        .77127E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.2418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    112.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.5550        .23838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1506        .31369        .36219E-03   -.88145    
  22  Prefactor     .90654        .13000        .16496E-03   -.95913    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08562e-09
Minuit parameter uncertainties:
  1  0.000140631
  2  0.000891629
  3  40.2396
  4  1.84619e-05
  5  2.55707e-05
  6  5.58972
  7  74.1292
  8  1.35374e-05
  9  2.53836e-05
  10  8.65165e-05
  11  2.9493
  12  64.8147
  13  101.21
  14  10.6
  15  10.5393
  16  0.000116106
  17  8.80431e-07
  18  1.60303e-05
  19  0.000167234
  20  5.72329e-06
  21  0.314207
  22  0.130044
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  2.557e-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:  9.065e-01  1.300e-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:  1.151e+00  3.142e-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: 9.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/352381/likelihoodResults_630720001_630979201_4FGL_J0416.9+0105_daily_bin1510.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) = 4313.50227712
delta logL = -0.000226805347666

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4313.50205214
delta logL = -1.82022722583e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10691E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3854       1.0000          .0000       10.000    
     3 'Normalizat'    1.1505       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90655       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=   4313.502     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      236 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.108        .90712E-02** at limit **
   2  Index         2.3539        6.0962        .50000        .20374E-04
   3  Normalizat    1.1506        .10165E-01    .81814E-01    .19114E-04
   4  Prefactor     .90655        .41892E-02    .45088E-01    .20450E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.35392
  Normalizat = 1.15056
  Prefactor  = 0.906547
 **********
 **   18 **HESSE 
 **********

 FCN=   4313.502     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      267 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    865.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3539        5.1681        .50000       -.55768    
   3  Normalizat    1.1506        .71224E-01    .36219E-03   -.88145    
   4  Prefactor     .90655        .29404E-01    .16496E-03   -.95913    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.44188e-08
Minuit parameter uncertainties:
  1  0.00114357
  2  34.9068
  3  0.0712303
  4  0.0294048
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/352381': 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) = 4313.50205171
delta logL = -1.39205349114e-06

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  1.144e-03  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.354e+00  3.491e+01  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.065e-01  2.940e-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.151e+00  7.123e-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/352381/cmap_HighResolution_630720001_630979201_4FGL_J0416.9+0105_daily_bin1510.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.30e-03', job_status='DONE', photon_flux_upper_limit='9.84e-08', time_completed='2021-08-20 10:40:08.330295', job_id='352381', GAL2='0.91', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1629481208.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-1.39e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='1510' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:40:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 352381: <4FGL_J0416.9+0105_daily_bin1510> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin1510 64.2269 1.088 630720001 630979201 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 :                                   702.07 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             221.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            879 sec.

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

