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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin1219
RA = 64.2269, Dec = 1.088
tmin = 555292801, tmax = 555552001
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='350943', job_status='RUN', time_executed='2021-08-20 10:23:05.684121', time_epoch_executed='1629480185.68' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='1219'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/350943

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/350943/ft1_4FGL_J0416.9+0105_daily_bin1219.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/350943/ft2_4FGL_J0416.9+0105_daily_bin1219.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/350943/ft1_4FGL_J0416.9+0105_daily_bin1219.fits outfile=/scratch/kocevski/350943/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1219.fits ra=64.2269 dec=1.088 rad=12.0 tmin=555292801.0 tmax=555552001.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.37
user 3.37
sys 0.90

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/350943/ft1_filtered_4FGL_J0416.9+0105_daily_bin1219.fits" evtable="EVENTS" scfile=/scratch/kocevski/350943/ft2_4FGL_J0416.9+0105_daily_bin1219.fits sctable="SC_DATA" outfile=/scratch/kocevski/350943/ltcube_555292801_555552001_4FGL_J0416.9+0105_daily_bin1219.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/350943/ft2_4FGL_J0416.9+0105_daily_bin1219.fits
.....................!
real 12.62
user 11.47
sys 1.10

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/350943/ft1_filtered_4FGL_J0416.9+0105_daily_bin1219.fits evtable="EVENTS" scfile=/scratch/kocevski/350943/ft2_4FGL_J0416.9+0105_daily_bin1219.fits sctable="SC_DATA" expcube=/scratch/kocevski/350943/ltcube_555292801_555552001_4FGL_J0416.9+0105_daily_bin1219.fits outfile=/scratch/kocevski/350943/expmap_555292801_555552001_4FGL_J0416.9+0105_daily_bin1219.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/350943/ltcube_555292801_555552001_4FGL_J0416.9+0105_daily_bin1219.fits
.....................!
real 190.91
user 184.90
sys 5.62

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/350943/ft1_filtered_4FGL_J0416.9+0105_daily_bin1219.fits scfile=/scratch/kocevski/350943/ft2_4FGL_J0416.9+0105_daily_bin1219.fits outfile=/scratch/kocevski/350943/cmap_555292801_555552001_4FGL_J0416.9+0105_daily_bin1219.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 1.27
user 0.37
sys 0.83

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/350943/ft1_filtered_4FGL_J0416.9+0105_daily_bin1219.fits scfile=/scratch/kocevski/350943/ft2_4FGL_J0416.9+0105_daily_bin1219.fits outfile=/scratch/kocevski/350943/cmap_HighResolution_555292801_555552001_4FGL_J0416.9+0105_daily_bin1219.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 1.22
user 0.40
sys 0.79

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3199       1.0000         .10000E-03   10000.    
     2 'Prefactor '    64.451       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.5615       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.7553       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    42.457       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16488E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    174.57       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .58061E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.310       1.0000         .10000E-03   10000.    
    15 'norm      '    4.4031       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.9525       1.0000         .10000E-03   10000.    
    17 'norm      '    4.8031       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.6191       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93381       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94346       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=   6754.465     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2486 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3201        2.2906       -.13380E-07   -.39207E-04
   2  Prefactor     64.450        60.488       -.26442E-06   -.18417E-04
   3  Prefactor     .10000E-03    9.5190       -.12411E-08** at limit **
   4  norm          .10000E-03    11.326       -.78451E-07** at limit **
   5  Prefactor     .10000E-03    20.448        .18195E-06** at limit **
   6  norm          4.5598        6.8338        .39849E-05   -.10074E-02
   7  Prefactor     9.7569        18.230        .47400E-07   -.16996E-04
   8  norm          .10000E-03    34.004       -.34032E-06** at limit **
   9  norm          42.401        37.445       -.54435E-05   -.73246E-03
  10  norm          .10000E-03    .68309       -.15849E-06** at limit **
  11  Prefactor     .10369E-03    1.2717        .56914E-06** at limit **
  12  Prefactor     174.56        48.778       -.48957E-06   -.47488E-03
  13  Prefactor     .10000E-03    195.42        .35395E-05** at limit **
  14  Prefactor     27.295        23.238        .72339E-06    .62779E-04
  15  norm          4.4041        4.0569        .36476E-06   -.11225E-03
  16  Prefactor     5.9324        48.854       -.51253E-05   -.74241E-04
  17  norm          4.8017        3.9541        .13851E-06   -.22799E-03
  18  Prefactor     .10000E-03    3.4980        .79337E-08** at limit **
  19  Prefactor     .10000E-03    17.365       -.23425E-06** at limit **
  20  norm          4.6194        5.5654        .57527E-07   -.86917E-04
  21  Normalizat    .93382        .32924       -.66156E-06   -.66321E-04
  22  Prefactor     .94344        .98491E-01    .59714E-06   -.29140E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.32008
  Prefactor  = 64.4502
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.55983
  Prefactor  = 9.75692
  norm       = 0.0001
  norm       = 42.4011
  norm       = 0.0001
  Prefactor  = 0.000103687
  Prefactor  = 174.558
  Prefactor  = 0.000100002
  Prefactor  = 27.295
  norm       = 4.40411
  Prefactor  = 5.93236
  norm       = 4.80171
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.61939
  Normalizat = 0.933823
  Prefactor  = 0.943437
 **********
 **   18 **HESSE 
 **********

 FCN=   6754.465     FROM HESSE     STATUS=OK           348 CALLS     2834 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3201        2.2945        .85886E-04   -1.5292    
   2  Prefactor     64.450        60.558        .49988E-04   -1.4101    
   3  Prefactor     .10000E-03    9.5469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    11.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.5598        7.3836        .94240E-03   -1.5281    
   7  Prefactor     9.7569        18.219        .12830E-03   -1.5083    
   8  norm          .10000E-03    34.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          42.401        41.835        .61524E-04   -1.4405    
  10  norm          .10000E-03    .69496        .66262E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10369E-03    3.1038        .30760E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     174.56        48.651        .30542E-04   -1.3058    
  13  Prefactor     .10000E-03    197.67        .21081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.295        23.406        .76660E-04   -1.4663    
  15  norm          4.4041        4.0320        .13855E-03   -1.5288    
  16  Prefactor     5.9324        49.652        .16458E-03   -1.5221    
  17  norm          4.8017        3.9468        .14149E-03   -1.5270    
  18  Prefactor     .10000E-03    3.5190        .15009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.6194        5.5623        .18727E-03   -1.5278    
  21  Normalizat    .93382        .36582        .50429E-03   -.95282    
  22  Prefactor     .94344        .11088        .16232E-03   -.94639    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25531e-09
Minuit parameter uncertainties:
  1  2.29451
  2  60.6164
  3  1.15661e-06
  4  1.44894e-05
  5  7.37242e-05
  6  7.38503
  7  18.2296
  8  0.000193286
  9  41.8639
  10  7.57956e-06
  11  0.0067659
  12  48.6622
  13  0.001312
  14  23.4135
  15  4.03227
  16  34.3637
  17  3.94704
  18  5.06244e-07
  19  3.18837e-05
  20  5.56296
  21  0.366796
  22  0.110902
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  7.372e-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.434e-01  1.109e-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:  9.338e-01  3.668e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 64.227 1.088
Photon Flux Upper Limit: 8.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/350943/likelihoodResults_555292801_555552001_4FGL_J0416.9+0105_daily_bin1219.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) = 6754.46532815
delta logL = -0.000232609751947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6754.46509541
delta logL = 1.2406053429e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8376       1.0000          .0000       10.000    
     3 'Normalizat'    .93386       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94343       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=   6754.465     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      250 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10101E-03    100.32        .18142E-02** at limit **
   2  Index         1.7854        6.9426        .50000        .11288E-04
   3  Normalizat    .93382        .16876E-01    .50429E-03   -.66369E-04
   4  Prefactor     .94344        .55067E-02    .16232E-03   -.38801E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010101
  Index      = 1.78544
  Normalizat = 0.93382
  Prefactor  = 0.943438
 **********
 **   18 **HESSE 
 **********

 FCN=   6754.465     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10101E-03    448.56        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7854        9.1066        .50000       -.69829    
   3  Normalizat    .93382        .36478E-01    .20172E-04   -.95282    
   4  Prefactor     .94344        .11903E-01    .64929E-05   -.94639    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.19871e-09
Minuit parameter uncertainties:
  1  0.0429044
  2  328.096
  3  0.0364788
  4  0.0119029
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/350943': 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) = 6754.46509526
delta logL = 2.7716941986e-07

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.010e-04  4.290e-02  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.785e+00  3.281e+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.434e-01  1.190e-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.338e-01  3.648e-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/350943/cmap_HighResolution_555292801_555552001_4FGL_J0416.9+0105_daily_bin1219.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.26e-03', job_status='DONE', photon_flux_upper_limit='8.44e-08', time_completed='2021-08-20 10:33:43.212916', job_id='350943', GAL2='0.94', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1629480823.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.77e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='1219' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:33:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 350943: <4FGL_J0416.9+0105_daily_bin1219> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin1219 64.2269 1.088 555292801 555552001 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 :                                   648.16 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             313.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            791 sec.

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

