/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 49 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 = 7406
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0407.5+0741_daily_bin45
RA = 61.8921, Dec = 7.6998
tmin = 250992001, tmax = 251251201
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='265835', job_status='RUN', time_executed='2021-08-20 05:32:05.790891', time_epoch_executed='1629462725.79' WHERE source_name='4FGL J0407.5+0741' and cadence='daily' and bin_id='45'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/265835

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/265835/ft1_4FGL_J0407.5+0741_daily_bin45.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/265835/ft2_4FGL_J0407.5+0741_daily_bin45.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/265835/ft1_4FGL_J0407.5+0741_daily_bin45.fits outfile=/scratch/kocevski/265835/ft1_filteredMKT_4FGL_J0407.5+0741_daily_bin45.fits ra=61.8921 dec=7.6998 rad=12.0 tmin=250992001.0 tmax=251251201.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.36
user 1.24
sys 2.08

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/265835/ft2_4FGL_J0407.5+0741_daily_bin45.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/265835/ft1_filteredMKT_4FGL_J0407.5+0741_daily_bin45.fits evtable="EVENTS" outfile="/scratch/kocevski/265835/ft1_filtered_4FGL_J0407.5+0741_daily_bin45.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.41
user 0.33
sys 2.05

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/265835/ft1_filtered_4FGL_J0407.5+0741_daily_bin45.fits" evtable="EVENTS" scfile=/scratch/kocevski/265835/ft2_4FGL_J0407.5+0741_daily_bin45.fits sctable="SC_DATA" outfile=/scratch/kocevski/265835/ltcube_250992001_251251201_4FGL_J0407.5+0741_daily_bin45.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/265835/ft2_4FGL_J0407.5+0741_daily_bin45.fits
.....................!
real 15.46
user 12.91
sys 2.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/265835/ft1_filtered_4FGL_J0407.5+0741_daily_bin45.fits evtable="EVENTS" scfile=/scratch/kocevski/265835/ft2_4FGL_J0407.5+0741_daily_bin45.fits sctable="SC_DATA" expcube=/scratch/kocevski/265835/ltcube_250992001_251251201_4FGL_J0407.5+0741_daily_bin45.fits outfile=/scratch/kocevski/265835/expmap_250992001_251251201_4FGL_J0407.5+0741_daily_bin45.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/265835/ltcube_250992001_251251201_4FGL_J0407.5+0741_daily_bin45.fits
.....................!
real 194.23
user 185.59
sys 8.21

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/265835/ft1_filtered_4FGL_J0407.5+0741_daily_bin45.fits scfile=/scratch/kocevski/265835/ft2_4FGL_J0407.5+0741_daily_bin45.fits outfile=/scratch/kocevski/265835/cmap_250992001_251251201_4FGL_J0407.5+0741_daily_bin45.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 2.40
user 0.37
sys 2.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/265835/ft1_filtered_4FGL_J0407.5+0741_daily_bin45.fits scfile=/scratch/kocevski/265835/ft2_4FGL_J0407.5+0741_daily_bin45.fits outfile=/scratch/kocevski/265835/cmap_HighResolution_250992001_251251201_4FGL_J0407.5+0741_daily_bin45.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 2.42
user 0.37
sys 2.04

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/265835/ft1_filtered_4FGL_J0407.5+0741_daily_bin45.fits', '/scratch/kocevski/265835/ft2_4FGL_J0407.5+0741_daily_bin45.fits', expMap='/scratch/kocevski/265835/expmap_250992001_251251201_4FGL_J0407.5+0741_daily_bin45.fits', expCube='/scratch/kocevski/265835/ltcube_250992001_251251201_4FGL_J0407.5+0741_daily_bin45.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/265835/Model_4FGL_J0407.5+0741_daily_bin45.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/265835/ft1_filtered_4FGL_J0407.5+0741_daily_bin45.fits
Spacecraft file(s): /scratch/kocevski/265835/ft2_4FGL_J0407.5+0741_daily_bin45.fits
Exposure map: /scratch/kocevski/265835/expmap_250992001_251251201_4FGL_J0407.5+0741_daily_bin45.fits
Exposure cube: /scratch/kocevski/265835/ltcube_250992001_251251201_4FGL_J0407.5+0741_daily_bin45.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/265835/Model_4FGL_J0407.5+0741_daily_bin45.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) = 10456.383647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7359       1.0000         .10000E-03   10000.    
     2 'norm      '    6.8190       1.0000         .10000E-03   10000.    
     3 'norm      '    1.6957       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.371       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.782       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.030       1.0000         .10000E-03   10000.    
    10 'norm      '    .10488E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.1689       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .69115       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .30899E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9700       1.0000         .10000E-03   10000.    
    16 'norm      '    .12687E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.8662       1.0000         .10000E-03   10000.    
    18 'norm      '    10.231       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10568E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .44665       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1113       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=   10456.38     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2730 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7451        10.924        .60452E-06    .95421E-04
   2  norm          6.8193        6.2270       -.22916E-07    .76909E-04
   3  norm          1.6963        1.2479        .97421E-07    .28387E-03
   4  Prefactor     27.378        30.324        .17977E-05   -.20774E-04
   5  Prefactor     .10000E-03    24.456        .12447E-05** at limit **
   6  norm          .10000E-03    8.8924       -.12606E-06** at limit **
   7  Prefactor     21.810        32.221        .79988E-05   -.14690E-03
   8  norm          .10000E-03    1.4758        .54517E-08** at limit **
   9  Prefactor     17.030        17.185        .52585E-07    .43024E-04
  10  norm          .10000E-03    14.954       -.22963E-05** at limit **
  11  norm          3.1695        1.1831        .10697E-07    .26995E-03
  12  Prefactor     .69126        1.0127       -.13921E-06    .90851E-04
  13  Prefactor     .10000E-03    114.27       -.49121E-04** at limit **
  14  Prefactor     .10000E-03    11.379        .67594E-06** at limit **
  15  Prefactor     3.9784        11.244       -.44985E-05    .10374E-03
  16  norm          .10000E-03    .98345       -.28514E-06** at limit **
  17  Prefactor     4.8688        30.904        .10001E-05    .12388E-04
  18  norm          10.232        3.7165       -.46047E-07    .46393E-03
  19  Prefactor     .10000E-03    4.9596        .41064E-06** at limit **
  20  norm          .10000E-03    .70663        .78195E-07** at limit **
  21  Normalizat    .44592        .26417       -.11882E-04   -.23074E-03
  22  Prefactor     1.1114        .76776E-01    .17553E-05   -.24534E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.74506
  norm       = 6.81932
  norm       = 1.69632
  Prefactor  = 27.3781
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.8101
  norm       = 0.0001
  Prefactor  = 17.0301
  norm       = 0.0001
  norm       = 3.16947
  Prefactor  = 0.691263
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 3.9784
  norm       = 0.0001
  Prefactor  = 4.8688
  norm       = 10.2315
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.445918
  Prefactor  = 1.11142
 **********
 **   18 **HESSE 
 **********

 FCN=   10456.38     FROM HESSE     STATUS=OK           356 CALLS     3086 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7451        10.889        .24616E-03   -1.5377    
   2  norm          6.8193        6.2305        .15365E-03   -1.5186    
   3  norm          1.6963        1.2464        .95014E-04   -1.5447    
   4  Prefactor     27.378        30.298        .76574E-04   -1.4661    
   5  Prefactor     .10000E-03    25.411        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    8.9050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.810        32.147        .85822E-04   -1.4774    
   8  norm          .10000E-03    1.4811        .12127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.030        17.159        .97053E-04   -1.4882    
  10  norm          .10000E-03    15.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.1695        1.1767        .64384E-04   -1.5352    
  12  Prefactor     .69126        1.0104        .48111E-04   -1.5542    
  13  Prefactor     .10000E-03    10.499        .95770E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.9784        11.240        .10122E-02   -1.5309    
  16  norm          .10000E-03    1.6262        .19179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.8688        30.907        .18235E-03   -1.5267    
  18  norm          10.232        3.6934        .11298E-03   -1.5068    
  19  Prefactor     .10000E-03    5.0500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.4560        .16714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .44592        .25456        .67391E-03   -1.1499    
  22  Prefactor     1.1114        .75317E-01    .13285E-03   -.89102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39119e-09
Minuit parameter uncertainties:
  1  10.8965
  2  6.23113
  3  1.24645
  4  30.3148
  5  0.000119463
  6  1.22226e-05
  7  32.172
  8  2.30171e-06
  9  17.1643
  10  0.000105876
  11  1.17675
  12  1.01045
  13  0.000320255
  14  2.82873e-05
  15  11.2455
  16  4.70841e-05
  17  24.5523
  18  3.69353
  19  6.6469e-05
  20  4.17654e-06
  21  0.255223
  22  0.0753238
Done.

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

Extracting fit parameters...

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  1.000e-04  1.195e-04  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.111e+00  7.532e-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:  4.459e-01  2.552e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 61.892 7.700
Photon Flux Upper Limit: 8.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/265835/likelihoodResults_250992001_251251201_4FGL_J0407.5+0741_daily_bin45.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) = 10456.3789194
delta logL = -0.000187812691365

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10454.0869665
delta logL = 2.29176502803

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1206       1.0000         .10000E-03   10000.    
     2 'Index     '    .37655       1.0000          .0000       10.000    
     3 'Normalizat'    .42612       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1152       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.

 FCN=   10454.09     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      311 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1151        1.2125        .11091E-02   -.16425E-03
   2  Index         .37536        .44716        .37913        .49650E-05
   3  Normalizat    .42619        .25231        .15526        .92872E-04
   4  Prefactor     1.1152        .76883E-01    .37037E-01   -.26879E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11512
  Index      = 0.375363
  Normalizat = 0.426195
  Prefactor  = 1.11517
 **********
 **   18 **HESSE 
 **********

 FCN=   10454.09     FROM HESSE     STATUS=OK            33 CALLS      344 TOTAL
                     EDM=   .41E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1151        2.5656        .44364E-04   -1.5497    
   2  Index         .37536        .69939        .22667E-01   -1.1808    
   3  Normalizat    .42619        .24262        .68789E-03   -1.1597    
   4  Prefactor     1.1152        .74135E-01    .13261E-03   -.88983    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08382e-13
Minuit parameter uncertainties:
  1  2.56583
  2  0.71622
  3  0.243225
  4  0.074142
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/265835': 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) = 10454.0869649
delta logL = 2.29176669257

Extracting fit parameters...

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  1.115e+00  2.566e+00  1.000e-04  1.000e+04 ( 1.000e-13)
218        Index:  3.754e-01  7.162e-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.115e+00  7.414e-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:  4.262e-01  2.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.59
Ra Dec: 61.892 7.700
Photon Index (Free Index): 0.38 +/- 0.72
Photon Flux (Free Index): 3.48e-09 +/- 3.62e-09
Energy Flux (Free Index): 1.36e-04 +/- 1.63e-04

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/265835/cmap_HighResolution_250992001_251251201_4FGL_J0407.5+0741_daily_bin45.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.46e-03', comment='SUCCESS', energy_flux2='1.36e-04', dlogl='2.29e+00', photon_flux2='3.48e-09', job_status='DONE', time_completed='2021-08-20 05:46:38.863238', photon_index_error2='0.72', photon_index2='0.38', ts='-0.00', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='8.41e-08', energy_flux_error2='1.63e-04', EG='0.45', time_epoch_completed='1629463598.86', return_code='0', job_id='265835', GAL2='1.12', EG2='0.43', return_code2='0', photon_flux_error2='3.62e-09', ts2='4.59', photon_index='2.31' WHERE bin_id='45' AND source_name='4FGL J0407.5+0741' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 05:46:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 265835: <4FGL_J0407.5+0741_daily_bin45> in cluster <slac> Done

Job <4FGL_J0407.5+0741_daily_bin45> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 05:30:35 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 05:30:37 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:30:37 2021
Terminated at Fri Aug 20 05:46:39 2021
Results reported at Fri Aug 20 05:46:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0407.5+0741_daily_bin45 61.8921 7.6998 250992001 251251201 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 :                                   898.43 sec.
    Max Memory :                                 1110 MB
    Average Memory :                             357.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            964 sec.

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

