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


Performing analysis on: 4FGL_J1406.1-2508_daily_bin905
RA = 211.544, Dec = -25.1386
tmin = 473904001, tmax = 474163201
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='184638', job_status='RUN', time_executed='2021-09-09 00:57:22.678668', time_epoch_executed='1631174242.68' WHERE source_name='4FGL J1406.1-2508' and cadence='daily' and bin_id='905'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/184638

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/184638/ft1_4FGL_J1406.1-2508_daily_bin905.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/184638/ft2_4FGL_J1406.1-2508_daily_bin905.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/184638/ft1_4FGL_J1406.1-2508_daily_bin905.fits outfile=/scratch/kocevski/184638/ft1_filteredMKT_4FGL_J1406.1-2508_daily_bin905.fits ra=211.544 dec=-25.1386 rad=12.0 tmin=473904001.0 tmax=474163201.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 5.09
user 4.81
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/184638/ft1_filtered_4FGL_J1406.1-2508_daily_bin905.fits" evtable="EVENTS" scfile=/scratch/kocevski/184638/ft2_4FGL_J1406.1-2508_daily_bin905.fits sctable="SC_DATA" outfile=/scratch/kocevski/184638/ltcube_473904001_474163201_4FGL_J1406.1-2508_daily_bin905.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/184638/ft2_4FGL_J1406.1-2508_daily_bin905.fits
.....................!
real 12.49
user 12.09
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/184638/ft1_filtered_4FGL_J1406.1-2508_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/184638/ft2_4FGL_J1406.1-2508_daily_bin905.fits sctable="SC_DATA" expcube=/scratch/kocevski/184638/ltcube_473904001_474163201_4FGL_J1406.1-2508_daily_bin905.fits outfile=/scratch/kocevski/184638/expmap_473904001_474163201_4FGL_J1406.1-2508_daily_bin905.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/184638/ltcube_473904001_474163201_4FGL_J1406.1-2508_daily_bin905.fits
.....................!
real 192.85
user 186.71
sys 4.67

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/184638/ft1_filtered_4FGL_J1406.1-2508_daily_bin905.fits scfile=/scratch/kocevski/184638/ft2_4FGL_J1406.1-2508_daily_bin905.fits outfile=/scratch/kocevski/184638/cmap_473904001_474163201_4FGL_J1406.1-2508_daily_bin905.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.41
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/184638/ft1_filtered_4FGL_J1406.1-2508_daily_bin905.fits scfile=/scratch/kocevski/184638/ft2_4FGL_J1406.1-2508_daily_bin905.fits outfile=/scratch/kocevski/184638/cmap_HighResolution_473904001_474163201_4FGL_J1406.1-2508_daily_bin905.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.96
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/184638/ft1_filtered_4FGL_J1406.1-2508_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/184638/ft2_4FGL_J1406.1-2508_daily_bin905.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/184638/Model_4FGL_J1406.1-2508_daily_bin905.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/184638/ft1_filtered_4FGL_J1406.1-2508_daily_bin905.fits.....................!
real 107.23
user 98.61
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.032       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8440       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.3012       1.0000         .10000E-03   10000.    
     6 'Prefactor '    55.758       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13337E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.710       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.767       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.1334       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.9331       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10698E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    37.613       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.7429       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    72.215       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3087       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94457       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=   5861.347     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2898 TOTAL
                     EDM=   .61E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.1331       -.70732E-08** at limit **
   2  Prefactor     10.032        18.769        .10857E-05   -.69958E-05
   3  Prefactor     2.8418        19.452        .12749E-05   -.33143E-05
   4  Prefactor     .10000E-03    8.2986        .24938E-07** at limit **
   5  norm          5.3012        4.9293        .72796E-07   -.29143E-05
   6  Prefactor     55.755        95.274        .16419E-06   -.70382E-05
   7  norm          .10000E-03    27.824        .11326E-05** at limit **
   8  Prefactor     .10000E-03    194.13       -.44561E-05** at limit **
   9  norm          .10000E-03    5.9032       -.31467E-08** at limit **
  10  Prefactor     .10000E-03    2.5817       -.41482E-07** at limit **
  11  Prefactor     24.709        63.416       -.19279E-08   -.34419E-05
  12  Prefactor     .10000E-03    19.124        .97773E-07** at limit **
  13  Prefactor     10.767        12.811        .37602E-07   -.15756E-05
  14  Prefactor     8.1336        19.620        .31933E-05   -.10229E-04
  15  Prefactor     .10000E-03    58.356        .30952E-06** at limit **
  16  norm          4.9332        4.4728       -.20190E-06   -.51869E-04
  17  Prefactor     .10000E-03    24.673       -.10103E-05** at limit **
  18  Prefactor     .10000E-03    171.46        .10760E-05** at limit **
  19  norm          37.616        23.527        .28357E-06   -.13117E-04
  20  Prefactor     5.7358        44.705        .73481E-05   -.78047E-05
  21  Prefactor     .10000E-03    39.743       -.66865E-06** at limit **
  22  Prefactor     72.307        138.79        .55864E-05    .52697E-04
  23  Prefactor     .10000E-03    4.6019        .22658E-07** at limit **
  24  Normalizat    1.3088        .30182       -.17952E-06   -.32876E-04
  25  Prefactor     .94449        .12178       -.77247E-06    .28462E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.0317
  Prefactor  = 2.84179
  Prefactor  = 0.0001
  norm       = 5.30118
  Prefactor  = 55.7548
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.7091
  Prefactor  = 0.0001
  Prefactor  = 10.7667
  Prefactor  = 8.13357
  Prefactor  = 0.0001
  norm       = 4.93316
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 37.6157
  Prefactor  = 5.73578
  Prefactor  = 0.0001
  Prefactor  = 72.3074
  Prefactor  = 0.0001
  Normalizat = 1.30884
  Prefactor  = 0.944488
 **********
 **   18 **HESSE 
 **********

 FCN=   5861.347     FROM HESSE     STATUS=OK           427 CALLS     3325 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.1807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.032        18.765        .63254E-03   -1.5074    
   3  Prefactor     2.8418        19.126        .24111E-03   -1.5371    
   4  Prefactor     .10000E-03    8.4114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.3012        4.9255        .15913E-03   -1.5247    
   6  Prefactor     55.755        95.342        .53720E-04   -1.4213    
   7  norm          .10000E-03    27.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    197.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.9110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.0196        .23331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     24.709        63.405        .80585E-04   -1.4713    
  12  Prefactor     .10000E-03    19.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.767        12.811        .12210E-03   -1.5052    
  14  Prefactor     8.1336        19.688        .70291E-03   -1.5138    
  15  Prefactor     .10000E-03    58.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.9332        4.4732        .14814E-03   -1.5264    
  17  Prefactor     .10000E-03    24.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    173.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          37.616        23.526        .65350E-04   -1.4481    
  20  Prefactor     5.7358        45.733        .83803E-03   -1.5229    
  21  Prefactor     .10000E-03    39.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     72.307        143.74        .23621E-03   -1.4005    
  23  Prefactor     .10000E-03    4.6078        .16040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3088        .36220        .37448E-03   -.83303    
  25  Prefactor     .94449        .14731        .17476E-03   -.94603    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30174e-10
Minuit parameter uncertainties:
  1  5.65191e-06
  2  18.7764
  3  14.7513
  4  8.14779e-06
  5  4.92592
  6  95.605
  7  0.000112465
  8  0.000771105
  9  2.29965e-06
  10  4.27453e-05
  11  63.5791
  12  1.04761e-05
  13  12.8146
  14  19.7034
  15  8.58709e-05
  16  4.47355
  17  0.00011954
  18  0.000320742
  19  23.5318
  20  32.426
  21  7.51635e-05
  22  144.438
  23  2.18737e-06
  24  0.362901
  25  0.147373
Done.

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

Extracting fit parameters...

4FGL J1406.1-2508
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  1.048e-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:  9.445e-01  1.474e-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.309e+00  3.629e-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.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/184638/likelihoodResults_473904001_474163201_4FGL_J1406.1-2508_daily_bin905.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) = 5861.34738719
delta logL = -0.000248686519626

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5861.25193514
delta logL = 0.0952033651729

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22370E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    5.8583       1.0000          .0000       10.000    
     3 'Normalizat'    1.2353       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96449       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.

 FCN=   5861.252     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      319 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22187E-02    .54689E-01    .16643E-02** at limit **
   2  Index         5.8620        2.4174        .99013E-01    .18199E-03
   3  Normalizat    1.2364        .39654E-01    .86723E-01    .16047E-04
   4  Prefactor     .96400        .16098E-01    .45822E-01   -.25885E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00221868
  Index      = 5.86203
  Normalizat = 1.23644
  Prefactor  = 0.963999
 **********
 **   18 **HESSE 
 **********

 FCN=   5861.252     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      352 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22187E-02    .48279        .68300E-04   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.8620        7.8678        .74920E-02    .17327    
   3  Normalizat    1.2364        .20106        .38402E-03   -.85484    
   4  Prefactor     .96400        .79556E-01    .17320E-03   -.93939    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.51943e-10
Minuit parameter uncertainties:
  1  0.0639651
  2  9.69976
  3  0.201185
  4  0.0795654
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/184638': 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) = 5861.25192692
delta logL = 0.0952115883838

Extracting fit parameters...

4FGL J1406.1-2508
   Spectrum: PowerLaw
309    Prefactor:  2.219e-03  6.397e-02  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  5.862e+00  9.700e+00  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.640e-01  7.957e-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.236e+00  2.012e-01  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/184638/cmap_HighResolution_473904001_474163201_4FGL_J1406.1-2508_daily_bin905.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.61e-03', job_status='DONE', photon_flux_upper_limit='6.13e-08', time_completed='2021-09-09 01:10:42.478265', job_id='184638', GAL2='0.96', fit_tolerance='1e-08', EG2='1.24', EG='1.31', time_epoch_completed='1631175042.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='9.52e-02', ts2='0.23', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='905' AND source_name='4FGL J1406.1-2508' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 01:10:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 184638: <4FGL_J1406.1-2508_daily_bin905> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1406.1-2508_daily_bin905 211.544 -25.1386 473904001 474163201 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 :                                   769.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             311.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            925 sec.

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

