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


Performing analysis on: 4FGL_J1427.9-4206_daily_bin1321
RA = 216.987, Dec = -42.106
tmin = 581731201, tmax = 581990401
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='525391', job_status='RUN', time_executed='2021-09-09 19:35:11.841143', time_epoch_executed='1631241311.84' WHERE source_name='4FGL J1427.9-4206' and cadence='daily' and bin_id='1321'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/525391

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/525391/ft1_4FGL_J1427.9-4206_daily_bin1321.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/525391/ft2_4FGL_J1427.9-4206_daily_bin1321.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/525391/ft1_4FGL_J1427.9-4206_daily_bin1321.fits outfile=/scratch/kocevski/525391/ft1_filteredMKT_4FGL_J1427.9-4206_daily_bin1321.fits ra=216.987 dec=-42.106 rad=12.0 tmin=581731201.0 tmax=581990401.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.59
user 2.37
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/525391/ft2_4FGL_J1427.9-4206_daily_bin1321.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/525391/ft2_4FGL_J1427.9-4206_daily_bin1321.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/525391/ft1_filteredMKT_4FGL_J1427.9-4206_daily_bin1321.fits evtable="EVENTS" outfile="/scratch/kocevski/525391/ft1_filtered_4FGL_J1427.9-4206_daily_bin1321.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/525391/ft1_filtered_4FGL_J1427.9-4206_daily_bin1321.fits" evtable="EVENTS" scfile=/scratch/kocevski/525391/ft2_4FGL_J1427.9-4206_daily_bin1321.fits sctable="SC_DATA" outfile=/scratch/kocevski/525391/ltcube_581731201_581990401_4FGL_J1427.9-4206_daily_bin1321.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/525391/ft2_4FGL_J1427.9-4206_daily_bin1321.fits
.....................!
real 12.40
user 12.04
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/525391/ft1_filtered_4FGL_J1427.9-4206_daily_bin1321.fits evtable="EVENTS" scfile=/scratch/kocevski/525391/ft2_4FGL_J1427.9-4206_daily_bin1321.fits sctable="SC_DATA" expcube=/scratch/kocevski/525391/ltcube_581731201_581990401_4FGL_J1427.9-4206_daily_bin1321.fits outfile=/scratch/kocevski/525391/expmap_581731201_581990401_4FGL_J1427.9-4206_daily_bin1321.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/525391/ltcube_581731201_581990401_4FGL_J1427.9-4206_daily_bin1321.fits
.....................!
real 191.34
user 185.27
sys 5.69

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 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.
Extended source HESS J1614-518 in ROI with RadialDisk spatial model.
Extended source HESS J1616-508 in ROI with RadialDisk spatial model.
Added 319 point sources and 13 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 J1427.9-4206 @ 216.987 -42.106

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/525391/ft1_filtered_4FGL_J1427.9-4206_daily_bin1321.fits scfile=/scratch/kocevski/525391/ft2_4FGL_J1427.9-4206_daily_bin1321.fits outfile=/scratch/kocevski/525391/cmap_581731201_581990401_4FGL_J1427.9-4206_daily_bin1321.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=216.987 yref=-42.106 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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/525391/ft1_filtered_4FGL_J1427.9-4206_daily_bin1321.fits scfile=/scratch/kocevski/525391/ft2_4FGL_J1427.9-4206_daily_bin1321.fits outfile=/scratch/kocevski/525391/cmap_HighResolution_581731201_581990401_4FGL_J1427.9-4206_daily_bin1321.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=216.987 yref=-42.106 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/525391/ft1_filtered_4FGL_J1427.9-4206_daily_bin1321.fits evtable="EVENTS" scfile=/scratch/kocevski/525391/ft2_4FGL_J1427.9-4206_daily_bin1321.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/525391/Model_4FGL_J1427.9-4206_daily_bin1321.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 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/525391/ft1_filtered_4FGL_J1427.9-4206_daily_bin1321.fits......................!
real 115.20
user 113.70
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/525391/ft1_filtered_4FGL_J1427.9-4206_daily_bin1321.fits', '/scratch/kocevski/525391/ft2_4FGL_J1427.9-4206_daily_bin1321.fits', expMap='/scratch/kocevski/525391/expmap_581731201_581990401_4FGL_J1427.9-4206_daily_bin1321.fits', expCube='/scratch/kocevski/525391/ltcube_581731201_581990401_4FGL_J1427.9-4206_daily_bin1321.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/525391/Model_4FGL_J1427.9-4206_daily_bin1321.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1427.9-4206'

4FGL J1427.9-4206
   Spectrum: LogParabola
454         norm:  1.301e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-10)
455        alpha:  2.096e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
456         beta:  8.858e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
457           Eb:  6.458e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/525391/ft1_filtered_4FGL_J1427.9-4206_daily_bin1321.fits
Spacecraft file(s): /scratch/kocevski/525391/ft2_4FGL_J1427.9-4206_daily_bin1321.fits
Exposure map: /scratch/kocevski/525391/expmap_581731201_581990401_4FGL_J1427.9-4206_daily_bin1321.fits
Exposure cube: /scratch/kocevski/525391/ltcube_581731201_581990401_4FGL_J1427.9-4206_daily_bin1321.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/525391/Model_4FGL_J1427.9-4206_daily_bin1321.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) = 2328.76751725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51074E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    59.325       1.0000         .10000E-03   10000.    
     4 'Prefactor '    111.15       1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.804       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11881E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .22297E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    63.103       1.0000         .10000E-03   10000.    
     9 'norm      '    7.5798       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.1735       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10424E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    10000.       1.0000         .10000E-03   10000.    
    21 'norm      '    .13049E-03   1.0000         .10000E-03   10000.    
    22 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .66950E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    .79970       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1180E+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=   2327.649     FROM MIGRAD    STATUS=CONVERGED    915 CALLS     3681 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6250.7        .21147E-02** at limit **
   2  Prefactor     .10000E-03    121.09        .18142E-02** at limit **
   3  norm          59.343        55.845        .26045E-03    .17731E-04
   4  Prefactor     111.20        107.57        .19077E-03    .26132E-04
   5  Prefactor     31.830        95.886        .71050E-04    .76004E-05
   6  Prefactor     .10002E-03    1721.8        .18142E-02** at limit **
   7  Prefactor     .10000E-03    6406.0        .40258E-03** at limit **
   8  Prefactor     63.144        63.418        .50516E-04    .30787E-04
   9  norm          7.5827        16.213        .14566E-03    .26575E-04
  10  Prefactor     .10000E-03    71.566        .18142E-02** at limit **
  11  norm          1.1738        .59716        .25578E-04    .25157E-03
  12  Prefactor     .10000E-03    258.18        .18142E-02** at limit **
  13  Prefactor     .10000E-03    51.348        .18142E-02** at limit **
  14  Prefactor     .10000E-03    248.12        .18142E-02** at limit **
  15  norm          .10000E-03    26.251        .18142E-02** at limit **
  16  Prefactor     .10000E-03    96.194        .18142E-02** at limit **
  17  Prefactor     .10000E-03    153.48        .18142E-02** at limit **
  18  norm          .10000E-03    2.6357        .76462E-03** at limit **
  19  Prefactor     .10000E-03    76.866        .18142E-02** at limit **
  20  norm         10000.0        472.94        .18142E-02** at limit **
  21  norm          .10000E-03    732.34        .18142E-02** at limit **
  22  norm         10000.0        357.74        .21371E-02** at limit **
  23  Normalizat    .66061E-01    2.1713        .14205E-01    .33751E-04
  24  Prefactor     .79988        .17913        .14662E-03    .23294E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 59.3433
  Prefactor  = 111.196
  Prefactor  = 31.8296
  Prefactor  = 0.000100018
  Prefactor  = 0.000100005
  Prefactor  = 63.1438
  norm       = 7.58275
  Prefactor  = 0.0001
  norm       = 1.17378
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10000
  norm       = 0.000100002
  norm       = 10000
  Normalizat = 0.0660608
  Prefactor  = 0.799876
 **********
 **   18 **HESSE 
 **********

 FCN=   2327.649     FROM HESSE     STATUS=OK           375 CALLS     4056 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6251.0        .42294E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    121.09        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          59.343        55.663        .52089E-04   -1.4166    
   4  Prefactor     111.20        106.96        .76307E-05   -1.3595    
   5  Prefactor     31.830        95.721        .28420E-05   -1.4579    
   6  Prefactor     .10002E-03    1721.8        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6406.0        .80515E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     63.144        62.595        .10103E-04   -1.4117    
   9  norm          7.5827        16.149        .58265E-05   -1.5157    
  10  Prefactor     .10000E-03    71.567        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.1738        .59696        .10231E-05   -1.5491    
  12  Prefactor     .10000E-03    258.18        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    51.348        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    248.15        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    26.251        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    96.194        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    153.48        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.6357        .15292E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    76.866        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm         10000.0        472.94        .36285E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    732.34        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm         10000.0        357.74        .42741E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .66061E-01    1.6546        .56821E-03   -1.4208    
  24  Prefactor     .79988        .15767        .29325E-04   -.99733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94836e-10
Minuit parameter uncertainties:
  1  0.0011064
  2  0.000151649
  3  55.7116
  4  107.15
  5  96.1882
  6  0.0113643
  7  0.00775902
  8  62.6604
  9  16.1586
  10  0.000112183
  11  0.596966
  12  0.000619099
  13  1.59108e-06
  14  0.000546878
  15  2.24489e-06
  16  0.000141387
  17  0.000276239
  18  6.10878e-07
  19  0.000109293
  20  0.00016418
  21  0.00228567
  22  0.000117748
  23  0.62933
  24  0.157761
Done.

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

Extracting fit parameters...

4FGL J1427.9-4206
   Spectrum: LogParabola
454         norm:  1.174e+00  5.970e-01  1.000e-04  1.000e+04 ( 1.000e-10)
455        alpha:  2.096e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
456         beta:  8.858e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
457           Eb:  6.458e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1147    Prefactor:  7.999e-01  1.578e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1148        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1149        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1134   Normalization:  6.606e-02  6.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.20
Ra Dec: 216.987 -42.106
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 4.62e-07 +/- 2.35e-07
Energy Flux (Fixed Index): 2.10e-04 +/- 1.07e-04

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) = 2327.47307784
delta logL = 0.175914757033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2327.46789304
delta logL = 0.181099562168

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1463       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3883       1.0000          .0000       5.0000    
     3 'Normalizat'    .24011E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80410       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1180E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2327.468     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      253 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1462        7.7802        .54298E-02   -.24948E-03
   2  alpha         2.3887        3.4911        .19748        .17224E-05
   3  Normalizat    .22313E-01    9.9354        .32327        .26883E-04
   4  Prefactor     .80427        .74460        .33045E-01   -.17295E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.14617
  alpha      = 2.38872
  Normalizat = 0.022313
  Prefactor  = 0.804271
 **********
 **   18 **HESSE 
 **********

 FCN=   2327.468     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .87E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1462        .58317        .24071E-04   -1.5494    
   2  alpha         2.3887        .50096        .84118E-02   -.44526E-01
   3  Normalizat    .22313E-01    9.4960        .17488E-01   -1.5006    
   4  Prefactor     .80427        .24216        .14603E-03   -.99571    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.70907e-08
Minuit parameter uncertainties:
  1  0.583176
  2  0.504383
  3  0.902952
  4  0.242478
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/525391': 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) = 2327.46788561
delta logL = 0.18110698426

Extracting fit parameters...

4FGL J1427.9-4206
   Spectrum: LogParabola
454         norm:  1.146e+00  5.832e-01  1.000e-04  1.000e+04 ( 1.000e-10)
455        alpha:  2.389e+00  5.044e-01  0.000e+00  5.000e+00 ( 1.000e+00)
456         beta:  8.858e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
457           Eb:  6.458e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1147    Prefactor:  8.043e-01  2.425e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1148        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1149        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1134   Normalization:  2.231e-02  9.030e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.65
Ra Dec: 216.987 -42.106
Photon Index (Free Index): 2.39 +/- 0.50
Photon Flux (Free Index): 6.08e-07 +/- 3.87e-07
Energy Flux (Free Index): 1.94e-04 +/- 9.61e-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/525391/cmap_HighResolution_581731201_581990401_4FGL_J1427.9-4206_daily_bin1321.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.62e-07', energy_flux2='1.94e-04', photon_flux_error='2.35e-07', dlogl='1.81e-01', energy_flux='2.10e-04', photon_flux2='6.08e-07', job_status='DONE', time_completed='2021-09-09 19:46:54.836132', photon_index_error2='0.50', photon_index2='2.39', ts='9.20', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='9.61e-05', EG='0.07', time_epoch_completed='1631242014.84', return_code='0', job_id='525391', GAL2='0.80', EG2='0.02', return_code2='0', energy_flux_error='1.07e-04', photon_flux_error2='3.87e-07', ts2='9.65', photon_index='2.10' WHERE bin_id='1321' AND source_name='4FGL J1427.9-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 19:46:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 525391: <4FGL_J1427.9-4206_daily_bin1321> in cluster <slac> Done

Job <4FGL_J1427.9-4206_daily_bin1321> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  9 19:31:13 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 19:31:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 19:31:15 2021
Terminated at Thu Sep  9 19:46:55 2021
Results reported at Thu Sep  9 19:46:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1427.9-4206_daily_bin1321 216.987 -42.106 581731201 581990401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1427.9-4206 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   695.51 sec.
    Max Memory :                                 1260 MB
    Average Memory :                             302.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            942 sec.

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

