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


Performing analysis on: 4FGL_J1438.0-3128_daily_bin1322
RA = 219.508, Dec = -31.4679
tmin = 581990401, tmax = 582249601
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='662947', job_status='RUN', time_executed='2021-09-10 03:02:00.670938', time_epoch_executed='1631268120.67' WHERE source_name='4FGL J1438.0-3128' and cadence='daily' and bin_id='1322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/662947

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/662947/ft1_4FGL_J1438.0-3128_daily_bin1322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/662947/ft2_4FGL_J1438.0-3128_daily_bin1322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/662947/ft1_4FGL_J1438.0-3128_daily_bin1322.fits outfile=/scratch/kocevski/662947/ft1_filteredMKT_4FGL_J1438.0-3128_daily_bin1322.fits ra=219.508 dec=-31.4679 rad=12.0 tmin=581990401.0 tmax=582249601.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.36
user 2.16
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/662947/ft2_4FGL_J1438.0-3128_daily_bin1322.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/662947/ft2_4FGL_J1438.0-3128_daily_bin1322.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/662947/ft1_filteredMKT_4FGL_J1438.0-3128_daily_bin1322.fits evtable="EVENTS" outfile="/scratch/kocevski/662947/ft1_filtered_4FGL_J1438.0-3128_daily_bin1322.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/662947/ft1_filtered_4FGL_J1438.0-3128_daily_bin1322.fits" evtable="EVENTS" scfile=/scratch/kocevski/662947/ft2_4FGL_J1438.0-3128_daily_bin1322.fits sctable="SC_DATA" outfile=/scratch/kocevski/662947/ltcube_581990401_582249601_4FGL_J1438.0-3128_daily_bin1322.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/662947/ft2_4FGL_J1438.0-3128_daily_bin1322.fits
.....................!
real 12.96
user 12.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/662947/ft1_filtered_4FGL_J1438.0-3128_daily_bin1322.fits evtable="EVENTS" scfile=/scratch/kocevski/662947/ft2_4FGL_J1438.0-3128_daily_bin1322.fits sctable="SC_DATA" expcube=/scratch/kocevski/662947/ltcube_581990401_582249601_4FGL_J1438.0-3128_daily_bin1322.fits outfile=/scratch/kocevski/662947/expmap_581990401_582249601_4FGL_J1438.0-3128_daily_bin1322.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/662947/ltcube_581990401_582249601_4FGL_J1438.0-3128_daily_bin1322.fits
.....................!
real 194.91
user 188.07
sys 5.17

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 206 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 J1438.0-3128 @ 219.508 -31.4679

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/662947/ft1_filtered_4FGL_J1438.0-3128_daily_bin1322.fits scfile=/scratch/kocevski/662947/ft2_4FGL_J1438.0-3128_daily_bin1322.fits outfile=/scratch/kocevski/662947/cmap_581990401_582249601_4FGL_J1438.0-3128_daily_bin1322.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=219.508 yref=-31.4679 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/662947/ft1_filtered_4FGL_J1438.0-3128_daily_bin1322.fits scfile=/scratch/kocevski/662947/ft2_4FGL_J1438.0-3128_daily_bin1322.fits outfile=/scratch/kocevski/662947/cmap_HighResolution_581990401_582249601_4FGL_J1438.0-3128_daily_bin1322.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=219.508 yref=-31.4679 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/662947/ft1_filtered_4FGL_J1438.0-3128_daily_bin1322.fits evtable="EVENTS" scfile=/scratch/kocevski/662947/ft2_4FGL_J1438.0-3128_daily_bin1322.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/662947/Model_4FGL_J1438.0-3128_daily_bin1322.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/662947/ft1_filtered_4FGL_J1438.0-3128_daily_bin1322.fits.....................!
real 55.19
user 53.73
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/662947/ft1_filtered_4FGL_J1438.0-3128_daily_bin1322.fits', '/scratch/kocevski/662947/ft2_4FGL_J1438.0-3128_daily_bin1322.fits', expMap='/scratch/kocevski/662947/expmap_581990401_582249601_4FGL_J1438.0-3128_daily_bin1322.fits', expCube='/scratch/kocevski/662947/ltcube_581990401_582249601_4FGL_J1438.0-3128_daily_bin1322.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/662947/Model_4FGL_J1438.0-3128_daily_bin1322.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1438.0-3128'

4FGL J1438.0-3128
   Spectrum: PowerLaw
301    Prefactor:  2.213e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.444e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.053e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/662947/ft1_filtered_4FGL_J1438.0-3128_daily_bin1322.fits
Spacecraft file(s): /scratch/kocevski/662947/ft2_4FGL_J1438.0-3128_daily_bin1322.fits
Exposure map: /scratch/kocevski/662947/expmap_581990401_582249601_4FGL_J1438.0-3128_daily_bin1322.fits
Exposure cube: /scratch/kocevski/662947/ltcube_581990401_582249601_4FGL_J1438.0-3128_daily_bin1322.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/662947/Model_4FGL_J1438.0-3128_daily_bin1322.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) = 2672.41500965

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.0912       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10612E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10125E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10400E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    46.526       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    13.381       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.5772       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .16308E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    35.159       1.0000         .10000E-03   10000.    
    24 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    73.401       1.0000         .10000E-03   10000.    
    26 'norm      '    4.7559       1.0000         .10000E-03   10000.    
    27 'Prefactor '    28.534       1.0000         .10000E-03   10000.    
    28 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.9470       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .61691       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2672.392     FROM MIGRAD    STATUS=CONVERGED    751 CALLS     4560 TOTAL
                     EDM=   .55E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.223       -.25093E-05** at limit **
   2  norm          2.0894        17.216        .78740E-05   -.40515E-05
   3  Prefactor     .10000E-03    2.2560        .82131E-07** at limit **
   4  Prefactor     .10000E-03    217.03       -.48937E-05** at limit **
   5  Prefactor     .10000E-03    272.78        .53856E-05** at limit **
   6  Prefactor     .10000E-03    59.225       -.44291E-05** at limit **
   7  Prefactor     .10000E-03    305.34        .13221E-04** at limit **
   8  Prefactor     .10000E-03    19.241       -.89808E-08** at limit **
   9  Prefactor     .10000E-03    77.669        .20806E-05** at limit **
  10  norm          .10000E-03    6.3423       -.10118E-06** at limit **
  11  Prefactor     .10000E-03    34.237        .28491E-05** at limit **
  12  norm          .10000E-03    .13457       -.60915E-08** at limit **
  13  Prefactor     .10000E-03    46.707       -.25555E-06** at limit **
  14  Prefactor     46.518        62.408        .88730E-06   -.34718E-05
  15  Prefactor     .10000E-03    85.104        .34550E-05** at limit **
  16  norm          13.383        38.007        .10100E-06   -.10814E-05
  17  Prefactor     .10000E-03    165.50       -.87786E-05** at limit **
  18  Prefactor     .10000E-03    14.897       -.18292E-07** at limit **
  19  Prefactor     .10000E-03    78.381        .23872E-05** at limit **
  20  Prefactor     .10000E-03    260.48        .24576E-05** at limit **
  21  norm          2.5790        3.5143        .55331E-07    .55883E-04
  22  Prefactor     .10000E-03    130.59       -.44683E-05** at limit **
  23  Prefactor     35.165        38.440        .10183E-06    .30127E-05
  24  norm          .10000E-03    45.666        .33218E-06** at limit **
  25  norm          73.388        213.82        .34655E-05    .10514E-04
  26  norm          4.7560        2.6268        .12084E-07    .47494E-06
  27  Prefactor     28.534        24.971        .54828E-07    .10405E-05
  28  norm          .10000E-03    6.2777        .22123E-10** at limit **
  29  Normalizat    1.9472        .45048       -.12927E-05    .76312E-06
  30  Prefactor     .61680        .15486       -.65721E-07    .20228E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.08941
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.5183
  Prefactor  = 0.0001
  norm       = 13.3831
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.57904
  Prefactor  = 0.0001
  Prefactor  = 35.1645
  norm       = 0.0001
  norm       = 73.3885
  norm       = 4.75596
  Prefactor  = 28.5343
  norm       = 0.0001
  Normalizat = 1.94725
  Prefactor  = 0.616799
 **********
 **   18 **HESSE 
 **********

 FCN=   2672.392     FROM HESSE     STATUS=OK           576 CALLS     5136 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.0894        17.228        .14273E-02   -1.5419    
   3  Prefactor     .10000E-03    2.2668        .75805E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    220.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    273.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    59.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    305.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    78.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    6.3773        .12707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    34.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .14472        .36984E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    46.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     46.518        62.462        .58783E-04   -1.4343    
  15  Prefactor     .10000E-03    85.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          13.383        38.040        .10950E-03   -1.4976    
  17  Prefactor     .10000E-03    165.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    78.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    260.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.5790        3.4885        .10507E-03   -1.5387    
  22  Prefactor     .10000E-03    131.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     35.165        38.422        .67585E-04   -1.4521    
  24  norm          .10000E-03    46.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          73.388        215.63        .46862E-04   -1.3993    
  26  norm          4.7560        2.6274        .60117E-04   -1.5272    
  27  Prefactor     28.534        24.960        .75001E-04   -1.4639    
  28  norm          .10000E-03    6.2883        .12647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.9472        .54044        .33558E-03   -.65879    
  30  Prefactor     .61680        .18644        .18637E-03   -1.0688    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04785e-10
Minuit parameter uncertainties:
  1  5.37687e-07
  2  12.0039
  3  2.01299e-07
  4  0.000306254
  5  5.50622e-05
  6  6.56596e-06
  7  1.39443e-05
  8  1.55377e-06
  9  6.58513e-05
  10  9.06344e-06
  11  1.3841e-05
  12  2.94733e-08
  13  3.54e-05
  14  62.5499
  15  4.19743e-06
  16  38.1091
  17  3.89675e-05
  18  3.28661e-07
  19  1.20187e-05
  20  3.31643e-05
  21  3.48876
  22  0.000219313
  23  38.4494
  24  4.12474e-05
  25  217.988
  26  2.6275
  27  24.9686
  28  5.50191e-08
  29  0.542139
  30  0.186631
Done.

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

Extracting fit parameters...

4FGL J1438.0-3128
   Spectrum: PowerLaw
301    Prefactor:  4.652e+01  6.255e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.444e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.053e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  6.168e-01  1.866e-01  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
691   Normalization:  1.947e+00  5.421e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.70
Ra Dec: 219.508 -31.468
Photon Flux Upper Limit: 4.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.20e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/662947/likelihoodResults_581990401_582249601_4FGL_J1438.0-3128_daily_bin1322.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) = 2672.00578086
delta logL = 0.385822815938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2671.95971137
delta logL = 0.431892301095

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.478       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6657       1.0000          .0000       10.000    
     3 'Normalizat'    1.8525       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63802       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   2671.960     FROM MIGRAD    STATUS=FAILED       102 CALLS      299 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.421        430.20        .61890E-03   -.88080E-05
   2  Index         3.6684        6.8225        .41853E-02    .27142E-03
   3  Normalizat    1.8525        .51641        .34131E-03    .16654E-07
   4  Prefactor     .63793        .17819        .18333E-03   -.43409E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2671.960     FROM SIMPLEX   STATUS=UNCHANGED     87 CALLS      386 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.421        430.20        .36891E-03   -.88080E-05
   2  Index         3.6684        6.8225        .11788E-02    .27142E-03
   3  Normalizat    1.8525        .51641        .48572E-03    .16654E-07
   4  Prefactor     .63793        .17819        .17391E-03   -.43409E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2671.960     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      418 TOTAL
                     EDM=   .27E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.421        36.408        .24756E-04   -.11710E-04
   2  Index         3.6684        1.7783        .83706E-03   -.23768E-05
   3  Normalizat    1.8525        .53887        .13653E-04    .83271E-07
   4  Prefactor     .63793        .18014        .73331E-05   -.31007E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4213
  Index      = 3.66843
  Normalizat = 1.85246
  Prefactor  = 0.637931
 **********
 **   18 **HESSE 
 **********

 FCN=   2671.960     FROM HESSE     STATUS=OK            23 CALLS      441 TOTAL
                     EDM=   .15E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.421        32.375        .99025E-06   -1.5062    
   2  Index         3.6684        1.5887        .33482E-04   -.26957    
   3  Normalizat    1.8525        .53777        .27305E-05   -.68302    
   4  Prefactor     .63793        .17965        .14666E-05   -1.0601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49705e-13
Minuit parameter uncertainties:
  1  32.4296
  2  1.61896
  3  0.539514
  4  0.179811
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/662947': 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) = 2671.95970907
delta logL = 0.431894607388

Extracting fit parameters...

4FGL J1438.0-3128
   Spectrum: PowerLaw
301    Prefactor:  1.042e+01  3.243e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  3.668e+00  1.619e+00  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.053e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  6.379e-01  1.798e-01  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
691   Normalization:  1.852e+00  5.395e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.60
Ra Dec: 219.508 -31.468
Photon Index (Free Index): 3.67 +/- 1.62
Photon Flux (Free Index): 2.20e-07 +/- 2.11e-07
Energy Flux (Free Index): 3.52e-05 +/- 3.30e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/662947/cmap_HighResolution_581990401_582249601_4FGL_J1438.0-3128_daily_bin1322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.20e-02', comment='SUCCESS', energy_flux2='3.52e-05', dlogl='4.32e-01', photon_flux2='2.20e-07', job_status='DONE', time_completed='2021-09-10 03:12:48.626500', photon_index_error2='1.62', photon_index2='3.67', ts='0.70', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', photon_flux_upper_limit='4.12e-07', energy_flux_error2='3.30e-05', EG='1.95', time_epoch_completed='1631268768.63', return_code='0', job_id='662947', GAL2='0.64', EG2='1.85', return_code2='0', photon_flux_error2='2.11e-07', ts2='1.60', photon_index='2.44' WHERE bin_id='1322' AND source_name='4FGL J1438.0-3128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:12:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 662947: <4FGL_J1438.0-3128_daily_bin1322> in cluster <slac> Done

Job <4FGL_J1438.0-3128_daily_bin1322> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 03:01:21 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:01:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 03:01:22 2021
Terminated at Fri Sep 10 03:12:49 2021
Results reported at Fri Sep 10 03:12:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.0-3128_daily_bin1322 219.508 -31.4679 581990401 582249601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1438.0-3128 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   633.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   686 sec.
    Turnaround time :                            688 sec.

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

