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


Performing analysis on: 4FGL_J1427.7-3215_daily_bin1429
RA = 216.946, Dec = -32.2537
tmin = 609724801, tmax = 609984001
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='507889', job_status='RUN', time_executed='2021-09-09 18:32:47.514201', time_epoch_executed='1631237567.51' WHERE source_name='4FGL J1427.7-3215' and cadence='daily' and bin_id='1429'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/507889

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/507889/ft1_4FGL_J1427.7-3215_daily_bin1429.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/507889/ft2_4FGL_J1427.7-3215_daily_bin1429.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/507889/ft1_4FGL_J1427.7-3215_daily_bin1429.fits outfile=/scratch/kocevski/507889/ft1_filteredMKT_4FGL_J1427.7-3215_daily_bin1429.fits ra=216.946 dec=-32.2537 rad=12.0 tmin=609724801.0 tmax=609984001.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.57
user 2.35
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/507889/ft2_4FGL_J1427.7-3215_daily_bin1429.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/507889/ft2_4FGL_J1427.7-3215_daily_bin1429.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/507889/ft1_filteredMKT_4FGL_J1427.7-3215_daily_bin1429.fits evtable="EVENTS" outfile="/scratch/kocevski/507889/ft1_filtered_4FGL_J1427.7-3215_daily_bin1429.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.50
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/507889/ft1_filtered_4FGL_J1427.7-3215_daily_bin1429.fits" evtable="EVENTS" scfile=/scratch/kocevski/507889/ft2_4FGL_J1427.7-3215_daily_bin1429.fits sctable="SC_DATA" outfile=/scratch/kocevski/507889/ltcube_609724801_609984001_4FGL_J1427.7-3215_daily_bin1429.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/507889/ft2_4FGL_J1427.7-3215_daily_bin1429.fits
.....................!
real 12.56
user 12.20
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/507889/ft1_filtered_4FGL_J1427.7-3215_daily_bin1429.fits evtable="EVENTS" scfile=/scratch/kocevski/507889/ft2_4FGL_J1427.7-3215_daily_bin1429.fits sctable="SC_DATA" expcube=/scratch/kocevski/507889/ltcube_609724801_609984001_4FGL_J1427.7-3215_daily_bin1429.fits outfile=/scratch/kocevski/507889/expmap_609724801_609984001_4FGL_J1427.7-3215_daily_bin1429.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/507889/ltcube_609724801_609984001_4FGL_J1427.7-3215_daily_bin1429.fits
.....................!
real 193.93
user 189.47
sys 4.05

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 210 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.7-3215 @ 216.946 -32.2537

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/507889/ft1_filtered_4FGL_J1427.7-3215_daily_bin1429.fits scfile=/scratch/kocevski/507889/ft2_4FGL_J1427.7-3215_daily_bin1429.fits outfile=/scratch/kocevski/507889/cmap_609724801_609984001_4FGL_J1427.7-3215_daily_bin1429.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.946 yref=-32.2537 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/507889/ft1_filtered_4FGL_J1427.7-3215_daily_bin1429.fits scfile=/scratch/kocevski/507889/ft2_4FGL_J1427.7-3215_daily_bin1429.fits outfile=/scratch/kocevski/507889/cmap_HighResolution_609724801_609984001_4FGL_J1427.7-3215_daily_bin1429.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.946 yref=-32.2537 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/507889/ft1_filtered_4FGL_J1427.7-3215_daily_bin1429.fits evtable="EVENTS" scfile=/scratch/kocevski/507889/ft2_4FGL_J1427.7-3215_daily_bin1429.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/507889/Model_4FGL_J1427.7-3215_daily_bin1429.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/507889/ft1_filtered_4FGL_J1427.7-3215_daily_bin1429.fits......................!
real 18.31
user 17.05
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/507889/ft1_filtered_4FGL_J1427.7-3215_daily_bin1429.fits', '/scratch/kocevski/507889/ft2_4FGL_J1427.7-3215_daily_bin1429.fits', expMap='/scratch/kocevski/507889/expmap_609724801_609984001_4FGL_J1427.7-3215_daily_bin1429.fits', expCube='/scratch/kocevski/507889/ltcube_609724801_609984001_4FGL_J1427.7-3215_daily_bin1429.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/507889/Model_4FGL_J1427.7-3215_daily_bin1429.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1427.7-3215'

4FGL J1427.7-3215
   Spectrum: PowerLaw
324    Prefactor:  5.189e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
325        Index:  2.107e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  2.722e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/507889/ft1_filtered_4FGL_J1427.7-3215_daily_bin1429.fits
Spacecraft file(s): /scratch/kocevski/507889/ft2_4FGL_J1427.7-3215_daily_bin1429.fits
Exposure map: /scratch/kocevski/507889/expmap_609724801_609984001_4FGL_J1427.7-3215_daily_bin1429.fits
Exposure cube: /scratch/kocevski/507889/ltcube_609724801_609984001_4FGL_J1427.7-3215_daily_bin1429.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/507889/Model_4FGL_J1427.7-3215_daily_bin1429.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) = 266.464185734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    7.5390       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 '    9.6452       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7979       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.6487       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8388       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2281.7       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2765       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0389       1.0000         .10000E-03   10000.    
    13 'norm      '    .12490E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .96354E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .28243       1.0000         .10000E-03   10000.    
    17 'Prefactor '    166.39       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19558       1.0000         .10000E-03   10000.    
    19 'norm      '    .47795       1.0000         .10000E-03   10000.    
    20 'Prefactor '    193.07       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .95135       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.7283       1.0000         .10000E-03   10000.    
    23 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10810E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .17544E-01   1.0000         .10000E-03   10000.    
    26 'norm      '    32.072       1.0000         .10000E-03   10000.    
    27 'norm      '    166.01       1.0000         .10000E-03   10000.    
    28 'Prefactor '    150.16       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    .66057       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   261.2542     FROM MIGRAD    STATUS=CONVERGED    302 CALLS      603 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  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          7.5390        1.0022         .0000         .0000    
   4  norm          2.0324        1.0340         .0000         .0000    
   5  Prefactor     1.0206        1.2913         .0000         .0000    
   6  Prefactor     9.6953        1.0054       -.82286E-07   -.76240E-05
   7  Prefactor     5.7979        1.0038         .0000         .0000    
   8  Prefactor     7.6487        1.0021         .0000         .0000    
   9  Prefactor     .22351        1174.8       -.18142E-03   -.17876E-02
  10  Prefactor     2240.8        39.318        .40434E-05    .49794E-01
  11  Prefactor     1.2765        1.1106         .0000         .0000    
  12  Prefactor     .10000E-03    424.60       -.91974E-05** at limit **
  13  norm          .10000E-03    92.514       -.96011E-05** at limit **
  14  Prefactor     .10000E-03    1432.6        .22020E-04** at limit **
  15  norm          .10000E-03    .67318       -.30411E-06** at limit **
  16  Prefactor     .10000E-03    1363.4       -.27011E-04** at limit **
  17  Prefactor     .11156E-02    474.02        .20312E-03** at limit **
  18  Prefactor     .10028E-03    6203.5       -.84459E-05** at limit **
  19  norm          .10001E-03    120.65        .12050E-05** at limit **
  20  Prefactor     1405.8        1769.3       -.10317E-03   -.91406E-03
  21  Prefactor     .10001E-03    437.58        .11510E-04** at limit **
  22  Prefactor     .10005E-03    500.01       -.84525E-04** at limit **
  23  norm          .10000E-03    6.8765       -.16194E-06** at limit **
  24  Prefactor     .10000E-03    78.191       -.83834E-05** at limit **
  25  Prefactor     .10000E-03    352.92       -.18008E-03** at limit **
  26  norm          31.726        57.974        .33953E-06   -.53085E-04
  27  norm          178.82        212.45        .16776E-04    .20280E-03
  28  Prefactor     150.64        107.20        .13499E-04   -.47076E-05
  29  Normalizat    .10000E-01    1.8333       -.80819E-05** at limit **
  30  Prefactor     .63595        .28444       -.43826E-05   -.10493E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.99031
  norm       = 3.15221
  norm       = 7.53902
  norm       = 2.0324
  Prefactor  = 1.02056
  Prefactor  = 9.69535
  Prefactor  = 5.79789
  Prefactor  = 7.6487
  Prefactor  = 0.223508
  Prefactor  = 2240.75
  Prefactor  = 1.27646
  Prefactor  = 0.000100003
  norm       = 0.000100001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00111559
  Prefactor  = 0.000100277
  norm       = 0.000100014
  Prefactor  = 1405.81
  Prefactor  = 0.000100006
  Prefactor  = 0.00010005
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 31.7262
  norm       = 178.822
  Prefactor  = 150.636
  Normalizat = 0.01
  Prefactor  = 0.635945
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   261.2542     FROM HESSE     STATUS=FAILED        11 CALLS      614 TOTAL
                     EDM=   .13E-08  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          7.5390        1.0022         .0000       -1.5159    
   4  norm          2.0324        1.0340         .0000       -1.5423    
   5  Prefactor     1.0206        1.2913         .0000       -1.5506    
   6  Prefactor     9.6953        1.0039       -.82286E-07   -1.5085    
   7  Prefactor     5.7979        1.0038         .0000       -1.5226    
   8  Prefactor     7.6487        1.0021         .0000       -1.5155    
   9  Prefactor     .22351        .18129       -.18142E-03   -1.5802    
  10  Prefactor     2240.8        .99361        .40434E-05   -.58458    
  11  Prefactor     1.2765        1.1106         .0000       -1.5482    
  12  Prefactor     .10000E-03    .37877       -.91974E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .20636       -.96011E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .22533        .22020E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .20571       -.30411E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .26768       -.27011E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11156E-02    .24914E-02    .20312E-03   -1.5714    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10028E-03    .24788       -.84459E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10001E-03    .31250        .12050E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1405.8        2.5261       -.10317E-03   -.80213    
  21  Prefactor     .10001E-03    .42201        .11510E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10005E-03    .94963E-01   -.84525E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .20571       -.16194E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    .20571       -.83834E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .20750       -.18008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          31.726        .99474        .33953E-06   -1.4581    
  27  norm          178.82        1.0372        .16776E-04   -1.3025    
  28  Prefactor     150.64        1.0016        .13499E-04   -1.3247    
  29  Normalizat    .10000E-01    .25505       -.80819E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .63595        .99224       -.43826E-05   -1.0609    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.25216e-09
Minuit parameter uncertainties:
  1  1.00126
  2  1.01317
  3  1.00222
  4  1.03401
  5  1.29138
  6  1.00394
  7  1.00377
  8  1.00215
  9  0.181291
  10  0.993607
  11  1.11061
  12  6.94626e-05
  13  2.0967e-05
  14  5.49707e-05
  15  1.27179e-06
  16  8.55401e-06
  17  0.00249138
  18  0.000523823
  19  0.000134572
  20  2.52608
  21  0.000101855
  22  0.000138082
  23  1.36427e-06
  24  1.77681e-05
  25  5.69851e-05
  26  0.994736
  27  1.0372
  28  1.00156
  29  6.68569e-06
  30  1.02185
Done.

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

Extracting fit parameters...

4FGL J1427.7-3215
   Spectrum: PowerLaw
324    Prefactor:  1.000e-04  5.497e-05  1.000e-04  1.000e+04 ( 1.000e-14)
325        Index:  2.107e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  2.722e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
705    Prefactor:  6.359e-01  1.022e+00  0.000e+00  1.000e+01 ( 1.000e+00)
706        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
707        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
704   Normalization:  1.000e-02  6.686e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 216.946 -32.254
Photon Flux Upper Limit: 6.97e-06 ph cm-2 s-1
Energy Flux Upper Limit: 5.28e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/507889/likelihoodResults_609724801_609984001_4FGL_J1427.7-3215_daily_bin1429.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) = 261.254157539
delta logL = -3.18311259662e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 261.254159917
delta logL = -5.56101889515e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96176E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1072       1.0000          .0000       10.000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63592       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7080E+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=   261.2542     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      235 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    471.67        .18146E-01** at limit **
   2  Index         2.2984        8.8460        .50000        .33209E-06
   3  Normalizat    .10000E-01    .16597E-02    .12133E-01** at limit **
   4  Prefactor     .63595        .67654E-02    .14931E-03    .72210E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100028
  Index      = 2.29845
  Normalizat = 0.01
  Prefactor  = 0.635949
 **********
 **   18 **HESSE 
 **********

 FCN=   261.2542     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      264 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    2204.4        .36292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2984        7.8968        .50000       -.57081    
   3  Normalizat    .10000E-01    .83021E-02    .24266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .63595        .15129E-01    .29862E-04   -1.0609    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.17395e-09
Minuit parameter uncertainties:
  1  0.0163407
  2  806.684
  3  6.43971e-07
  4  0.0151293
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/507889': 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) = 261.254154368
delta logL = -1.20489858091e-08

Extracting fit parameters...

4FGL J1427.7-3215
   Spectrum: PowerLaw
324    Prefactor:  1.000e-04  1.634e-02  1.000e-04  1.000e+04 ( 1.000e-14)
325        Index:  2.298e+00  8.067e+02  0.000e+00  1.000e+01 (-1.000e+00)
326        Scale:  2.722e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
705    Prefactor:  6.359e-01  1.513e-02  0.000e+00  1.000e+01 ( 1.000e+00)
706        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
707        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
704   Normalization:  1.000e-02  6.440e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 216.946 -32.254

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/507889/cmap_HighResolution_609724801_609984001_4FGL_J1427.7-3215_daily_bin1429.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.28e-01', job_status='DONE', photon_flux_upper_limit='6.97e-06', time_completed='2021-09-09 18:38:56.902373', job_id='507889', GAL2='0.64', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631237936.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.64', dlogl='-1.20e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1429' AND source_name='4FGL J1427.7-3215' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 18:38:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 507889: <4FGL_J1427.7-3215_daily_bin1429> in cluster <slac> Done

Job <4FGL_J1427.7-3215_daily_bin1429> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 18:31:09 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 18:31:11 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 18:31:11 2021
Terminated at Thu Sep  9 18:38:57 2021
Results reported at Thu Sep  9 18:38:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1427.7-3215_daily_bin1429 216.946 -32.2537 609724801 609984001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1427.7-3215 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   335.42 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             258.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   466 sec.
    Turnaround time :                            468 sec.

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

