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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin1121
RA = 64.2269, Dec = 1.088
tmin = 529891201, tmax = 530150401
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='350794', job_status='RUN', time_executed='2021-08-20 10:23:04.463411', time_epoch_executed='1629480184.46' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='1121'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/350794

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/350794/ft1_4FGL_J0416.9+0105_daily_bin1121.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/350794/ft2_4FGL_J0416.9+0105_daily_bin1121.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/350794/ft1_4FGL_J0416.9+0105_daily_bin1121.fits outfile=/scratch/kocevski/350794/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1121.fits ra=64.2269 dec=1.088 rad=12.0 tmin=529891201.0 tmax=530150401.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 6.13
user 3.33
sys 2.61

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/350794/ft2_4FGL_J0416.9+0105_daily_bin1121.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/350794/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin1121.fits evtable="EVENTS" outfile="/scratch/kocevski/350794/ft1_filtered_4FGL_J0416.9+0105_daily_bin1121.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 2.96
user 0.32
sys 2.58

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/350794/ft1_filtered_4FGL_J0416.9+0105_daily_bin1121.fits" evtable="EVENTS" scfile=/scratch/kocevski/350794/ft2_4FGL_J0416.9+0105_daily_bin1121.fits sctable="SC_DATA" outfile=/scratch/kocevski/350794/ltcube_529891201_530150401_4FGL_J0416.9+0105_daily_bin1121.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/350794/ft2_4FGL_J0416.9+0105_daily_bin1121.fits
.....................!
real 15.38
user 12.28
sys 3.04

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/350794/ft1_filtered_4FGL_J0416.9+0105_daily_bin1121.fits evtable="EVENTS" scfile=/scratch/kocevski/350794/ft2_4FGL_J0416.9+0105_daily_bin1121.fits sctable="SC_DATA" expcube=/scratch/kocevski/350794/ltcube_529891201_530150401_4FGL_J0416.9+0105_daily_bin1121.fits outfile=/scratch/kocevski/350794/expmap_529891201_530150401_4FGL_J0416.9+0105_daily_bin1121.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/350794/ltcube_529891201_530150401_4FGL_J0416.9+0105_daily_bin1121.fits
.....................!
real 195.31
user 187.58
sys 7.29

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/350794/ft1_filtered_4FGL_J0416.9+0105_daily_bin1121.fits scfile=/scratch/kocevski/350794/ft2_4FGL_J0416.9+0105_daily_bin1121.fits outfile=/scratch/kocevski/350794/cmap_529891201_530150401_4FGL_J0416.9+0105_daily_bin1121.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 2.94
user 0.38
sys 2.50

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/350794/ft1_filtered_4FGL_J0416.9+0105_daily_bin1121.fits scfile=/scratch/kocevski/350794/ft2_4FGL_J0416.9+0105_daily_bin1121.fits outfile=/scratch/kocevski/350794/cmap_HighResolution_529891201_530150401_4FGL_J0416.9+0105_daily_bin1121.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 2.93
user 0.37
sys 2.52

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.051       1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.281       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.8770       1.0000         .10000E-03   10000.    
     4 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.6722       1.0000         .10000E-03   10000.    
     6 'norm      '    11.082       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.821       1.0000         .10000E-03   10000.    
     8 'norm      '    .10113E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .51440E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .21255       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8336       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.6587       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11169E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.772       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .63345       1.0000         .10000E-03   10000.    
    20 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0934       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98066       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=   9821.188     FROM MIGRAD    STATUS=CONVERGED    102 CALLS     2041 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.051        2.2720        .45509E-07    .64007E-03
   2  Prefactor     33.322        4.1963        .11279E-06   -.76631E-02
   3  Prefactor     8.8863        2.2845        .15887E-06   -.13054E-02
   4  norm          .10000E-03    6.7752        .80342E-06** at limit **
   5  Prefactor     9.6701        1.1798       -.45412E-07    .45677E-03
   6  norm          11.084        4.9046        .62292E-07    .20492E-02
   7  Prefactor     13.841        2.8903       -.48428E-07    .38484E-02
   8  norm          .10000E-03    5.3335        .58219E-06** at limit **
   9  norm          .10008E-03    197.78       -.25493E-05** at limit **
  10  norm          .10000E-03    .48715       -.15371E-06** at limit **
  11  Prefactor     .21127        2.3479        .13377E-05    .55934E-03
  12  Prefactor     1.9044        4.6246        .25427E-06   -.14967E-04
  13  Prefactor     .10018E-03    43.556       -.44006E-05** at limit **
  14  Prefactor     .10000E-03    6.6001       -.35531E-06** at limit **
  15  norm          5.6630        3.0460       -.68794E-07   -.38926E-03
  16  Prefactor     .10001E-03    27.328       -.26134E-07** at limit **
  17  norm          .10000E-03    .58194        .17213E-06** at limit **
  18  Prefactor     10.772        6.3181        .12086E-06    .88066E-02
  19  Prefactor     .69029        20.721        .28389E-05   -.12036E-02
  20  norm          .10000E-03    1.2822        .49974E-06** at limit **
  21  Normalizat    1.0936        .22633        .13795E-05    .26514E-03
  22  Prefactor     .98058        .86682E-01   -.28303E-06    .41344E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.0514
  Prefactor  = 33.3216
  Prefactor  = 8.8863
  norm       = 0.0001
  Prefactor  = 9.67005
  norm       = 11.0835
  Prefactor  = 13.8413
  norm       = 0.0001
  norm       = 0.000100077
  norm       = 0.0001
  Prefactor  = 0.211273
  Prefactor  = 1.90435
  Prefactor  = 0.000100184
  Prefactor  = 0.0001
  norm       = 5.66305
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 10.7716
  Prefactor  = 0.69029
  norm       = 0.0001
  Normalizat = 1.09355
  Prefactor  = 0.980578
 **********
 **   18 **HESSE 
 **********

 FCN=   9821.188     FROM HESSE     STATUS=OK           408 CALLS     2449 TOTAL
                     EDM=   .53E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.051        2.2741        .31597E-02   -1.5074    
   2  Prefactor     33.322        46.440        .17365E-02   -1.4553    
   3  Prefactor     8.8863        12.921        .33632E-02   -1.5112    
   4  norm          .10000E-03    6.7735        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.6701        15.245        .32213E-02   -1.5086    
   6  norm          11.084        4.9552        .30087E-02   -1.5042    
   7  Prefactor     13.841        22.964        .26935E-02   -1.4964    
   8  norm          .10000E-03    5.2654        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10008E-03    18.307        .12364       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .36109        .29749E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .21127        1.2378        .30144E-01   -1.5616    
  12  Prefactor     1.9044        157.21        .77039E-02   -1.5432    
  13  Prefactor     .10018E-03    47.055        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.5121        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.6630        4.1790        .42217E-02   -1.5232    
  16  Prefactor     .10001E-03    27.310        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .57767        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.772        7.4640        .30519E-02   -1.5051    
  19  Prefactor     .69029        12.737        .11804       -1.5542    
  20  norm          .10000E-03    1.2396        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0936        .20847        .91709E-01   -.89959    
  22  Prefactor     .98058        .78574E-01    .46025E-01   -.93380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.31472e-07
Minuit parameter uncertainties:
  1  2.27409
  2  46.4902
  3  12.9254
  4  6.90526e-06
  5  15.2512
  6  4.95539
  7  22.979
  8  4.45533e-05
  9  0.00237257
  10  3.16461e-06
  11  1.02256
  12  34.6996
  13  0.00589523
  14  4.87981e-05
  15  4.17918
  16  0.000801371
  17  4.57559e-06
  18  7.4646
  19  5.93127
  20  1.95662e-05
  21  0.208623
  22  0.0785834
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  9.670e+00  1.525e+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:  9.806e-01  7.858e-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.094e+00  2.086e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/350794/likelihoodResults_529891201_530150401_4FGL_J0416.9+0105_daily_bin1121.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) = 9821.18751515
delta logL = 0.000748582666347

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9821.18710986
delta logL = 0.0011538684721

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1439       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9204       1.0000          .0000       10.000    
     3 'Normalizat'    1.0930       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98051       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9821.187     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      254 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1368        20.116        .13254E-03    .60719E-03
   2  Index         1.9183        .96147        .11788E-01    .19724E-03
   3  Normalizat    1.0932        .21958        .40627E-03   -.78692E-03
   4  Prefactor     .98061        .86368E-01    .16638E-03   -.22228E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.13682
  Index      = 1.91833
  Normalizat = 1.09319
  Prefactor  = 0.980612
 **********
 **   18 **HESSE 
 **********

 FCN=   9821.187     FROM HESSE     STATUS=OK            25 CALLS      279 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1368        18.339        .26508E-04   -1.5103    
   2  Index         1.9183        .87869        .47150E-03   -.66408    
   3  Normalizat    1.0932        .21960        .81254E-04   -.89971    
   4  Prefactor     .98061        .86396E-01    .33276E-04   -.93379    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82701e-09
Minuit parameter uncertainties:
  1  18.3508
  2  0.886148
  3  0.219788
  4  0.086408
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/350794': 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): 0
logL (Free Index) = 9821.18710053
delta logL = 0.00116319636072

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  9.137e+00  1.835e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  1.918e+00  8.861e-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:  9.806e-01  8.641e-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.093e+00  2.198e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.69
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/350794/cmap_HighResolution_529891201_530150401_4FGL_J0416.9+0105_daily_bin1121.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.46e-03', job_status='DONE', photon_flux_upper_limit='6.00e-08', time_completed='2021-08-20 10:36:08.191019', job_id='350794', GAL2='0.98', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1629480968.19', return_code2='0', ts='0.69', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.16e-03', ts2='0.69', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='1121' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:36:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 350794: <4FGL_J0416.9+0105_daily_bin1121> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin1121> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 20 10:20:22 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:20:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 10:20:24 2021
Terminated at Fri Aug 20 10:36:09 2021
Results reported at Fri Aug 20 10:36:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin1121 64.2269 1.088 529891201 530150401 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 :                                   821.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             282.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            947 sec.

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

