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


Performing analysis on: 4FGL_J1407.6-4301_daily_bin1189
RA = 211.919, Dec = -43.0234
tmin = 547516801, tmax = 547776001
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='215270', job_status='RUN', time_executed='2021-09-09 02:43:01.270921', time_epoch_executed='1631180581.27' WHERE source_name='4FGL J1407.6-4301' and cadence='daily' and bin_id='1189'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/215270

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/215270/ft1_4FGL_J1407.6-4301_daily_bin1189.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/215270/ft2_4FGL_J1407.6-4301_daily_bin1189.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/215270/ft1_4FGL_J1407.6-4301_daily_bin1189.fits outfile=/scratch/kocevski/215270/ft1_filteredMKT_4FGL_J1407.6-4301_daily_bin1189.fits ra=211.919 dec=-43.0234 rad=12.0 tmin=547516801.0 tmax=547776001.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.55
user 3.32
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/215270/ft2_4FGL_J1407.6-4301_daily_bin1189.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/215270/ft2_4FGL_J1407.6-4301_daily_bin1189.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/215270/ft1_filteredMKT_4FGL_J1407.6-4301_daily_bin1189.fits evtable="EVENTS" outfile="/scratch/kocevski/215270/ft1_filtered_4FGL_J1407.6-4301_daily_bin1189.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/215270/ft1_filtered_4FGL_J1407.6-4301_daily_bin1189.fits" evtable="EVENTS" scfile=/scratch/kocevski/215270/ft2_4FGL_J1407.6-4301_daily_bin1189.fits sctable="SC_DATA" outfile=/scratch/kocevski/215270/ltcube_547516801_547776001_4FGL_J1407.6-4301_daily_bin1189.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/215270/ft2_4FGL_J1407.6-4301_daily_bin1189.fits
.....................!
real 11.62
user 11.30
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/215270/ft1_filtered_4FGL_J1407.6-4301_daily_bin1189.fits evtable="EVENTS" scfile=/scratch/kocevski/215270/ft2_4FGL_J1407.6-4301_daily_bin1189.fits sctable="SC_DATA" expcube=/scratch/kocevski/215270/ltcube_547516801_547776001_4FGL_J1407.6-4301_daily_bin1189.fits outfile=/scratch/kocevski/215270/expmap_547516801_547776001_4FGL_J1407.6-4301_daily_bin1189.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/215270/ltcube_547516801_547776001_4FGL_J1407.6-4301_daily_bin1189.fits
.....................!
real 189.63
user 185.21
sys 4.05

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.
Extended source HESS J1356-645 in ROI with RadialDisk spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Extended source RCW 86 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/RCW86.fits is the correct path to the extended template.
Extended source FHES J1501.0-6310 in ROI with RadialGaussian spatial model.
Extended source HESS J1507-622 in ROI with RadialDisk spatial model.
Extended source MSH 15-52 in ROI with RadialDisk spatial model.
Extended source HESS J1534-571 in ROI with RadialDisk spatial model.
Extended source MSH 15-56 PWN in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/MSH15-56_PWN.fits is the correct path to the extended template.
Extended source MSH 15-56 SNR in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/MSH15-56_SNRmask.fits is the correct path to the extended template.
Extended source FGES J1553.8-5325 in ROI with RadialDisk spatial model.
Added 293 point sources and 12 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 J1407.6-4301 @ 211.919 -43.0234

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/215270/ft1_filtered_4FGL_J1407.6-4301_daily_bin1189.fits scfile=/scratch/kocevski/215270/ft2_4FGL_J1407.6-4301_daily_bin1189.fits outfile=/scratch/kocevski/215270/cmap_547516801_547776001_4FGL_J1407.6-4301_daily_bin1189.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.919 yref=-43.0234 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/215270/ft1_filtered_4FGL_J1407.6-4301_daily_bin1189.fits scfile=/scratch/kocevski/215270/ft2_4FGL_J1407.6-4301_daily_bin1189.fits outfile=/scratch/kocevski/215270/cmap_HighResolution_547516801_547776001_4FGL_J1407.6-4301_daily_bin1189.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.919 yref=-43.0234 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/215270/ft1_filtered_4FGL_J1407.6-4301_daily_bin1189.fits evtable="EVENTS" scfile=/scratch/kocevski/215270/ft2_4FGL_J1407.6-4301_daily_bin1189.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/215270/Model_4FGL_J1407.6-4301_daily_bin1189.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 FGES J1409.1-6121
adding source FGES J1553.8-5325
adding source FHES J1501.0-6310
adding source GAL_V02
adding source HESS J1356-645
adding source HESS J1420-607
adding source HESS J1507-622
adding source HESS J1534-571
adding source MSH 15-52
adding source MSH 15-56 PWN
adding source MSH 15-56 SNR
adding source RCW 86
Working on...
/scratch/kocevski/215270/ft1_filtered_4FGL_J1407.6-4301_daily_bin1189.fits.......................!
real 90.16
user 88.71
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/215270/ft1_filtered_4FGL_J1407.6-4301_daily_bin1189.fits', '/scratch/kocevski/215270/ft2_4FGL_J1407.6-4301_daily_bin1189.fits', expMap='/scratch/kocevski/215270/expmap_547516801_547776001_4FGL_J1407.6-4301_daily_bin1189.fits', expCube='/scratch/kocevski/215270/ltcube_547516801_547776001_4FGL_J1407.6-4301_daily_bin1189.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/215270/Model_4FGL_J1407.6-4301_daily_bin1189.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1407.6-4301'

4FGL J1407.6-4301
   Spectrum: PowerLaw
442    Prefactor:  9.218e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
443        Index:  2.103e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
444        Scale:  2.249e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/215270/ft1_filtered_4FGL_J1407.6-4301_daily_bin1189.fits
Spacecraft file(s): /scratch/kocevski/215270/ft2_4FGL_J1407.6-4301_daily_bin1189.fits
Exposure map: /scratch/kocevski/215270/expmap_547516801_547776001_4FGL_J1407.6-4301_daily_bin1189.fits
Exposure cube: /scratch/kocevski/215270/ltcube_547516801_547776001_4FGL_J1407.6-4301_daily_bin1189.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/215270/Model_4FGL_J1407.6-4301_daily_bin1189.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) = 2128.17242293

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    63.526       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12371E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    310.92       1.0000         .10000E-03   10000.    
     5 'Prefactor '    44.627       1.0000         .10000E-03   10000.    
     6 'norm      '    51.080       1.0000         .10000E-03   10000.    
     7 'Prefactor '    40.585       1.0000         .10000E-03   10000.    
     8 'Prefactor '    117.70       1.0000         .10000E-03   10000.    
     9 'Prefactor '    847.44       1.0000         .10000E-03   10000.    
    10 'Prefactor '    168.60       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8991       1.0000         .10000E-03   10000.    
    12 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .72570       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    18.864       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15284E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    190.10       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .64842       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94891       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1077E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2128.171     FROM MIGRAD    STATUS=CONVERGED    382 CALLS     2342 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    65.087       -.13614E-05** at limit **
   2  norm          63.456        84.933        .13598E-06   -.24431E-04
   3  Prefactor     .10000E-03    86.392       -.94678E-05** at limit **
   4  Prefactor     311.33        865.15       -.30729E-05   -.16393E-05
   5  Prefactor     44.670        93.034       -.16600E-05    .93388E-06
   6  norm          51.092        61.867       -.46518E-06   -.63248E-05
   7  Prefactor     40.655        124.87       -.33519E-05    .12012E-05
   8  Prefactor     117.76        115.60       -.19294E-05    .12165E-04
   9  Prefactor     847.61        1195.9        .12254E-05   -.55032E-06
  10  Prefactor     168.67        223.49       -.88492E-06   -.31737E-05
  11  Prefactor     2.8000        106.42       -.67875E-05   -.33075E-04
  12  norm          .10000E-03    3.5892       -.45100E-06** at limit **
  13  Prefactor     .10000E-03    30.235       -.36907E-06** at limit **
  14  norm          .72600        .53438       -.18647E-08   -.88611E-03
  15  Prefactor     .10000E-03    203.82        .11220E-06** at limit **
  16  norm          18.879        49.755        .54901E-06   -.36020E-04
  17  Prefactor     .10000E-03    186.95       -.75326E-06** at limit **
  18  Prefactor     190.17        146.92       -.58016E-06   -.16311E-04
  19  Normalizat    .64752        .79714        .28522E-04    .83473E-05
  20  Prefactor     .94899        .23861       -.55508E-05    .14404E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 63.4561
  Prefactor  = 0.0001
  Prefactor  = 311.329
  Prefactor  = 44.6697
  norm       = 51.0916
  Prefactor  = 40.6545
  Prefactor  = 117.758
  Prefactor  = 847.607
  Prefactor  = 168.673
  Prefactor  = 2.79997
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.726001
  Prefactor  = 0.0001
  norm       = 18.8788
  Prefactor  = 0.0001
  Prefactor  = 190.168
  Normalizat = 0.64752
  Prefactor  = 0.948995
 **********
 **   18 **HESSE 
 **********

 FCN=   2128.171     FROM HESSE     STATUS=OK           291 CALLS     2633 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    65.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          63.456        84.947        .25174E-03   -1.4113    
   3  Prefactor     .10000E-03    86.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     311.33        870.26        .11523E-03   -1.2160    
   5  Prefactor     44.670        93.075        .60015E-04   -1.4370    
   6  norm          51.092        61.865        .28057E-03   -1.4277    
   7  Prefactor     40.655        124.79        .62921E-04   -1.4432    
   8  Prefactor     117.76        115.45        .18545E-03   -1.3533    
   9  Prefactor     847.61        1196.8        .71813E-04   -.97997    
  10  Prefactor     168.67        223.77        .15534E-03   -1.3103    
  11  Prefactor     2.8000        105.29        .23865E-03   -1.5373    
  12  norm          .10000E-03    3.6118        .85390E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .72600        .52943        .26659E-04   -1.5538    
  15  Prefactor     .10000E-03    203.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          18.879        50.299        .92216E-04   -1.4839    
  17  Prefactor     .10000E-03    187.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     190.17        147.64        .14646E-03   -1.2941    
  19  Normalizat    .64752        .80470        .66647E-03   -1.0600    
  20  Prefactor     .94899        .24728        .16759E-03   -.94450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85902e-10
Minuit parameter uncertainties:
  1  3.81572e-05
  2  85.1096
  3  0.000356856
  4  911.539
  5  93.3802
  6  61.9429
  7  125.603
  8  115.673
  9  1237.04
  10  224.908
  11  34.4053
  12  3.58978e-06
  13  1.5573e-05
  14  0.529435
  15  4.08603e-05
  16  50.4121
  17  0.000173194
  18  147.931
  19  0.820022
  20  0.247572
Done.

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

Extracting fit parameters...

4FGL J1407.6-4301
   Spectrum: PowerLaw
442    Prefactor:  1.687e+02  2.249e+02  1.000e-04  1.000e+04 ( 1.000e-14)
443        Index:  2.103e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
444        Scale:  2.249e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1048    Prefactor:  9.490e-01  2.476e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1049        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1050        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1035   Normalization:  6.475e-01  8.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.00
Ra Dec: 211.919 -43.023
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 1.07e-07 +/- 1.42e-07
Energy Flux (Fixed Index): 5.81e-05 +/- 7.75e-05

TS (Fixed Index): 1.00
Ra Dec: 211.919 -43.023
Photon Flux Upper Limit: 4.98e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.77e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/215270/likelihoodResults_547516801_547776001_4FGL_J1407.6-4301_daily_bin1189.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) = 2128.00805361
delta logL = 0.163306031635

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2128.00489298
delta logL = 0.166466656984

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    102.63       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5828       1.0000          .0000       10.000    
     3 'Normalizat'    .62361       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94693       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1077E+06   .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=   2128.005     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      297 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     102.48        194.41        .19844E-03   -.37238E-06
   2  Index         2.5829        .88638        .42904E-02   -.32190E-04
   3  Normalizat    .62228        .71566        .67816E-03    .39748E-04
   4  Prefactor     .94730        .22033        .16755E-03   -.11649E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 102.485
  Index      = 2.58286
  Normalizat = 0.622283
  Prefactor  = 0.947299
 **********
 **   18 **HESSE 
 **********

 FCN=   2128.005     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     102.48        179.34        .79377E-05   -1.3680    
   2  Index         2.5829        .81733        .17161E-03   -.50457    
   3  Normalizat    .62228        .71515        .27126E-04   -1.0705    
   4  Prefactor     .94730        .22024        .33511E-04   -.94507    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75301e-10
Minuit parameter uncertainties:
  1  180.304
  2  0.82216
  3  0.726215
  4  0.220449
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/215270': 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) = 2128.00489043
delta logL = 0.166469208629

Extracting fit parameters...

4FGL J1407.6-4301
   Spectrum: PowerLaw
442    Prefactor:  1.025e+02  1.803e+02  1.000e-04  1.000e+04 ( 1.000e-14)
443        Index:  2.583e+00  8.222e-01  0.000e+00  1.000e+01 (-1.000e+00)
444        Scale:  2.249e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1048    Prefactor:  9.473e-01  2.204e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1049        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1050        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1035   Normalization:  6.223e-01  7.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.33
Ra Dec: 211.919 -43.023
Photon Index (Free Index): 2.58 +/- 0.82
Photon Flux (Free Index): 2.01e-07 +/- 2.66e-07
Energy Flux (Free Index): 5.36e-05 +/- 6.08e-05

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/215270/cmap_HighResolution_547516801_547776001_4FGL_J1407.6-4301_daily_bin1189.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.77e-02', comment='SUCCESS', photon_flux='1.07e-07', energy_flux2='5.36e-05', photon_flux_error='1.42e-07', dlogl='1.66e-01', energy_flux='5.81e-05', photon_flux2='2.01e-07', job_status='DONE', time_completed='2021-09-09 02:52:41.223650', photon_index_error2='0.82', photon_index2='2.58', ts='1.00', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='4.98e-07', energy_flux_error2='6.08e-05', EG='0.65', time_epoch_completed='1631181161.22', return_code='0', job_id='215270', GAL2='0.95', EG2='0.62', return_code2='0', energy_flux_error='7.75e-05', photon_flux_error2='2.66e-07', ts2='1.33', photon_index='2.10' WHERE bin_id='1189' AND source_name='4FGL J1407.6-4301' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 02:52:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 215270: <4FGL_J1407.6-4301_daily_bin1189> in cluster <slac> Done

Job <4FGL_J1407.6-4301_daily_bin1189> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 02:40:19 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 02:40: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 02:40:20 2021
Terminated at Thu Sep  9 02:52:41 2021
Results reported at Thu Sep  9 02:52:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1407.6-4301_daily_bin1189 211.919 -43.0234 547516801 547776001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1407.6-4301 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   578.00 sec.
    Max Memory :                                 1260 MB
    Average Memory :                             290.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            742 sec.

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

