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


Performing analysis on: 4FGL_J1406.6-3934_daily_bin1605
RA = 211.665, Dec = -39.5727
tmin = 655344001, tmax = 655603201
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='362252', job_status='RUN', time_executed='2021-12-08 00:55:53.619043', time_epoch_executed='1638953753.62' WHERE source_name='4FGL J1406.6-3934' and cadence='daily' and bin_id='1605'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/362252

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/362252/ft1_4FGL_J1406.6-3934_daily_bin1605.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/362252/ft2_4FGL_J1406.6-3934_daily_bin1605.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/362252/ft1_4FGL_J1406.6-3934_daily_bin1605.fits outfile=/scratch/kocevski/362252/ft1_filteredMKT_4FGL_J1406.6-3934_daily_bin1605.fits ra=211.665 dec=-39.5727 rad=12.0 tmin=655344001.0 tmax=655603201.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.83
user 2.57
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/362252/ft1_filtered_4FGL_J1406.6-3934_daily_bin1605.fits" evtable="EVENTS" scfile=/scratch/kocevski/362252/ft2_4FGL_J1406.6-3934_daily_bin1605.fits sctable="SC_DATA" outfile=/scratch/kocevski/362252/ltcube_655344001_655603201_4FGL_J1406.6-3934_daily_bin1605.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/362252/ft2_4FGL_J1406.6-3934_daily_bin1605.fits
.....................!
real 13.97
user 13.53
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/362252/ft1_filtered_4FGL_J1406.6-3934_daily_bin1605.fits evtable="EVENTS" scfile=/scratch/kocevski/362252/ft2_4FGL_J1406.6-3934_daily_bin1605.fits sctable="SC_DATA" expcube=/scratch/kocevski/362252/ltcube_655344001_655603201_4FGL_J1406.6-3934_daily_bin1605.fits outfile=/scratch/kocevski/362252/expmap_655344001_655603201_4FGL_J1406.6-3934_daily_bin1605.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/362252/ltcube_655344001_655603201_4FGL_J1406.6-3934_daily_bin1605.fits
.....................!
real 190.61
user 184.65
sys 5.39

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/362252/ft1_filtered_4FGL_J1406.6-3934_daily_bin1605.fits scfile=/scratch/kocevski/362252/ft2_4FGL_J1406.6-3934_daily_bin1605.fits outfile=/scratch/kocevski/362252/cmap_655344001_655603201_4FGL_J1406.6-3934_daily_bin1605.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.54
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/362252/ft1_filtered_4FGL_J1406.6-3934_daily_bin1605.fits scfile=/scratch/kocevski/362252/ft2_4FGL_J1406.6-3934_daily_bin1605.fits outfile=/scratch/kocevski/362252/cmap_HighResolution_655344001_655603201_4FGL_J1406.6-3934_daily_bin1605.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.56
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/362252/ft1_filtered_4FGL_J1406.6-3934_daily_bin1605.fits evtable="EVENTS" scfile=/scratch/kocevski/362252/ft2_4FGL_J1406.6-3934_daily_bin1605.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/362252/Model_4FGL_J1406.6-3934_daily_bin1605.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/362252/ft1_filtered_4FGL_J1406.6-3934_daily_bin1605.fits.....................!
real 108.20
user 106.67
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    63.077       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .27382E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11045E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    157.70       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    61.935       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10444E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    15.495       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.3189       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10390E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.4732       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.6565       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .95234       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=   5255.473     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2488 TOTAL
                     EDM=   .53E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.904        .26494E-06** at limit **
   2  norm          63.073        70.356       -.61056E-06    .36860E-04
   3  Prefactor     .10000E-03    359.45        .67683E-04** at limit **
   4  Prefactor     .10000E-03    947.91       -.26363E-03** at limit **
   5  norm          .10000E-03    41.213       -.77445E-05** at limit **
   6  norm          .10000E-03    14.857        .98204E-07** at limit **
   7  Prefactor     157.69        127.19       -.84304E-05   -.99459E-05
   8  Prefactor     .10000E-03    164.01        .70766E-05** at limit **
   9  Prefactor     .10000E-03    680.56        .11211E-03** at limit **
  10  Prefactor     61.918        131.28       -.14937E-04   -.20468E-05
  11  Prefactor     .10000E-03    56.562        .38572E-04** at limit **
  12  norm          15.494        9.1430       -.42911E-05   -.18178E-03
  13  Prefactor     .10000E-03    32.738        .87865E-05** at limit **
  14  norm          2.3189        .37281        .75437E-08   -.21730E-03
  15  Prefactor     .10000E-03    40.838       -.92799E-05** at limit **
  16  Prefactor     .10000E-03    65.587       -.33229E-04** at limit **
  17  Prefactor     .10000E-03    26.829       -.25036E-05** at limit **
  18  norm          .10000E-03    4.5907        .12529E-08** at limit **
  19  Prefactor     .10000E-03    10.972        .90007E-07** at limit **
  20  Prefactor     .10000E-03    8.1853        .80791E-07** at limit **
  21  norm          2.4731        1.4166       -.24208E-07   -.17061E-03
  22  Normalizat    1.6563        .53538        .43846E-05   -.45823E-04
  23  Prefactor     .95242        .12388       -.86859E-07    .40768E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 63.0733
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 157.688
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.9178
  Prefactor  = 0.0001
  norm       = 15.4942
  Prefactor  = 0.0001
  norm       = 2.31892
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.47312
  Normalizat = 1.65628
  Prefactor  = 0.952418
 **********
 **   18 **HESSE 
 **********

 FCN=   5255.473     FROM HESSE     STATUS=OK           354 CALLS     2842 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          63.073        70.801        .50526E-04   -1.4118    
   3  Prefactor     .10000E-03    359.43        .21428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    947.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    41.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    14.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     157.69        127.41        .16053E-03   -1.3190    
   8  Prefactor     .10000E-03    164.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    680.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     61.918        131.33        .50987E-04   -1.4133    
  11  Prefactor     .10000E-03    57.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          15.494        9.1757        .50874E-03   -1.4921    
  13  Prefactor     .10000E-03    32.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.3189        .37327        .16883E-04   -1.5403    
  15  Prefactor     .10000E-03    40.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    65.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.5914        .15170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.1950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.4731        1.4138        .62934E-04   -1.5393    
  22  Normalizat    1.6563        .62868        .57239E-03   -.73477    
  23  Prefactor     .95242        .14637        .17320E-03   -.94333    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32991e-10
Minuit parameter uncertainties:
  1  8.37337e-06
  2  70.8956
  3  1.62942e-05
  4  0.00177158
  5  1.76153e-05
  6  1.09371e-06
  7  127.634
  8  4.72311e-05
  9  0.000195929
  10  131.947
  11  0.000248053
  12  9.17649
  13  9.20279e-05
  14  0.373267
  15  5.08149e-06
  16  0.000185667
  17  7.26902e-05
  18  8.01296e-07
  19  5.38905e-06
  20  5.30364e-06
  21  1.4138
  22  0.631735
  23  0.146432
Done.

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

Extracting fit parameters...

4FGL J1406.6-3934
   Spectrum: PowerLaw
363    Prefactor:  1.000e-04  1.959e-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:  9.524e-01  1.464e-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.656e+00  6.317e-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: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/362252/likelihoodResults_655344001_655603201_4FGL_J1406.6-3934_daily_bin1605.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) = 5255.47268413
delta logL = -6.84529732098e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5255.47267729
delta logL = -9.79525793809e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.5679       1.0000          .0000       10.000    
     3 'Normalizat'    1.6563       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95242       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5255.473     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      271 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5087.3        .18142E-02** at limit **
   2  Index         1.5522        5.4869        .50000        .15739E-06
   3  Normalizat    1.6563        .23192        .57238E-03    .47609E-04
   4  Prefactor     .95242        .55979E-01    .17320E-03    .11540E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.55215
  Normalizat = 1.65629
  Prefactor  = 0.952416
 **********
 **   18 **HESSE 
 **********

 FCN=   5255.473     FROM HESSE     STATUS=OK            29 CALLS      300 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    654.69        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5522        5.6655        .50000       -.76089    
   3  Normalizat    1.6563        .59078        .22895E-04   -.73476    
   4  Prefactor     .95242        .14306        .34639E-04   -.94333    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.09713e-11
Minuit parameter uncertainties:
  1  0.000243761
  2  4.01383
  3  0.593306
  4  0.143121
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/362252': 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) = 5255.47267729
delta logL = 3.81987774745e-11

Extracting fit parameters...

4FGL J1406.6-3934
   Spectrum: PowerLaw
363    Prefactor:  1.000e-04  2.438e-04  1.000e-04  1.000e+04 ( 1.000e-16)
364        Index:  1.552e+00  4.014e+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:  9.524e-01  1.431e-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.656e+00  5.933e-01  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/362252/cmap_HighResolution_655344001_655603201_4FGL_J1406.6-3934_daily_bin1605.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.04e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-12-08 01:10:04.813771', job_id='362252', GAL2='0.95', fit_tolerance='1e-08', EG2='1.66', EG='1.66', time_epoch_completed='1638954604.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='3.82e-11', ts2='-0.00', photon_index_error='0.00', photon_index='1.55' WHERE bin_id='1605' AND source_name='4FGL J1406.6-3934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 01:10:04 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 362252: <4FGL_J1406.6-3934_daily_bin1605> in cluster <slac> Done

Job <4FGL_J1406.6-3934_daily_bin1605> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Dec  8 00:55:16 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 00:55:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 00:55:49 2021
Terminated at Wed Dec  8 01:10:05 2021
Results reported at Wed Dec  8 01:10:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1406.6-3934_daily_bin1605 211.665 -39.5727 655344001 655603201 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 :                                   849.00 sec.
    Max Memory :                                 1260 MB
    Average Memory :                             363.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            889 sec.

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

