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


Performing analysis on: 4FGL_J1406.6-3934_daily_bin1189
RA = 211.665, Dec = -39.5727
tmin = 547516801, tmax = 547776001
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='199389', job_status='RUN', time_executed='2021-09-09 01:41:32.977534', time_epoch_executed='1631176892.98' WHERE source_name='4FGL J1406.6-3934' and cadence='daily' and bin_id='1189'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/199389

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/199389/ft1_4FGL_J1406.6-3934_daily_bin1189.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/199389/ft2_4FGL_J1406.6-3934_daily_bin1189.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/199389/ft1_4FGL_J1406.6-3934_daily_bin1189.fits outfile=/scratch/kocevski/199389/ft1_filteredMKT_4FGL_J1406.6-3934_daily_bin1189.fits ra=211.665 dec=-39.5727 rad=12.0 tmin=547516801.0 tmax=547776001.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 5.72
user 3.31
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/199389/ft2_4FGL_J1406.6-3934_daily_bin1189.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/199389/ft1_filteredMKT_4FGL_J1406.6-3934_daily_bin1189.fits evtable="EVENTS" outfile="/scratch/kocevski/199389/ft1_filtered_4FGL_J1406.6-3934_daily_bin1189.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 1.72
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/199389/ft1_filtered_4FGL_J1406.6-3934_daily_bin1189.fits" evtable="EVENTS" scfile=/scratch/kocevski/199389/ft2_4FGL_J1406.6-3934_daily_bin1189.fits sctable="SC_DATA" outfile=/scratch/kocevski/199389/ltcube_547516801_547776001_4FGL_J1406.6-3934_daily_bin1189.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/199389/ft2_4FGL_J1406.6-3934_daily_bin1189.fits
.....................!
real 14.44
user 12.44
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/199389/ft1_filtered_4FGL_J1406.6-3934_daily_bin1189.fits evtable="EVENTS" scfile=/scratch/kocevski/199389/ft2_4FGL_J1406.6-3934_daily_bin1189.fits sctable="SC_DATA" expcube=/scratch/kocevski/199389/ltcube_547516801_547776001_4FGL_J1406.6-3934_daily_bin1189.fits outfile=/scratch/kocevski/199389/expmap_547516801_547776001_4FGL_J1406.6-3934_daily_bin1189.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/199389/ltcube_547516801_547776001_4FGL_J1406.6-3934_daily_bin1189.fits
.....................!
real 197.16
user 185.59
sys 4.72

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/199389/ft1_filtered_4FGL_J1406.6-3934_daily_bin1189.fits scfile=/scratch/kocevski/199389/ft2_4FGL_J1406.6-3934_daily_bin1189.fits outfile=/scratch/kocevski/199389/cmap_547516801_547776001_4FGL_J1406.6-3934_daily_bin1189.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.85
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/199389/ft1_filtered_4FGL_J1406.6-3934_daily_bin1189.fits scfile=/scratch/kocevski/199389/ft2_4FGL_J1406.6-3934_daily_bin1189.fits outfile=/scratch/kocevski/199389/cmap_HighResolution_547516801_547776001_4FGL_J1406.6-3934_daily_bin1189.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.78
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/199389/ft1_filtered_4FGL_J1406.6-3934_daily_bin1189.fits evtable="EVENTS" scfile=/scratch/kocevski/199389/ft2_4FGL_J1406.6-3934_daily_bin1189.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/199389/Model_4FGL_J1406.6-3934_daily_bin1189.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/199389/ft1_filtered_4FGL_J1406.6-3934_daily_bin1189.fits.....................!
real 67.60
user 55.66
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6151       1.0000         .10000E-03   10000.    
     2 'norm      '    12.177       1.0000         .10000E-03   10000.    
     3 'Prefactor '    96.883       1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.631       1.0000         .10000E-03   10000.    
     5 'norm      '    46.835       1.0000         .10000E-03   10000.    
     6 'norm      '    6.2538       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.8746       1.0000         .10000E-03   10000.    
     8 'Prefactor '    66.249       1.0000         .10000E-03   10000.    
     9 'Prefactor '    735.35       1.0000         .10000E-03   10000.    
    10 'Prefactor '    140.26       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .59973       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    42.741       1.0000         .10000E-03   10000.    
    18 'norm      '    4.6386       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    137.37       1.0000         .10000E-03   10000.    
    21 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .61991       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1133       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=   2920.585     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2548 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6199        95.218        .51357E-05    .45413E-06
   2  norm          12.177        21.783        .17778E-05   -.11687E-04
   3  Prefactor     97.442        1797.2        .18917E-04    .32531E-06
   4  Prefactor     35.664        92.714        .16939E-05   -.11538E-05
   5  norm          46.859        59.448        .10120E-07   -.23818E-05
   6  norm          6.2540        20.118        .76472E-05    .47553E-05
   7  Prefactor     7.6263        456.69       -.48678E-05   -.11276E-04
   8  Prefactor     66.255        95.608        .80228E-06   -.57648E-05
   9  Prefactor     735.30        1158.1        .23641E-06   -.27138E-05
  10  Prefactor     140.31        212.56        .15605E-05   -.14656E-05
  11  Prefactor     .10000E-03    45.291       -.17147E-05** at limit **
  12  norm          .10000E-03    2.4425        .40396E-07** at limit **
  13  Prefactor     .10000E-03    19.094        .62431E-07** at limit **
  14  norm          .59971        .51942        .28596E-06    .11303E-03
  15  Prefactor     .10000E-03    193.76        .16573E-06** at limit **
  16  Prefactor     .10000E-03    71.360        .62343E-07** at limit **
  17  Prefactor     42.747        40.021        .12096E-05   -.13493E-04
  18  norm          4.6930        119.21        .82440E-05   -.24262E-07
  19  Prefactor     .10000E-03    116.56        .39397E-05** at limit **
  20  Prefactor     137.52        134.20        .25104E-05    .70298E-05
  21  norm          .10000E-03    1.0259        .38082E-06** at limit **
  22  Normalizat    .62028        .64788       -.27687E-06   -.46857E-04
  23  Prefactor     1.1132        .21917       -.26604E-05    .27404E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.6199
  norm       = 12.1773
  Prefactor  = 97.4419
  Prefactor  = 35.6642
  norm       = 46.8593
  norm       = 6.25403
  Prefactor  = 7.62628
  Prefactor  = 66.2551
  Prefactor  = 735.302
  Prefactor  = 140.307
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.599708
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.7466
  norm       = 4.69297
  Prefactor  = 0.0001
  Prefactor  = 137.523
  norm       = 0.0001
  Normalizat = 0.620283
  Prefactor  = 1.11317
 **********
 **   18 **HESSE 
 **********

 FCN=   2920.585     FROM HESSE     STATUS=OK           372 CALLS     2920 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6199        95.718        .21250E-03   -1.5327    
   2  norm          12.177        21.595        .11479E-03   -1.5010    
   3  Prefactor     97.442        1798.0        .20419E-03   -1.3730    
   4  Prefactor     35.664        92.559        .67137E-04   -1.4513    
   5  norm          46.859        59.423        .29295E-03   -1.4338    
   6  norm          6.2540        20.220        .80260E-03   -1.5208    
   7  Prefactor     7.6263        471.70        .14289E-03   -1.5156    
   8  Prefactor     66.255        95.237        .49309E-04   -1.4078    
   9  Prefactor     735.30        1158.7        .76625E-04   -1.0216    
  10  Prefactor     140.31        212.52        .17007E-03   -1.3333    
  11  Prefactor     .10000E-03    45.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.4485        .82476E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .59971        .50955        .33656E-04   -1.5553    
  15  Prefactor     .10000E-03    193.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    71.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     42.747        39.833        .61319E-04   -1.4399    
  18  norm          4.6930        118.78        .18687E-03   -1.5275    
  19  Prefactor     .10000E-03    116.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     137.52        134.13        .17182E-03   -1.3357    
  21  norm          .10000E-03    1.0550        .10704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .62028        .64514        .64899E-03   -1.0713    
  23  Prefactor     1.1132        .22656        .16714E-03   -.89047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20419e-10
Minuit parameter uncertainties:
  1  37.2943
  2  21.6084
  3  869.391
  4  92.935
  5  59.4978
  6  20.242
  7  120.966
  8  95.4566
  9  1200.58
  10  213.693
  11  0.000126082
  12  2.66538e-06
  13  4.70623e-06
  14  0.509558
  15  0.000404796
  16  1.00238e-05
  17  39.8574
  18  47.3244
  19  0.000401214
  20  134.424
  21  3.96802e-06
  22  0.653221
  23  0.226752
Done.

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

Extracting fit parameters...

4FGL J1406.6-3934
   Spectrum: PowerLaw
363    Prefactor:  7.353e+02  1.201e+03  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.113e+00  2.268e-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:  6.203e-01  6.532e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/199389/likelihoodResults_547516801_547776001_4FGL_J1406.6-3934_daily_bin1189.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) = 2920.48086001
delta logL = 0.104556047428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2920.47649197
delta logL = 0.108924090011

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    299.86       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0221       1.0000          .0000       10.000    
     3 'Normalizat'    .60812       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1107       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=   2920.476     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      267 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     299.86        8658.5        .58635E-03    .22675E-04
   2  Index         2.0225        2.9316        .11715        .48311E-04
   3  Normalizat    .60748        .22665        .14755        .25412E-04
   4  Prefactor     1.1109        .60985E-01    .37192E-01    .86817E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 299.855
  Index      = 2.02255
  Normalizat = 0.607476
  Prefactor  = 1.11087
 **********
 **   18 **HESSE 
 **********

 FCN=   2920.476     FROM HESSE     STATUS=OK            31 CALLS      298 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     299.86        1153.5        .23454E-04   -1.2227    
   2  Index         2.0225        1.3981        .42250E-02   -.63788    
   3  Normalizat    .60748        .59359        .65506E-03   -1.0767    
   4  Prefactor     1.1109        .20278        .16722E-03   -.89120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.1373e-09
Minuit parameter uncertainties:
  1  1220.73
  2  1.42798
  3  0.599987
  4  0.202921
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/199389': 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) = 2920.47649093
delta logL = 0.108925132133

Extracting fit parameters...

4FGL J1406.6-3934
   Spectrum: PowerLaw
363    Prefactor:  2.999e+02  1.221e+03  1.000e-04  1.000e+04 ( 1.000e-16)
364        Index:  2.023e+00  1.428e+00  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.111e+00  2.029e-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:  6.075e-01  6.000e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.61
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/199389/cmap_HighResolution_547516801_547776001_4FGL_J1406.6-3934_daily_bin1189.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.34e-02', job_status='DONE', photon_flux_upper_limit='1.87e-07', time_completed='2021-09-09 01:52:08.965830', job_id='199389', GAL2='1.11', fit_tolerance='1e-08', EG2='0.61', EG='0.62', time_epoch_completed='1631177528.97', return_code2='0', ts='0.61', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.09e-01', ts2='0.83', photon_index_error='0.00', photon_index='1.55' WHERE bin_id='1189' AND source_name='4FGL J1406.6-3934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 01:52:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 199389: <4FGL_J1406.6-3934_daily_bin1189> in cluster <slac> Done

Job <4FGL_J1406.6-3934_daily_bin1189> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 01:40:30 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 01:40:32 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:32 2021
Terminated at Thu Sep  9 01:52:10 2021
Results reported at Thu Sep  9 01:52:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1406.6-3934_daily_bin1189 211.665 -39.5727 547516801 547776001 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 :                                   582.15 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             310.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            700 sec.

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

