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


Performing analysis on: 4FGL_J1406.1-2508_daily_bin1077
RA = 211.544, Dec = -25.1386
tmin = 518486401, tmax = 518745601
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='184907', job_status='RUN', time_executed='2021-09-09 00:55:59.869620', time_epoch_executed='1631174159.87' WHERE source_name='4FGL J1406.1-2508' and cadence='daily' and bin_id='1077'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/184907

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/184907/ft1_4FGL_J1406.1-2508_daily_bin1077.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/184907/ft2_4FGL_J1406.1-2508_daily_bin1077.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/184907/ft1_4FGL_J1406.1-2508_daily_bin1077.fits outfile=/scratch/kocevski/184907/ft1_filteredMKT_4FGL_J1406.1-2508_daily_bin1077.fits ra=211.544 dec=-25.1386 rad=12.0 tmin=518486401.0 tmax=518745601.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 6.78
user 6.51
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/184907/ft2_4FGL_J1406.1-2508_daily_bin1077.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/184907/ft1_filteredMKT_4FGL_J1406.1-2508_daily_bin1077.fits evtable="EVENTS" outfile="/scratch/kocevski/184907/ft1_filtered_4FGL_J1406.1-2508_daily_bin1077.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/184907/ft1_filtered_4FGL_J1406.1-2508_daily_bin1077.fits" evtable="EVENTS" scfile=/scratch/kocevski/184907/ft2_4FGL_J1406.1-2508_daily_bin1077.fits sctable="SC_DATA" outfile=/scratch/kocevski/184907/ltcube_518486401_518745601_4FGL_J1406.1-2508_daily_bin1077.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/184907/ft2_4FGL_J1406.1-2508_daily_bin1077.fits
.....................!
real 11.73
user 11.36
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/184907/ft1_filtered_4FGL_J1406.1-2508_daily_bin1077.fits evtable="EVENTS" scfile=/scratch/kocevski/184907/ft2_4FGL_J1406.1-2508_daily_bin1077.fits sctable="SC_DATA" expcube=/scratch/kocevski/184907/ltcube_518486401_518745601_4FGL_J1406.1-2508_daily_bin1077.fits outfile=/scratch/kocevski/184907/expmap_518486401_518745601_4FGL_J1406.1-2508_daily_bin1077.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/184907/ltcube_518486401_518745601_4FGL_J1406.1-2508_daily_bin1077.fits
.....................!
real 189.37
user 184.90
sys 4.14

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/184907/ft1_filtered_4FGL_J1406.1-2508_daily_bin1077.fits scfile=/scratch/kocevski/184907/ft2_4FGL_J1406.1-2508_daily_bin1077.fits outfile=/scratch/kocevski/184907/cmap_518486401_518745601_4FGL_J1406.1-2508_daily_bin1077.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 0.67
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/184907/ft1_filtered_4FGL_J1406.1-2508_daily_bin1077.fits scfile=/scratch/kocevski/184907/ft2_4FGL_J1406.1-2508_daily_bin1077.fits outfile=/scratch/kocevski/184907/cmap_HighResolution_518486401_518745601_4FGL_J1406.1-2508_daily_bin1077.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 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/184907/ft1_filtered_4FGL_J1406.1-2508_daily_bin1077.fits evtable="EVENTS" scfile=/scratch/kocevski/184907/ft2_4FGL_J1406.1-2508_daily_bin1077.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/184907/Model_4FGL_J1406.1-2508_daily_bin1077.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/184907/ft1_filtered_4FGL_J1406.1-2508_daily_bin1077.fits.....................!
real 109.46
user 108.03
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/184907/ft1_filtered_4FGL_J1406.1-2508_daily_bin1077.fits', '/scratch/kocevski/184907/ft2_4FGL_J1406.1-2508_daily_bin1077.fits', expMap='/scratch/kocevski/184907/expmap_518486401_518745601_4FGL_J1406.1-2508_daily_bin1077.fits', expCube='/scratch/kocevski/184907/ltcube_518486401_518745601_4FGL_J1406.1-2508_daily_bin1077.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/184907/Model_4FGL_J1406.1-2508_daily_bin1077.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/184907/ft1_filtered_4FGL_J1406.1-2508_daily_bin1077.fits
Spacecraft file(s): /scratch/kocevski/184907/ft2_4FGL_J1406.1-2508_daily_bin1077.fits
Exposure map: /scratch/kocevski/184907/expmap_518486401_518745601_4FGL_J1406.1-2508_daily_bin1077.fits
Exposure cube: /scratch/kocevski/184907/ltcube_518486401_518745601_4FGL_J1406.1-2508_daily_bin1077.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/184907/Model_4FGL_J1406.1-2508_daily_bin1077.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) = 6328.70433274

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.467       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.6747       1.0000         .10000E-03   10000.    
     5 'norm      '    4.7712       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.9394       1.0000         .10000E-03   10000.    
    11 'Prefactor '    41.164       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.636       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.9704       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10908E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    63.472       1.0000         .10000E-03   10000.    
    19 'norm      '    28.638       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.703       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .58233E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2378       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80713       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=   6328.689     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2861 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8247        .16282E-06** at limit **
   2  Prefactor     .10000E-03    46.649        .13902E-04** at limit **
   3  Prefactor     29.474        15.168       -.40589E-06   -.10383E-03
   4  Prefactor     9.6800        10.947       -.34484E-06   -.14898E-03
   5  norm          4.7711        4.9675        .20253E-05   -.22381E-03
   6  Prefactor     .10000E-03    35.331        .42280E-05** at limit **
   7  norm          .10000E-03    31.854       -.41044E-05** at limit **
   8  Prefactor     .10000E-03    15.718       -.75004E-05** at limit **
   9  norm          .10000E-03    7.2826       -.35450E-07** at limit **
  10  Prefactor     6.9404        4.6738        .28257E-07   -.27600E-03
  11  Prefactor     41.169        40.780        .50076E-05    .15562E-05
  12  Prefactor     .10000E-03    21.859       -.24638E-05** at limit **
  13  Prefactor     23.635        25.782       -.46734E-06    .12546E-04
  14  Prefactor     9.9696        13.289        .17271E-06   -.39680E-04
  15  Prefactor     .10000E-03    7.7165       -.97810E-08** at limit **
  16  norm          .10000E-03    1.4432        .10099E-06** at limit **
  17  Prefactor     .10000E-03    16.669        .43988E-05** at limit **
  18  Prefactor     63.444        48.733       -.25020E-04   -.98903E-05
  19  norm          28.637        17.449       -.31146E-06    .26003E-04
  20  Prefactor     16.703        17.698        .50080E-05    .17187E-04
  21  Prefactor     .10004E-03    179.71       -.11698E-03** at limit **
  22  Prefactor     .10000E-03    30.612       -.77430E-05** at limit **
  23  Prefactor     .10000E-03    16.849        .65475E-05** at limit **
  24  Normalizat    1.2381        .26141        .10252E-05    .10757E-03
  25  Prefactor     .80698        .10462        .72503E-06    .38608E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.4742
  Prefactor  = 9.68004
  norm       = 4.77115
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.9404
  Prefactor  = 41.1694
  Prefactor  = 0.0001
  Prefactor  = 23.6353
  Prefactor  = 9.96957
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 63.444
  norm       = 28.637
  Prefactor  = 16.7034
  Prefactor  = 0.000100036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.23807
  Prefactor  = 0.806985
 **********
 **   18 **HESSE 
 **********

 FCN=   6328.689     FROM HESSE     STATUS=OK           419 CALLS     3280 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.8297        .17060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    46.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     29.474        15.198        .73807E-04   -1.4622    
   4  Prefactor     9.6800        10.970        .12884E-03   -1.5086    
   5  norm          4.7711        4.9558        .17426E-03   -1.5271    
   6  Prefactor     .10000E-03    35.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    32.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.3084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.9404        4.6803        .13179E-03   -1.5181    
  11  Prefactor     41.169        40.794        .62478E-04   -1.4424    
  12  Prefactor     .10000E-03    21.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.635        25.797        .82393E-04   -1.4735    
  14  Prefactor     9.9696        13.287        .12690E-03   -1.5076    
  15  Prefactor     .10000E-03    7.7186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.4490        .93304E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     63.444        48.946        .50369E-04   -1.4113    
  19  norm          28.637        17.462        .74865E-04   -1.4637    
  20  Prefactor     16.703        17.692        .97998E-04   -1.4890    
  21  Prefactor     .10004E-03    181.66        .42160E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    30.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    17.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2381        .31532        .33900E-03   -.85434    
  25  Prefactor     .80698        .12632        .17036E-03   -.99471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.19874e-10
Minuit parameter uncertainties:
  1  1.07368e-05
  2  0.000139856
  3  15.2003
  4  10.9721
  5  4.95625
  6  3.11436e-05
  7  7.16621e-06
  8  1.86141e-05
  9  1.21212e-05
  10  4.68053
  11  40.8221
  12  6.13497e-06
  13  25.8089
  14  13.2909
  15  1.90293e-06
  16  2.24474e-05
  17  0.000182114
  18  48.977
  19  17.4651
  20  17.6976
  21  0.00515124
  22  1.42106e-05
  23  5.75858e-05
  24  0.315812
  25  0.126368
Done.

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

Extracting fit parameters...

4FGL J1406.1-2508
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  6.135e-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:  8.070e-01  1.264e-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.238e+00  3.158e-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: 6.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/184907/likelihoodResults_518486401_518745601_4FGL_J1406.1-2508_daily_bin1077.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) = 6328.68886097
delta logL = -0.000217846341911

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6328.68864441
delta logL = -1.28566352942e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11394E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2775       1.0000          .0000       10.000    
     3 'Normalizat'    1.2381       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80699       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=   6328.689     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      279 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10208E-03    96.608        .18142E-02** at limit **
   2  Index         2.2094        5.5837        .50000        .16760E-04
   3  Normalizat    1.2381        .15070E-01    .33900E-03   -.39908E-05
   4  Prefactor     .80698        .62959E-02    .17036E-03   -.39973E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102079
  Index      = 2.20942
  Normalizat = 1.23807
  Prefactor  = 0.806983
 **********
 **   18 **HESSE 
 **********

 FCN=   6328.689     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10208E-03    423.69        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2094        6.2265        .50000       -.59211    
   3  Normalizat    1.2381        .32391E-01    .13560E-04   -.85434    
   4  Prefactor     .80698        .13532E-01    .68145E-05   -.99471    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.40915e-08
Minuit parameter uncertainties:
  1  0.0597857
  2  453.449
  3  0.0323913
  4  0.0135321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/184907': 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) = 6328.68864374
delta logL = -6.16516445007e-07

Extracting fit parameters...

4FGL J1406.1-2508
   Spectrum: PowerLaw
309    Prefactor:  1.021e-04  5.979e-02  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  2.209e+00  4.534e+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:  8.070e-01  1.353e-02  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.238e+00  3.239e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/184907/cmap_HighResolution_518486401_518745601_4FGL_J1406.1-2508_daily_bin1077.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', job_status='DONE', photon_flux_upper_limit='6.37e-08', time_completed='2021-09-09 01:10:23.213235', job_id='184907', GAL2='0.81', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1631175023.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='-6.17e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='1077' AND source_name='4FGL J1406.1-2508' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 01:10:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 184907: <4FGL_J1406.1-2508_daily_bin1077> in cluster <slac> Done

Job <4FGL_J1406.1-2508_daily_bin1077> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 00:55:37 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 00:55:39 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:39 2021
Terminated at Thu Sep  9 01:10:24 2021
Results reported at Thu Sep  9 01:10:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1406.1-2508_daily_bin1077 211.544 -25.1386 518486401 518745601 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 :                                   835.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             328.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            887 sec.

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

