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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin1018
RA = 64.2269, Dec = 1.088
tmin = 503193601, tmax = 503452801
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='349558', job_status='RUN', time_executed='2021-08-20 10:17:54.549031', time_epoch_executed='1629479874.55' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='1018'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/349558

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/349558/ft1_4FGL_J0416.9+0105_daily_bin1018.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/349558/ft2_4FGL_J0416.9+0105_daily_bin1018.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/349558/ft1_4FGL_J0416.9+0105_daily_bin1018.fits outfile=/scratch/kocevski/349558/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1018.fits ra=64.2269 dec=1.088 rad=12.0 tmin=503193601.0 tmax=503452801.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.80
user 4.88
sys 0.86

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/349558/ft2_4FGL_J0416.9+0105_daily_bin1018.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/349558/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1018.fits evtable="EVENTS" outfile="/scratch/kocevski/349558/ft1_filtered_4FGL_J0416.9+0105_daily_bin1018.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.31
sys 0.80

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/349558/ft1_filtered_4FGL_J0416.9+0105_daily_bin1018.fits" evtable="EVENTS" scfile=/scratch/kocevski/349558/ft2_4FGL_J0416.9+0105_daily_bin1018.fits sctable="SC_DATA" outfile=/scratch/kocevski/349558/ltcube_503193601_503452801_4FGL_J0416.9+0105_daily_bin1018.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/349558/ft2_4FGL_J0416.9+0105_daily_bin1018.fits
.....................!
real 12.24
user 11.17
sys 1.03

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/349558/ft1_filtered_4FGL_J0416.9+0105_daily_bin1018.fits evtable="EVENTS" scfile=/scratch/kocevski/349558/ft2_4FGL_J0416.9+0105_daily_bin1018.fits sctable="SC_DATA" expcube=/scratch/kocevski/349558/ltcube_503193601_503452801_4FGL_J0416.9+0105_daily_bin1018.fits outfile=/scratch/kocevski/349558/expmap_503193601_503452801_4FGL_J0416.9+0105_daily_bin1018.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/349558/ltcube_503193601_503452801_4FGL_J0416.9+0105_daily_bin1018.fits
.....................!
real 191.39
user 185.52
sys 5.54

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/349558/ft1_filtered_4FGL_J0416.9+0105_daily_bin1018.fits scfile=/scratch/kocevski/349558/ft2_4FGL_J0416.9+0105_daily_bin1018.fits outfile=/scratch/kocevski/349558/cmap_503193601_503452801_4FGL_J0416.9+0105_daily_bin1018.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.20
user 0.37
sys 0.77

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/349558/ft1_filtered_4FGL_J0416.9+0105_daily_bin1018.fits scfile=/scratch/kocevski/349558/ft2_4FGL_J0416.9+0105_daily_bin1018.fits outfile=/scratch/kocevski/349558/cmap_HighResolution_503193601_503452801_4FGL_J0416.9+0105_daily_bin1018.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.18
user 0.38
sys 0.79

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .73931       1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.989       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.4183       1.0000         .10000E-03   10000.    
     4 'norm      '    13.883       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.334       1.0000         .10000E-03   10000.    
     8 'norm      '    3.2826       1.0000         .10000E-03   10000.    
     9 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .33169E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17851E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.727       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .11303E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.991       1.0000         .10000E-03   10000.    
    17 'norm      '    .10161E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .67050       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1469       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=   6955.972     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2454 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .73884        1.5044       -.32086E-06   -.13726E-02
   2  Prefactor     28.889        49.889       -.96621E-05    .37128E-04
   3  Prefactor     5.4292        18.524        .45994E-05   -.81955E-04
   4  norm          13.880        20.918        .75598E-05   -.15439E-03
   5  Prefactor     .10000E-03    12.257        .95001E-06** at limit **
   6  norm          .10000E-03    1.6178       -.29185E-07** at limit **
   7  Prefactor     24.330        30.278        .27324E-05   -.88676E-04
   8  norm          3.2810        7.7115       -.50901E-06   -.21758E-03
   9  norm          .10000E-03    24.770       -.72853E-06** at limit **
  10  norm          .32284E-01    .54751        .12894E-06   -.63591E-03
  11  Prefactor     .10000E-03    1.4157        .79988E-06** at limit **
  12  Prefactor     .10000E-03    32.930       -.10207E-06** at limit **
  13  Prefactor     29.780        48.208       -.78386E-05   -.15814E-03
  14  Prefactor     .10000E-03    3.0867       -.68201E-06** at limit **
  15  norm          .10000E-03    1.7507        .10868E-06** at limit **
  16  Prefactor     17.988        41.817       -.21009E-05   -.24256E-05
  17  norm          .10000E-03    1.3719        .60360E-07** at limit **
  18  Prefactor     .10000E-03    5.1620        .24159E-06** at limit **
  19  Prefactor     .10000E-03    11.592       -.10589E-05** at limit **
  20  norm          .10000E-03    .86480        .11096E-07** at limit **
  21  Normalizat    .67072        .25097        .11042E-05   -.19643E-03
  22  Prefactor     1.1469        .96042E-01   -.29665E-06   -.30774E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.738842
  Prefactor  = 28.8886
  Prefactor  = 5.42917
  norm       = 13.88
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 24.3301
  norm       = 3.28099
  norm       = 0.0001
  norm       = 0.0322837
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 29.7799
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.988
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.670724
  Prefactor  = 1.14688
 **********
 **   18 **HESSE 
 **********

 FCN=   6955.972     FROM HESSE     STATUS=OK           346 CALLS     2800 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .73884        1.4847        .14085E-03   -1.5536    
   2  Prefactor     28.889        49.253        .74411E-04   -1.4632    
   3  Prefactor     5.4292        18.300        .17263E-03   -1.5242    
   4  norm          13.880        20.539        .10750E-03   -1.4963    
   5  Prefactor     .10000E-03    12.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.6210        .10358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.330        30.102        .81203E-04   -1.4721    
   8  norm          3.2810        7.7067        .22349E-03   -1.5346    
   9  norm          .10000E-03    24.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .32284E-01    5.3217        .11401E-02   -1.5672    
  11  Prefactor     .10000E-03    2.8280        .18054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    33.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     29.780        46.964        .73484E-04   -1.4616    
  14  Prefactor     .10000E-03    3.0859        .14297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.9236        .21119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.988        41.870        .94427E-04   -1.4859    
  17  norm          .10000E-03    2.7408        .18558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.3072        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .87034        .75714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .67072        .26033        .46866E-03   -1.0506    
  22  Prefactor     1.1469        .10361        .14791E-03   -.87982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04754e-09
Minuit parameter uncertainties:
  1  1.48473
  2  49.3219
  3  18.3186
  4  20.5499
  5  1.25459e-05
  6  1.45615e-06
  7  30.1205
  8  7.70904
  9  7.38133e-05
  10  0.827778
  11  0.000125388
  12  2.50818e-05
  13  47.0223
  14  1.16937e-05
  15  2.91283e-05
  16  41.938
  17  7.75769e-05
  18  6.5439e-06
  19  1.96384e-05
  20  1.0291e-07
  21  0.260805
  22  0.103629
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  1.255e-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:  1.147e+00  1.036e-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:  6.707e-01  2.608e-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: 5.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/349558/likelihoodResults_503193601_503452801_4FGL_J0416.9+0105_daily_bin1018.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) = 6955.9726567
delta logL = -0.000388121211472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6955.97227266
delta logL = -4.08203050029e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8565       1.0000          .0000       10.000    
     3 'Normalizat'    .67057       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1468       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=   6955.972     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      209 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    418.84        .90712E-02** at limit **
   2  Index         1.8370        6.0497        .50000        .11618E-04
   3  Normalizat    .67073        .38424E-01    .10570        .44642E-04
   4  Prefactor     1.1469        .15587E-01    .36030E-01    .13672E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.83699
  Normalizat = 0.670727
  Prefactor  = 1.14688
 **********
 **   18 **HESSE 
 **********

 FCN=   6955.972     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      242 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    895.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8370        6.1559        .50000       -.68491    
   3  Normalizat    .67073        .59471E-01    .46866E-03   -1.0506    
   4  Prefactor     1.1469        .24218E-01    .14791E-03   -.87982    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.34725e-09
Minuit parameter uncertainties:
  1  0.000207364
  2  33.1817
  3  0.0594764
  4  0.0242185
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/349558': 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) = 6955.97226845
delta logL = 1.21900484373e-07

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  2.074e-04  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.837e+00  3.318e+01  0.000e+00  1.000e+01 (-1.000e+00)
212        Scale:  3.731e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
452    Prefactor:  1.147e+00  2.422e-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:  6.707e-01  5.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/349558/cmap_HighResolution_503193601_503452801_4FGL_J0416.9+0105_daily_bin1018.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.45e-03', job_status='DONE', photon_flux_upper_limit='5.99e-08', time_completed='2021-08-20 10:28:35.465588', job_id='349558', GAL2='1.15', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1629480515.47', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='1018' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:28:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 349558: <4FGL_J0416.9+0105_daily_bin1018> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin1018> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 20 10:15:31 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:15:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 10:15:33 2021
Terminated at Fri Aug 20 10:28:36 2021
Results reported at Fri Aug 20 10:28:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin1018 64.2269 1.088 503193601 503452801 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 :                                   650.07 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             309.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            785 sec.

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

