/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 187 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_J1427.9-4206_daily_bin1445
RA = 216.987, Dec = -42.106
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='526827', job_status='RUN', time_executed='2021-09-09 19:39:19.536432', time_epoch_executed='1631241559.54' WHERE source_name='4FGL J1427.9-4206' and cadence='daily' and bin_id='1445'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/526827

Creating custom pfile directory:
/scratch/kocevski/526827/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/526827/ft1_4FGL_J1427.9-4206_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/526827/ft2_4FGL_J1427.9-4206_daily_bin1445.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/526827/ft1_4FGL_J1427.9-4206_daily_bin1445.fits outfile=/scratch/kocevski/526827/ft1_filteredMKT_4FGL_J1427.9-4206_daily_bin1445.fits ra=216.987 dec=-42.106 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.24
user 2.05
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/526827/ft2_4FGL_J1427.9-4206_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/526827/ft1_filteredMKT_4FGL_J1427.9-4206_daily_bin1445.fits evtable="EVENTS" outfile="/scratch/kocevski/526827/ft1_filtered_4FGL_J1427.9-4206_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.53
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/526827/ft1_filtered_4FGL_J1427.9-4206_daily_bin1445.fits" evtable="EVENTS" scfile=/scratch/kocevski/526827/ft2_4FGL_J1427.9-4206_daily_bin1445.fits sctable="SC_DATA" outfile=/scratch/kocevski/526827/ltcube_613872001_614131201_4FGL_J1427.9-4206_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/526827/ft2_4FGL_J1427.9-4206_daily_bin1445.fits
.....................!
real 12.23
user 11.89
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/526827/ft1_filtered_4FGL_J1427.9-4206_daily_bin1445.fits evtable="EVENTS" scfile=/scratch/kocevski/526827/ft2_4FGL_J1427.9-4206_daily_bin1445.fits sctable="SC_DATA" expcube=/scratch/kocevski/526827/ltcube_613872001_614131201_4FGL_J1427.9-4206_daily_bin1445.fits outfile=/scratch/kocevski/526827/expmap_613872001_614131201_4FGL_J1427.9-4206_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/526827/ltcube_613872001_614131201_4FGL_J1427.9-4206_daily_bin1445.fits
.....................!
real 190.69
user 185.08
sys 5.20

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/526827/ft1_filtered_4FGL_J1427.9-4206_daily_bin1445.fits scfile=/scratch/kocevski/526827/ft2_4FGL_J1427.9-4206_daily_bin1445.fits outfile=/scratch/kocevski/526827/cmap_613872001_614131201_4FGL_J1427.9-4206_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=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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/526827/ft1_filtered_4FGL_J1427.9-4206_daily_bin1445.fits scfile=/scratch/kocevski/526827/ft2_4FGL_J1427.9-4206_daily_bin1445.fits outfile=/scratch/kocevski/526827/cmap_HighResolution_613872001_614131201_4FGL_J1427.9-4206_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=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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/526827/ft1_filtered_4FGL_J1427.9-4206_daily_bin1445.fits evtable="EVENTS" scfile=/scratch/kocevski/526827/ft2_4FGL_J1427.9-4206_daily_bin1445.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/526827/Model_4FGL_J1427.9-4206_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 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/526827/ft1_filtered_4FGL_J1427.9-4206_daily_bin1445.fits.....................!
real 140.03
user 138.46
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/526827/ft1_filtered_4FGL_J1427.9-4206_daily_bin1445.fits', '/scratch/kocevski/526827/ft2_4FGL_J1427.9-4206_daily_bin1445.fits', expMap='/scratch/kocevski/526827/expmap_613872001_614131201_4FGL_J1427.9-4206_daily_bin1445.fits', expCube='/scratch/kocevski/526827/ltcube_613872001_614131201_4FGL_J1427.9-4206_daily_bin1445.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/526827/Model_4FGL_J1427.9-4206_daily_bin1445.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/526827/ft1_filtered_4FGL_J1427.9-4206_daily_bin1445.fits
Spacecraft file(s): /scratch/kocevski/526827/ft2_4FGL_J1427.9-4206_daily_bin1445.fits
Exposure map: /scratch/kocevski/526827/expmap_613872001_614131201_4FGL_J1427.9-4206_daily_bin1445.fits
Exposure cube: /scratch/kocevski/526827/ltcube_613872001_614131201_4FGL_J1427.9-4206_daily_bin1445.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/526827/Model_4FGL_J1427.9-4206_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) = 2981.59213314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    314.29       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    75.977       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    50.489       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16432E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.727       1.0000         .10000E-03   10000.    
     9 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.087       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    206.95       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .19223E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    16.098       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .17307E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    10000.       1.0000         .10000E-03   10000.    
    21 'norm      '    414.46       1.0000         .10000E-03   10000.    
    22 'norm      '    4154.8       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4583       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .68048       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.

 FCN=   2981.407     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2717 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     314.27        282.78       -.14504E-04   -.72015E-05
   2  Prefactor     .10000E-03    57.393        .76239E-04** at limit **
   3  norm          75.975        57.272        .14992E-05   -.61021E-04
   4  Prefactor     .10000E-03    34.987        .24869E-05** at limit **
   5  Prefactor     50.489        95.021        .21636E-05   -.28225E-04
   6  Prefactor     .10000E-03    323.54        .94558E-04** at limit **
   7  Prefactor     .10000E-03    83.835       -.59584E-04** at limit **
   8  Prefactor     14.730        33.401        .30203E-05   -.26459E-04
   9  norm          .10000E-03    6.9714        .54705E-06** at limit **
  10  Prefactor     15.033        51.891       -.16325E-04   -.23613E-04
  11  norm          .10000E-03    .79736E-01   -.90958E-07** at limit **
  12  Prefactor     206.93        183.91       -.10700E-04    .77233E-05
  13  Prefactor     .10002E-03    153.35        .87948E-05** at limit **
  14  Prefactor     .10000E-03    21.389        .97337E-07** at limit **
  15  norm          16.095        58.480       -.74131E-05    .65080E-04
  16  Prefactor     .10000E-03    50.190       -.45433E-04** at limit **
  17  Prefactor     .10000E-03    76.703       -.56652E-05** at limit **
  18  norm          .10004E-03    2.1583       -.41694E-05** at limit **
  19  Prefactor     .10013E-03    172.33        .59181E-04** at limit **
  20  norm         10000.0        631.46        .42202E-03** at limit **
  21  norm          414.67        379.58        .10161E-03    .96974E-04
  22  norm          4158.2        3293.4        .68696E-03    .16618E-04
  23  Normalizat    1.4579        .52356       -.19556E-04    .80992E-04
  24  Prefactor     .68061        .13848       -.44707E-05    .26203E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 314.266
  Prefactor  = 0.0001
  norm       = 75.9753
  Prefactor  = 0.0001
  Prefactor  = 50.4886
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.73
  norm       = 0.000100001
  Prefactor  = 15.033
  norm       = 0.0001
  Prefactor  = 206.934
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  norm       = 16.0946
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  norm       = 0.000100042
  Prefactor  = 0.000100125
  norm       = 10000
  norm       = 414.673
  norm       = 4158.17
  Normalizat = 1.45789
  Prefactor  = 0.680609
 **********
 **   18 **HESSE 
 **********

 FCN=   2981.407     FROM HESSE     STATUS=OK           381 CALLS     3098 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     314.27        282.96        .11463E-03   -1.2144    
   2  Prefactor     .10000E-03    57.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          75.975        57.434        .46067E-04   -1.3962    
   4  Prefactor     .10000E-03    35.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     50.489        95.187        .56440E-04   -1.4286    
   6  Prefactor     .10000E-03    323.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    83.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.730        33.569        .10437E-03   -1.4940    
   9  norm          .10000E-03    7.0191        .14041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.033        51.677        .10312E-03   -1.4932    
  11  norm          .10000E-03    .80382E-01    .15042E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     206.93        183.94        .14049E-03   -1.2821    
  13  Prefactor     .10002E-03    153.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          16.095        58.618        .99824E-04   -1.4905    
  16  Prefactor     .10000E-03    50.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    76.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10004E-03    24.449        .15275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10013E-03    171.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm         10000.0        630.84        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          414.67        374.78        .10034E-03   -1.1607    
  22  norm          4158.2        3298.8        .40584E-04   -.16917    
  23  Normalizat    1.4579        .59919        .45672E-03   -.78969    
  24  Prefactor     .68061        .15905        .17414E-03   -1.0429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50439e-09
Minuit parameter uncertainties:
  1  284.219
  2  0.000177249
  3  57.4762
  4  6.66186e-05
  5  95.4752
  6  1.609e-05
  7  2.33813e-05
  8  33.6117
  9  0.00015436
  10  51.832
  11  2.10544e-06
  12  184.452
  13  0.00345889
  14  4.91708e-05
  15  58.829
  16  0.000550358
  17  0.000696656
  18  0.00203351
  19  0.00930768
  20  0.00195284
  21  377.028
  22  3614.03
  23  0.602128
  24  0.15916
Done.

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

Extracting fit parameters...

4FGL J1427.9-4206
   Spectrum: LogParabola
454         norm:  1.000e-04  2.105e-06  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:  6.806e-01  1.592e-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:  1.458e+00  6.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 216.987 -42.106
Photon Flux Upper Limit: 1.79e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.14e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/526827/likelihoodResults_613872001_614131201_4FGL_J1427.9-4206_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): 0
logL (Free Index) = 2981.40686069
delta logL = -1.43888928505e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2981.40685676
delta logL = 2.4893133741e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0359       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4584       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68048       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=   2981.407     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      259 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .82252E-01    .15118E-03** at limit **
   2  alpha         1.9716        3.1945        .16834       -.15675E-05
   3  Normalizat    1.4579        .56265        .45673E-03    .47007E-04
   4  Prefactor     .68061        .15454        .17414E-03    .19590E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.97164
  Normalizat = 1.45789
  Prefactor  = 0.680609
 **********
 **   18 **HESSE 
 **********

 FCN=   2981.407     FROM HESSE     STATUS=OK            23 CALLS      282 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .81128E-01    .30237E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9716        3.0285        .67337E-02   -.21295    
   3  Normalizat    1.4579        .56299        .18269E-04   -.78969    
   4  Prefactor     .68061        .15463        .34829E-04   -1.0429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00356e-09
Minuit parameter uncertainties:
  1  3.40416e-06
  2  36.1841
  3  0.565423
  4  0.154728
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/526827': 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) = 2981.40685354
delta logL = 5.71632472202e-06

Extracting fit parameters...

4FGL J1427.9-4206
   Spectrum: LogParabola
454         norm:  1.000e-04  3.404e-06  1.000e-04  1.000e+04 ( 1.000e-10)
455        alpha:  1.972e+00  3.618e+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:  6.806e-01  1.547e-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:  1.458e+00  5.654e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 216.987 -42.106

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/526827/cmap_HighResolution_613872001_614131201_4FGL_J1427.9-4206_daily_bin1445.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.14e-05', job_status='DONE', photon_flux_upper_limit='1.79e-07', time_completed='2021-09-09 19:52:24.979055', job_id='526827', GAL2='0.68', fit_tolerance='1e-08', EG2='1.46', EG='1.46', time_epoch_completed='1631242344.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='5.72e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.10' WHERE bin_id='1445' AND source_name='4FGL J1427.9-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 19:52:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 526827: <4FGL_J1427.9-4206_daily_bin1445> in cluster <slac> Done

Job <4FGL_J1427.9-4206_daily_bin1445> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  9 19:36:02 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 19:36:03 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:36:03 2021
Terminated at Thu Sep  9 19:52:25 2021
Results reported at Thu Sep  9 19:52:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1427.9-4206_daily_bin1445 216.987 -42.106 613872001 614131201 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 :                                   777.00 sec.
    Max Memory :                                 1261 MB
    Average Memory :                             328.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            983 sec.

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

