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


Performing analysis on: 4FGL_J1406.6-3934_daily_bin1375
RA = 211.665, Dec = -39.5727
tmin = 595728001, tmax = 595987201
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='200964', job_status='RUN', time_executed='2021-09-09 01:48:48.886801', time_epoch_executed='1631177328.89' WHERE source_name='4FGL J1406.6-3934' and cadence='daily' and bin_id='1375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/200964

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/200964/ft1_4FGL_J1406.6-3934_daily_bin1375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/200964/ft2_4FGL_J1406.6-3934_daily_bin1375.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/200964/ft1_4FGL_J1406.6-3934_daily_bin1375.fits outfile=/scratch/kocevski/200964/ft1_filteredMKT_4FGL_J1406.6-3934_daily_bin1375.fits ra=211.665 dec=-39.5727 rad=12.0 tmin=595728001.0 tmax=595987201.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 2.59
user 2.38
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/200964/ft2_4FGL_J1406.6-3934_daily_bin1375.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/200964/ft1_filteredMKT_4FGL_J1406.6-3934_daily_bin1375.fits evtable="EVENTS" outfile="/scratch/kocevski/200964/ft1_filtered_4FGL_J1406.6-3934_daily_bin1375.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.54
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/200964/ft1_filtered_4FGL_J1406.6-3934_daily_bin1375.fits" evtable="EVENTS" scfile=/scratch/kocevski/200964/ft2_4FGL_J1406.6-3934_daily_bin1375.fits sctable="SC_DATA" outfile=/scratch/kocevski/200964/ltcube_595728001_595987201_4FGL_J1406.6-3934_daily_bin1375.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/200964/ft2_4FGL_J1406.6-3934_daily_bin1375.fits
.....................!
real 12.39
user 12.00
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/200964/ft1_filtered_4FGL_J1406.6-3934_daily_bin1375.fits evtable="EVENTS" scfile=/scratch/kocevski/200964/ft2_4FGL_J1406.6-3934_daily_bin1375.fits sctable="SC_DATA" expcube=/scratch/kocevski/200964/ltcube_595728001_595987201_4FGL_J1406.6-3934_daily_bin1375.fits outfile=/scratch/kocevski/200964/expmap_595728001_595987201_4FGL_J1406.6-3934_daily_bin1375.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/200964/ltcube_595728001_595987201_4FGL_J1406.6-3934_daily_bin1375.fits
.....................!
real 192.17
user 187.10
sys 4.59

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/200964/ft1_filtered_4FGL_J1406.6-3934_daily_bin1375.fits scfile=/scratch/kocevski/200964/ft2_4FGL_J1406.6-3934_daily_bin1375.fits outfile=/scratch/kocevski/200964/cmap_595728001_595987201_4FGL_J1406.6-3934_daily_bin1375.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 2.89
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/200964/ft1_filtered_4FGL_J1406.6-3934_daily_bin1375.fits scfile=/scratch/kocevski/200964/ft2_4FGL_J1406.6-3934_daily_bin1375.fits outfile=/scratch/kocevski/200964/cmap_HighResolution_595728001_595987201_4FGL_J1406.6-3934_daily_bin1375.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 2.11
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/200964/ft1_filtered_4FGL_J1406.6-3934_daily_bin1375.fits evtable="EVENTS" scfile=/scratch/kocevski/200964/ft2_4FGL_J1406.6-3934_daily_bin1375.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/200964/Model_4FGL_J1406.6-3934_daily_bin1375.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/200964/ft1_filtered_4FGL_J1406.6-3934_daily_bin1375.fits.....................!
real 41.62
user 26.70
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.8182       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10324E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13610       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .23369E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17565E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11119E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    3215.1       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .26826E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    10000.       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15316       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10231E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    18 'norm      '    .49494E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .75370E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    .17076       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9130E+05   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   700.7475     FROM MIGRAD    STATUS=CONVERGED    146 CALLS     3170 TOTAL
                     EDM=   .38E-07  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.3479         .0000    ** at limit **
   2  norm          6.8235        10.706         .0000       -.81456E-04
   3  Prefactor     .10826E-03    185.58         .0000    ** at limit **
   4  Prefactor     .12711E-03    52.286         .0000    ** at limit **
   5  norm          .10001E-03    40.089         .0000    ** at limit **
   6  norm          .10000E-03    35.470         .0000    ** at limit **
   7  Prefactor     .10708E-03    40.148         .0000    ** at limit **
   8  Prefactor     .17130E-02    1855.5         .0000    ** at limit **
   9  Prefactor     .36170E-02    161.83         .0000        .42322E-03
  10  Prefactor     .59350E-03    72.408         .0000    ** at limit **
  11  Prefactor     .14735E-02    235.43         .0000    ** at limit **
  12  norm          3215.1        2.2222         .0000       -.31816E-02
  13  Prefactor     .63481E-03    99.364         .0000    ** at limit **
  14  norm         10000.0        70.276         .0000    ** at limit **
  15  Prefactor     .30427E-01    858.86         .0000        .97845E-03
  16  Prefactor     .94232E-03    95.178         .0000    ** at limit **
  17  Prefactor    10000.0        6.8122         .0000       -.13690E-03
  18  norm          .16765E-03    938.64         .0000    ** at limit **
  19  Prefactor     .11193E-02    119.05         .0000    ** at limit **
  20  Prefactor     .10065E-03    56.229         .0000    ** at limit **
  21  norm          .11618E-03    70.205         .0000    ** at limit **
  22  Normalizat    .10000E-01    .10468         .0000    ** at limit **
  23  Prefactor     .17074        .82148E-01     .0000        .94167E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.82353
  Prefactor  = 0.000108258
  Prefactor  = 0.000127114
  norm       = 0.000100013
  norm       = 0.000100001
  Prefactor  = 0.000107082
  Prefactor  = 0.00171301
  Prefactor  = 0.00361696
  Prefactor  = 0.0005935
  Prefactor  = 0.00147353
  norm       = 3215.09
  Prefactor  = 0.000634809
  norm       = 10000
  Prefactor  = 0.0304269
  Prefactor  = 0.000942318
  Prefactor  = 10000
  norm       = 0.00016765
  Prefactor  = 0.00111925
  Prefactor  = 0.000100652
  norm       = 0.000116175
  Normalizat = 0.01
  Prefactor  = 0.170737
 **********
 **   18 **HESSE 
 **********

 FCN=   700.7475     FROM HESSE     STATUS=OK           396 CALLS     3566 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.3428        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.8235        10.718        .38414E-02   -1.5185    
   3  Prefactor     .10826E-03    187.08        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .12711E-03    96.461        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10001E-03    40.092        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    35.433        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10708E-03    94.986        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .17130E-02    7158.1        .96820E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .36170E-02    7754.8        .91393E-02   -1.5696    
  10  Prefactor     .59350E-03    6239.6        .10171E-01   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .14735E-02    789.19        .10346E-01   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3215.1        3678.9        .21411E-03   -.36503    
  13  Prefactor     .63481E-03    6298.4        .99733E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm         10000.0        85.504        .90712E-02    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .30427E-01    8268.4        .97617E-02   -1.5673    
  16  Prefactor     .94232E-03    7384.9        .90741E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        9834.9        .95773E-02    1.5697    
  18  norm          .16765E-03    6701.7        .92676E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .11193E-02    958.70        .10469E-01   -1.5714    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10065E-03    56.326        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .11618E-03    72.048        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .10000E-01    .10387        .11991       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .17074        .83759E-01    .34824E-01   -1.3087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8115e-05
Minuit parameter uncertainties:
  1  8.53566e-05
  2  10.7207
  3  0.0788595
  4  0.102447
  5  0.00145953
  6  0.000339158
  7  0.0519545
  8  5.76099
  9  9.9279
  10  2.31462
  11  2.11069
  12  4236.29
  13  2.47206
  14  0.18276
  15  32.8563
  16  4.42692
  17  14.6285
  18  1.0245
  19  2.01006
  20  0.0121328
  21  0.0683576
  22  6.25259e-06
  23  0.083817
Done.

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

Extracting fit parameters...

4FGL J1406.6-3934
   Spectrum: PowerLaw
363    Prefactor:  3.617e-03  9.928e+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

GAL_V02
   Spectrum: PowerLaw
907    Prefactor:  1.707e-01  8.382e-02  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  6.253e-06  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = -0.713788331901

TS (Fixed Index): -0.00
Ra Dec: 211.665 -39.573
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.19e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/200964/likelihoodResults_595728001_595987201_4FGL_J1406.6-3934_daily_bin1375.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 700.747537881
delta logL = 8.04814214916e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 700.747537881
delta logL = 8.04814499133e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    .61965       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   700.7475     FROM MIGRAD    STATUS=CONVERGED     22 CALLS       88 TOTAL
                     EDM=   .18E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       .61965        6.2079         .0000        .68782E-10
                               ERR DEF=  .500    
Final values: 
  Index      = 0.619647
 **********
 **   18 **HESSE 
 **********

 FCN=   700.7475     FROM HESSE     STATUS=OK            11 CALLS       99 TOTAL
                     EDM=   .17E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       .61965        9.6157        .50000       -1.0677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73316e-14
Minuit parameter uncertainties:
  1  4295.14
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/200964': 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) = 700.747537881
delta logL = 8.04814499133e-06

Extracting fit parameters...

4FGL J1406.6-3934
   Spectrum: PowerLaw
363    Prefactor:  1.000e-04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-16) fixed
364        Index:  6.196e-01  4.295e+03  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.707e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


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/200964/cmap_HighResolution_595728001_595987201_4FGL_J1406.6-3934_daily_bin1375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.19e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-09-09 01:58:27.951093', job_id='200964', GAL2='0.17', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631177907.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.17', dlogl='8.05e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.55' WHERE bin_id='1375' AND source_name='4FGL J1406.6-3934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 01:58:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 200964: <4FGL_J1406.6-3934_daily_bin1375> in cluster <slac> Done

Job <4FGL_J1406.6-3934_daily_bin1375> 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) <bullet0213>, 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:58:28 2021
Results reported at Thu Sep  9 01:58:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1406.6-3934_daily_bin1375 211.665 -39.5727 595728001 595987201 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 :                                   427.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             262.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            754 sec.

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

