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


Performing analysis on: 4FGL_J0416.9+0105_daily_bin878
RA = 64.2269, Dec = 1.088
tmin = 466905601, tmax = 467164801
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='348363', job_status='RUN', time_executed='2021-08-20 10:13:25.860982', time_epoch_executed='1629479605.86' WHERE source_name='4FGL J0416.9+0105' and cadence='daily' and bin_id='878'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348363

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348363/ft1_4FGL_J0416.9+0105_daily_bin878.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348363/ft2_4FGL_J0416.9+0105_daily_bin878.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348363/ft1_4FGL_J0416.9+0105_daily_bin878.fits outfile=/scratch/kocevski/348363/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin878.fits ra=64.2269 dec=1.088 rad=12.0 tmin=466905601.0 tmax=467164801.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 12.14
user 3.38
sys 8.71

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/348363/ft2_4FGL_J0416.9+0105_daily_bin878.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/348363/ft1_filteredMKT_4FGL_J0416.9+0105_daily_bin878.fits evtable="EVENTS" outfile="/scratch/kocevski/348363/ft1_filtered_4FGL_J0416.9+0105_daily_bin878.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 9.08
user 0.31
sys 8.74

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/348363/ft1_filtered_4FGL_J0416.9+0105_daily_bin878.fits" evtable="EVENTS" scfile=/scratch/kocevski/348363/ft2_4FGL_J0416.9+0105_daily_bin878.fits sctable="SC_DATA" outfile=/scratch/kocevski/348363/ltcube_466905601_467164801_4FGL_J0416.9+0105_daily_bin878.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/348363/ft2_4FGL_J0416.9+0105_daily_bin878.fits
.....................!
real 21.34
user 11.33
sys 9.96

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348363/ft1_filtered_4FGL_J0416.9+0105_daily_bin878.fits evtable="EVENTS" scfile=/scratch/kocevski/348363/ft2_4FGL_J0416.9+0105_daily_bin878.fits sctable="SC_DATA" expcube=/scratch/kocevski/348363/ltcube_466905601_467164801_4FGL_J0416.9+0105_daily_bin878.fits outfile=/scratch/kocevski/348363/expmap_466905601_467164801_4FGL_J0416.9+0105_daily_bin878.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/348363/ltcube_466905601_467164801_4FGL_J0416.9+0105_daily_bin878.fits
.....................!
real 202.58
user 185.75
sys 16.48

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/348363/ft1_filtered_4FGL_J0416.9+0105_daily_bin878.fits scfile=/scratch/kocevski/348363/ft2_4FGL_J0416.9+0105_daily_bin878.fits outfile=/scratch/kocevski/348363/cmap_466905601_467164801_4FGL_J0416.9+0105_daily_bin878.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 8.86
user 0.37
sys 8.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/348363/ft1_filtered_4FGL_J0416.9+0105_daily_bin878.fits scfile=/scratch/kocevski/348363/ft2_4FGL_J0416.9+0105_daily_bin878.fits outfile=/scratch/kocevski/348363/cmap_HighResolution_466905601_467164801_4FGL_J0416.9+0105_daily_bin878.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 8.95
user 0.38
sys 8.54

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1667       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.951       1.0000         .10000E-03   10000.    
     4 'norm      '    26.227       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.3054       1.0000         .10000E-03   10000.    
     6 'norm      '    1.4837       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    15.927       1.0000         .10000E-03   10000.    
     9 'norm      '    .10713E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .82951       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .40988       1.0000         .10000E-03   10000.    
    12 'Prefactor '    47.026       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13456E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3508       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    126.79       1.0000         .10000E-03   10000.    
    17 'norm      '    8.0883       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .56142E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.7859       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .67074       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98940       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=   7488.842     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     3072 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1657        1.8711        .12512E-07    .21533E-04
   2  Prefactor     .10000E-03    11.079        .16128E-06** at limit **
   3  Prefactor     30.053        15.714       -.73729E-07    .78805E-04
   4  norm          26.285        21.808       -.40262E-06   -.10147E-03
   5  Prefactor     7.3121        55.362       -.35600E-05   -.26554E-04
   6  norm          1.4840        4.7048        .15413E-05    .15821E-03
   7  Prefactor     .10000E-03    5.7529       -.16814E-06** at limit **
   8  norm          15.901        13.545       -.76798E-07   -.24706E-04
   9  norm          .10000E-03    14.144       -.20747E-06** at limit **
  10  norm          .83024        1.5135       -.30216E-06   -.66526E-03
  11  Prefactor     .40866        1.5785        .17411E-05    .66024E-03
  12  Prefactor     47.057        22.822        .67817E-06    .40859E-03
  13  Prefactor     .10000E-03    211.17       -.17907E-05** at limit **
  14  Prefactor     5.2735        11.286        .25266E-06   -.13848E-04
  15  norm          .10000E-03    1.7299       -.95169E-06** at limit **
  16  Prefactor     126.68        58.731        .92690E-06    .13499E-03
  17  norm          8.0883        2.9648        .18759E-07    .20154E-03
  18  Prefactor     .10014E-03    6.6249       -.37723E-05** at limit **
  19  Prefactor     3.6867        71.615        .92693E-05    .13747E-03
  20  norm          .10000E-03    .99883        .18829E-06** at limit **
  21  Normalizat    .67146        .26156       -.27304E-05    .29602E-03
  22  Prefactor     .98919        .92203E-01    .11134E-05    .81774E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.16569
  Prefactor  = 0.0001
  Prefactor  = 30.0532
  norm       = 26.2851
  Prefactor  = 7.31207
  norm       = 1.484
  Prefactor  = 0.0001
  norm       = 15.9009
  norm       = 0.0001
  norm       = 0.830244
  Prefactor  = 0.408663
  Prefactor  = 47.0573
  Prefactor  = 0.000100004
  Prefactor  = 5.27351
  norm       = 0.0001
  Prefactor  = 126.677
  norm       = 8.0883
  Prefactor  = 0.000100142
  Prefactor  = 3.68671
  norm       = 0.0001
  Normalizat = 0.671457
  Prefactor  = 0.989187
 **********
 **   18 **HESSE 
 **********

 FCN=   7488.842     FROM HESSE     STATUS=OK           344 CALLS     3416 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1657        1.8691        .75246E-04   -1.5300    
   2  Prefactor     .10000E-03    11.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     30.053        15.713        .73209E-04   -1.4611    
   4  norm          26.285        21.773        .78224E-04   -1.4682    
   5  Prefactor     7.3121        54.469        .14840E-03   -1.5167    
   6  norm          1.4840        4.5835        .30036E-03   -1.5464    
   7  Prefactor     .10000E-03    5.7574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          15.901        13.533        .10036E-03   -1.4910    
   9  norm          .10000E-03    14.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .83024        1.3796        .11258E-03   -1.5526    
  11  Prefactor     .40866        1.5288        .18713E-03   -1.5580    
  12  Prefactor     47.057        22.738        .58471E-04   -1.4335    
  13  Prefactor     .10000E-03    216.93        .41108E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.2735        11.193        .17374E-03   -1.5249    
  15  norm          .10000E-03    1.7960        .22159E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     126.68        58.504        .17875E-03   -1.3452    
  17  norm          8.0883        2.9632        .84147E-04   -1.5139    
  18  Prefactor     .10014E-03    18.781        .35721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.6867        72.013        .20747E-03   -1.5324    
  20  norm          .10000E-03    1.0169        .84371E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .67146        .27203        .45735E-03   -1.0503    
  22  Prefactor     .98919        .98242E-01    .15297E-03   -.93091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.60293e-09
Minuit parameter uncertainties:
  1  1.86911
  2  6.40847e-06
  3  15.7154
  4  21.78
  5  39.9646
  6  4.58458
  7  7.79038e-06
  8  13.5352
  9  3.41923e-05
  10  1.37962
  11  1.52896
  12  22.7418
  13  0.00192287
  14  11.1976
  15  1.85224e-05
  16  58.5306
  17  2.96323
  18  0.0032716
  19  32.6327
  20  2.54736e-06
  21  0.272577
  22  0.0982598
Done.

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

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  7.312e+00  3.996e+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.892e-01  9.826e-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.715e-01  2.726e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/348363/likelihoodResults_466905601_467164801_4FGL_J0416.9+0105_daily_bin878.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) = 7487.88745241
delta logL = 0.95416968421

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7487.84789928
delta logL = 0.993722817762

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8940       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2142       1.0000          .0000       10.000    
     3 'Normalizat'    .60202       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99598       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=   7487.848     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      273 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8940        27.953        .75576E-02    .14903E-02
   2  Index         3.2146        1.9756        .72948E-01    .27973E-03
   3  Normalizat    .60205        .72209E-01    .10832        .40403E-04
   4  Prefactor     .99611        .27927E-01    .34467E-01   -.99364E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.89402
  Index      = 3.21455
  Normalizat = 0.602046
  Prefactor  = 0.996107
 **********
 **   18 **HESSE 
 **********

 FCN=   7487.848     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      306 TOTAL
                     EDM=   .59E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8940        56.343        .89556E-04   -1.5433    
   2  Index         3.2146        3.2013        .36914E-02   -.36515    
   3  Normalizat    .60205        .22547        .48030E-03   -1.0790    
   4  Prefactor     .99611        .89227E-01    .15231E-03   -.92859    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.86474e-07
Minuit parameter uncertainties:
  1  20.6814
  2  3.5272
  3  0.225816
  4  0.0892399
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348363': 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) = 7487.84789393
delta logL = 0.993728167912

Extracting fit parameters...

4FGL J0416.9+0105
   Spectrum: PowerLaw
210    Prefactor:  1.894e+00  2.068e+01  1.000e-04  1.000e+04 ( 1.000e-14)
211        Index:  3.215e+00  3.527e+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:  9.961e-01  8.924e-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.020e-01  2.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.10
Ra Dec: 64.227 1.088
Photon Index (Free Index): 3.21 +/- 3.53
Photon Flux (Free Index): 9.67e-08 +/- 8.03e-08
Energy Flux (Free Index): 1.76e-05 +/- 2.27e-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/348363/cmap_HighResolution_466905601_467164801_4FGL_J0416.9+0105_daily_bin878.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.60e-03', comment='SUCCESS', energy_flux2='1.76e-05', dlogl='9.94e-01', photon_flux2='9.67e-08', job_status='DONE', time_completed='2021-08-20 10:27:19.382260', photon_index_error2='3.53', photon_index2='3.21', ts='0.04', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='2.27e-05', EG='0.67', time_epoch_completed='1629480439.38', return_code='0', job_id='348363', GAL2='1.00', EG2='0.60', return_code2='102', photon_flux_error2='8.03e-08', ts2='2.10', photon_index='1.88' WHERE bin_id='878' AND source_name='4FGL J0416.9+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 10:27:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 348363: <4FGL_J0416.9+0105_daily_bin878> in cluster <slac> Done

Job <4FGL_J0416.9+0105_daily_bin878> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Aug 20 10:10:55 2021
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 10:10:56 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:10:56 2021
Terminated at Fri Aug 20 10:27:21 2021
Results reported at Fri Aug 20 10:27:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0416.9+0105_daily_bin878 64.2269 1.088 466905601 467164801 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 :                                   966.44 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             294.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            986 sec.

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

