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


Performing analysis on: 4FGL_J0407.5+0741_daily_bin237
RA = 61.8921, Dec = 7.6998
tmin = 300758401, tmax = 301017601
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='267296', job_status='RUN', time_executed='2021-08-20 05:39:46.861063', time_epoch_executed='1629463186.86' WHERE source_name='4FGL J0407.5+0741' and cadence='daily' and bin_id='237'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/267296

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/267296/ft1_4FGL_J0407.5+0741_daily_bin237.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/267296/ft2_4FGL_J0407.5+0741_daily_bin237.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/267296/ft1_4FGL_J0407.5+0741_daily_bin237.fits outfile=/scratch/kocevski/267296/ft1_filteredMKT_4FGL_J0407.5+0741_daily_bin237.fits ra=61.8921 dec=7.6998 rad=12.0 tmin=300758401.0 tmax=301017601.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.69
user 3.28
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/267296/ft2_4FGL_J0407.5+0741_daily_bin237.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/267296/ft1_filteredMKT_4FGL_J0407.5+0741_daily_bin237.fits evtable="EVENTS" outfile="/scratch/kocevski/267296/ft1_filtered_4FGL_J0407.5+0741_daily_bin237.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/267296/ft1_filtered_4FGL_J0407.5+0741_daily_bin237.fits" evtable="EVENTS" scfile=/scratch/kocevski/267296/ft2_4FGL_J0407.5+0741_daily_bin237.fits sctable="SC_DATA" outfile=/scratch/kocevski/267296/ltcube_300758401_301017601_4FGL_J0407.5+0741_daily_bin237.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/267296/ft2_4FGL_J0407.5+0741_daily_bin237.fits
.....................!
real 11.71
user 11.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/267296/ft1_filtered_4FGL_J0407.5+0741_daily_bin237.fits evtable="EVENTS" scfile=/scratch/kocevski/267296/ft2_4FGL_J0407.5+0741_daily_bin237.fits sctable="SC_DATA" expcube=/scratch/kocevski/267296/ltcube_300758401_301017601_4FGL_J0407.5+0741_daily_bin237.fits outfile=/scratch/kocevski/267296/expmap_300758401_301017601_4FGL_J0407.5+0741_daily_bin237.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/267296/ltcube_300758401_301017601_4FGL_J0407.5+0741_daily_bin237.fits
.....................!
real 191.36
user 186.70
sys 4.34

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/267296/ft1_filtered_4FGL_J0407.5+0741_daily_bin237.fits scfile=/scratch/kocevski/267296/ft2_4FGL_J0407.5+0741_daily_bin237.fits outfile=/scratch/kocevski/267296/cmap_300758401_301017601_4FGL_J0407.5+0741_daily_bin237.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 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/267296/ft1_filtered_4FGL_J0407.5+0741_daily_bin237.fits scfile=/scratch/kocevski/267296/ft2_4FGL_J0407.5+0741_daily_bin237.fits outfile=/scratch/kocevski/267296/cmap_HighResolution_300758401_301017601_4FGL_J0407.5+0741_daily_bin237.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 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    44.259       1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.656       1.0000         .10000E-03   10000.    
     6 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .24106E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.5011       1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .59655       1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.056       1.0000         .10000E-03   10000.    
    14 'Prefactor '    79.060       1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.408       1.0000         .10000E-03   10000.    
    16 'norm      '    .10292E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.2140       1.0000         .10000E-03   10000.    
    18 'norm      '    4.9453       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.3576       1.0000         .10000E-03   10000.    
    20 'norm      '    2.1368       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1092       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0128       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=   10484.15     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     2425 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0106        .47313E-07** at limit **
   2  norm          .10000E-03    1.8584        .52702E-08** at limit **
   3  norm          .10000E-03    1.1478        .15441E-06** at limit **
   4  Prefactor     44.267        42.565        .42684E-05    .67843E-04
   5  Prefactor     26.647        17.528       -.48379E-07    .35164E-04
   6  norm          .10000E-03    31.550       -.35076E-07** at limit **
   7  Prefactor     .10000E-03    13.234        .44298E-07** at limit **
   8  norm          .10000E-03    2.7037        .11816E-06** at limit **
   9  Prefactor     .10000E-03    70.460        .95904E-06** at limit **
  10  norm          3.5073        29.480       -.29215E-05    .14251E-07
  11  norm          .10000E-03    .35450        .21535E-08** at limit **
  12  Prefactor     .59700        1.6372        .37176E-07   -.83686E-03
  13  Prefactor     32.072        26.195        .48376E-05    .46710E-03
  14  Prefactor     79.066        65.961        .19125E-05    .87700E-04
  15  Prefactor     22.405        13.252        .33011E-06    .23738E-04
  16  norm          .10001E-03    1.6223       -.70360E-06** at limit **
  17  Prefactor     8.2127        32.738       -.16885E-05    .34322E-05
  18  norm          4.9458        3.6699       -.96286E-07    .37999E-05
  19  Prefactor     4.3569        4.8610        .16402E-05   -.18201E-02
  20  norm          2.1366        1.8310        .52385E-08   -.56626E-04
  21  Normalizat    1.1092        .27161       -.41000E-05    .13382E-03
  22  Prefactor     1.0128        .69913E-01    .38321E-06    .76502E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 44.2665
  Prefactor  = 26.6468
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.5073
  norm       = 0.0001
  Prefactor  = 0.596996
  Prefactor  = 32.072
  Prefactor  = 79.0658
  Prefactor  = 22.4048
  norm       = 0.000100005
  Prefactor  = 8.21272
  norm       = 4.94585
  Prefactor  = 4.35687
  norm       = 2.13655
  Normalizat = 1.10925
  Prefactor  = 1.01281
 **********
 **   18 **HESSE 
 **********

 FCN=   10484.15     FROM HESSE     STATUS=OK           346 CALLS     2771 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.0215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.8593        .13632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.2881        .21134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     44.267        41.883        .60263E-04   -1.4376    
   5  Prefactor     26.647        17.524        .77592E-04   -1.4675    
   6  norm          .10000E-03    31.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    9.8768        .32606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    71.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.5073        28.558        .21608E-03   -1.5333    
  11  norm          .10000E-03    .35809        .59389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .59700        1.5125        .17741E-03   -1.5553    
  13  Prefactor     32.072        27.393        .70771E-04   -1.4575    
  14  Prefactor     79.066        62.054        .45166E-04   -1.3927    
  15  Prefactor     22.405        13.253        .84617E-04   -1.4761    
  16  norm          .10001E-03    3.2599        .24728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.2127        32.691        .13989E-03   -1.5135    
  18  norm          4.9458        3.6658        .15975E-03   -1.5263    
  19  Prefactor     4.3569        6.9494        .96477E-03   -1.5290    
  20  norm          2.1366        1.8286        .12384E-03   -1.5416    
  21  Normalizat    1.1092        .28521        .49947E-03   -.89455    
  22  Prefactor     1.0128        .75863E-01    .14594E-03   -.92304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.55675e-09
Minuit parameter uncertainties:
  1  7.34917e-06
  2  3.10273e-07
  3  3.22656e-05
  4  41.9111
  5  17.5272
  6  2.43132e-05
  7  1.41739e-06
  8  3.44887e-05
  9  0.000432308
  10  20.0289
  11  4.50523e-07
  12  1.51259
  13  27.4042
  14  62.1049
  15  13.2552
  16  0.000267319
  17  32.7626
  18  3.66598
  19  6.95069
  20  1.82863
  21  0.285609
  22  0.075871
Done.

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

Extracting fit parameters...

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  2.665e+01  1.753e+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.013e+00  7.587e-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:  1.109e+00  2.856e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.81
Ra Dec: 61.892 7.700
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 8.08e-08 +/- 5.31e-08
Energy Flux (Fixed Index): 3.01e-05 +/- 1.98e-05

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) = 10483.2232423
delta logL = 0.928530882878

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10483.2106129
delta logL = 0.941160325943

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.707       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6336       1.0000          .0000       10.000    
     3 'Normalizat'    1.1454       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0106       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=   10483.21     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      259 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.716        26.941        .36755E-03   -.11012E-04
   2  Index         1.6333        .52555        .93573E-02   -.15988E-03
   3  Normalizat    1.1457        .26178        .49266E-03    .27322E-04
   4  Prefactor     1.0106        .74128E-01    .14614E-03    .14470E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.7162
  Index      = 1.63334
  Normalizat = 1.14568
  Prefactor  = 1.01056
 **********
 **   18 **HESSE 
 **********

 FCN=   10483.21     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .53E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.716        27.466        .14702E-04   -1.4617    
   2  Index         1.6333        .53580        .18715E-02   -.73871    
   3  Normalizat    1.1457        .26186        .19706E-04   -.88298    
   4  Prefactor     1.0106        .74160E-01    .58455E-05   -.92378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29625e-12
Minuit parameter uncertainties:
  1  27.4781
  2  0.537695
  3  0.262161
  4  0.0741677
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/267296': 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) = 10483.2106114
delta logL = 0.941161771616

Extracting fit parameters...

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  2.972e+01  2.748e+01  1.000e-04  1.000e+04 ( 1.000e-13)
218        Index:  1.633e+00  5.377e-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.011e+00  7.417e-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:  1.146e+00  2.622e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.68
Ra Dec: 61.892 7.700
Photon Index (Free Index): 1.63 +/- 0.54
Photon Flux (Free Index): 3.18e-08 +/- 4.26e-08
Energy Flux (Free Index): 6.45e-05 +/- 6.64e-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/267296/cmap_HighResolution_300758401_301017601_4FGL_J0407.5+0741_daily_bin237.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.08e-08', energy_flux2='6.45e-05', photon_flux_error='5.31e-08', dlogl='9.41e-01', energy_flux='3.01e-05', photon_flux2='3.18e-08', job_status='DONE', time_completed='2021-08-20 05:52:08.012381', photon_index_error2='0.54', photon_index2='1.63', ts='6.81', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='6.64e-05', EG='1.11', time_epoch_completed='1629463928.01', return_code='0', job_id='267296', GAL2='1.01', EG2='1.15', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='4.26e-08', ts2='8.68', photon_index='2.31' WHERE bin_id='237' AND source_name='4FGL J0407.5+0741' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 05:52:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 267296: <4FGL_J0407.5+0741_daily_bin237> in cluster <slac> Done

Job <4FGL_J0407.5+0741_daily_bin237> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 05:35:59 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 05:36:01 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:36:01 2021
Terminated at Fri Aug 20 05:52:08 2021
Results reported at Fri Aug 20 05:52:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0407.5+0741_daily_bin237 61.8921 7.6998 300758401 301017601 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 :                                   739.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             294.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            969 sec.

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

