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


Performing analysis on: 4FGL_J1406.1-2508_daily_bin998
RA = 211.544, Dec = -25.1386
tmin = 498009601, tmax = 498268801
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='184786', job_status='RUN', time_executed='2021-09-09 00:58:48.972573', time_epoch_executed='1631174328.97' WHERE source_name='4FGL J1406.1-2508' and cadence='daily' and bin_id='998'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/184786

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/184786/ft1_4FGL_J1406.1-2508_daily_bin998.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/184786/ft2_4FGL_J1406.1-2508_daily_bin998.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/184786/ft1_4FGL_J1406.1-2508_daily_bin998.fits outfile=/scratch/kocevski/184786/ft1_filteredMKT_4FGL_J1406.1-2508_daily_bin998.fits ra=211.544 dec=-25.1386 rad=12.0 tmin=498009601.0 tmax=498268801.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 8.16
user 7.79
sys 0.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/184786/ft2_4FGL_J1406.1-2508_daily_bin998.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/184786/ft2_4FGL_J1406.1-2508_daily_bin998.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/184786/ft1_filteredMKT_4FGL_J1406.1-2508_daily_bin998.fits evtable="EVENTS" outfile="/scratch/kocevski/184786/ft1_filtered_4FGL_J1406.1-2508_daily_bin998.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.74
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/184786/ft1_filtered_4FGL_J1406.1-2508_daily_bin998.fits" evtable="EVENTS" scfile=/scratch/kocevski/184786/ft2_4FGL_J1406.1-2508_daily_bin998.fits sctable="SC_DATA" outfile=/scratch/kocevski/184786/ltcube_498009601_498268801_4FGL_J1406.1-2508_daily_bin998.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/184786/ft2_4FGL_J1406.1-2508_daily_bin998.fits
.....................!
real 11.92
user 11.41
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/184786/ft1_filtered_4FGL_J1406.1-2508_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/184786/ft2_4FGL_J1406.1-2508_daily_bin998.fits sctable="SC_DATA" expcube=/scratch/kocevski/184786/ltcube_498009601_498268801_4FGL_J1406.1-2508_daily_bin998.fits outfile=/scratch/kocevski/184786/expmap_498009601_498268801_4FGL_J1406.1-2508_daily_bin998.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/184786/ltcube_498009601_498268801_4FGL_J1406.1-2508_daily_bin998.fits
.....................!
real 191.10
user 185.64
sys 4.65

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.
Added 193 point sources and 1 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.1-2508 @ 211.544 -25.1386

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/184786/ft1_filtered_4FGL_J1406.1-2508_daily_bin998.fits scfile=/scratch/kocevski/184786/ft2_4FGL_J1406.1-2508_daily_bin998.fits outfile=/scratch/kocevski/184786/cmap_498009601_498268801_4FGL_J1406.1-2508_daily_bin998.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.544 yref=-25.1386 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 4.12
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/184786/ft1_filtered_4FGL_J1406.1-2508_daily_bin998.fits scfile=/scratch/kocevski/184786/ft2_4FGL_J1406.1-2508_daily_bin998.fits outfile=/scratch/kocevski/184786/cmap_HighResolution_498009601_498268801_4FGL_J1406.1-2508_daily_bin998.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.544 yref=-25.1386 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.46
user 0.39
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/184786/ft1_filtered_4FGL_J1406.1-2508_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/184786/ft2_4FGL_J1406.1-2508_daily_bin998.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/184786/Model_4FGL_J1406.1-2508_daily_bin998.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 GAL_V02
Working on...
/scratch/kocevski/184786/ft1_filtered_4FGL_J1406.1-2508_daily_bin998.fits.....................!
real 95.65
user 75.93
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/184786/ft1_filtered_4FGL_J1406.1-2508_daily_bin998.fits', '/scratch/kocevski/184786/ft2_4FGL_J1406.1-2508_daily_bin998.fits', expMap='/scratch/kocevski/184786/expmap_498009601_498268801_4FGL_J1406.1-2508_daily_bin998.fits', expCube='/scratch/kocevski/184786/ltcube_498009601_498268801_4FGL_J1406.1-2508_daily_bin998.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/184786/Model_4FGL_J1406.1-2508_daily_bin998.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1406.1-2508'

4FGL J1406.1-2508
   Spectrum: PowerLaw
309    Prefactor:  7.649e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  2.033e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  2.354e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/184786/ft1_filtered_4FGL_J1406.1-2508_daily_bin998.fits
Spacecraft file(s): /scratch/kocevski/184786/ft2_4FGL_J1406.1-2508_daily_bin998.fits
Exposure map: /scratch/kocevski/184786/expmap_498009601_498268801_4FGL_J1406.1-2508_daily_bin998.fits
Exposure cube: /scratch/kocevski/184786/ltcube_498009601_498268801_4FGL_J1406.1-2508_daily_bin998.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/184786/Model_4FGL_J1406.1-2508_daily_bin998.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) = 4298.06592312

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    5.4287       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.557       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.296       1.0000         .10000E-03   10000.    
     9 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.146       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.764       1.0000         .10000E-03   10000.    
    18 'Prefactor '    37.178       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    68.669       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    182.31       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.6755       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.8537       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .72279       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4298.062     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2910 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.956        .74021E-05** at limit **
   2  Prefactor     5.4448        83.638        .39891E-04   -.45921E-04
   3  Prefactor     .10001E-03    39.451        .14026E-04** at limit **
   4  Prefactor     14.558        18.345       -.41944E-05   -.17529E-03
   5  norm          .10000E-03    2.1421       -.68510E-07** at limit **
   6  Prefactor     .10000E-03    76.205       -.33978E-04** at limit **
   7  norm          .10000E-03    18.098        .16759E-04** at limit **
   8  Prefactor     29.296        52.386        .19006E-06   -.11185E-05
   9  norm          .10000E-03    43.529        .30418E-04** at limit **
  10  Prefactor     .10000E-03    4.1140       -.55561E-07** at limit **
  11  Prefactor     33.086        119.58       -.98786E-04   -.10769E-04
  12  Prefactor     .10000E-03    23.843       -.12325E-04** at limit **
  13  Prefactor     .10000E-03    13.047       -.14432E-04** at limit **
  14  Prefactor     .10000E-03    6.4454        .25472E-07** at limit **
  15  Prefactor     .10000E-03    15.181        .21112E-05** at limit **
  16  norm          .10000E-03    2.5516       -.35409E-07** at limit **
  17  Prefactor     13.764        36.263        .14296E-05   -.70876E-06
  18  Prefactor     37.178        44.303       -.26112E-06    .26170E-05
  19  norm          .10000E-03    4.0146       -.24755E-07** at limit **
  20  Prefactor     68.669        40.453        .82809E-06    .82441E-05
  21  Prefactor     .10000E-03    29.393       -.22082E-04** at limit **
  22  Prefactor     182.28        234.59       -.22182E-04    .17291E-05
  23  Prefactor     6.6707        19.383       -.14293E-05   -.13464E-04
  24  Normalizat    1.8537        .35045        .35835E-05   -.24453E-03
  25  Prefactor     .72280        .13449        .43253E-06   -.23674E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.44481
  Prefactor  = 0.00010001
  Prefactor  = 14.5577
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 29.2961
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.0857
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.764
  Prefactor  = 37.1779
  norm       = 0.0001
  Prefactor  = 68.669
  Prefactor  = 0.0001
  Prefactor  = 182.282
  Prefactor  = 6.67067
  Normalizat = 1.85366
  Prefactor  = 0.722804
 **********
 **   18 **HESSE 
 **********

 FCN=   4298.062     FROM HESSE     STATUS=OK           413 CALLS     3323 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.4448        82.706        .17246E-03   -1.5241    
   3  Prefactor     .10001E-03    40.260        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.558        18.418        .10498E-03   -1.4945    
   5  norm          .10000E-03    2.1457        .93702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    76.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    18.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.296        52.400        .74022E-04   -1.4625    
   9  norm          .10000E-03    44.796        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.1478        .12978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     33.086        120.11        .69601E-04   -1.4557    
  12  Prefactor     .10000E-03    23.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.4488        .16256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.5532        .10207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.764        36.191        .10796E-03   -1.4966    
  18  Prefactor     37.178        44.293        .65730E-04   -1.4488    
  19  norm          .10000E-03    4.0154        .12829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     68.669        40.451        .48438E-04   -1.4049    
  21  Prefactor     .10000E-03    29.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     182.28        234.79        .14949E-03   -1.2999    
  23  Prefactor     6.6707        19.405        .15531E-03   -1.5191    
  24  Normalizat    1.8537        .42191        .32772E-03   -.68271    
  25  Prefactor     .72280        .16136        .19273E-03   -1.0264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.14646e-10
Minuit parameter uncertainties:
  1  1.16337e-05
  2  42.5113
  3  0.00123872
  4  18.4253
  5  2.93005e-06
  6  0.000225082
  7  3.24568e-05
  8  52.4826
  9  0.000257936
  10  1.30293e-05
  11  121
  12  8.20114e-06
  13  4.87614e-06
  14  1.75483e-05
  15  1.60251e-05
  16  4.95803e-07
  17  36.2489
  18  44.332
  19  2.7224e-06
  20  40.467
  21  7.18759e-06
  22  236.011
  23  19.4233
  24  0.422745
  25  0.161461
Done.

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

Extracting fit parameters...

4FGL J1406.1-2508
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  8.201e-06  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  2.033e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  2.354e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  7.228e-01  1.615e-01  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  1.854e+00  4.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 211.544 -25.139
Photon Flux Upper Limit: 7.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/184786/likelihoodResults_498009601_498268801_4FGL_J1406.1-2508_daily_bin998.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) = 4298.06192173
delta logL = -0.000186998353456

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4298.06173594
delta logL = -1.20612639876e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3708       1.0000          .0000       10.000    
     3 'Normalizat'    1.8537       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72278       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6450E+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=   4298.062     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      273 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10414E-03    4.6624        .18142E-01** at limit **
   2  Index         2.2782        5.3765        .50000        .17723E-04
   3  Normalizat    1.8537        .45820E-02    .32772E-03   -.21412E-03
   4  Prefactor     .72280        .18013E-02    .19273E-03   -.26644E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104144
  Index      = 2.27818
  Normalizat = 1.85366
  Prefactor  = 0.722803
 **********
 **   18 **HESSE 
 **********

 FCN=   4298.062     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      302 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10414E-03    81.310        .26723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2782        7.9720        .50000       -.57563    
   3  Normalizat    1.8537        .19237E-01    .65543E-04   -.68271    
   4  Prefactor     .72280        .75624E-02    .38547E-04   -1.0264    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.6658e-09
Minuit parameter uncertainties:
  1  0.0367645
  2  258.181
  3  0.0192366
  4  0.00756244
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/184786': 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) = 4298.06173562
delta logL = -8.91820491233e-07

Extracting fit parameters...

4FGL J1406.1-2508
   Spectrum: PowerLaw
309    Prefactor:  1.041e-04  3.676e-02  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  2.278e+00  2.582e+02  0.000e+00  1.000e+01 (-1.000e+00)
311        Scale:  2.354e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  7.228e-01  7.562e-03  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  1.854e+00  1.924e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 211.544 -25.139

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/184786/cmap_HighResolution_498009601_498268801_4FGL_J1406.1-2508_daily_bin998.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.94e-03', job_status='DONE', photon_flux_upper_limit='7.89e-08', time_completed='2021-09-09 01:10:45.114738', job_id='184786', GAL2='0.72', fit_tolerance='1e-08', EG2='1.85', EG='1.85', time_epoch_completed='1631175045.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='-8.92e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='998' AND source_name='4FGL J1406.1-2508' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 01:10:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 184786: <4FGL_J1406.1-2508_daily_bin998> in cluster <slac> Done

Job <4FGL_J1406.1-2508_daily_bin998> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 00:55:29 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 00:55:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 00:55:31 2021
Terminated at Thu Sep  9 01:10:46 2021
Results reported at Thu Sep  9 01:10:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1406.1-2508_daily_bin998 211.544 -25.1386 498009601 498268801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1406.1-2508 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   665.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             228.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            917 sec.

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

