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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin1263
RA = 64.2269, Dec = 1.088
tmin = 566697601, tmax = 566956801
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='351009', job_status='RUN', time_executed='2021-08-20 10:24:24.181259', time_epoch_executed='1629480264.18' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='1263'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351009

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351009/ft1_4FGL_J0416.9+0105_daily_bin1263.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351009/ft2_4FGL_J0416.9+0105_daily_bin1263.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351009/ft1_4FGL_J0416.9+0105_daily_bin1263.fits outfile=/scratch/kocevski/351009/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1263.fits ra=64.2269 dec=1.088 rad=12.0 tmin=566697601.0 tmax=566956801.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 7.42
user 1.76
sys 5.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351009/ft1_filtered_4FGL_J0416.9+0105_daily_bin1263.fits" evtable="EVENTS" scfile=/scratch/kocevski/351009/ft2_4FGL_J0416.9+0105_daily_bin1263.fits sctable="SC_DATA" outfile=/scratch/kocevski/351009/ltcube_566697601_566956801_4FGL_J0416.9+0105_daily_bin1263.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/351009/ft2_4FGL_J0416.9+0105_daily_bin1263.fits
.....................!
real 19.46
user 13.21
sys 6.07

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351009/ft1_filtered_4FGL_J0416.9+0105_daily_bin1263.fits evtable="EVENTS" scfile=/scratch/kocevski/351009/ft2_4FGL_J0416.9+0105_daily_bin1263.fits sctable="SC_DATA" expcube=/scratch/kocevski/351009/ltcube_566697601_566956801_4FGL_J0416.9+0105_daily_bin1263.fits outfile=/scratch/kocevski/351009/expmap_566697601_566956801_4FGL_J0416.9+0105_daily_bin1263.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/351009/ltcube_566697601_566956801_4FGL_J0416.9+0105_daily_bin1263.fits
.....................!
real 197.66
user 185.59
sys 11.55

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/351009/ft1_filtered_4FGL_J0416.9+0105_daily_bin1263.fits scfile=/scratch/kocevski/351009/ft2_4FGL_J0416.9+0105_daily_bin1263.fits outfile=/scratch/kocevski/351009/cmap_566697601_566956801_4FGL_J0416.9+0105_daily_bin1263.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 5.61
user 0.39
sys 5.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351009/ft1_filtered_4FGL_J0416.9+0105_daily_bin1263.fits scfile=/scratch/kocevski/351009/ft2_4FGL_J0416.9+0105_daily_bin1263.fits outfile=/scratch/kocevski/351009/cmap_HighResolution_566697601_566956801_4FGL_J0416.9+0105_daily_bin1263.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 5.65
user 0.40
sys 5.21

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.649       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .11636E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .28338       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    42.657       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5789       1.0000         .10000E-03   10000.    
    15 'norm      '    6.1319       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .95176       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    15.545       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .76137       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1138       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=   8272.465     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     2382 TOTAL
                     EDM=   .27E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .62498        .10967E-06** at limit **
   2  Prefactor     39.639        55.868        .21758E-05    .16606E-05
   3  Prefactor     .10000E-03    12.535       -.19699E-06** at limit **
   4  norm          .10000E-03    16.798        .20013E-05** at limit **
   5  Prefactor     .10000E-03    7.3527       -.44288E-06** at limit **
   6  norm          .10000E-03    3.3116       -.47706E-06** at limit **
   7  Prefactor     .10000E-03    12.718        .13570E-06** at limit **
   8  norm          .10000E-03    2.2373        .54276E-07** at limit **
   9  norm          .10000E-03    11.658       -.95035E-06** at limit **
  10  norm          .28360        .79534        .71285E-07   -.50212E-04
  11  Prefactor     .10000E-03    1.0217        .81206E-07** at limit **
  12  Prefactor     42.658        33.894       -.11051E-06   -.28517E-04
  13  Prefactor     .10000E-03    22.535       -.87956E-06** at limit **
  14  Prefactor     3.5824        9.5885        .38648E-05   -.74266E-04
  15  norm          6.1317        4.5082        .10535E-06   -.66582E-04
  16  Prefactor     .10000E-03    37.884        .28359E-05** at limit **
  17  norm          .95199        2.4600        .25328E-06   -.15153E-04
  18  Prefactor     .10000E-03    7.5876        .58787E-06** at limit **
  19  Prefactor     .10000E-03    27.981       -.26573E-05** at limit **
  20  norm          15.545        4.5121        .13967E-07   -.32488E-04
  21  Normalizat    .76120        .22628       -.27996E-05   -.10169E-03
  22  Prefactor     1.1138        .89717E-01    .23836E-06   -.23176E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 39.6393
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.283595
  Prefactor  = 0.0001
  Prefactor  = 42.6579
  Prefactor  = 0.0001
  Prefactor  = 3.58237
  norm       = 6.13169
  Prefactor  = 0.0001
  norm       = 0.951989
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.5453
  Normalizat = 0.761202
  Prefactor  = 1.11383
 **********
 **   18 **HESSE 
 **********

 FCN=   8272.465     FROM HESSE     STATUS=OK           344 CALLS     2726 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.3733        .13842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     39.639        55.994        .63657E-04   -1.4448    
   3  Prefactor     .10000E-03    12.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    16.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.3527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    8.6018        .30614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.2413        .13286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    11.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .28360        .81341        .11928E-02   -1.5601    
  11  Prefactor     .10000E-03    1.8654        .17324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     42.658        33.741        .61379E-04   -1.4401    
  13  Prefactor     .10000E-03    22.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.5824        9.6298        .10681E-02   -1.5329    
  15  norm          6.1317        4.4912        .14356E-03   -1.5213    
  16  Prefactor     .10000E-03    37.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .95199        2.4072        .21400E-03   -1.5513    
  18  Prefactor     .10000E-03    7.6357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    27.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          15.545        4.5005        .99705E-04   -1.4919    
  21  Normalizat    .76120        .23741        .44515E-03   -1.0152    
  22  Prefactor     1.1138        .97447E-01    .15828E-03   -.89026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53333e-08
Minuit parameter uncertainties:
  1  9.69745e-06
  2  56.068
  3  2.66144e-05
  4  2.69108e-06
  5  2.72592e-06
  6  4.58682e-05
  7  8.3036e-07
  8  1.86892e-06
  9  4.7459e-06
  10  0.813445
  11  6.0133e-06
  12  33.7561
  13  7.76592e-06
  14  9.63394
  15  4.49141
  16  3.94062e-05
  17  2.40743
  18  4.94483e-06
  19  2.76863e-05
  20  4.50057
  21  0.237729
  22  0.0974621
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  2.726e-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.114e+00  9.746e-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:  7.612e-01  2.377e-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: 4.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/351009/likelihoodResults_566697601_566956801_4FGL_J0416.9+0105_daily_bin1263.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) = 8272.46562795
delta logL = -0.000644590201773

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8272.46498546
delta logL = -2.10247344512e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12112E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8439       1.0000          .0000       10.000    
     3 'Normalizat'    .76136       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1137       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=   8272.465     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      246 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10107E-03    44.272        .18142E-02** at limit **
   2  Index         1.7940        7.6926        .50000        .26246E-04
   3  Normalizat    .76120        .13837E-01    .44515E-03    .15323E-04
   4  Prefactor     1.1138        .58963E-02    .15828E-03    .52578E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101072
  Index      = 1.79405
  Normalizat = 0.761203
  Prefactor  = 1.11383
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10107E-03    198.09        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7940        8.9394        .50000       -.69605    
   3  Normalizat    .76120        .29956E-01    .17806E-04   -1.0152    
   4  Prefactor     1.1138        .12764E-01    .63311E-05   -.89026    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.77483e-08
Minuit parameter uncertainties:
  1  0.0292479
  2  279.203
  3  0.0299562
  4  0.0127645
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351009': 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) = 8272.46498281
delta logL = 5.52503479412e-07

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.011e-04  2.925e-02  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.794e+00  2.792e+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.114e+00  1.276e-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:  7.612e-01  2.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/351009/cmap_HighResolution_566697601_566956801_4FGL_J0416.9+0105_daily_bin1263.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.13e-03', job_status='DONE', photon_flux_upper_limit='4.22e-08', time_completed='2021-08-20 10:37:06.176041', job_id='351009', GAL2='1.11', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1629481026.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='5.53e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='1263' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:37:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 351009: <4FGL_J0416.9+0105_daily_bin1263> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin1263> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 20 10:20:40 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:20:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 10:20:42 2021
Terminated at Fri Aug 20 10:37:08 2021
Results reported at Fri Aug 20 10:37:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin1263 64.2269 1.088 566697601 566956801 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 :                                   841.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             277.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            988 sec.

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

