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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin982
RA = 64.2269, Dec = 1.088
tmin = 493862401, tmax = 494121601
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='349507', job_status='RUN', time_executed='2021-08-20 10:19:18.878661', time_epoch_executed='1629479958.88' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='982'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/349507

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/349507/ft1_4FGL_J0416.9+0105_daily_bin982.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/349507/ft2_4FGL_J0416.9+0105_daily_bin982.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/349507/ft1_4FGL_J0416.9+0105_daily_bin982.fits outfile=/scratch/kocevski/349507/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin982.fits ra=64.2269 dec=1.088 rad=12.0 tmin=493862401.0 tmax=494121601.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 8.65
user 3.36
sys 5.27

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/349507/ft1_filtered_4FGL_J0416.9+0105_daily_bin982.fits" evtable="EVENTS" scfile=/scratch/kocevski/349507/ft2_4FGL_J0416.9+0105_daily_bin982.fits sctable="SC_DATA" outfile=/scratch/kocevski/349507/ltcube_493862401_494121601_4FGL_J0416.9+0105_daily_bin982.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/349507/ft2_4FGL_J0416.9+0105_daily_bin982.fits
.....................!
real 17.83
user 11.45
sys 6.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/349507/ft1_filtered_4FGL_J0416.9+0105_daily_bin982.fits evtable="EVENTS" scfile=/scratch/kocevski/349507/ft2_4FGL_J0416.9+0105_daily_bin982.fits sctable="SC_DATA" expcube=/scratch/kocevski/349507/ltcube_493862401_494121601_4FGL_J0416.9+0105_daily_bin982.fits outfile=/scratch/kocevski/349507/expmap_493862401_494121601_4FGL_J0416.9+0105_daily_bin982.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/349507/ltcube_493862401_494121601_4FGL_J0416.9+0105_daily_bin982.fits
.....................!
real 196.68
user 184.70
sys 11.64

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/349507/ft1_filtered_4FGL_J0416.9+0105_daily_bin982.fits scfile=/scratch/kocevski/349507/ft2_4FGL_J0416.9+0105_daily_bin982.fits outfile=/scratch/kocevski/349507/cmap_493862401_494121601_4FGL_J0416.9+0105_daily_bin982.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=64.2269 yref=1.088 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 5.60
user 0.37
sys 5.10

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

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

This is gtbin version HEAD
real 5.52
user 0.37
sys 5.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .87118       1.0000         .10000E-03   10000.    
     2 'Prefactor '    42.460       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.8133       1.0000         .10000E-03   10000.    
     8 'norm      '    18.722       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0669       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.155       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.899       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6761       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.463       1.0000         .10000E-03   10000.    
    17 'norm      '    4.0392       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.702       1.0000         .10000E-03   10000.    
    20 'norm      '    1.5670       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1781       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .84136       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=   8283.527     FROM MIGRAD    STATUS=CONVERGED     61 CALLS     1938 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .87103        1.4364        .35874E-06    .49397E-03
   2  Prefactor     42.459        1.0256       -.21825E-07    .36820E-02
   3  Prefactor     .10061E-03    6.3206       -.14062E-05** at limit **
   4  norm          .10000E-03    6.0997       -.87740E-06** at limit **
   5  Prefactor     .10002E-03    9.5213        .15651E-05** at limit **
   6  norm          .10000E-03    1.6977       -.49345E-08** at limit **
   7  Prefactor     7.8098        1.1538       -.12806E-06    .38386E-02
   8  norm          18.722        1.0005        .20326E-08    .31123E-04
   9  norm          .10041E-03    10.284       -.28545E-05** at limit **
  10  norm          .10000E-03    .38402        .42077E-06** at limit **
  11  Prefactor     1.0673        1.6115       -.43616E-06   -.41680E-03
  12  Prefactor     24.155        1.0077        .15422E-07   -.15118E-02
  13  Prefactor     15.900        1.0348        .40076E-07   -.26978E-02
  14  Prefactor     3.6762        1.0101       -.10796E-07    .47052E-04
  15  norm          .10000E-03    .67789       -.28331E-06** at limit **
  16  Prefactor     20.463        1.0004        .15717E-08   -.11455E-03
  17  norm          4.0393        2.1575       -.30861E-06   -.10702E-02
  18  Prefactor     .10000E-03    1.8232       -.14788E-06** at limit **
  19  Prefactor     29.702        1.0022        .73565E-08   -.82135E-03
  20  norm          1.5670        1.6084       -.15969E-06    .16708E-03
  21  Normalizat    1.1780        .22559        .74340E-06    .73041E-04
  22  Prefactor     .84138        .84839E-01    .11202E-07    .15239E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.871025
  Prefactor  = 42.4589
  Prefactor  = 0.000100615
  norm       = 0.000100001
  Prefactor  = 0.000100022
  norm       = 0.0001
  Prefactor  = 7.80981
  norm       = 18.7221
  norm       = 0.000100405
  norm       = 0.0001
  Prefactor  = 1.06725
  Prefactor  = 24.1551
  Prefactor  = 15.8997
  Prefactor  = 3.67622
  norm       = 0.0001
  Prefactor  = 20.4631
  norm       = 4.03927
  Prefactor  = 0.0001
  Prefactor  = 29.7024
  norm       = 1.56696
  Normalizat = 1.17802
  Prefactor  = 0.841379
 **********
 **   18 **HESSE 
 **********

 FCN=   8283.527     FROM HESSE     STATUS=OK           392 CALLS     2330 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .87103        1.4792        .12703E-01   -1.5521    
   2  Prefactor     42.459        48.088        .15380E-02   -1.4404    
   3  Prefactor     .10061E-03    14.743        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.0982        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    9.7682        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.6835        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.8098        26.822        .35863E-02   -1.5149    
   8  norm          18.722        10.408        .23142E-02   -1.4842    
   9  norm          .10041E-03    16.541        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .37866        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.0673        1.9774        .11793E-01   -1.5501    
  12  Prefactor     24.155        21.950        .20376E-02   -1.4725    
  13  Prefactor     15.900        47.142        .25112E-02   -1.4910    
  14  Prefactor     3.6762        7.4245        .52665E-02   -1.5324    
  15  norm          .10000E-03    .67316        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     20.463        31.372        .22136E-02   -1.4803    
  17  norm          4.0393        2.1747        .50159E-02   -1.5306    
  18  Prefactor     .10000E-03    1.8177        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     29.702        33.549        .18379E-02   -1.4617    
  20  norm          1.5670        1.6177        .84929E-02   -1.5458    
  21  Normalizat    1.1780        .21638        .79991E-01   -.87285    
  22  Prefactor     .84138        .77076E-01    .44253E-01   -.98221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99013e-07
Minuit parameter uncertainties:
  1  1.47929
  2  48.1324
  3  0.0060218
  4  0.000122637
  5  0.000932292
  6  1.23578e-06
  7  26.8636
  8  10.4095
  9  0.00518059
  10  6.76749e-06
  11  1.97748
  12  21.9578
  13  47.2532
  14  7.42639
  15  6.07999e-06
  16  31.397
  17  2.17476
  18  3.83603e-06
  19  33.5701
  20  1.61777
  21  0.216542
  22  0.077086
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  9.323e-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:  8.414e-01  7.709e-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:  1.178e+00  2.165e-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.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/349507/likelihoodResults_493862401_494121601_4FGL_J0416.9+0105_daily_bin982.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) = 8283.52753492
delta logL = -0.000487535597131

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8283.52704732
delta logL = 6.3704646891e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8580       1.0000          .0000       10.000    
     3 'Normalizat'    1.1780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84138       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=   8283.527     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      205 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    183.48        .90712E-02** at limit **
   2  Index         1.8403        8.9875        .50000        .13254E-04
   3  Normalizat    1.1780        .25036E-01    .79991E-01   -.13257E-03
   4  Prefactor     .84138        .97186E-02    .44253E-01    .71456E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 1.84028
  Normalizat = 1.17802
  Prefactor  = 0.841379
 **********
 **   18 **HESSE 
 **********

 FCN=   8283.527     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      234 TOTAL
                     EDM=   .87E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    614.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8403        9.0408        .20000       -.68406    
   3  Normalizat    1.1780        .48556E-01    .35409E-03   -.87285    
   4  Prefactor     .84138        .18867E-01    .15885E-03   -.98221    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.73399e-05
Minuit parameter uncertainties:
  1  0.00300939
  2  2693.18
  3  0.0485575
  4  0.0188668
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/349507': 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) = 8283.52704726
delta logL = 1.28164174384e-07

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  3.009e-03  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.840e+00  2.693e+03  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:  8.414e-01  1.887e-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:  1.178e+00  4.856e-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/349507/cmap_HighResolution_493862401_494121601_4FGL_J0416.9+0105_daily_bin982.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.80e-03', job_status='DONE', photon_flux_upper_limit='5.12e-08', time_completed='2021-08-20 10:31:45.681940', job_id='349507', GAL2='0.84', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1629480705.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.28e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='982' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:31:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 349507: <4FGL_J0416.9+0105_daily_bin982> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin982> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 20 10:15:27 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:15:29 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:29 2021
Terminated at Fri Aug 20 10:31:47 2021
Results reported at Fri Aug 20 10:31:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin982 64.2269 1.088 493862401 494121601 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 :                                   826.52 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             275.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            980 sec.

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

