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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin246
RA = 64.2269, Dec = 1.088
tmin = 303091201, tmax = 303350401
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='345349', job_status='RUN', time_executed='2021-08-20 10:01:29.670878', time_epoch_executed='1629478889.67' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='246'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/345349

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/345349/ft1_4FGL_J0416.9+0105_daily_bin246.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/345349/ft2_4FGL_J0416.9+0105_daily_bin246.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/345349/ft1_4FGL_J0416.9+0105_daily_bin246.fits outfile=/scratch/kocevski/345349/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin246.fits ra=64.2269 dec=1.088 rad=12.0 tmin=303091201.0 tmax=303350401.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 5.48
user 3.35
sys 2.09

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/345349/ft2_4FGL_J0416.9+0105_daily_bin246.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/345349/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin246.fits evtable="EVENTS" outfile="/scratch/kocevski/345349/ft1_filtered_4FGL_J0416.9+0105_daily_bin246.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 2.24
user 0.34
sys 1.87

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/345349/ft1_filtered_4FGL_J0416.9+0105_daily_bin246.fits" evtable="EVENTS" scfile=/scratch/kocevski/345349/ft2_4FGL_J0416.9+0105_daily_bin246.fits sctable="SC_DATA" outfile=/scratch/kocevski/345349/ltcube_303091201_303350401_4FGL_J0416.9+0105_daily_bin246.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/345349/ft2_4FGL_J0416.9+0105_daily_bin246.fits
.....................!
real 13.87
user 11.25
sys 2.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/345349/ft1_filtered_4FGL_J0416.9+0105_daily_bin246.fits evtable="EVENTS" scfile=/scratch/kocevski/345349/ft2_4FGL_J0416.9+0105_daily_bin246.fits sctable="SC_DATA" expcube=/scratch/kocevski/345349/ltcube_303091201_303350401_4FGL_J0416.9+0105_daily_bin246.fits outfile=/scratch/kocevski/345349/expmap_303091201_303350401_4FGL_J0416.9+0105_daily_bin246.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/345349/ltcube_303091201_303350401_4FGL_J0416.9+0105_daily_bin246.fits
.....................!
real 193.31
user 185.11
sys 7.19

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/345349/ft1_filtered_4FGL_J0416.9+0105_daily_bin246.fits scfile=/scratch/kocevski/345349/ft2_4FGL_J0416.9+0105_daily_bin246.fits outfile=/scratch/kocevski/345349/cmap_303091201_303350401_4FGL_J0416.9+0105_daily_bin246.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 2.34
user 0.37
sys 1.94

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/345349/ft1_filtered_4FGL_J0416.9+0105_daily_bin246.fits scfile=/scratch/kocevski/345349/ft2_4FGL_J0416.9+0105_daily_bin246.fits outfile=/scratch/kocevski/345349/cmap_HighResolution_303091201_303350401_4FGL_J0416.9+0105_daily_bin246.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 2.41
user 0.36
sys 2.03

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6586       1.0000         .10000E-03   10000.    
     2 'Prefactor '    138.49       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.4237       1.0000         .10000E-03   10000.    
     8 'norm      '    1.2534       1.0000         .10000E-03   10000.    
     9 'norm      '    19.426       1.0000         .10000E-03   10000.    
    10 'norm      '    .90549       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1339       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.1381       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.8258       1.0000         .10000E-03   10000.    
    15 'norm      '    2.6582       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.4136       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.9869       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .92331       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92477       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=   8962.073     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2358 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6586        1.5026       -.13973E-06   -.19190E-03
   2  Prefactor     138.50        60.518        .67727E-06    .13776E-04
   3  Prefactor     .10000E-03    8.8698       -.49282E-06** at limit **
   4  norm          .10000E-03    16.401        .10053E-05** at limit **
   5  Prefactor     .10000E-03    18.669       -.28006E-05** at limit **
   6  norm          .10000E-03    1.6457        .15661E-07** at limit **
   7  Prefactor     9.4235        18.919       -.51282E-06   -.16384E-04
   8  norm          1.2578        11.270       -.38604E-05   -.70852E-03
   9  norm          19.434        22.055       -.17166E-04    .31910E-05
  10  norm          .90277        1.2884        .81102E-07    .75127E-04
  11  Prefactor     2.1348        2.1607        .99275E-06    .14750E-03
  12  Prefactor     .10000E-03    8.7585        .64167E-06** at limit **
  13  Prefactor     1.9300        454.79       -.17326E-04   -.78904E-05
  14  Prefactor     7.8278        10.580       -.98043E-06    .96784E-05
  15  norm          2.6583        2.2231        .99406E-07   -.50228E-03
  16  Prefactor     .10000E-03    31.590        .82475E-06** at limit **
  17  norm          4.4139        2.3744        .81337E-08   -.16246E-03
  18  Prefactor     .10000E-03    10.607       -.20896E-06** at limit **
  19  Prefactor     .10000E-03    18.360        .14713E-05** at limit **
  20  norm          3.9868        2.3986       -.15400E-06   -.30305E-03
  21  Normalizat    .92337        .21376        .22823E-05    .60938E-04
  22  Prefactor     .92476        .77499E-01    .47334E-06    .12247E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.65856
  Prefactor  = 138.504
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.42353
  norm       = 1.25785
  norm       = 19.4343
  norm       = 0.902769
  Prefactor  = 2.13478
  Prefactor  = 0.0001
  Prefactor  = 1.93
  Prefactor  = 7.82778
  norm       = 2.65833
  Prefactor  = 0.0001
  norm       = 4.41392
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.9868
  Normalizat = 0.923369
  Prefactor  = 0.924764
 **********
 **   18 **HESSE 
 **********

 FCN=   8962.073     FROM HESSE     STATUS=OK           348 CALLS     2706 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6586        1.5039        .83334E-04   -1.5382    
   2  Prefactor     138.50        60.534        .34227E-04   -1.3349    
   3  Prefactor     .10000E-03    8.8955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    16.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.6600        .11854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.4235        18.929        .13055E-03   -1.5094    
   8  norm          1.2578        11.821        .39914E-03   -1.5484    
   9  norm          19.434        21.646        .90874E-04   -1.4826    
  10  norm          .90277        1.0556        .10073E-02   -1.5518    
  11  Prefactor     2.1348        2.0348        .10578E-03   -1.5416    
  12  Prefactor     .10000E-03    8.7906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.9300        362.18        .28190E-03   -1.5430    
  14  Prefactor     7.8278        10.469        .14334E-03   -1.5148    
  15  norm          2.6583        2.2133        .12334E-03   -1.5382    
  16  Prefactor     .10000E-03    31.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.4139        2.3600        .99451E-04   -1.5288    
  18  Prefactor     .10000E-03    11.034        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.9868        2.3985        .10876E-03   -1.5309    
  21  Normalizat    .92337        .23672        .40133E-03   -.95644    
  22  Prefactor     .92476        .86751E-01    .15862E-03   -.95281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64553e-09
Minuit parameter uncertainties:
  1  1.50395
  2  60.5616
  3  1.22518e-05
  4  1.59793e-05
  5  0.000113336
  6  2.75509e-06
  7  18.9414
  8  7.71378
  9  21.6543
  10  1.05562
  11  2.03482
  12  6.30042e-05
  13  53.2058
  14  10.4712
  15  2.21338
  16  2.9849e-05
  17  2.36007
  18  4.13563e-05
  19  1.72725e-05
  20  2.3986
  21  0.236989
  22  0.086764
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  1.133e-04  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.248e-01  8.676e-02  0.000e+00  1.000e+01 ( 1.000e+00)
453        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
454        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
451   Normalization:  9.234e-01  2.370e-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: 6.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/345349/likelihoodResults_303091201_303350401_4FGL_J0416.9+0105_daily_bin246.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) = 8962.07332247
delta logL = -0.00025517418544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8962.07306732
delta logL = -1.9075741875e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8817       1.0000          .0000       10.000    
     3 'Normalizat'    .92335       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92477       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=   8962.073     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      210 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7807        .90712E-02** at limit **
   2  Index         1.8872        5.9425        .50000       -.22277E-05
   3  Normalizat    .92337        .31077E-02    .90612E-01    .32430E-04
   4  Prefactor     .92476        .12358E-02    .45320E-01   -.11525E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.88722
  Normalizat = 0.923368
  Prefactor  = 0.924764
 **********
 **   18 **HESSE 
 **********

 FCN=   8962.073     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      243 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    100.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8872        6.2391        .50000       -.67200    
   3  Normalizat    .92337        .12982E-01    .40133E-03   -.95644    
   4  Prefactor     .92476        .51759E-02    .15862E-03   -.95281    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.55764e-08
Minuit parameter uncertainties:
  1  1.69296e-06
  2  219.136
  3  0.0129825
  4  0.00517589
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/345349': 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) = 8962.07306729
delta logL = 6.54654286336e-09

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  1.693e-06  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.887e+00  2.191e+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.248e-01  5.176e-03  0.000e+00  1.000e+01 ( 1.000e+00)
453        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
454        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
451   Normalization:  9.234e-01  1.298e-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/345349/cmap_HighResolution_303091201_303350401_4FGL_J0416.9+0105_daily_bin246.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.75e-03', job_status='DONE', photon_flux_upper_limit='6.40e-08', time_completed='2021-08-20 10:14:00.395283', job_id='345349', GAL2='0.92', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1629479640.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='6.55e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='246' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:14:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 345349: <4FGL_J0416.9+0105_daily_bin246> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin246 64.2269 1.088 303091201 303350401 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 :                                   778.35 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             352.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            799 sec.

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

