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


Performing analysis on: 4FGL_J1503.6-6427_daily_bin1445
RA = 225.91, Dec = -64.4517
tmin = 613872001, tmax = 614131201
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='990720', job_status='RUN', time_executed='2021-09-10 20:53:35.675825', time_epoch_executed='1631332415.68' WHERE source_name='4FGL J1503.6-6427' and cadence='daily' and bin_id='1445'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/990720

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/990720/ft1_4FGL_J1503.6-6427_daily_bin1445.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/990720/ft2_4FGL_J1503.6-6427_daily_bin1445.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/990720/ft1_4FGL_J1503.6-6427_daily_bin1445.fits outfile=/scratch/kocevski/990720/ft1_filteredMKT_4FGL_J1503.6-6427_daily_bin1445.fits ra=225.91 dec=-64.4517 rad=12.0 tmin=613872001.0 tmax=614131201.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 2.30
user 2.04
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/990720/ft2_4FGL_J1503.6-6427_daily_bin1445.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/990720/ft2_4FGL_J1503.6-6427_daily_bin1445.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/990720/ft1_filteredMKT_4FGL_J1503.6-6427_daily_bin1445.fits evtable="EVENTS" outfile="/scratch/kocevski/990720/ft1_filtered_4FGL_J1503.6-6427_daily_bin1445.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.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/990720/ft1_filtered_4FGL_J1503.6-6427_daily_bin1445.fits" evtable="EVENTS" scfile=/scratch/kocevski/990720/ft2_4FGL_J1503.6-6427_daily_bin1445.fits sctable="SC_DATA" outfile=/scratch/kocevski/990720/ltcube_613872001_614131201_4FGL_J1503.6-6427_daily_bin1445.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/990720/ft2_4FGL_J1503.6-6427_daily_bin1445.fits
.....................!
real 13.05
user 12.63
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/990720/ft1_filtered_4FGL_J1503.6-6427_daily_bin1445.fits evtable="EVENTS" scfile=/scratch/kocevski/990720/ft2_4FGL_J1503.6-6427_daily_bin1445.fits sctable="SC_DATA" expcube=/scratch/kocevski/990720/ltcube_613872001_614131201_4FGL_J1503.6-6427_daily_bin1445.fits outfile=/scratch/kocevski/990720/expmap_613872001_614131201_4FGL_J1503.6-6427_daily_bin1445.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/990720/ltcube_613872001_614131201_4FGL_J1503.6-6427_daily_bin1445.fits
.....................!
real 192.34
user 187.20
sys 4.75

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 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 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 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.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source HESS J1614-518 in ROI with RadialDisk spatial model.
Extended source HESS J1616-508 in ROI with RadialDisk spatial model.
Extended source FHES J1642.1-5428 in ROI with RadialDisk spatial model.
Extended source FGES J1213.3-6240 in ROI with RadialDisk spatial model.
Extended source FGES J1631.6-4756 in ROI with RadialDisk spatial model.
Extended source FGES J1633.0-4746 in ROI with RadialDisk spatial model.
Extended source G337.0-0.1 in ROI with RadialDisk spatial model.
Added 380 point sources and 19 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 J1503.6-6427 @ 225.91 -64.4517

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/990720/ft1_filtered_4FGL_J1503.6-6427_daily_bin1445.fits scfile=/scratch/kocevski/990720/ft2_4FGL_J1503.6-6427_daily_bin1445.fits outfile=/scratch/kocevski/990720/cmap_613872001_614131201_4FGL_J1503.6-6427_daily_bin1445.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=225.91 yref=-64.4517 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/990720/ft1_filtered_4FGL_J1503.6-6427_daily_bin1445.fits scfile=/scratch/kocevski/990720/ft2_4FGL_J1503.6-6427_daily_bin1445.fits outfile=/scratch/kocevski/990720/cmap_HighResolution_613872001_614131201_4FGL_J1503.6-6427_daily_bin1445.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=225.91 yref=-64.4517 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/990720/ft1_filtered_4FGL_J1503.6-6427_daily_bin1445.fits evtable="EVENTS" scfile=/scratch/kocevski/990720/ft2_4FGL_J1503.6-6427_daily_bin1445.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/990720/Model_4FGL_J1503.6-6427_daily_bin1445.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 EG_v02
adding source FGES J1213.3-6240
adding source FGES J1409.1-6121
adding source FGES J1553.8-5325
adding source FGES J1631.6-4756
adding source FGES J1633.0-4746
adding source FHES J1501.0-6310
adding source FHES J1642.1-5428
adding source G337.0-0.1
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1356-645
adding source HESS J1420-607
adding source HESS J1507-622
adding source HESS J1534-571
adding source HESS J1614-518
adding source HESS J1616-508
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/990720/ft1_filtered_4FGL_J1503.6-6427_daily_bin1445.fits......................!
real 146.36
user 144.55
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/990720/ft1_filtered_4FGL_J1503.6-6427_daily_bin1445.fits', '/scratch/kocevski/990720/ft2_4FGL_J1503.6-6427_daily_bin1445.fits', expMap='/scratch/kocevski/990720/expmap_613872001_614131201_4FGL_J1503.6-6427_daily_bin1445.fits', expCube='/scratch/kocevski/990720/ltcube_613872001_614131201_4FGL_J1503.6-6427_daily_bin1445.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/990720/Model_4FGL_J1503.6-6427_daily_bin1445.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1503.6-6427'

4FGL J1503.6-6427
   Spectrum: PowerLaw
675    Prefactor:  3.829e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
676        Index:  2.489e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
677        Scale:  1.371e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/990720/ft1_filtered_4FGL_J1503.6-6427_daily_bin1445.fits
Spacecraft file(s): /scratch/kocevski/990720/ft2_4FGL_J1503.6-6427_daily_bin1445.fits
Exposure map: /scratch/kocevski/990720/expmap_613872001_614131201_4FGL_J1503.6-6427_daily_bin1445.fits
Exposure cube: /scratch/kocevski/990720/ltcube_613872001_614131201_4FGL_J1503.6-6427_daily_bin1445.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/990720/Model_4FGL_J1503.6-6427_daily_bin1445.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) = 2701.59246625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    15.119       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    10000.       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     8 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    11 'norm      '    15.694       1.0000         .10000E-03   10000.    
    12 'norm      '    .16243E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    16 'Prefactor '    .56071       1.0000          .0000       10.000    
    17 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1425E+06   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2700.289     FROM MIGRAD    STATUS=CONVERGED    359 CALLS     1871 TOTAL
                     EDM=   .80E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.366        .12769E-05** at limit **
   2  norm          15.121        10.430        .13814E-06   -.99251E-04
   3  Prefactor     .10000E-03    20.058       -.63380E-05** at limit **
   4  norm          .10000E-03    4.2112        .68303E-06** at limit **
   5  norm          10000.        561.37        .62432E-03** at limit **
   6  Prefactor     .10000E-03    57.607       -.14347E-03** at limit **
   7  norm          10000.        6757.7        .23707E-03** at limit **
   8  norm          .10000E-03    10.635       -.51430E-06** at limit **
   9  Prefactor    10000.0        8726.7        .10851E-02** at limit **
  10  Prefactor     10000.        272.23       -.94281E-04** at limit **
  11  norm          15.688        28.704        .29279E-05   -.85595E-05
  12  norm          .10000E-03    419.50       -.32931E-03** at limit **
  13  norm          .10000E-03    43.740        .56074E-04** at limit **
  14  Prefactor     .10000E-03    24.380        .33417E-05** at limit **
  15  Normalizat    .10000E-01    .99230E-01    .50429E-05** at limit **
  16  Prefactor     .56072        .57053E-01   -.23990E-06   -.86686E-04
  17  Prefactor    10000.0        104.96       -.19949E-03** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 15.1209
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10000
  Prefactor  = 0.0001
  norm       = 10000
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 15.6875
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.560715
  Prefactor  = 10000
 **********
 **   18 **HESSE 
 **********

 FCN=   2700.289     FROM HESSE     STATUS=OK           211 CALLS     2082 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          15.121        10.454        .10301E-03   -1.4930    
   3  Prefactor     .10000E-03    20.767        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.2131        .10415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10000.        561.39        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    57.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10000.        6757.7        .21386E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    10.636        .16554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        8726.8        .19691E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10000.        272.26        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          15.688        28.703        .10110E-03   -1.4916    
  12  norm          .10000E-03    419.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    43.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    .10000E-01    .10246        .99886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .56072        .56506E-01    .11998E-03   -1.0927    
  17  Prefactor    10000.0        104.99        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62135e-11
Minuit parameter uncertainties:
  1  1.13151e-07
  2  10.4556
  3  0.000109118
  4  3.56743e-07
  5  4.96976e-06
  6  1.72133e-06
  7  4.94697e-06
  8  2.25619e-07
  9  0.0009184
  10  1.41371e-05
  11  28.7277
  12  0.000104372
  13  9.62739e-06
  14  2.44418e-06
  15  8.46424e-08
  16  0.0565119
  17  9.63604e-05
Done.

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

Extracting fit parameters...

4FGL J1503.6-6427
   Spectrum: PowerLaw
675    Prefactor:  1.000e-04  1.721e-06  1.000e-04  1.000e+04 ( 1.000e-13)
676        Index:  2.489e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
677        Scale:  1.371e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1386    Prefactor:  5.607e-01  5.651e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1387        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1388        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1355   Normalization:  1.000e-02  8.464e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 225.910 -64.452
Photon Flux Upper Limit: 1.52e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.18e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/990720/likelihoodResults_613872001_614131201_4FGL_J1503.6-6427_daily_bin1445.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) = 2700.28935172
delta logL = -8.38557793941e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2700.28926849
delta logL = -6.2070785134e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8561       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56072       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1425E+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=   2700.289     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      290 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10657E-03    33.464        .18142E-01** at limit **
   2  Index         2.7356        8.6242        .50000        .87344E-05
   3  Normalizat    .10000E-01    .16925E-03    .99886E-02** at limit **
   4  Prefactor     .56072        .22067E-02    .11998E-03   -.34727E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106569
  Index      = 2.73563
  Normalizat = 0.01
  Prefactor  = 0.560716
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10657E-03    184.91        .32379E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7356        8.2783        .50000       -.46999    
   3  Normalizat    .10000E-01    .94714E-03    .19977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .56072        .52199E-02    .47993E-05   -1.0927    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.53496e-09
Minuit parameter uncertainties:
  1  0.0699211
  2  441.457
  3  1.54271e-08
  4  0.00521991
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/990720': 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) = 2700.28926831
delta logL = -4.42772943643e-07

Extracting fit parameters...

4FGL J1503.6-6427
   Spectrum: PowerLaw
675    Prefactor:  1.066e-04  6.992e-02  1.000e-04  1.000e+04 ( 1.000e-13)
676        Index:  2.736e+00  4.415e+02  0.000e+00  1.000e+01 (-1.000e+00)
677        Scale:  1.371e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1386    Prefactor:  5.607e-01  5.220e-03  0.000e+00  1.000e+01 ( 1.000e+00)
1387        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1388        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1355   Normalization:  1.000e-02  1.543e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 225.910 -64.452

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/990720/cmap_HighResolution_613872001_614131201_4FGL_J1503.6-6427_daily_bin1445.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-01', job_status='DONE', photon_flux_upper_limit='1.52e-06', time_completed='2021-09-10 21:06:17.576125', job_id='990720', GAL2='0.56', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631333177.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='-4.43e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1445' AND source_name='4FGL J1503.6-6427' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:06:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 990720: <4FGL_J1503.6-6427_daily_bin1445> in cluster <slac> Done

Job <4FGL_J1503.6-6427_daily_bin1445> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 20:51:00 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 20:51:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 20:51:02 2021
Terminated at Fri Sep 10 21:06:18 2021
Results reported at Fri Sep 10 21:06:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1503.6-6427_daily_bin1445 225.91 -64.4517 613872001 614131201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1503.6-6427 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   756.06 sec.
    Max Memory :                                 1100 MB
    Average Memory :                             323.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            918 sec.

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

