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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin270
RA = 64.2269, Dec = 1.088
tmin = 309312001, tmax = 309571201
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='345383', job_status='RUN', time_executed='2021-08-20 10:04:28.012889', time_epoch_executed='1629479068.01' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='270'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/345383

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/345383/ft1_4FGL_J0416.9+0105_daily_bin270.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/345383/ft2_4FGL_J0416.9+0105_daily_bin270.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/345383/ft1_4FGL_J0416.9+0105_daily_bin270.fits outfile=/scratch/kocevski/345383/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin270.fits ra=64.2269 dec=1.088 rad=12.0 tmin=309312001.0 tmax=309571201.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 4.23
user 3.77
sys 0.41

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/345383/ft2_4FGL_J0416.9+0105_daily_bin270.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/345383/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin270.fits evtable="EVENTS" outfile="/scratch/kocevski/345383/ft1_filtered_4FGL_J0416.9+0105_daily_bin270.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.69
user 0.33
sys 0.35

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/345383/ft1_filtered_4FGL_J0416.9+0105_daily_bin270.fits" evtable="EVENTS" scfile=/scratch/kocevski/345383/ft2_4FGL_J0416.9+0105_daily_bin270.fits sctable="SC_DATA" outfile=/scratch/kocevski/345383/ltcube_309312001_309571201_4FGL_J0416.9+0105_daily_bin270.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/345383/ft2_4FGL_J0416.9+0105_daily_bin270.fits
.....................!
real 11.96
user 11.39
sys 0.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/345383/ft1_filtered_4FGL_J0416.9+0105_daily_bin270.fits evtable="EVENTS" scfile=/scratch/kocevski/345383/ft2_4FGL_J0416.9+0105_daily_bin270.fits sctable="SC_DATA" expcube=/scratch/kocevski/345383/ltcube_309312001_309571201_4FGL_J0416.9+0105_daily_bin270.fits outfile=/scratch/kocevski/345383/expmap_309312001_309571201_4FGL_J0416.9+0105_daily_bin270.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/345383/ltcube_309312001_309571201_4FGL_J0416.9+0105_daily_bin270.fits
.....................!
real 190.70
user 185.55
sys 4.78

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

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

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/345383/ft1_filtered_4FGL_J0416.9+0105_daily_bin270.fits scfile=/scratch/kocevski/345383/ft2_4FGL_J0416.9+0105_daily_bin270.fits outfile=/scratch/kocevski/345383/cmap_309312001_309571201_4FGL_J0416.9+0105_daily_bin270.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=64.2269 yref=1.088 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.72
user 0.36
sys 0.35

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/345383/ft1_filtered_4FGL_J0416.9+0105_daily_bin270.fits scfile=/scratch/kocevski/345383/ft2_4FGL_J0416.9+0105_daily_bin270.fits outfile=/scratch/kocevski/345383/cmap_HighResolution_309312001_309571201_4FGL_J0416.9+0105_daily_bin270.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=64.2269 yref=1.088 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.74
user 0.40
sys 0.33

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1652       1.0000         .10000E-03   10000.    
     2 'Prefactor '    46.791       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.447       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.3385       1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.729       1.0000         .10000E-03   10000.    
     8 'norm      '    5.4867       1.0000         .10000E-03   10000.    
     9 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.7977       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .77648       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.329       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2717       1.0000         .10000E-03   10000.    
    15 'norm      '    .11283E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    49.631       1.0000         .10000E-03   10000.    
    17 'norm      '    3.4576       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    47.949       1.0000         .10000E-03   10000.    
    20 'norm      '    5.6047       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93813       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98485       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9348.124     FROM MIGRAD    STATUS=CONVERGED     50 CALLS     1934 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1649        1.7531       -.37507E-06   -.28541E-03
   2  Prefactor     46.791        1.0005       -.14688E-07    .34183E-03
   3  Prefactor     14.448        1.0438        .30430E-06   -.91417E-03
   4  norm          .10000E-03    1.7502       -.14314E-05** at limit **
   5  Prefactor     .10002E-03    6.4625       -.96679E-05** at limit **
   6  norm          1.3385        1.7664        .66698E-06    .68210E-04
   7  Prefactor     37.729        1.0038        .55403E-07   -.43222E-03
   8  norm          5.4834        1.9120       -.26445E-05    .28327E-02
   9  norm          .10001E-03    3.8660        .10175E-04** at limit **
  10  norm          2.7973        1.2295        .99567E-07    .52903E-04
  11  Prefactor     .77668        1.1278        .42773E-06    .58667E-04
  12  Prefactor     .10002E-03    2.2732        .61173E-05** at limit **
  13  Prefactor     19.325        3.0663       -.25436E-05    .14362E-01
  14  Prefactor     3.2699        1.0387       -.45642E-06   -.59346E-04
  15  norm          .10002E-03    2.8432       -.85491E-05** at limit **
  16  Prefactor     49.631        1.0002       -.99851E-08    .18334E-03
  17  norm          3.4573        2.5116       -.15358E-05   -.30211E-03
  18  Prefactor     .10000E-03    3.5607        .24416E-05** at limit **
  19  Prefactor     47.947        1.2245       -.39331E-06    .55009E-02
  20  norm          5.6039        1.1207       -.88617E-06   -.38062E-02
  21  Normalizat    .93845        .23086        .63709E-05    .69906E-05
  22  Prefactor     .98471        .87230E-01   -.91669E-06    .50655E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.16494
  Prefactor  = 46.7912
  Prefactor  = 14.4479
  norm       = 0.0001
  Prefactor  = 0.000100023
  norm       = 1.33847
  Prefactor  = 37.7287
  norm       = 5.4834
  norm       = 0.000100006
  norm       = 2.79728
  Prefactor  = 0.776683
  Prefactor  = 0.000100024
  Prefactor  = 19.3249
  Prefactor  = 3.26993
  norm       = 0.000100025
  Prefactor  = 49.6309
  norm       = 3.45735
  Prefactor  = 0.000100001
  Prefactor  = 47.9475
  norm       = 5.6039
  Normalizat = 0.938445
  Prefactor  = 0.984712
 **********
 **   18 **HESSE 
 **********

 FCN=   9348.124     FROM HESSE     STATUS=OK           400 CALLS     2334 TOTAL
                     EDM=   .29E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1649        1.7660        .49372E-02   -1.5300    
   2  Prefactor     46.791        48.644        .14654E-02   -1.4339    
   3  Prefactor     14.448        14.300        .26344E-02   -1.4948    
   4  norm          .10000E-03    4.6381        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    7.0296        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.3385        1.7889        .94754E-02   -1.5477    
   7  Prefactor     37.729        28.500        .16313E-02   -1.4479    
   8  norm          5.4834        10.274        .42884E-02   -1.5240    
   9  norm          .10001E-03    6.0633        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.7973        1.3039        .60808E-02   -1.5373    
  11  Prefactor     .77668        1.1641        .12352E-02   -1.5532    
  12  Prefactor     .10002E-03    4.9646        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     19.325        49.711        .22775E-02   -1.4828    
  14  Prefactor     3.2699        6.9125        .55969E-02   -1.5346    
  15  norm          .10002E-03    .99470        .53684E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     49.631        51.655        .14231E-02   -1.4298    
  17  norm          3.4573        2.6074        .54373E-02   -1.5336    
  18  Prefactor     .10000E-03    3.5426        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     47.947        36.496        .14477E-02   -1.4322    
  20  norm          5.6039        2.9315        .42423E-02   -1.5234    
  21  Normalizat    .93845        .22547        .96326E-01   -.95122    
  22  Prefactor     .98471        .80987E-01    .46078E-01   -.93241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86552e-06
Minuit parameter uncertainties:
  1  1.76598
  2  48.6851
  3  14.303
  4  6.75481e-05
  5  0.000806034
  6  1.78896
  7  28.5101
  8  10.2774
  9  0.000366414
  10  1.30396
  11  1.16412
  12  0.000690336
  13  49.8175
  14  6.91417
  15  0.000313221
  16  51.7019
  17  2.60746
  18  0.000129926
  19  36.5131
  20  2.93158
  21  0.225701
  22  0.0809966
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  8.060e-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.847e-01  8.100e-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.384e-01  2.257e-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.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/345383/likelihoodResults_309312001_309571201_4FGL_J0416.9+0105_daily_bin270.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) = 9348.12498143
delta logL = -0.000676738649418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9348.12430445
delta logL = 2.39968358073e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8468       1.0000          .0000       10.000    
     3 'Normalizat'    .93844       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98471       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=   9348.124     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      251 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10095E-03    41.100        .18142E-02** at limit **
   2  Index         1.7993        5.8996        .50000        .26649E-04
   3  Normalizat    .93845        .13607E-01    .42675E-03    .41026E-05
   4  Prefactor     .98471        .53754E-02    .16366E-03   -.23618E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100951
  Index      = 1.79934
  Normalizat = 0.938445
  Prefactor  = 0.984712
 **********
 **   18 **HESSE 
 **********

 FCN=   9348.124     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 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     .10095E-03    184.45        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7993        6.1889        .50000       -.69467    
   3  Normalizat    .93845        .29484E-01    .17070E-04   -.95122    
   4  Prefactor     .98471        .11648E-01    .65463E-05   -.93241    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.55808e-08
Minuit parameter uncertainties:
  1  0.0265648
  2  263.46
  3  0.0294849
  4  0.0116478
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/345383': 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) = 9348.12430417
delta logL = 5.24974893779e-07

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.010e-04  2.656e-02  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.799e+00  2.635e+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.847e-01  1.165e-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.384e-01  2.948e-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/345383/cmap_HighResolution_309312001_309571201_4FGL_J0416.9+0105_daily_bin270.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.98e-03', job_status='DONE', photon_flux_upper_limit='4.02e-08', time_completed='2021-08-20 10:16:15.231337', job_id='345383', GAL2='0.98', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1629479775.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='5.25e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='270' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:16:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 345383: <4FGL_J0416.9+0105_daily_bin270> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin270 64.2269 1.088 309312001 309571201 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 :                                   709.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

