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


Performing analysis on: 4FGL_J1406.1-2508_daily_bin1250
RA = 211.544, Dec = -25.1386
tmin = 563328001, tmax = 563587201
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='185171', job_status='RUN', time_executed='2021-09-09 00:59:54.579601', time_epoch_executed='1631174394.58' WHERE source_name='4FGL J1406.1-2508' and cadence='daily' and bin_id='1250'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/185171

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/185171/ft1_4FGL_J1406.1-2508_daily_bin1250.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/185171/ft2_4FGL_J1406.1-2508_daily_bin1250.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/185171/ft1_4FGL_J1406.1-2508_daily_bin1250.fits outfile=/scratch/kocevski/185171/ft1_filteredMKT_4FGL_J1406.1-2508_daily_bin1250.fits ra=211.544 dec=-25.1386 rad=12.0 tmin=563328001.0 tmax=563587201.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 3.51
user 2.77
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/185171/ft1_filtered_4FGL_J1406.1-2508_daily_bin1250.fits" evtable="EVENTS" scfile=/scratch/kocevski/185171/ft2_4FGL_J1406.1-2508_daily_bin1250.fits sctable="SC_DATA" outfile=/scratch/kocevski/185171/ltcube_563328001_563587201_4FGL_J1406.1-2508_daily_bin1250.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/185171/ft2_4FGL_J1406.1-2508_daily_bin1250.fits
.....................!
real 12.34
user 11.62
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/185171/ft1_filtered_4FGL_J1406.1-2508_daily_bin1250.fits evtable="EVENTS" scfile=/scratch/kocevski/185171/ft2_4FGL_J1406.1-2508_daily_bin1250.fits sctable="SC_DATA" expcube=/scratch/kocevski/185171/ltcube_563328001_563587201_4FGL_J1406.1-2508_daily_bin1250.fits outfile=/scratch/kocevski/185171/expmap_563328001_563587201_4FGL_J1406.1-2508_daily_bin1250.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/185171/ltcube_563328001_563587201_4FGL_J1406.1-2508_daily_bin1250.fits
.....................!
real 190.83
user 185.84
sys 4.38

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/185171/ft1_filtered_4FGL_J1406.1-2508_daily_bin1250.fits scfile=/scratch/kocevski/185171/ft2_4FGL_J1406.1-2508_daily_bin1250.fits outfile=/scratch/kocevski/185171/cmap_563328001_563587201_4FGL_J1406.1-2508_daily_bin1250.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 1.46
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/185171/ft1_filtered_4FGL_J1406.1-2508_daily_bin1250.fits scfile=/scratch/kocevski/185171/ft2_4FGL_J1406.1-2508_daily_bin1250.fits outfile=/scratch/kocevski/185171/cmap_HighResolution_563328001_563587201_4FGL_J1406.1-2508_daily_bin1250.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.63
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/185171/ft1_filtered_4FGL_J1406.1-2508_daily_bin1250.fits evtable="EVENTS" scfile=/scratch/kocevski/185171/ft2_4FGL_J1406.1-2508_daily_bin1250.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/185171/Model_4FGL_J1406.1-2508_daily_bin1250.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/185171/ft1_filtered_4FGL_J1406.1-2508_daily_bin1250.fits.........................!
real 31.26
user 29.20
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.297       1.0000         .10000E-03   10000.    
     2 'Prefactor '    55.895       1.0000         .10000E-03   10000.    
     3 'Prefactor '    47.755       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8923       1.0000         .10000E-03   10000.    
     5 'norm      '    21.304       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10088E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15460E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    82.589       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10446E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    76.398       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12683E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6840.3       1.0000         .10000E-03   10000.    
    20 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    21 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    22 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    23 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10015E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98902       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=   1099.892     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     3339 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.205        61.104        .25695E-05   -.27252E-03
   2  Prefactor     55.741        94.491       -.84492E-04   -.11779E-03
   3  Prefactor     47.738        37.126        .36394E-05   -.18078E-03
   4  Prefactor     2.9481        126.77        .66446E-04   -.25110E-06
   5  norm          21.267        23.960       -.11937E-04   -.37693E-03
   6  Prefactor     .10000E-03    60.543        .16138E-04** at limit **
   7  norm          .10000E-03    41.076        .11721E-05** at limit **
   8  Prefactor     .10000E-03    318.96        .13693E-04** at limit **
   9  norm          82.572        50.590       -.30996E-05   -.76750E-04
  10  Prefactor     .10000E-03    5.3254        .10045E-06** at limit **
  11  Prefactor     .10000E-03    95.858       -.44437E-04** at limit **
  12  Prefactor     .10000E-03    91.274        .49370E-04** at limit **
  13  Prefactor     .10000E-03    61.721       -.75785E-05** at limit **
  14  Prefactor     76.391        147.73       -.82304E-05   -.13860E-04
  15  Prefactor     .10000E-03    546.96        .23718E-03** at limit **
  16  norm          .10000E-03    64.325       -.14462E-04** at limit **
  17  Prefactor     .10000E-03    297.21       -.75929E-04** at limit **
  18  Prefactor     .10000E-03    585.21        .21315E-03** at limit **
  19  norm          6841.6        8100.2        .28278E-03   -.86988E-05
  20  Prefactor     10000.        730.66       -.88929E-04** at limit **
  21  Prefactor    10000.0        7942.9        .25620E-02** at limit **
  22  Prefactor     10000.        8585.2        .15058E-02** at limit **
  23  Prefactor    10000.0        6345.4        .19896E-02** at limit **
  24  Normalizat    .10000E-01    .72421        .11974E-04** at limit **
  25  Prefactor     .98903        .22381        .73247E-05   -.71804E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.2054
  Prefactor  = 55.7407
  Prefactor  = 47.7376
  Prefactor  = 2.94815
  norm       = 21.267
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 82.5721
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 76.3908
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6841.58
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Normalizat = 0.01
  Prefactor  = 0.989029
 **********
 **   18 **HESSE 
 **********

 FCN=   1099.892     FROM HESSE     STATUS=OK           405 CALLS     3744 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.205        59.103        .79645E-04   -1.4703    
   2  Prefactor     55.741        94.564        .53655E-04   -1.4213    
   3  Prefactor     47.738        36.989        .58025E-04   -1.4325    
   4  Prefactor     2.9481        114.45        .23895E-03   -1.5365    
   5  norm          21.267        23.958        .86779E-04   -1.4785    
   6  Prefactor     .10000E-03    60.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    41.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    319.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          82.572        50.595        .44199E-04   -1.3888    
  10  Prefactor     .10000E-03    5.3300        .74725E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    95.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    91.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    61.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     76.391        147.50        .45940E-04   -1.3958    
  15  Prefactor     .10000E-03    546.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    64.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    297.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    585.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6841.6        8092.2        .43020E-04    .37720    
  20  Prefactor     10000.        730.71        .20347E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor    10000.0        7941.7        .18288E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10000.        8584.8        .18534E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor    10000.0        6346.1        .18337E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    1.1574        .12925E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .98903        .19598        .17230E-03   -.93096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11626e-09
Minuit parameter uncertainties:
  1  59.2409
  2  94.8202
  3  37.0072
  4  36.8131
  5  23.9684
  6  2.99001e-05
  7  5.9548e-05
  8  0.00116712
  9  50.621
  10  2.93505e-05
  11  3.82607e-08
  12  3.74547e-06
  13  6.20119e-06
  14  148.218
  15  0.000905308
  16  1.4024e-05
  17  1.59639e-06
  18  1.52831e-05
  19  6644.89
  20  2.0369e-05
  21  0.000474565
  22  0.000144623
  23  0.0176946
  24  1.00583e-05
  25  0.196125
Done.

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

Extracting fit parameters...

4FGL J1406.1-2508
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  3.745e-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:  9.890e-01  1.961e-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.000e-02  1.006e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 211.544 -25.139
Photon Flux Upper Limit: 3.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.43e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/185171/likelihoodResults_563328001_563587201_4FGL_J1406.1-2508_daily_bin1250.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) = 1099.89190355
delta logL = -5.47869465208e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1099.89185134
delta logL = -2.58058389591e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14362E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2213       1.0000          .0000       10.000    
     3 'Normalizat'    .10005E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98903       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=   1099.892     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      274 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10230E-03    358.41        .18142E-02** at limit **
   2  Index         2.1511        7.2127        .50000        .47485E-05
   3  Normalizat    .10000E-01    .11619E-01    .12911E-01** at limit **
   4  Prefactor     .98904        .15616E-01    .17230E-03    .27439E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102304
  Index      = 2.15107
  Normalizat = 0.01
  Prefactor  = 0.989035
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10230E-03    1476.0        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1511        7.1698        .50000       -.60625    
   3  Normalizat    .10000E-01    .51543E-01    .25822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .98904        .32856E-01    .34459E-04   -.93096    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.91286e-09
Minuit parameter uncertainties:
  1  0.119714
  2  719.152
  3  6.04814e-07
  4  0.0328562
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/185171': 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) = 1099.89184889
delta logL = -1.298051302e-07

Extracting fit parameters...

4FGL J1406.1-2508
   Spectrum: PowerLaw
309    Prefactor:  1.023e-04  1.197e-01  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  2.151e+00  7.192e+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:  9.890e-01  3.286e-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.000e-02  6.048e-07  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/185171/cmap_HighResolution_563328001_563587201_4FGL_J1406.1-2508_daily_bin1250.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.43e-02', job_status='DONE', photon_flux_upper_limit='3.23e-07', time_completed='2021-09-09 01:08:12.975183', job_id='185171', GAL2='0.99', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631174892.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='-1.30e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='1250' AND source_name='4FGL J1406.1-2508' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 01:08:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 185171: <4FGL_J1406.1-2508_daily_bin1250> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1406.1-2508_daily_bin1250 211.544 -25.1386 563328001 563587201 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 :                                   408.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             177.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            735 sec.

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

