/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 28 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 = 7368
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1406.6-3934_daily_bin1372
RA = 211.665, Dec = -39.5727
tmin = 594950401, tmax = 595209601
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='200959', job_status='RUN', time_executed='2021-09-09 01:47:06.868792', time_epoch_executed='1631177226.87' WHERE source_name='4FGL J1406.6-3934' and cadence='daily' and bin_id='1372'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/200959

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/200959/ft1_4FGL_J1406.6-3934_daily_bin1372.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/200959/ft2_4FGL_J1406.6-3934_daily_bin1372.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/200959/ft1_4FGL_J1406.6-3934_daily_bin1372.fits outfile=/scratch/kocevski/200959/ft1_filteredMKT_4FGL_J1406.6-3934_daily_bin1372.fits ra=211.665 dec=-39.5727 rad=12.0 tmin=594950401.0 tmax=595209601.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.23
user 2.77
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/200959/ft2_4FGL_J1406.6-3934_daily_bin1372.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/200959/ft2_4FGL_J1406.6-3934_daily_bin1372.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/200959/ft1_filteredMKT_4FGL_J1406.6-3934_daily_bin1372.fits evtable="EVENTS" outfile="/scratch/kocevski/200959/ft1_filtered_4FGL_J1406.6-3934_daily_bin1372.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.68
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/200959/ft1_filtered_4FGL_J1406.6-3934_daily_bin1372.fits" evtable="EVENTS" scfile=/scratch/kocevski/200959/ft2_4FGL_J1406.6-3934_daily_bin1372.fits sctable="SC_DATA" outfile=/scratch/kocevski/200959/ltcube_594950401_595209601_4FGL_J1406.6-3934_daily_bin1372.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/200959/ft2_4FGL_J1406.6-3934_daily_bin1372.fits
.....................!
real 13.36
user 12.57
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/200959/ft1_filtered_4FGL_J1406.6-3934_daily_bin1372.fits evtable="EVENTS" scfile=/scratch/kocevski/200959/ft2_4FGL_J1406.6-3934_daily_bin1372.fits sctable="SC_DATA" expcube=/scratch/kocevski/200959/ltcube_594950401_595209601_4FGL_J1406.6-3934_daily_bin1372.fits outfile=/scratch/kocevski/200959/expmap_594950401_595209601_4FGL_J1406.6-3934_daily_bin1372.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/200959/ltcube_594950401_595209601_4FGL_J1406.6-3934_daily_bin1372.fits
.....................!
real 192.59
user 186.97
sys 4.90

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
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Added 261 point sources and 3 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1406.6-3934 @ 211.665 -39.5727

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/200959/ft1_filtered_4FGL_J1406.6-3934_daily_bin1372.fits scfile=/scratch/kocevski/200959/ft2_4FGL_J1406.6-3934_daily_bin1372.fits outfile=/scratch/kocevski/200959/cmap_594950401_595209601_4FGL_J1406.6-3934_daily_bin1372.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=211.665 yref=-39.5727 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.64
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/200959/ft1_filtered_4FGL_J1406.6-3934_daily_bin1372.fits scfile=/scratch/kocevski/200959/ft2_4FGL_J1406.6-3934_daily_bin1372.fits outfile=/scratch/kocevski/200959/cmap_HighResolution_594950401_595209601_4FGL_J1406.6-3934_daily_bin1372.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=211.665 yref=-39.5727 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.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/200959/ft1_filtered_4FGL_J1406.6-3934_daily_bin1372.fits evtable="EVENTS" scfile=/scratch/kocevski/200959/ft2_4FGL_J1406.6-3934_daily_bin1372.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/200959/Model_4FGL_J1406.6-3934_daily_bin1372.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 CenA Lobes
adding source EG_v02
adding source FGES J1409.1-6121
adding source GAL_V02
adding source HESS J1420-607
Working on...
/scratch/kocevski/200959/ft1_filtered_4FGL_J1406.6-3934_daily_bin1372.fits......................!
real 61.79
user 60.17
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/200959/ft1_filtered_4FGL_J1406.6-3934_daily_bin1372.fits', '/scratch/kocevski/200959/ft2_4FGL_J1406.6-3934_daily_bin1372.fits', expMap='/scratch/kocevski/200959/expmap_594950401_595209601_4FGL_J1406.6-3934_daily_bin1372.fits', expCube='/scratch/kocevski/200959/ltcube_594950401_595209601_4FGL_J1406.6-3934_daily_bin1372.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/200959/Model_4FGL_J1406.6-3934_daily_bin1372.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1406.6-3934'

4FGL J1406.6-3934
   Spectrum: PowerLaw
363    Prefactor:  8.843e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-16)
364        Index:  1.553e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
365        Scale:  1.471e+04  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/200959/ft1_filtered_4FGL_J1406.6-3934_daily_bin1372.fits
Spacecraft file(s): /scratch/kocevski/200959/ft2_4FGL_J1406.6-3934_daily_bin1372.fits
Exposure map: /scratch/kocevski/200959/expmap_594950401_595209601_4FGL_J1406.6-3934_daily_bin1372.fits
Exposure cube: /scratch/kocevski/200959/ltcube_594950401_595209601_4FGL_J1406.6-3934_daily_bin1372.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/200959/Model_4FGL_J1406.6-3934_daily_bin1372.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) = 2633.74773417

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .60805E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14943E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .26726E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    102.67       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.8143       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13182E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.821       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12886E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14576E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.7825       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2111.9       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3305       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2633.708     FROM MIGRAD    STATUS=CONVERGED    487 CALLS     2484 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0725        .19829E-07** at limit **
   2  norm          .10000E-03    8.8093        .18217E-07** at limit **
   3  Prefactor     .10000E-03    2170.9        .72112E-06** at limit **
   4  Prefactor     .10000E-03    73.656        .13673E-06** at limit **
   5  norm          .10000E-03    44.605        .13260E-06** at limit **
   6  norm          .10000E-03    28.191        .48848E-07** at limit **
   7  Prefactor     .10000E-03    187.20        .97867E-06** at limit **
   8  Prefactor     .10000E-03    97.943       -.46467E-07** at limit **
   9  Prefactor     .10000E-03    891.37        .17858E-06** at limit **
  10  Prefactor     102.83        198.12       -.32996E-06   -.14544E-04
  11  Prefactor     .10000E-03    39.292        .15239E-06** at limit **
  12  norm          8.8425        33.785        .52781E-06   -.44445E-04
  13  Prefactor     .10000E-03    291.75       -.85876E-07** at limit **
  14  norm          .10000E-03    .15865       -.15434E-06** at limit **
  15  Prefactor     15.381        1444.1       -.91727E-05    .77563E-05
  16  Prefactor     .10000E-03    414.12       -.25330E-06** at limit **
  17  Prefactor     .10000E-03    1082.2       -.27660E-06** at limit **
  18  norm          3.7169        525.76        .20320E-05    .90198E-06
  19  Prefactor     .10000E-03    1381.0       -.10047E-05** at limit **
  20  Prefactor     .10000E-03    131.76       -.17356E-06** at limit **
  21  norm          2112.2        693.09       -.32334E-05    .21061E-05
  22  Normalizat    .10000E-01    .37782        .22422E-04** at limit **
  23  Prefactor     1.3303        .10238       -.17967E-05   -.53618E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 102.827
  Prefactor  = 0.0001
  norm       = 8.84253
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.3813
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 3.71687
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 2112.16
  Normalizat = 0.01
  Prefactor  = 1.33032
 **********
 **   18 **HESSE 
 **********

 FCN=   2633.708     FROM HESSE     STATUS=OK           356 CALLS     2840 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.0792        .10115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    8.8360        .14876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2175.6        .21057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    73.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    44.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    28.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    187.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    97.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    891.33        .21438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     102.83        198.45        .19841E-03   -1.3676    
  11  Prefactor     .10000E-03    39.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.8425        33.752        .13501E-03   -1.5113    
  13  Prefactor     .10000E-03    291.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .15586        .19594E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.381        1478.7        .50348E-03   -1.4923    
  16  Prefactor     .10000E-03    414.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1083.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.7169        531.84        .20757E-03   -1.5322    
  19  Prefactor     .10000E-03    1381.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    131.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2112.2        693.11        .49001E-04   -.61575    
  22  Normalizat    .10000E-01    .71344        .17856E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.3303        .10991        .15096E-03   -.82410    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.49959e-10
Minuit parameter uncertainties:
  1  1.5506e-06
  2  1.43036e-05
  3  0.00345257
  4  3.03255e-06
  5  7.30015e-05
  6  1.9701e-05
  7  0.000544831
  8  0.000130812
  9  0.000555376
  10  199.749
  11  4.92616e-05
  12  33.825
  13  0.000569804
  14  5.65689e-06
  15  309.867
  16  0.000275537
  17  0.00396487
  18  89.7458
  19  0.00357084
  20  8.61503e-05
  21  696.488
  22  1.7949e-05
  23  0.109934
Done.

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

Extracting fit parameters...

4FGL J1406.6-3934
   Spectrum: PowerLaw
363    Prefactor:  1.000e-04  5.554e-04  1.000e-04  1.000e+04 ( 1.000e-16)
364        Index:  1.553e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
365        Scale:  1.471e+04  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
907    Prefactor:  1.330e+00  1.099e-01  0.000e+00  1.000e+01 ( 1.000e+00)
908        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
909        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
902   Normalization:  1.000e-02  1.795e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 211.665 -39.573
Photon Flux Upper Limit: 1.69e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.21e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/200959/likelihoodResults_594950401_595209601_4FGL_J1406.6-3934_daily_bin1372.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) = 2633.70844845
delta logL = -6.87299871061e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2633.7084472
delta logL = -5.62787272429e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96277E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.5526       1.0000          .0000       10.000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3303       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2633.708     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      208 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    243.29        .90721E-02** at limit **
   2  Index         1.5167        5.7146        .50000        .24188E-06
   3  Normalizat    .10000E-01    .16102E-03    .32238    ** at limit **
   4  Prefactor     1.3303        .23061E-02    .32101E-01   -.34613E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.51673
  Normalizat = 0.01
  Prefactor  = 1.33032
 **********
 **   18 **HESSE 
 **********

 FCN=   2633.708     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      241 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1257.8        .18144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5167        5.6680        .50000       -.77072    
   3  Normalizat    .10000E-01    .19892E-02    .17850E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3303        .53443E-02    .15096E-03   -.82410    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.51811e-10
Minuit parameter uncertainties:
  1  0.0027476
  2  161.604
  3  1.71747e-08
  4  0.00534434
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/200959': 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) = 2633.70844157
delta logL = 2.74303602055e-09

Extracting fit parameters...

4FGL J1406.6-3934
   Spectrum: PowerLaw
363    Prefactor:  1.000e-04  2.748e-03  1.000e-04  1.000e+04 ( 1.000e-16)
364        Index:  1.517e+00  1.616e+02  0.000e+00  1.000e+01 (-1.000e+00)
365        Scale:  1.471e+04  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
907    Prefactor:  1.330e+00  5.344e-03  0.000e+00  1.000e+01 ( 1.000e+00)
908        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
909        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
902   Normalization:  1.000e-02  1.717e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 211.665 -39.573

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/200959/cmap_HighResolution_594950401_595209601_4FGL_J1406.6-3934_daily_bin1372.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', job_status='DONE', photon_flux_upper_limit='1.69e-07', time_completed='2021-09-09 01:57:01.619741', job_id='200959', GAL2='1.33', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631177821.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.33', dlogl='2.74e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.55' WHERE bin_id='1372' AND source_name='4FGL J1406.6-3934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 01:57:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 200959: <4FGL_J1406.6-3934_daily_bin1372> in cluster <slac> Done

Job <4FGL_J1406.6-3934_daily_bin1372> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  9 01:45:54 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 01:45:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 01:45:56 2021
Terminated at Thu Sep  9 01:57:02 2021
Results reported at Thu Sep  9 01:57:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1406.6-3934_daily_bin1372 211.665 -39.5727 594950401 595209601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1406.6-3934 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   587.39 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             335.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   665 sec.
    Turnaround time :                            668 sec.

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

