/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 55 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.7-3215_daily_bin1445
RA = 216.946, Dec = -32.2537
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='507913', job_status='RUN', time_executed='2021-09-09 18:32:18.683774', time_epoch_executed='1631237538.68' WHERE source_name='4FGL J1427.7-3215' and cadence='daily' and bin_id='1445'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/507913

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


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/507913/ft1_4FGL_J1427.7-3215_daily_bin1445.fits outfile=/scratch/kocevski/507913/ft1_filteredMKT_4FGL_J1427.7-3215_daily_bin1445.fits ra=216.946 dec=-32.2537 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.27
user 2.03
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/507913/ft2_4FGL_J1427.7-3215_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/507913/ft1_filteredMKT_4FGL_J1427.7-3215_daily_bin1445.fits evtable="EVENTS" outfile="/scratch/kocevski/507913/ft1_filtered_4FGL_J1427.7-3215_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.49
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/507913/ft1_filtered_4FGL_J1427.7-3215_daily_bin1445.fits evtable="EVENTS" scfile=/scratch/kocevski/507913/ft2_4FGL_J1427.7-3215_daily_bin1445.fits sctable="SC_DATA" expcube=/scratch/kocevski/507913/ltcube_613872001_614131201_4FGL_J1427.7-3215_daily_bin1445.fits outfile=/scratch/kocevski/507913/expmap_613872001_614131201_4FGL_J1427.7-3215_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/507913/ltcube_613872001_614131201_4FGL_J1427.7-3215_daily_bin1445.fits
.....................!
real 191.65
user 185.58
sys 5.64

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/507913/ft1_filtered_4FGL_J1427.7-3215_daily_bin1445.fits scfile=/scratch/kocevski/507913/ft2_4FGL_J1427.7-3215_daily_bin1445.fits outfile=/scratch/kocevski/507913/cmap_613872001_614131201_4FGL_J1427.7-3215_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.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.35
sys 0.17

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/507913/ft1_filtered_4FGL_J1427.7-3215_daily_bin1445.fits evtable="EVENTS" scfile=/scratch/kocevski/507913/ft2_4FGL_J1427.7-3215_daily_bin1445.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/507913/Model_4FGL_J1427.7-3215_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 GAL_V02
Working on...
/scratch/kocevski/507913/ft1_filtered_4FGL_J1427.7-3215_daily_bin1445.fits.....................!
real 66.20
user 64.62
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11265E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    58.303       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.455       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .37286E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11294E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    43.001       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.520       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6132       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .18141E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13351E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .99701E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .14312E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    45.020       1.0000         .10000E-03   10000.    
    26 'norm      '    30.880       1.0000         .10000E-03   10000.    
    27 'norm      '    313.57       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .82334       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0632       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.

 FCN=   3489.196     FROM MIGRAD    STATUS=CONVERGED    813 CALLS     4005 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    326.42       -.54977E-04** at limit **
   2  norm          .10000E-03    23.772        .15625E-07** at limit **
   3  norm          58.275        48.698        .14410E-04    .10709E-04
   4  norm          .10000E-03    3.5211        .38087E-07** at limit **
   5  Prefactor     .10000E-03    3.7738        .29731E-06** at limit **
   6  Prefactor     .10000E-03    32.664       -.73318E-07** at limit **
   7  Prefactor     25.444        88.205       -.78237E-05   -.31520E-05
   8  Prefactor     .10000E-03    39.481       -.61549E-07** at limit **
   9  Prefactor     .10000E-03    311.03       -.63866E-04** at limit **
  10  Prefactor     .10000E-03    166.99       -.49043E-04** at limit **
  11  Prefactor     42.998        34.474        .23621E-05   -.92249E-05
  12  Prefactor     15.511        36.162        .70642E-06   -.10088E-03
  13  norm          .10000E-03    6.6263       -.92825E-06** at limit **
  14  Prefactor     1.5766        412.58        .98756E-04   -.22804E-04
  15  norm          .10000E-03    .96575E-01    .15312E-09** at limit **
  16  Prefactor     .10002E-03    91.285       -.11476E-06** at limit **
  17  Prefactor     .10000E-03    22.162       -.20544E-06** at limit **
  18  Prefactor     .10000E-03    25.042       -.37069E-07** at limit **
  19  norm          .12685E-03    99.818        .79913E-05** at limit **
  20  Prefactor     .10000E-03    350.18        .66122E-04** at limit **
  21  Prefactor     .25262E-03    40.537       -.11448E-05** at limit **
  22  Prefactor     .10000E-03    114.49       -.15102E-04** at limit **
  23  norm          .10001E-03    3.0538        .23488E-05** at limit **
  24  Prefactor     .10003E-03    148.80        .64780E-04** at limit **
  25  Prefactor     45.027        61.355       -.35716E-05   -.10342E-03
  26  norm          30.882        44.107        .12870E-04   -.22135E-03
  27  norm          313.33        383.02       -.11933E-03   -.11438E-03
  28  Prefactor     .10000E-03    20.619        .95806E-09** at limit **
  29  Normalizat    .82307        .41908       -.37919E-05   -.17149E-03
  30  Prefactor     1.0633        .15768        .65473E-07   -.71682E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 58.2748
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.4441
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.9979
  Prefactor  = 15.5113
  norm       = 0.000100002
  Prefactor  = 1.57662
  norm       = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000126846
  Prefactor  = 0.0001
  Prefactor  = 0.000252623
  Prefactor  = 0.000100001
  norm       = 0.000100014
  Prefactor  = 0.000100034
  Prefactor  = 45.0266
  norm       = 30.8819
  norm       = 313.335
  Prefactor  = 0.0001
  Normalizat = 0.823073
  Prefactor  = 1.06332
 **********
 **   18 **HESSE 
 **********

 FCN=   3489.196     FROM HESSE     STATUS=OK           592 CALLS     4597 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    328.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    23.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          58.275        48.688        .26271E-03   -1.4180    
   4  norm          .10000E-03    3.5223        .10825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.5614        .21760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    32.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     25.444        88.184        .79398E-04   -1.4699    
   8  Prefactor     .10000E-03    39.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    310.55        .21295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    166.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     42.998        34.469        .61135E-04   -1.4396    
  12  Prefactor     15.511        36.040        .10167E-03   -1.4920    
  13  norm          .10000E-03    6.6630        .14815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.5766        408.45        .33343E-03   -1.5457    
  15  norm          .10000E-03    .97868E-01    .17902E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    91.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    25.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .12685E-03    87.212        .14875       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    349.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .25262E-03    49.950        .10113       -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    114.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10001E-03    7.4371        .19798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10003E-03    150.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     45.027        61.262        .59754E-04   -1.4365    
  26  norm          30.882        43.946        .72103E-04   -1.4596    
  27  norm          313.33        384.99        .11476E-03   -1.2149    
  28  Prefactor     .10000E-03    20.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .82307        .46795        .47042E-03   -.99218    
  30  Prefactor     1.0633        .18244        .15873E-03   -.90648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46706e-09
Minuit parameter uncertainties:
  1  0.000876618
  2  7.18627e-06
  3  48.721
  4  1.9853e-06
  5  8.2095e-05
  6  5.06579e-05
  7  88.6411
  8  3.66562e-06
  9  2.21165e-05
  10  6.65647e-05
  11  34.4851
  12  36.0904
  13  0.000244254
  14  51.1079
  15  3.49137e-08
  16  0.00282662
  17  8.80428e-05
  18  5.60883e-06
  19  0.0969149
  20  0.000169211
  21  0.17477
  22  0.00066071
  23  0.000648521
  24  0.00454715
  25  61.3481
  26  43.9922
  27  388.19
  28  1.29783e-05
  29  0.470271
  30  0.18255
Done.

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

Extracting fit parameters...

4FGL J1427.7-3215
   Spectrum: PowerLaw
324    Prefactor:  1.577e+00  5.111e+01  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:  1.063e+00  1.825e-01  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:  8.231e-01  4.703e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 216.946 -32.254
Photon Flux Upper Limit: 1.64e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.24e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/507913/likelihoodResults_613872001_614131201_4FGL_J1427.7-3215_daily_bin1445.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3489.1961532
delta logL = 5.78231465624e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3489.19549454
delta logL = 0.000716485606517

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9195       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9390       1.0000          .0000       10.000    
     3 'Normalizat'    .82483       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0628       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=   3489.195     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      280 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9582        335.33        .23776E-03   -.24219E-04
   2  Index         1.9469        3.2403        .77904E-02    .24391E-04
   3  Normalizat    .82356        .45482        .47030E-03    .82363E-03
   4  Prefactor     1.0630        .17524        .15875E-03    .32025E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.95823
  Index      = 1.9469
  Normalizat = 0.823561
  Prefactor  = 1.06298
 **********
 **   18 **HESSE 
 **********

 FCN=   3489.195     FROM HESSE     STATUS=OK            23 CALLS      303 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9582        320.46        .95105E-05   -1.5364    
   2  Index         1.9469        3.1904        .31162E-03   -.65684    
   3  Normalizat    .82356        .45502        .94060E-04   -.99201    
   4  Prefactor     1.0630        .17531        .31750E-04   -.90658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.21712e-09
Minuit parameter uncertainties:
  1  61.9209
  2  3.70977
  3  0.457153
  4  0.17541
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/507913': 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) = 3489.19548391
delta logL = 0.000727116100734

Extracting fit parameters...

4FGL J1427.7-3215
   Spectrum: PowerLaw
324    Prefactor:  2.958e+00  6.192e+01  1.000e-04  1.000e+04 ( 1.000e-14)
325        Index:  1.947e+00  3.710e+00  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:  1.063e+00  1.754e-01  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:  8.236e-01  4.572e-01  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/507913/cmap_HighResolution_613872001_614131201_4FGL_J1427.7-3215_daily_bin1445.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', job_status='DONE', photon_flux_upper_limit='1.64e-07', time_completed='2021-09-09 18:44:20.980786', job_id='507913', GAL2='1.06', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1631238260.98', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='7.27e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1445' AND source_name='4FGL J1427.7-3215' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 18:44:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 507913: <4FGL_J1427.7-3215_daily_bin1445> in cluster <slac> Done

Job <4FGL_J1427.7-3215_daily_bin1445> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 18:31:12 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 18:31:14 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:14 2021
Terminated at Thu Sep  9 18:44:21 2021
Results reported at Thu Sep  9 18:44:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1427.7-3215_daily_bin1445 216.946 -32.2537 613872001 614131201 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 :                                   696.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             292.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   787 sec.
    Turnaround time :                            789 sec.

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

