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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin157
RA = 64.2269, Dec = 1.088
tmin = 280022401, tmax = 280281601
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='345219', job_status='RUN', time_executed='2021-08-20 10:01:32.490312', time_epoch_executed='1629478892.49' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='157'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/345219

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/345219/ft1_4FGL_J0416.9+0105_daily_bin157.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/345219/ft2_4FGL_J0416.9+0105_daily_bin157.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/345219/ft1_4FGL_J0416.9+0105_daily_bin157.fits outfile=/scratch/kocevski/345219/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin157.fits ra=64.2269 dec=1.088 rad=12.0 tmin=280022401.0 tmax=280281601.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.41
user 3.30
sys 1.09

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/345219/ft1_filtered_4FGL_J0416.9+0105_daily_bin157.fits" evtable="EVENTS" scfile=/scratch/kocevski/345219/ft2_4FGL_J0416.9+0105_daily_bin157.fits sctable="SC_DATA" outfile=/scratch/kocevski/345219/ltcube_280022401_280281601_4FGL_J0416.9+0105_daily_bin157.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/345219/ft2_4FGL_J0416.9+0105_daily_bin157.fits
.....................!
real 13.54
user 12.12
sys 1.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/345219/ft1_filtered_4FGL_J0416.9+0105_daily_bin157.fits evtable="EVENTS" scfile=/scratch/kocevski/345219/ft2_4FGL_J0416.9+0105_daily_bin157.fits sctable="SC_DATA" expcube=/scratch/kocevski/345219/ltcube_280022401_280281601_4FGL_J0416.9+0105_daily_bin157.fits outfile=/scratch/kocevski/345219/expmap_280022401_280281601_4FGL_J0416.9+0105_daily_bin157.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/345219/ltcube_280022401_280281601_4FGL_J0416.9+0105_daily_bin157.fits
.....................!
real 192.47
user 185.61
sys 6.52

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/345219/ft1_filtered_4FGL_J0416.9+0105_daily_bin157.fits scfile=/scratch/kocevski/345219/ft2_4FGL_J0416.9+0105_daily_bin157.fits outfile=/scratch/kocevski/345219/cmap_280022401_280281601_4FGL_J0416.9+0105_daily_bin157.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.41
user 0.35
sys 1.03

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/345219/ft1_filtered_4FGL_J0416.9+0105_daily_bin157.fits scfile=/scratch/kocevski/345219/ft2_4FGL_J0416.9+0105_daily_bin157.fits outfile=/scratch/kocevski/345219/cmap_HighResolution_280022401_280281601_4FGL_J0416.9+0105_daily_bin157.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.41
user 0.37
sys 1.03

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0588       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10476E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.3468       1.0000         .10000E-03   10000.    
     4 'norm      '    .10202E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.136       1.0000         .10000E-03   10000.    
     6 'norm      '    5.8476       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4679       1.0000         .10000E-03   10000.    
     8 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10127E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.9691       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.357       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.1787       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10602E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.443       1.0000         .10000E-03   10000.    
    17 'norm      '    5.7703       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.416       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .31837       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .62096       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1791       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=   9819.303     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2387 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0589        1.4848       -.10187E-06   -.66446E-03
   2  Prefactor     .10000E-03    83.590        .28897E-05** at limit **
   3  Prefactor     6.3354        14.467        .52022E-05   -.13813E-03
   4  norm          .10000E-03    26.094       -.92121E-06** at limit **
   5  Prefactor     33.134        30.322       -.95652E-06   -.64269E-04
   6  norm          5.8473        5.3510       -.39579E-06   -.23327E-03
   7  Prefactor     3.4514        62.465       -.36572E-04    .25287E-04
   8  norm          .10000E-03    6.2220        .55377E-07** at limit **
   9  norm          .10000E-03    14.536       -.80510E-06** at limit **
  10  norm          1.9693        1.4166        .42989E-06   -.16263E-02
  11  Prefactor     .10000E-03    .92897        .83859E-06** at limit **
  12  Prefactor     18.374        25.946        .11733E-04   -.21898E-03
  13  Prefactor     7.1630        42.469       -.27675E-04   -.24669E-05
  14  Prefactor     .10000E-03    2.1920        .53917E-07** at limit **
  15  norm          .10000E-03    1.6521       -.39790E-06** at limit **
  16  Prefactor     15.457        55.797        .26696E-04   -.11705E-03
  17  norm          5.7705        2.3823        .16078E-06   -.20930E-03
  18  Prefactor     15.418        8.9894       -.17617E-05   -.12808E-02
  19  Prefactor     .10000E-03    15.671        .10420E-05** at limit **
  20  norm          .31896        1.3122       -.89901E-06   -.75577E-03
  21  Normalizat    .62097        .22418        .22962E-05   -.59761E-04
  22  Prefactor     1.1791        .86205E-01   -.64602E-06    .16567E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.05891
  Prefactor  = 0.000100001
  Prefactor  = 6.33544
  norm       = 0.0001
  Prefactor  = 33.1343
  norm       = 5.84733
  Prefactor  = 3.45145
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.96934
  Prefactor  = 0.000100002
  Prefactor  = 18.3735
  Prefactor  = 7.163
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.4567
  norm       = 5.77053
  Prefactor  = 15.4181
  Prefactor  = 0.0001
  norm       = 0.318962
  Normalizat = 0.620966
  Prefactor  = 1.17908
 **********
 **   18 **HESSE 
 **********

 FCN=   9819.303     FROM HESSE     STATUS=OK           348 CALLS     2735 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0589        1.4749        .97322E-04   -1.5421    
   2  Prefactor     .10000E-03    84.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.3354        14.397        .15932E-03   -1.5205    
   4  norm          .10000E-03    26.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     33.134        30.270        .69612E-04   -1.4556    
   6  norm          5.8473        5.3248        .16608E-03   -1.5224    
   7  Prefactor     3.4514        62.254        .21715E-03   -1.5336    
   8  norm          .10000E-03    6.3065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    14.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9693        1.3731        .84829E-04   -1.5427    
  11  Prefactor     .10000E-03    1.4414        .17361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.374        25.561        .93480E-04   -1.4850    
  13  Prefactor     7.1630        40.606        .14971E-03   -1.5173    
  14  Prefactor     .10000E-03    2.1957        .14324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.6755        .12375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.457        55.686        .10192E-03   -1.4921    
  17  norm          5.7705        2.3750        .92528E-04   -1.5227    
  18  Prefactor     15.418        9.1108        .51005E-03   -1.4922    
  19  Prefactor     .10000E-03    15.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .31896        2.6345        .21430E-02   -1.5595    
  21  Normalizat    .62097        .22705        .50747E-03   -1.0710    
  22  Prefactor     1.1791        .90596E-01    .15669E-03   -.86978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37362e-09
Minuit parameter uncertainties:
  1  1.47496
  2  0.000466813
  3  14.4048
  4  6.98261e-05
  5  30.2843
  6  5.32527
  7  29.3519
  8  3.56217e-06
  9  1.53434e-05
  10  1.37308
  11  0.000101212
  12  25.5765
  13  34.1444
  14  2.03557e-06
  15  4.89193e-05
  16  55.8745
  17  2.375
  18  9.11159
  19  3.51752e-05
  20  1.8332
  21  0.227393
  22  0.0906079
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  3.313e+01  3.028e+01  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.179e+00  9.061e-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.210e-01  2.274e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.01
Ra Dec: 64.227 1.088
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 3.35e-08 +/- 3.06e-08
Energy Flux (Fixed Index): 3.22e-05 +/- 2.94e-05

TS (Fixed Index): 2.01
Ra Dec: 64.227 1.088
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/345219/likelihoodResults_280022401_280281601_4FGL_J0416.9+0105_daily_bin157.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): 0
logL (Free Index) = 9818.30614461
delta logL = 0.997024985903

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9818.30072762
delta logL = 1.00244197571

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8263       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9015       1.0000          .0000       10.000    
     3 'Normalizat'    .54658       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1884       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=   9818.301     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      349 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8358        66.082        .38391E-02    .47731E-03
   2  Index         2.9017        1.8450        .72750E-01    .37940E-03
   3  Normalizat    .54651        .95166E-01    .12111        .67686E-04
   4  Prefactor     1.1885        .32474E-01    .34911E-01   -.10094E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.8358
  Index      = 2.90167
  Normalizat = 0.546509
  Prefactor  = 1.18852
 **********
 **   18 **HESSE 
 **********

 FCN=   9818.301     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      382 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8358        105.37        .14181E-03   -1.5185    
   2  Index         2.9017        2.7216        .36242E-02   -.43308    
   3  Normalizat    .54651        .26283        .53734E-03   -1.1031    
   4  Prefactor     1.1885        .92827E-01    .15597E-03   -.86685    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.45533e-09
Minuit parameter uncertainties:
  1  53.7901
  2  2.91863
  3  0.263435
  4  0.0928393
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/345219': 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) = 9818.30071924
delta logL = 1.00245035387

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  6.836e+00  5.379e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.902e+00  2.919e+00  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.189e+00  9.284e-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:  5.465e-01  2.634e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.12
Ra Dec: 64.227 1.088
Photon Index (Free Index): 2.90 +/- 2.92
Photon Flux (Free Index): 1.31e-07 +/- 1.72e-07
Energy Flux (Free Index): 2.75e-05 +/- 2.07e-05

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/345219/cmap_HighResolution_280022401_280281601_4FGL_J0416.9+0105_daily_bin157.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.90e-03', comment='SUCCESS', photon_flux='3.35e-08', energy_flux2='2.75e-05', photon_flux_error='3.06e-08', dlogl='1.00e+00', energy_flux='3.22e-05', photon_flux2='1.31e-07', job_status='DONE', time_completed='2021-08-20 10:14:36.073629', photon_index_error2='2.92', photon_index2='2.90', ts='2.01', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='2.07e-05', EG='0.62', time_epoch_completed='1629479676.07', return_code='0', job_id='345219', GAL2='1.19', EG2='0.55', return_code2='102', energy_flux_error='2.94e-05', photon_flux_error2='1.72e-07', ts2='4.12', photon_index='1.88' WHERE bin_id='157' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:14:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 345219: <4FGL_J0416.9+0105_daily_bin157> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin157 64.2269 1.088 280022401 280281601 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 :                                   797.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             318.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            845 sec.

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

