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


Performing analysis on: 4FGL_J1406.1-2508_daily_bin1238
RA = 211.544, Dec = -25.1386
tmin = 560217601, tmax = 560476801
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='185154', job_status='RUN', time_executed='2021-09-09 00:58:39.988245', time_epoch_executed='1631174319.99' WHERE source_name='4FGL J1406.1-2508' and cadence='daily' and bin_id='1238'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/185154

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/185154/ft1_4FGL_J1406.1-2508_daily_bin1238.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/185154/ft2_4FGL_J1406.1-2508_daily_bin1238.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/185154/ft1_4FGL_J1406.1-2508_daily_bin1238.fits outfile=/scratch/kocevski/185154/ft1_filteredMKT_4FGL_J1406.1-2508_daily_bin1238.fits ra=211.544 dec=-25.1386 rad=12.0 tmin=560217601.0 tmax=560476801.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 4.45
user 3.41
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/185154/ft1_filtered_4FGL_J1406.1-2508_daily_bin1238.fits" evtable="EVENTS" scfile=/scratch/kocevski/185154/ft2_4FGL_J1406.1-2508_daily_bin1238.fits sctable="SC_DATA" outfile=/scratch/kocevski/185154/ltcube_560217601_560476801_4FGL_J1406.1-2508_daily_bin1238.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/185154/ft2_4FGL_J1406.1-2508_daily_bin1238.fits
.....................!
real 12.27
user 11.53
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/185154/ft1_filtered_4FGL_J1406.1-2508_daily_bin1238.fits evtable="EVENTS" scfile=/scratch/kocevski/185154/ft2_4FGL_J1406.1-2508_daily_bin1238.fits sctable="SC_DATA" expcube=/scratch/kocevski/185154/ltcube_560217601_560476801_4FGL_J1406.1-2508_daily_bin1238.fits outfile=/scratch/kocevski/185154/expmap_560217601_560476801_4FGL_J1406.1-2508_daily_bin1238.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/185154/ltcube_560217601_560476801_4FGL_J1406.1-2508_daily_bin1238.fits
.....................!
real 191.85
user 185.23
sys 4.90

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/185154/ft1_filtered_4FGL_J1406.1-2508_daily_bin1238.fits scfile=/scratch/kocevski/185154/ft2_4FGL_J1406.1-2508_daily_bin1238.fits outfile=/scratch/kocevski/185154/cmap_560217601_560476801_4FGL_J1406.1-2508_daily_bin1238.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 7.25
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/185154/ft1_filtered_4FGL_J1406.1-2508_daily_bin1238.fits scfile=/scratch/kocevski/185154/ft2_4FGL_J1406.1-2508_daily_bin1238.fits outfile=/scratch/kocevski/185154/cmap_HighResolution_560217601_560476801_4FGL_J1406.1-2508_daily_bin1238.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.18
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/185154/ft1_filtered_4FGL_J1406.1-2508_daily_bin1238.fits evtable="EVENTS" scfile=/scratch/kocevski/185154/ft2_4FGL_J1406.1-2508_daily_bin1238.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/185154/Model_4FGL_J1406.1-2508_daily_bin1238.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/185154/ft1_filtered_4FGL_J1406.1-2508_daily_bin1238.fits.....................!
real 55.23
user 45.85
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .15364E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.364       1.0000         .10000E-03   10000.    
     5 'norm      '    .34501E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13939E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    57.479       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.562       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11874E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10430E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10907E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    188.51       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .52187E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10802E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    43.014       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3534       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .77247       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=   2407.532     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2894 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.293       -.14310E-06** at limit **
   2  Prefactor     .10000E-03    220.75       -.38520E-05** at limit **
   3  Prefactor     .10000E-03    28.846       -.16130E-06** at limit **
   4  Prefactor     38.377        33.077        .26327E-05    .21859E-03
   5  norm          .10001E-03    31.054        .13363E-04** at limit **
   6  Prefactor     .10002E-03    983.77        .16153E-04** at limit **
   7  norm          .10000E-03    43.820       -.32116E-06** at limit **
   8  Prefactor     57.574        99.182        .93829E-05    .73995E-04
   9  norm          .10000E-03    37.129        .32215E-06** at limit **
  10  Prefactor     21.551        21.323       -.66283E-06    .60018E-04
  11  Prefactor     .10000E-03    305.32        .67876E-06** at limit **
  12  Prefactor     .10000E-03    81.364        .22530E-06** at limit **
  13  Prefactor     .10000E-03    47.985       -.32091E-06** at limit **
  14  Prefactor     .10000E-03    84.506        .66457E-06** at limit **
  15  Prefactor     .10000E-03    58.797       -.49829E-07** at limit **
  16  norm          .10000E-03    19.262        .22924E-05** at limit **
  17  Prefactor     188.29        191.59       -.35138E-06   -.29235E-04
  18  Prefactor     .10005E-03    369.61        .82178E-05** at limit **
  19  norm          .10000E-03    6.1114       -.77125E-07** at limit **
  20  Prefactor     .10000E-03    52.637        .86705E-06** at limit **
  21  Prefactor     .10000E-03    39.471       -.77638E-07** at limit **
  22  Prefactor     .10000E-03    280.41       -.85768E-07** at limit **
  23  Prefactor     43.009        28.404       -.71362E-06    .25895E-04
  24  Normalizat    1.3532        .48109        .17104E-05    .57801E-04
  25  Prefactor     .77261        .17377        .16698E-05    .51823E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 38.3771
  norm       = 0.000100006
  Prefactor  = 0.000100023
  norm       = 0.0001
  Prefactor  = 57.5737
  norm       = 0.0001
  Prefactor  = 21.5509
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100005
  Prefactor  = 188.291
  Prefactor  = 0.000100046
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.0094
  Normalizat = 1.35324
  Prefactor  = 0.772614
 **********
 **   18 **HESSE 
 **********

 FCN=   2407.532     FROM HESSE     STATUS=OK           411 CALLS     3305 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    222.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    28.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     38.377        33.121        .64709E-04   -1.4468    
   5  norm          .10001E-03    31.350        .26403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    986.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    43.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     57.574        99.198        .26457E-03   -1.4189    
   9  norm          .10000E-03    37.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.551        21.368        .86258E-04   -1.4779    
  11  Prefactor     .10000E-03    305.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    81.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    48.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    84.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    58.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    19.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     188.29        191.48        .14706E-03   -1.2955    
  18  Prefactor     .10005E-03    367.30        .19143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.1145        .11847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    52.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    39.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    280.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     43.009        28.463        .61125E-04   -1.4395    
  24  Normalizat    1.3532        .55958        .37896E-03   -.81991    
  25  Prefactor     .77261        .20474        .18341E-03   -1.0075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92144e-09
Minuit parameter uncertainties:
  1  0.000175859
  2  0.0015977
  3  9.49733e-06
  4  33.1371
  5  0.000889874
  6  0.00966393
  7  4.07209e-05
  8  99.4843
  9  2.12393e-05
  10  21.3754
  11  0.00010728
  12  4.20938e-05
  13  0.000187735
  14  0.000352381
  15  0.000365172
  16  0.000601546
  17  192.121
  18  0.00822991
  19  2.22195e-05
  20  0.00043618
  21  5.82801e-05
  22  0.000690942
  23  28.4722
  24  0.56213
  25  0.204945
Done.

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

Extracting fit parameters...

4FGL J1406.1-2508
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  4.209e-05  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.726e-01  2.049e-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.353e+00  5.621e-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: 1.83e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.38e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/185154/likelihoodResults_560217601_560476801_4FGL_J1406.1-2508_daily_bin1238.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) = 2407.53218317
delta logL = -5.8415660078e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2407.53212508
delta logL = -3.27343514073e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1945       1.0000          .0000       10.000    
     3 'Normalizat'    1.3532       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77261       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=   2407.532     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      282 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10428E-03    28.303        .18142E-01** at limit **
   2  Index         2.0997        5.4973        .50000        .78971E-05
   3  Normalizat    1.3533        .77213E-02    .37897E-03    .19679E-04
   4  Prefactor     .77261        .29320E-02    .18341E-03    .61650E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104282
  Index      = 2.09968
  Normalizat = 1.35325
  Prefactor  = 0.772608
 **********
 **   18 **HESSE 
 **********

 FCN=   2407.532     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      311 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10428E-03    147.37        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0997        7.1419        .50000       -.61881    
   3  Normalizat    1.3533        .17670E-01    .15159E-04   -.81990    
   4  Prefactor     .77261        .67100E-02    .36682E-04   -1.0075    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.83322e-10
Minuit parameter uncertainties:
  1  0.0503676
  2  190.55
  3  0.0176703
  4  0.00670998
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/185154': 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) = 2407.53212489
delta logL = -1.44713794725e-07

Extracting fit parameters...

4FGL J1406.1-2508
   Spectrum: PowerLaw
309    Prefactor:  1.043e-04  5.037e-02  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  2.100e+00  1.906e+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.726e-01  6.710e-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.353e+00  1.767e-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/185154/cmap_HighResolution_560217601_560476801_4FGL_J1406.1-2508_daily_bin1238.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.38e-02', job_status='DONE', photon_flux_upper_limit='1.83e-07', time_completed='2021-09-09 01:09:20.207351', job_id='185154', GAL2='0.77', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1631174960.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='-1.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='1238' AND source_name='4FGL J1406.1-2508' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 01:09:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 185154: <4FGL_J1406.1-2508_daily_bin1238> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1406.1-2508_daily_bin1238 211.544 -25.1386 560217601 560476801 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 :                                   489.04 sec.
    Max Memory :                                 1118 MB
    Average Memory :                             251.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            805 sec.

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

