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


Performing analysis on: 4FGL_J0407.5+0741_daily_bin456
RA = 61.8921, Dec = 7.6998
tmin = 357523201, tmax = 357782401
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='269851', job_status='RUN', time_executed='2021-08-20 05:48:41.956780', time_epoch_executed='1629463721.96' WHERE source_name='4FGL J0407.5+0741' and cadence='daily' and bin_id='456'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/269851

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/269851/ft1_4FGL_J0407.5+0741_daily_bin456.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/269851/ft2_4FGL_J0407.5+0741_daily_bin456.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/269851/ft1_4FGL_J0407.5+0741_daily_bin456.fits outfile=/scratch/kocevski/269851/ft1_filteredMKT_4FGL_J0407.5+0741_daily_bin456.fits ra=61.8921 dec=7.6998 rad=12.0 tmin=357523201.0 tmax=357782401.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.45
user 3.32
sys 1.11

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/269851/ft2_4FGL_J0407.5+0741_daily_bin456.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/269851/ft2_4FGL_J0407.5+0741_daily_bin456.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/269851/ft1_filteredMKT_4FGL_J0407.5+0741_daily_bin456.fits evtable="EVENTS" outfile="/scratch/kocevski/269851/ft1_filtered_4FGL_J0407.5+0741_daily_bin456.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.24
user 0.30
sys 0.93

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/269851/ft1_filtered_4FGL_J0407.5+0741_daily_bin456.fits" evtable="EVENTS" scfile=/scratch/kocevski/269851/ft2_4FGL_J0407.5+0741_daily_bin456.fits sctable="SC_DATA" outfile=/scratch/kocevski/269851/ltcube_357523201_357782401_4FGL_J0407.5+0741_daily_bin456.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/269851/ft2_4FGL_J0407.5+0741_daily_bin456.fits
.....................!
real 12.98
user 11.59
sys 1.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/269851/ft1_filtered_4FGL_J0407.5+0741_daily_bin456.fits evtable="EVENTS" scfile=/scratch/kocevski/269851/ft2_4FGL_J0407.5+0741_daily_bin456.fits sctable="SC_DATA" expcube=/scratch/kocevski/269851/ltcube_357523201_357782401_4FGL_J0407.5+0741_daily_bin456.fits outfile=/scratch/kocevski/269851/expmap_357523201_357782401_4FGL_J0407.5+0741_daily_bin456.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/269851/ltcube_357523201_357782401_4FGL_J0407.5+0741_daily_bin456.fits
.....................!
real 192.39
user 185.49
sys 6.55

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 J0407.5+0741 @ 61.8921 7.6998

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/269851/ft1_filtered_4FGL_J0407.5+0741_daily_bin456.fits scfile=/scratch/kocevski/269851/ft2_4FGL_J0407.5+0741_daily_bin456.fits outfile=/scratch/kocevski/269851/cmap_357523201_357782401_4FGL_J0407.5+0741_daily_bin456.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=61.8921 yref=7.6998 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.31
user 0.37
sys 0.93

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/269851/ft1_filtered_4FGL_J0407.5+0741_daily_bin456.fits scfile=/scratch/kocevski/269851/ft2_4FGL_J0407.5+0741_daily_bin456.fits outfile=/scratch/kocevski/269851/cmap_HighResolution_357523201_357782401_4FGL_J0407.5+0741_daily_bin456.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=61.8921 yref=7.6998 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.43
user 0.38
sys 1.04

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/269851/ft1_filtered_4FGL_J0407.5+0741_daily_bin456.fits evtable="EVENTS" scfile=/scratch/kocevski/269851/ft2_4FGL_J0407.5+0741_daily_bin456.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/269851/Model_4FGL_J0407.5+0741_daily_bin456.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/269851/ft1_filtered_4FGL_J0407.5+0741_daily_bin456.fits.....................!
real 138.15
user 135.56
sys 2.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/269851/ft1_filtered_4FGL_J0407.5+0741_daily_bin456.fits', '/scratch/kocevski/269851/ft2_4FGL_J0407.5+0741_daily_bin456.fits', expMap='/scratch/kocevski/269851/expmap_357523201_357782401_4FGL_J0407.5+0741_daily_bin456.fits', expCube='/scratch/kocevski/269851/ltcube_357523201_357782401_4FGL_J0407.5+0741_daily_bin456.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/269851/Model_4FGL_J0407.5+0741_daily_bin456.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0407.5+0741'

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  5.499e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
218        Index:  2.311e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
219        Scale:  1.332e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/269851/ft1_filtered_4FGL_J0407.5+0741_daily_bin456.fits
Spacecraft file(s): /scratch/kocevski/269851/ft2_4FGL_J0407.5+0741_daily_bin456.fits
Exposure map: /scratch/kocevski/269851/expmap_357523201_357782401_4FGL_J0407.5+0741_daily_bin456.fits
Exposure cube: /scratch/kocevski/269851/ltcube_357523201_357782401_4FGL_J0407.5+0741_daily_bin456.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/269851/Model_4FGL_J0407.5+0741_daily_bin456.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) = 10524.6847366

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.5833       1.0000         .10000E-03   10000.    
     3 'norm      '    3.7475       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.4110       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.6720       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.7667       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    12.209       1.0000         .10000E-03   10000.    
    11 'norm      '    3.0410       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.989       1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.687       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.0168       1.0000         .10000E-03   10000.    
    16 'norm      '    .53529       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.1968       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.4286       1.0000         .10000E-03   10000.    
    20 'norm      '    7.9329       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93817       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0542       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10524.68     FROM MIGRAD    STATUS=CONVERGED    455 CALLS     2335 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.179       -.11586E-05** at limit **
   2  norm          8.5834        6.4347       -.29856E-07   -.24843E-04
   3  norm          3.7476        2.2928        .88182E-07    .94998E-04
   4  Prefactor     6.4141        90.906        .10216E-05    .83044E-05
   5  Prefactor     7.6723        11.385        .12942E-05   -.12639E-03
   6  norm          .10000E-03    11.973       -.10110E-06** at limit **
   7  Prefactor     .10000E-03    21.274        .66767E-06** at limit **
   8  norm          5.7669        4.6925       -.73703E-06   -.43017E-03
   9  Prefactor     .10000E-03    17.734       -.50107E-06** at limit **
  10  norm          12.209        20.497        .11016E-06   -.12363E-04
  11  norm          3.0411        1.5527        .60490E-06   -.11875E-02
  12  Prefactor     .10000E-03    .69453        .22772E-08** at limit **
  13  Prefactor     15.976        18.915       -.17400E-05   -.26156E-03
  14  Prefactor     29.694        53.680       -.67561E-06    .30499E-04
  15  Prefactor     8.0178        13.074        .18541E-06   -.89258E-05
  16  norm          .53609        1.4429        .24183E-06    .63380E-04
  17  Prefactor     .10000E-03    19.728        .86714E-06** at limit **
  18  norm          1.1965        1.7846        .13857E-06   -.88839E-04
  19  Prefactor     5.4271        6.7313        .44616E-06    .23753E-04
  20  norm          7.9330        2.7016       -.35517E-07   -.21306E-03
  21  Normalizat    .93805        .26759       -.67131E-06   -.27612E-04
  22  Prefactor     1.0542        .70941E-01    .20429E-07   -.54541E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 8.58342
  norm       = 3.74761
  Prefactor  = 6.41415
  Prefactor  = 7.67229
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.76693
  Prefactor  = 0.0001
  norm       = 12.2089
  norm       = 3.04109
  Prefactor  = 0.0001
  Prefactor  = 15.976
  Prefactor  = 29.6935
  Prefactor  = 8.01778
  norm       = 0.536091
  Prefactor  = 0.0001
  norm       = 1.19648
  Prefactor  = 5.42709
  norm       = 7.93298
  Normalizat = 0.938055
  Prefactor  = 1.05418
 **********
 **   18 **HESSE 
 **********

 FCN=   10524.68     FROM HESSE     STATUS=OK           352 CALLS     2687 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.5834        6.4368        .13682E-03   -1.5122    
   3  norm          3.7476        2.2940        .11703E-03   -1.5321    
   4  Prefactor     6.4141        90.794        .15852E-03   -1.5201    
   5  Prefactor     7.6723        11.430        .72389E-03   -1.5154    
   6  norm          .10000E-03    11.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.7669        4.7527        .16725E-03   -1.5228    
   9  Prefactor     .10000E-03    17.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          12.209        20.466        .11464E-03   -1.5009    
  11  norm          3.0411        1.5913        .42153E-03   -1.5359    
  12  Prefactor     .10000E-03    .69813        .83259E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.976        19.267        .10016E-03   -1.4908    
  14  Prefactor     29.694        54.432        .73534E-04   -1.4618    
  15  Prefactor     8.0178        13.090        .14161E-03   -1.5142    
  16  norm          .53609        1.4049        .18693E-03   -1.5562    
  17  Prefactor     .10000E-03    19.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1965        1.7393        .16217E-03   -1.5489    
  19  Prefactor     5.4271        6.6982        .17247E-03   -1.5242    
  20  norm          7.9330        2.7029        .94697E-04   -1.5145    
  21  Normalizat    .93805        .28868        .53416E-03   -.95136    
  22  Prefactor     1.0542        .77760E-01    .14432E-03   -.90945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.19625e-10
Minuit parameter uncertainties:
  1  0.000132608
  2  6.43732
  3  2.29409
  4  48.3532
  5  11.433
  6  2.25616e-06
  7  7.60672e-05
  8  4.75302
  9  3.46598e-05
  10  20.4775
  11  1.59135
  12  3.26314e-06
  13  19.2744
  14  54.5227
  15  13.0949
  16  1.40502
  17  0.000106551
  18  1.73933
  19  6.69911
  20  2.70296
  21  0.289162
  22  0.0777683
Done.

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

Extracting fit parameters...

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  7.672e+00  1.143e+01  1.000e-04  1.000e+04 ( 1.000e-13)
218        Index:  2.311e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
219        Scale:  1.332e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
457    Prefactor:  1.054e+00  7.777e-02  0.000e+00  1.000e+01 ( 1.000e+00)
458        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
459        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
456   Normalization:  9.381e-01  2.892e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.75
Ra Dec: 61.892 7.700
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/269851/likelihoodResults_357523201_357782401_4FGL_J0407.5+0741_daily_bin456.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) = 10524.549046
delta logL = 0.133150626667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10524.5316926
delta logL = 0.150503995854

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.055       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7737       1.0000          .0000       10.000    
     3 'Normalizat'    .94920       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0528       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4600E+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=   10524.53     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      260 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.056        13.892        .12637E-03   -.74596E-03
   2  Index         1.7737        .88056        .11821E-01   -.26409E-03
   3  Normalizat    .94919        .26379        .53128E-03    .12403E-03
   4  Prefactor     1.0528        .75788E-01    .14439E-03    .55087E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.056
  Index      = 1.77365
  Normalizat = 0.949185
  Prefactor  = 1.05281
 **********
 **   18 **HESSE 
 **********

 FCN=   10524.53     FROM HESSE     STATUS=OK            23 CALLS      283 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.056        13.942        .25273E-04   -1.5074    
   2  Index         1.7737        .88387        .47286E-03   -.70138    
   3  Normalizat    .94919        .26384        .21251E-04   -.94753    
   4  Prefactor     1.0528        .75808E-01    .28878E-04   -.90989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.45073e-09
Minuit parameter uncertainties:
  1  13.9465
  2  0.891953
  3  0.264198
  4  0.0758158
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/269851': 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) = 10524.5316926
delta logL = 0.150504003583

Extracting fit parameters...

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  1.006e+01  1.395e+01  1.000e-04  1.000e+04 ( 1.000e-13)
218        Index:  1.774e+00  8.920e-01  0.000e+00  1.000e+01 (-1.000e+00)
219        Scale:  1.332e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
457    Prefactor:  1.053e+00  7.582e-02  0.000e+00  1.000e+01 ( 1.000e+00)
458        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
459        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
456   Normalization:  9.492e-01  2.642e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.05
Ra Dec: 61.892 7.700
Photon Index (Free Index): 1.77 +/- 0.89
Photon Flux (Free Index): 1.28e-08 +/- 2.46e-08
Energy Flux (Free Index): 1.66e-05 +/- 3.24e-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/269851/cmap_HighResolution_357523201_357782401_4FGL_J0407.5+0741_daily_bin456.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.24e-03', comment='SUCCESS', energy_flux2='1.66e-05', dlogl='1.51e-01', photon_flux2='1.28e-08', job_status='DONE', time_completed='2021-08-20 06:02:17.635623', photon_index_error2='0.89', photon_index2='1.77', ts='0.75', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='3.24e-05', EG='0.94', time_epoch_completed='1629464537.64', return_code='0', job_id='269851', GAL2='1.05', EG2='0.95', return_code2='0', photon_flux_error2='2.46e-08', ts2='1.05', photon_index='2.31' WHERE bin_id='456' AND source_name='4FGL J0407.5+0741' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 06:02:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 269851: <4FGL_J0407.5+0741_daily_bin456> in cluster <slac> Done

Job <4FGL_J0407.5+0741_daily_bin456> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 20 05:45:48 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 05:45:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 05:45:49 2021
Terminated at Fri Aug 20 06:02:18 2021
Results reported at Fri Aug 20 06:02:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0407.5+0741_daily_bin456 61.8921 7.6998 357523201 357782401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0407.5+0741 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   827.00 sec.
    Max Memory :                                 1045 MB
    Average Memory :                             299.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            990 sec.

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

