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


Performing analysis on: 4FGL_J1427.6-3305_daily_bin1305
RA = 216.913, Dec = -33.094
tmin = 577584001, tmax = 577843201
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='492656', job_status='RUN', time_executed='2021-09-09 17:40:15.898921', time_epoch_executed='1631234415.9' WHERE source_name='4FGL J1427.6-3305' and cadence='daily' and bin_id='1305'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/492656

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/492656/ft1_4FGL_J1427.6-3305_daily_bin1305.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/492656/ft2_4FGL_J1427.6-3305_daily_bin1305.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/492656/ft1_4FGL_J1427.6-3305_daily_bin1305.fits outfile=/scratch/kocevski/492656/ft1_filteredMKT_4FGL_J1427.6-3305_daily_bin1305.fits ra=216.913 dec=-33.094 rad=12.0 tmin=577584001.0 tmax=577843201.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.74
user 2.55
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/492656/ft2_4FGL_J1427.6-3305_daily_bin1305.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/492656/ft2_4FGL_J1427.6-3305_daily_bin1305.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/492656/ft1_filteredMKT_4FGL_J1427.6-3305_daily_bin1305.fits evtable="EVENTS" outfile="/scratch/kocevski/492656/ft1_filtered_4FGL_J1427.6-3305_daily_bin1305.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/492656/ft1_filtered_4FGL_J1427.6-3305_daily_bin1305.fits" evtable="EVENTS" scfile=/scratch/kocevski/492656/ft2_4FGL_J1427.6-3305_daily_bin1305.fits sctable="SC_DATA" outfile=/scratch/kocevski/492656/ltcube_577584001_577843201_4FGL_J1427.6-3305_daily_bin1305.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/492656/ft2_4FGL_J1427.6-3305_daily_bin1305.fits
.....................!
real 12.29
user 11.94
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/492656/ft1_filtered_4FGL_J1427.6-3305_daily_bin1305.fits evtable="EVENTS" scfile=/scratch/kocevski/492656/ft2_4FGL_J1427.6-3305_daily_bin1305.fits sctable="SC_DATA" expcube=/scratch/kocevski/492656/ltcube_577584001_577843201_4FGL_J1427.6-3305_daily_bin1305.fits outfile=/scratch/kocevski/492656/expmap_577584001_577843201_4FGL_J1427.6-3305_daily_bin1305.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/492656/ltcube_577584001_577843201_4FGL_J1427.6-3305_daily_bin1305.fits
.....................!
real 192.23
user 185.25
sys 4.54

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 214 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1427.6-3305 @ 216.913 -33.094

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/492656/ft1_filtered_4FGL_J1427.6-3305_daily_bin1305.fits scfile=/scratch/kocevski/492656/ft2_4FGL_J1427.6-3305_daily_bin1305.fits outfile=/scratch/kocevski/492656/cmap_577584001_577843201_4FGL_J1427.6-3305_daily_bin1305.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.913 yref=-33.094 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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/492656/ft1_filtered_4FGL_J1427.6-3305_daily_bin1305.fits scfile=/scratch/kocevski/492656/ft2_4FGL_J1427.6-3305_daily_bin1305.fits outfile=/scratch/kocevski/492656/cmap_HighResolution_577584001_577843201_4FGL_J1427.6-3305_daily_bin1305.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.913 yref=-33.094 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/492656/ft1_filtered_4FGL_J1427.6-3305_daily_bin1305.fits evtable="EVENTS" scfile=/scratch/kocevski/492656/ft2_4FGL_J1427.6-3305_daily_bin1305.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/492656/Model_4FGL_J1427.6-3305_daily_bin1305.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/492656/ft1_filtered_4FGL_J1427.6-3305_daily_bin1305.fits......................!
real 27.14
user 25.74
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/492656/ft1_filtered_4FGL_J1427.6-3305_daily_bin1305.fits', '/scratch/kocevski/492656/ft2_4FGL_J1427.6-3305_daily_bin1305.fits', expMap='/scratch/kocevski/492656/expmap_577584001_577843201_4FGL_J1427.6-3305_daily_bin1305.fits', expCube='/scratch/kocevski/492656/ltcube_577584001_577843201_4FGL_J1427.6-3305_daily_bin1305.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/492656/Model_4FGL_J1427.6-3305_daily_bin1305.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1427.6-3305'

4FGL J1427.6-3305
   Spectrum: LogParabola
315         norm:  3.155e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
316        alpha:  2.199e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
317         beta:  1.195e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
318           Eb:  9.114e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/492656/ft1_filtered_4FGL_J1427.6-3305_daily_bin1305.fits
Spacecraft file(s): /scratch/kocevski/492656/ft2_4FGL_J1427.6-3305_daily_bin1305.fits
Exposure map: /scratch/kocevski/492656/expmap_577584001_577843201_4FGL_J1427.6-3305_daily_bin1305.fits
Exposure cube: /scratch/kocevski/492656/ltcube_577584001_577843201_4FGL_J1427.6-3305_daily_bin1305.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/492656/Model_4FGL_J1427.6-3305_daily_bin1305.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 774.504076968

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 771.436778531

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9903       1.0000         .10000E-03   10000.    
     2 'norm      '    3.1522       1.0000         .10000E-03   10000.    
     3 'norm      '    3.7837       1.0000         .10000E-03   10000.    
     4 'norm      '    2.0324       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0206       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2249.0       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .30638E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.7399       1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.974       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8635       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .33401       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .28296E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .13602E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.5514       1.0000         .10000E-03   10000.    
    15 'norm      '    1.8628       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .66214       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .49061       1.0000         .10000E-03   10000.    
    18 'Prefactor '    62.671       1.0000         .10000E-03   10000.    
    19 'Prefactor '    579.75       1.0000         .10000E-03   10000.    
    20 'norm      '    .75892E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.5624       1.0000         .10000E-03   10000.    
    22 'Prefactor '    148.45       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .69109E-01   1.0000         .10000E-03   10000.    
    24 'norm      '    .32896E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    47.185       1.0000         .10000E-03   10000.    
    27 'norm      '    17.738       1.0000         .10000E-03   10000.    
    28 'norm      '    .26461       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    .88545       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7250E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   771.3743     FROM MIGRAD    STATUS=CONVERGED    538 CALLS      942 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9903        1.0013         .0000         .0000    
   2  norm          3.1522        1.0132         .0000         .0000    
   3  norm          .10138E-03    6816.4       -.30032E-04** at limit **
   4  norm          2.0324        1.0340         .0000         .0000    
   5  Prefactor     1.0206        1.2913         .0000         .0000    
   6  Prefactor     2007.3        1813.2       -.31685E-07    .17518E-01
   7  Prefactor     .10000E-03    1615.3        .51178E-05** at limit **
   8  Prefactor     .28318E-02    8894.1        .95256E-04   -.21675E-03
   9  Prefactor     5.0960        1389.0       -.23586E-04   -.11258E-01
  10  Prefactor     .10000E-03    491.26        .21027E-06** at limit **
  11  Prefactor     .10000E-03    1035.9        .83167E-05** at limit **
  12  Prefactor     .10000E-03    111.98       -.23345E-06** at limit **
  13  norm          .10000E-03    21.246       -.54870E-06** at limit **
  14  Prefactor     .10000E-03    492.13        .47519E-07** at limit **
  15  norm          1.8990        1.0155        .10376E-06   -.10228E-03
  16  Prefactor     .10000E-03    984.22       -.26118E-05** at limit **
  17  Prefactor     .10000E-03    1032.6        .17889E-04** at limit **
  18  Prefactor     69.388        150.63        .14019E-04   -.28066E-04
  19  Prefactor     813.96        1001.4        .29967E-04   -.81961E-02
  20  norm          .10000E-03    35.654        .75351E-06** at limit **
  21  Prefactor     .10000E-03    414.24       -.28677E-05** at limit **
  22  Prefactor     158.88        168.07       -.92755E-05   -.19921E-03
  23  Prefactor     .10000E-03    44.779       -.45424E-06** at limit **
  24  norm          .10003E-03    230.32       -.22174E-04** at limit **
  25  Prefactor     .10000E-03    20.774        .42726E-06** at limit **
  26  Prefactor     48.115        52.643        .97291E-06   -.18669E-04
  27  norm          18.594        26.333       -.81478E-06   -.58288E-04
  28  norm          .10000E-03    40.793        .11414E-05** at limit **
  29  Normalizat    .10000E-01    1.2932        .56970E-06** at limit **
  30  Prefactor     .86616        .24132       -.74742E-05   -.13124E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.99031
  norm       = 3.15221
  norm       = 0.000101381
  norm       = 2.0324
  Prefactor  = 1.02056
  Prefactor  = 2007.29
  Prefactor  = 0.0001
  Prefactor  = 0.00283177
  Prefactor  = 5.09596
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.89904
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.3876
  Prefactor  = 813.962
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 158.883
  Prefactor  = 0.0001
  norm       = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 48.1146
  norm       = 18.5945
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.866165
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   771.3743     FROM HESSE     STATUS=FAILED        11 CALLS      953 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     490.77        480.76         .0000       -1.5076    
   2  norm          3.1522        1.0132         .0000       -1.5353    
   3  norm          .10138E-03    .67296E-01   -.30032E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.0324        1.0340         .0000       -1.5423    
   5  Prefactor     1.0206        1.2913         .0000       -1.5506    
   6  Prefactor     2007.3        .95936       -.31685E-07   -.64168    
   7  Prefactor     .10000E-03    .28571        .51178E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .28318E-02    .43916E-01    .95256E-04   -1.5718    
   9  Prefactor     5.0960        .39981       -.23586E-04   -1.6159    
  10  Prefactor     .10000E-03    .14556        .21027E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .27948        .83167E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .24728       -.23345E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .20571       -.54870E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .38410E-01    .47519E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.8990        1.0516        .10376E-06   -1.5432    
  16  Prefactor     .10000E-03    .35496       -.26118E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .31541        .17889E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     69.388        1.0519        .14019E-04   -1.4040    
  19  Prefactor     813.96        1.1701        .29967E-04   -.99216    
  20  norm          .10000E-03    .22069        .75351E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .38345E-01   -.28677E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     158.88        1.0340       -.92755E-05   -1.3180    
  23  Prefactor     .10000E-03    .21916       -.45424E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10003E-03    .24320       -.22174E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .20571        .42726E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     48.115        1.0098        .97291E-06   -1.4320    
  27  norm          18.594        1.0242       -.81478E-06   -1.4845    
  28  norm          .10000E-03    .26361        .11414E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    .25505        .56970E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .86616        1.2189       -.74742E-05   -.97334    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.42324e-10
Minuit parameter uncertainties:
  1  1.00126
  2  1.01317
  3  0.000609776
  4  1.03401
  5  1.29138
  6  0.959359
  7  3.28188e-06
  8  0.0219061
  9  0.399807
  10  2.54914e-06
  11  5.30416e-06
  12  1.85532e-07
  13  4.83648e-08
  14  2.0354e-06
  15  1.05161
  16  7.80122e-06
  17  3.56531e-06
  18  1.0519
  19  1.17008
  20  2.14063e-07
  21  1.50649e-06
  22  1.03398
  23  1.95508e-07
  24  0.000165133
  25  1.68083e-07
  26  1.00981
  27  1.02423
  28  3.88792e-07
  29  3.77569e-08
  30  1.26064
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 771.374348356

Extracting fit parameters...

4FGL J1427.6-3305
   Spectrum: LogParabola
315         norm:  1.000e-04  4.836e-08  1.000e-04  1.000e+04 ( 1.000e-12)
316        alpha:  2.199e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
317         beta:  1.195e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
318           Eb:  9.114e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
722    Prefactor:  8.662e-01  1.261e+00  0.000e+00  1.000e+01 ( 1.000e+00)
723        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
724        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
721   Normalization:  1.000e-02  3.776e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 216.913 -33.094
Photon Flux Upper Limit: 8.63e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.71e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/492656/likelihoodResults_577584001_577843201_4FGL_J1427.6-3305_daily_bin1305.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) = 771.374568846
delta logL = -0.000220490182528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 771.374352099
delta logL = -3.74254739199e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2354       1.0000          .0000       5.0000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86617       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7250E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   771.3743     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      286 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1357.4        .82918E-02** at limit **
   2  alpha         1.9140        2.7874        .17466       -.42309E-08
   3  Normalizat    .10000E-01    .19586        .15866E-01** at limit **
   4  Prefactor     .86617        .62691E-01    .15732E-03    .36132E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.914
  Normalizat = 0.01
  Prefactor  = 0.866166
 **********
 **   18 **HESSE 
 **********

 FCN=   771.3743     FROM HESSE     STATUS=OK            23 CALLS      309 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    22.085        .12746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9140        3.7199        .69863E-02   -.23660    
   3  Normalizat    .10000E-01    1.2768        .31731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .86617        .16295        .62929E-05   -.97334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.38255e-12
Minuit parameter uncertainties:
  1  5.39567e-05
  2  654.02
  3  4.17256e-06
  4  0.163043
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/492656': 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) = 771.374348259
delta logL = 9.6770691016e-08

Extracting fit parameters...

4FGL J1427.6-3305
   Spectrum: LogParabola
315         norm:  1.000e-04  5.396e-05  1.000e-04  1.000e+04 ( 1.000e-12)
316        alpha:  1.914e+00  6.540e+02  0.000e+00  5.000e+00 ( 1.000e+00)
317         beta:  1.195e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
318           Eb:  9.114e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
722    Prefactor:  8.662e-01  1.630e-01  0.000e+00  1.000e+01 ( 1.000e+00)
723        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
724        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
721   Normalization:  1.000e-02  4.173e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 216.913 -33.094

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/492656/cmap_HighResolution_577584001_577843201_4FGL_J1427.6-3305_daily_bin1305.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.71e-04', job_status='DONE', photon_flux_upper_limit='8.63e-07', time_completed='2021-09-09 17:46:21.202722', job_id='492656', GAL2='0.87', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631234781.2', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.87', dlogl='9.68e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.20' WHERE bin_id='1305' AND source_name='4FGL J1427.6-3305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 17:46:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 492656: <4FGL_J1427.6-3305_daily_bin1305> in cluster <slac> Done

Job <4FGL_J1427.6-3305_daily_bin1305> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  9 17:36:08 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 17:36:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 17:36:10 2021
Terminated at Thu Sep  9 17:46:21 2021
Results reported at Thu Sep  9 17:46:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1427.6-3305_daily_bin1305 216.913 -33.094 577584001 577843201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1427.6-3305 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   356.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   611 sec.
    Turnaround time :                            613 sec.

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

