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


Performing analysis on: 4FGL_J1406.1-2508_daily_bin500
RA = 211.544, Dec = -25.1386
tmin = 368928001, tmax = 369187201
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='180658', job_status='RUN', time_executed='2021-09-09 00:41:14.259138', time_epoch_executed='1631173274.26' WHERE source_name='4FGL J1406.1-2508' and cadence='daily' and bin_id='500'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/180658

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/180658/ft1_4FGL_J1406.1-2508_daily_bin500.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/180658/ft2_4FGL_J1406.1-2508_daily_bin500.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/180658/ft1_4FGL_J1406.1-2508_daily_bin500.fits outfile=/scratch/kocevski/180658/ft1_filteredMKT_4FGL_J1406.1-2508_daily_bin500.fits ra=211.544 dec=-25.1386 rad=12.0 tmin=368928001.0 tmax=369187201.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.33
user 3.12
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/180658/ft1_filtered_4FGL_J1406.1-2508_daily_bin500.fits" evtable="EVENTS" scfile=/scratch/kocevski/180658/ft2_4FGL_J1406.1-2508_daily_bin500.fits sctable="SC_DATA" outfile=/scratch/kocevski/180658/ltcube_368928001_369187201_4FGL_J1406.1-2508_daily_bin500.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/180658/ft2_4FGL_J1406.1-2508_daily_bin500.fits
.....................!
real 12.56
user 12.24
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/180658/ft1_filtered_4FGL_J1406.1-2508_daily_bin500.fits evtable="EVENTS" scfile=/scratch/kocevski/180658/ft2_4FGL_J1406.1-2508_daily_bin500.fits sctable="SC_DATA" expcube=/scratch/kocevski/180658/ltcube_368928001_369187201_4FGL_J1406.1-2508_daily_bin500.fits outfile=/scratch/kocevski/180658/expmap_368928001_369187201_4FGL_J1406.1-2508_daily_bin500.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/180658/ltcube_368928001_369187201_4FGL_J1406.1-2508_daily_bin500.fits
.....................!
real 190.25
user 185.49
sys 4.37

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/180658/ft1_filtered_4FGL_J1406.1-2508_daily_bin500.fits scfile=/scratch/kocevski/180658/ft2_4FGL_J1406.1-2508_daily_bin500.fits outfile=/scratch/kocevski/180658/cmap_368928001_369187201_4FGL_J1406.1-2508_daily_bin500.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.51
user 0.37
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/180658/ft1_filtered_4FGL_J1406.1-2508_daily_bin500.fits evtable="EVENTS" scfile=/scratch/kocevski/180658/ft2_4FGL_J1406.1-2508_daily_bin500.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/180658/Model_4FGL_J1406.1-2508_daily_bin500.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/180658/ft1_filtered_4FGL_J1406.1-2508_daily_bin500.fits.....................!
real 113.81
user 112.34
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.391       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    146.35       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    75.366       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .31363E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.102       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2538       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9362       1.0000         .10000E-03   10000.    
    16 'norm      '    7.3830       1.0000         .10000E-03   10000.    
    17 'Prefactor '    58.198       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.797       1.0000         .10000E-03   10000.    
    19 'norm      '    6.9529       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    33.771       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.5313       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.8123       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .70518       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=   6446.105     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2876 TOTAL
                     EDM=   .95E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.477       -.45042E-06** at limit **
   2  Prefactor     .10000E-03    13.053       -.17737E-06** at limit **
   3  Prefactor     .10000E-03    10.734        .12627E-06** at limit **
   4  Prefactor     21.384        17.351       -.15896E-06   -.20958E-04
   5  norm          .10000E-03    2.3355       -.44741E-07** at limit **
   6  Prefactor     146.35        82.945       -.58524E-07   -.18633E-04
   7  norm          .10000E-03    10.068       -.67531E-07** at limit **
   8  Prefactor     75.363        58.409       -.30174E-07   -.13136E-04
   9  norm          .10000E-03    4.4570        .32053E-08** at limit **
  10  Prefactor     .10000E-03    2.2975       -.16555E-06** at limit **
  11  Prefactor     .10000E-03    22.503        .12161E-06** at limit **
  12  Prefactor     25.097        52.254       -.16685E-06   -.12808E-04
  13  Prefactor     .10000E-03    26.550       -.32115E-06** at limit **
  14  Prefactor     4.2497        27.128        .37427E-06   -.13713E-04
  15  Prefactor     3.9323        64.205        .47395E-06   -.11327E-04
  16  norm          7.3829        5.9795        .20235E-07    .30610E-05
  17  Prefactor     58.198        53.343       -.20914E-07    .31066E-05
  18  Prefactor     22.798        32.079        .76752E-07    .55871E-05
  19  norm          6.9530        18.945       -.83187E-07   -.70682E-05
  20  Prefactor     .10000E-03    11.183        .51196E-06** at limit **
  21  Prefactor     .10000E-03    21.670        .14819E-06** at limit **
  22  Prefactor     33.837        128.89        .26796E-05    .43319E-04
  23  Prefactor     5.5320        8.8397        .29712E-05    .19705E-04
  24  Normalizat    1.8126        .30751        .13951E-05   -.30946E-04
  25  Prefactor     .70506        .11437       -.10958E-05    .12116E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.384
  norm       = 0.0001
  Prefactor  = 146.348
  norm       = 0.0001
  Prefactor  = 75.3628
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 25.0975
  Prefactor  = 0.0001
  Prefactor  = 4.24974
  Prefactor  = 3.93228
  norm       = 7.38291
  Prefactor  = 58.1979
  Prefactor  = 22.7976
  norm       = 6.95302
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.8368
  Prefactor  = 5.53196
  Normalizat = 1.81262
  Prefactor  = 0.705061
 **********
 **   18 **HESSE 
 **********

 FCN=   6446.105     FROM HESSE     STATUS=OK           423 CALLS     3299 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.384        17.494        .86602E-04   -1.4783    
   5  norm          .10000E-03    2.3426        .11979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     146.35        82.989        .16654E-03   -1.3283    
   7  norm          .10000E-03    10.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     75.363        58.432        .46251E-04   -1.3970    
   9  norm          .10000E-03    4.4646        .16553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.130        .23045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.097        52.248        .79953E-04   -1.4706    
  13  Prefactor     .10000E-03    26.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.2497        27.124        .19536E-03   -1.5296    
  15  Prefactor     3.9323        63.469        .20333E-03   -1.5311    
  16  norm          7.3829        5.9656        .14761E-03   -1.5164    
  17  Prefactor     58.198        53.295        .52588E-04   -1.4181    
  18  Prefactor     22.798        32.073        .83892E-04   -1.4753    
  19  norm          6.9530        18.831        .15215E-03   -1.5181    
  20  Prefactor     .10000E-03    11.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     33.837        128.95        .68955E-04   -1.4544    
  23  Prefactor     5.5320        8.8935        .85415E-03   -1.5238    
  24  Normalizat    1.8126        .36359        .33394E-03   -.69335    
  25  Prefactor     .70506        .13518        .19342E-03   -1.0333    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61443e-10
Minuit parameter uncertainties:
  1  1.96656e-05
  2  4.43759e-05
  3  3.34399e-05
  4  17.4984
  5  1.00745e-06
  6  83.055
  7  2.12805e-05
  8  58.4766
  9  1.54557e-06
  10  0.000515184
  11  6.64185e-05
  12  52.3438
  13  9.34629e-05
  14  21.4868
  15  31.6355
  16  5.96606
  17  53.3389
  18  32.0974
  19  18.8469
  20  2.85547e-05
  21  6.41286e-05
  22  130.034
  23  8.8956
  24  0.364135
  25  0.135242
Done.

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

Extracting fit parameters...

4FGL J1406.1-2508
   Spectrum: PowerLaw
309    Prefactor:  2.510e+01  5.234e+01  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.051e-01  1.352e-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.813e+00  3.641e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.33
Ra Dec: 211.544 -25.139
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/180658/likelihoodResults_368928001_369187201_4FGL_J1406.1-2508_daily_bin500.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): 0
logL (Free Index) = 6445.92018023
delta logL = 0.184629959838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6445.9092511
delta logL = 0.195559084094

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.327       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4423       1.0000          .0000       10.000    
     3 'Normalizat'    1.8209       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70331       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=   6445.909     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      310 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.356        60.522        .32800E-03   -.41801E-04
   2  Index         1.4424        .86442        .14254E-01    .11553E-04
   3  Normalizat    1.8212        .34298        .33326E-03   -.47145E-04
   4  Prefactor     .70317        .13257        .19361E-03    .11157E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.356
  Index      = 1.44238
  Normalizat = 1.82118
  Prefactor  = 0.703173
 **********
 **   18 **HESSE 
 **********

 FCN=   6445.909     FROM HESSE     STATUS=OK            25 CALLS      335 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.356        61.213        .13120E-04   -1.4485    
   2  Index         1.4424        .87449        .57017E-03   -.79167    
   3  Normalizat    1.8212        .34333        .13331E-04   -.69112    
   4  Prefactor     .70317        .13271        .77443E-05   -1.0340    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0366e-11
Minuit parameter uncertainties:
  1  61.3164
  2  0.883785
  3  0.343791
  4  0.132774
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/180658': 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): 0
logL (Free Index) = 6445.90925047
delta logL = 0.195559713629

Extracting fit parameters...

4FGL J1406.1-2508
   Spectrum: PowerLaw
309    Prefactor:  3.736e+01  6.132e+01  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  1.442e+00  8.838e-01  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.032e-01  1.328e-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.821e+00  3.438e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.33
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/180658/cmap_HighResolution_368928001_369187201_4FGL_J1406.1-2508_daily_bin500.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.32e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-09 00:54:40.360873', job_id='180658', GAL2='0.70', fit_tolerance='1e-08', EG2='1.82', EG='1.81', time_epoch_completed='1631174080.36', return_code2='0', ts='0.33', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='1.96e-01', ts2='0.72', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='500' AND source_name='4FGL J1406.1-2508' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 00:54:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 180658: <4FGL_J1406.1-2508_daily_bin500> in cluster <slac> Done

Job <4FGL_J1406.1-2508_daily_bin500> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 00:40:38 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 00:40:41 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:40:41 2021
Terminated at Thu Sep  9 00:54:41 2021
Results reported at Thu Sep  9 00:54:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1406.1-2508_daily_bin500 211.544 -25.1386 368928001 369187201 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 :                                   799.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             353.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            843 sec.

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

