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


Performing analysis on: 4FGL_J1406.6-3934_daily_bin1221
RA = 211.665, Dec = -39.5727
tmin = 555811201, tmax = 556070401
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='199438', job_status='RUN', time_executed='2021-09-09 01:42:41.811449', time_epoch_executed='1631176961.81' WHERE source_name='4FGL J1406.6-3934' and cadence='daily' and bin_id='1221'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/199438

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/199438/ft1_4FGL_J1406.6-3934_daily_bin1221.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/199438/ft2_4FGL_J1406.6-3934_daily_bin1221.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/199438/ft1_4FGL_J1406.6-3934_daily_bin1221.fits outfile=/scratch/kocevski/199438/ft1_filteredMKT_4FGL_J1406.6-3934_daily_bin1221.fits ra=211.665 dec=-39.5727 rad=12.0 tmin=555811201.0 tmax=556070401.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.04
user 3.32
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/199438/ft1_filtered_4FGL_J1406.6-3934_daily_bin1221.fits" evtable="EVENTS" scfile=/scratch/kocevski/199438/ft2_4FGL_J1406.6-3934_daily_bin1221.fits sctable="SC_DATA" outfile=/scratch/kocevski/199438/ltcube_555811201_556070401_4FGL_J1406.6-3934_daily_bin1221.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/199438/ft2_4FGL_J1406.6-3934_daily_bin1221.fits
.....................!
real 12.16
user 11.36
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/199438/ft1_filtered_4FGL_J1406.6-3934_daily_bin1221.fits evtable="EVENTS" scfile=/scratch/kocevski/199438/ft2_4FGL_J1406.6-3934_daily_bin1221.fits sctable="SC_DATA" expcube=/scratch/kocevski/199438/ltcube_555811201_556070401_4FGL_J1406.6-3934_daily_bin1221.fits outfile=/scratch/kocevski/199438/expmap_555811201_556070401_4FGL_J1406.6-3934_daily_bin1221.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/199438/ltcube_555811201_556070401_4FGL_J1406.6-3934_daily_bin1221.fits
.....................!
real 193.71
user 187.33
sys 5.06

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/199438/ft1_filtered_4FGL_J1406.6-3934_daily_bin1221.fits scfile=/scratch/kocevski/199438/ft2_4FGL_J1406.6-3934_daily_bin1221.fits outfile=/scratch/kocevski/199438/cmap_555811201_556070401_4FGL_J1406.6-3934_daily_bin1221.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 1.54
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/199438/ft1_filtered_4FGL_J1406.6-3934_daily_bin1221.fits scfile=/scratch/kocevski/199438/ft2_4FGL_J1406.6-3934_daily_bin1221.fits outfile=/scratch/kocevski/199438/cmap_HighResolution_555811201_556070401_4FGL_J1406.6-3934_daily_bin1221.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 1.36
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/199438/ft1_filtered_4FGL_J1406.6-3934_daily_bin1221.fits evtable="EVENTS" scfile=/scratch/kocevski/199438/ft2_4FGL_J1406.6-3934_daily_bin1221.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/199438/Model_4FGL_J1406.6-3934_daily_bin1221.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/199438/ft1_filtered_4FGL_J1406.6-3934_daily_bin1221.fits.....................!
real 46.69
user 42.72
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/199438/ft1_filtered_4FGL_J1406.6-3934_daily_bin1221.fits', '/scratch/kocevski/199438/ft2_4FGL_J1406.6-3934_daily_bin1221.fits', expMap='/scratch/kocevski/199438/expmap_555811201_556070401_4FGL_J1406.6-3934_daily_bin1221.fits', expCube='/scratch/kocevski/199438/ltcube_555811201_556070401_4FGL_J1406.6-3934_daily_bin1221.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/199438/Model_4FGL_J1406.6-3934_daily_bin1221.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/199438/ft1_filtered_4FGL_J1406.6-3934_daily_bin1221.fits
Spacecraft file(s): /scratch/kocevski/199438/ft2_4FGL_J1406.6-3934_daily_bin1221.fits
Exposure map: /scratch/kocevski/199438/expmap_555811201_556070401_4FGL_J1406.6-3934_daily_bin1221.fits
Exposure cube: /scratch/kocevski/199438/ltcube_555811201_556070401_4FGL_J1406.6-3934_daily_bin1221.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/199438/Model_4FGL_J1406.6-3934_daily_bin1221.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) = 1853.85497002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13999E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .12822E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    36.845       1.0000         .10000E-03   10000.    
     7 'Prefactor '    193.29       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12084E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.975       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10193E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10855E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.1427       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10890E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .12874E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10629E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10401E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.3854       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0124       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0530       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=   1853.836     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2478 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    59.844       -.36043E-04** at limit **
   2  norm          .10000E-03    18.956       -.29237E-06** at limit **
   3  Prefactor     .10000E-03    549.89       -.48042E-04** at limit **
   4  Prefactor     .10000E-03    294.52        .23567E-03** at limit **
   5  norm          .10000E-03    351.52        .21764E-03** at limit **
   6  norm          36.821        42.601       -.24409E-05    .51741E-05
   7  Prefactor     193.19        173.99       -.59732E-04   -.44833E-04
   8  Prefactor     .10000E-03    164.36       -.61213E-04** at limit **
   9  Prefactor     .10000E-03    906.06       -.52183E-03** at limit **
  10  Prefactor     24.549        799.35       -.81024E-03    .29674E-04
  11  Prefactor     .10000E-03    33.879        .74236E-06** at limit **
  12  norm          .10000E-03    22.584       -.61315E-06** at limit **
  13  Prefactor     .10003E-03    582.87       -.11132E-03** at limit **
  14  norm          2.1430        .78595        .70239E-06    .15297E-02
  15  Prefactor     .10000E-03    905.56       -.52055E-03** at limit **
  16  Prefactor     .10000E-03    65.735        .45812E-04** at limit **
  17  Prefactor     .10000E-03    24.623       -.78144E-06** at limit **
  18  norm          .10000E-03    160.79       -.70737E-04** at limit **
  19  Prefactor     .10000E-03    176.84       -.88275E-05** at limit **
  20  Prefactor     .10000E-03    186.01        .27090E-04** at limit **
  21  norm          1.3870        2.4825       -.13860E-05   -.29853E-03
  22  Normalizat    1.0117        .76832        .40928E-04    .10872E-03
  23  Prefactor     1.0530        .22392        .25907E-05    .39354E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100001
  norm       = 36.8213
  Prefactor  = 193.192
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.5486
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.000100027
  norm       = 2.14302
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  norm       = 1.387
  Normalizat = 1.0117
  Prefactor  = 1.05297
 **********
 **   18 **HESSE 
 **********

 FCN=   1853.836     FROM HESSE     STATUS=OK           354 CALLS     2832 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    60.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    18.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    549.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    294.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    352.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          36.821        42.594        .66026E-04   -1.4494    
   7  Prefactor     193.19        174.15        .14527E-03   -1.2919    
   8  Prefactor     .10000E-03    164.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    906.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.549        811.09        .40078E-03   -1.4717    
  11  Prefactor     .10000E-03    33.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    23.334        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10003E-03    588.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.1430        .78666        .22095E-04   -1.5415    
  15  Prefactor     .10000E-03    906.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    65.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    162.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    177.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    186.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.3870        2.4492        .86330E-04   -1.5472    
  22  Normalizat    1.0117        .85125        .58664E-03   -.92639    
  23  Prefactor     1.0530        .25202        .16866E-03   -.90984    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.20544e-10
Minuit parameter uncertainties:
  1  0.000359415
  2  0.000121108
  3  0.000153961
  4  0.000910073
  5  0.00110928
  6  42.6288
  7  174.623
  8  0.000408099
  9  0.000719164
  10  286.548
  11  0.000116139
  12  0.000423668
  13  0.0079945
  14  0.786665
  15  0.00425796
  16  0.000247496
  17  0.000110262
  18  0.000764917
  19  0.00103213
  20  0.00114102
  21  2.44936
  22  0.863098
  23  0.252306
Done.

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

Extracting fit parameters...

4FGL J1406.6-3934
   Spectrum: PowerLaw
363    Prefactor:  1.000e-04  7.192e-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.053e+00  2.523e-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.012e+00  8.631e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/199438/likelihoodResults_555811201_556070401_4FGL_J1406.6-3934_daily_bin1221.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) = 1853.83593
delta logL = -5.09890764988e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1853.83593
delta logL = -5.0987537179e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96362E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.5526       1.0000          .0000       10.000    
     3 'Normalizat'    1.0117       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0530       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=   1853.836     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      211 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    433.31        .90712E-02** at limit **
   2  Index         1.4963        9.2441        .50000        .34948E-06
   3  Normalizat    1.0117        .12093E-01    .13217       -.33960E-05
   4  Prefactor     1.0530        .35566E-02    .39739E-01    .17815E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.49628
  Normalizat = 1.0117
  Prefactor  = 1.05297
 **********
 **   18 **HESSE 
 **********

 FCN=   1853.836     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      244 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2117.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4963        5.6463        .50000       -.77644    
   3  Normalizat    1.0117        .27490E-01    .58662E-03   -.92640    
   4  Prefactor     1.0530        .81219E-02    .16866E-03   -.90984    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.09462e-09
Minuit parameter uncertainties:
  1  6.5542e-05
  2  338
  3  0.0274902
  4  0.00812194
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/199438': 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) = 1853.8359249
delta logL = 6.10111783317e-09

Extracting fit parameters...

4FGL J1406.6-3934
   Spectrum: PowerLaw
363    Prefactor:  1.000e-04  6.554e-05  1.000e-04  1.000e+04 ( 1.000e-16)
364        Index:  1.496e+00  3.380e+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.053e+00  8.122e-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.012e+00  2.749e-02  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/199438/cmap_HighResolution_555811201_556070401_4FGL_J1406.6-3934_daily_bin1221.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.54e-02', job_status='DONE', photon_flux_upper_limit='2.14e-07', time_completed='2021-09-09 01:51:20.726784', job_id='199438', GAL2='1.05', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1631177480.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='6.10e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.55' WHERE bin_id='1221' AND source_name='4FGL J1406.6-3934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 01:51:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 199438: <4FGL_J1406.6-3934_daily_bin1221> in cluster <slac> Done

Job <4FGL_J1406.6-3934_daily_bin1221> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 01:40:33 2021
Job was executed on host(s) <bullet0152>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 01:40:35 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:40:35 2021
Terminated at Thu Sep  9 01:51:21 2021
Results reported at Thu Sep  9 01:51:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1406.6-3934_daily_bin1221 211.665 -39.5727 555811201 556070401 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 :                                   505.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             330.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   646 sec.
    Turnaround time :                            648 sec.

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

