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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin132
RA = 64.2269, Dec = 1.088
tmin = 273542401, tmax = 273801601
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='345183', job_status='RUN', time_executed='2021-08-20 10:03:34.318569', time_epoch_executed='1629479014.32' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='132'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/345183

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/345183/ft1_4FGL_J0416.9+0105_daily_bin132.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/345183/ft2_4FGL_J0416.9+0105_daily_bin132.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/345183/ft1_4FGL_J0416.9+0105_daily_bin132.fits outfile=/scratch/kocevski/345183/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin132.fits ra=64.2269 dec=1.088 rad=12.0 tmin=273542401.0 tmax=273801601.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 3.55
user 3.30
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/345183/ft1_filtered_4FGL_J0416.9+0105_daily_bin132.fits" evtable="EVENTS" scfile=/scratch/kocevski/345183/ft2_4FGL_J0416.9+0105_daily_bin132.fits sctable="SC_DATA" outfile=/scratch/kocevski/345183/ltcube_273542401_273801601_4FGL_J0416.9+0105_daily_bin132.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/345183/ft2_4FGL_J0416.9+0105_daily_bin132.fits
.....................!
real 12.20
user 11.82
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/345183/ft1_filtered_4FGL_J0416.9+0105_daily_bin132.fits evtable="EVENTS" scfile=/scratch/kocevski/345183/ft2_4FGL_J0416.9+0105_daily_bin132.fits sctable="SC_DATA" expcube=/scratch/kocevski/345183/ltcube_273542401_273801601_4FGL_J0416.9+0105_daily_bin132.fits outfile=/scratch/kocevski/345183/expmap_273542401_273801601_4FGL_J0416.9+0105_daily_bin132.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/345183/ltcube_273542401_273801601_4FGL_J0416.9+0105_daily_bin132.fits
.....................!
real 190.70
user 186.19
sys 4.19

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

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

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.971       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.7794       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10891E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.330       1.0000         .10000E-03   10000.    
     8 'norm      '    .95485       1.0000         .10000E-03   10000.    
     9 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.5792       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0691       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    44.892       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.3616       1.0000         .10000E-03   10000.    
    17 'norm      '    1.0215       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.9351       1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.255       1.0000         .10000E-03   10000.    
    20 'norm      '    1.3772       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1752       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0096       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7743.999     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2381 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .69910         .0000    ** at limit **
   2  Prefactor     15.958        27.319         .0000       -.12942E-02
   3  Prefactor     .10000E-03    23.653         .0000    ** at limit **
   4  norm          9.7765        16.841         .0000       -.43968E-03
   5  Prefactor     .10000E-03    45.623         .0000    ** at limit **
   6  norm          .10000E-03    1.3110         .0000    ** at limit **
   7  Prefactor     15.338        19.596         .0000        .16452E-02
   8  norm          .95434        19.681         .0000        .19258E-01
   9  norm          .10000E-03    16.479         .0000    ** at limit **
  10  norm          2.5790        1.2103         .0000        .16143E-03
  11  Prefactor     2.0685        1.6766         .0000        .11185E-03
  12  Prefactor     .10000E-03    5.2805         .0000    ** at limit **
  13  Prefactor     44.928        44.312         .0000       -.35354E-02
  14  Prefactor     .10000E-03    2.6363         .0000    ** at limit **
  15  norm          .10000E-03    1.1179         .0000    ** at limit **
  16  Prefactor     2.2406        145.87         .0000       -.22889E-03
  17  norm          1.0204        1.9282         .0000        .10700E-02
  18  Prefactor     9.9395        8.4332         .0000       -.14813E-02
  19  Prefactor     27.257        38.294         .0000        .27177E-03
  20  norm          1.3770        1.7948         .0000        .54184E-03
  21  Normalizat    1.1753        .24143         .0000        .28997E-04
  22  Prefactor     1.0096        .88638E-01     .0000       -.13018E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 15.9583
  Prefactor  = 0.0001
  norm       = 9.77651
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.3376
  norm       = 0.954337
  norm       = 0.0001
  norm       = 2.57896
  Prefactor  = 2.0685
  Prefactor  = 0.0001
  Prefactor  = 44.9283
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.24058
  norm       = 1.02038
  Prefactor  = 9.93952
  Prefactor  = 27.2574
  norm       = 1.37699
  Normalizat = 1.1753
  Prefactor  = 1.00961
 **********
 **   18 **HESSE 
 **********

 FCN=   7743.999     FROM HESSE     STATUS=OK           346 CALLS     2727 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0478        .14208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.958        27.316        .10022E-03   -1.4909    
   3  Prefactor     .10000E-03    24.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.7765        16.836        .12814E-03   -1.5083    
   5  Prefactor     .10000E-03    46.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.3123        .98390E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.338        19.605        .10229E-03   -1.4925    
   8  norm          .95434        5.5791        .10622       -1.5513    
   9  norm          .10000E-03    16.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.5790        1.2082        .62469E-04   -1.5387    
  11  Prefactor     2.0685        1.6638        .95843E-04   -1.5420    
  12  Prefactor     .10000E-03    5.2875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     44.928        44.123        .59838E-04   -1.4366    
  14  Prefactor     .10000E-03    2.6388        .13952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.1592        .18151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.2406        146.59        .26667E-03   -1.5409    
  17  norm          1.0204        1.8705        .15885E-03   -1.5506    
  18  Prefactor     9.9395        8.4207        .12713E-03   -1.5077    
  19  Prefactor     27.257        38.272        .76737E-04   -1.4663    
  20  norm          1.3770        1.7682        .13018E-03   -1.5473    
  21  Normalizat    1.1753        .26849        .38963E-03   -.87370    
  22  Prefactor     1.0096        .99836E-01    .16321E-03   -.92410    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.81679e-08
Minuit parameter uncertainties:
  1  2.69027e-06
  2  27.3373
  3  1.72615e-05
  4  16.8439
  5  5.38399e-07
  6  1.77726e-06
  7  19.6129
  8  4.61533
  9  9.78759e-05
  10  1.20825
  11  1.66381
  12  2.3608e-05
  13  44.1548
  14  2.02862e-05
  15  6.43603e-07
  16  36.3381
  17  1.87056
  18  8.42168
  19  38.3066
  20  1.76827
  21  0.268806
  22  0.0998545
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.000e-04  5.384e-07  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.010e+00  9.985e-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.175e+00  2.688e-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: 7.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/345183/likelihoodResults_273542401_273801601_4FGL_J0416.9+0105_daily_bin132.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) = 7743.99904965
delta logL = -0.000103378454696

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7743.99894576
delta logL = 5.13420673087e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11083E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0247       1.0000          .0000       10.000    
     3 'Normalizat'    1.1753       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0096       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=   7743.961     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      295 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0456        317.15        .90712E-02    .17553E-02
   2  Index         2.7874        5.2868        .65628E-01    .35253E-03
   3  Normalizat    1.1676        .70164E-01    .88209E-01    .43931E-04
   4  Prefactor     1.0093        .27460E-01    .43384E-01   -.57151E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.04556
  Index      = 2.78739
  Normalizat = 1.16763
  Prefactor  = 1.00933
 **********
 **   18 **HESSE 
 **********

 FCN=   7743.961     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      328 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0456        722.13        .32328E-03   -1.5503    
   2  Index         2.7874        8.1481        .18882E-01   -.45841    
   3  Normalizat    1.1676        .19063        .39063E-03   -.87609    
   4  Prefactor     1.0093        .74691E-01    .16320E-03   -.92419    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.07862e-08
Minuit parameter uncertainties:
  1  55.6397
  2  16.3159
  3  0.190745
  4  0.0746984
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/345183': 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) = 7743.96056691
delta logL = 0.0383793644842

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.046e+00  5.564e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  2.787e+00  1.632e+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.009e+00  7.470e-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.168e+00  1.907e-01  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/345183/cmap_HighResolution_273542401_273801601_4FGL_J0416.9+0105_daily_bin132.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.64e-03', job_status='DONE', photon_flux_upper_limit='7.61e-08', time_completed='2021-08-20 10:14:46.641316', job_id='345183', GAL2='1.01', fit_tolerance='1e-08', EG2='1.17', EG='1.18', time_epoch_completed='1629479686.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='3.84e-02', ts2='0.08', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='132' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:14:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 345183: <4FGL_J0416.9+0105_daily_bin132> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin132 64.2269 1.088 273542401 273801601 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 :                                   672.03 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             295.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            859 sec.

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

