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


Performing analysis on: 4FGL_J1438.0-3128_daily_bin1249
RA = 219.508, Dec = -31.4679
tmin = 563068801, tmax = 563328001
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='662841', job_status='RUN', time_executed='2021-09-10 03:04:30.200019', time_epoch_executed='1631268270.2' WHERE source_name='4FGL J1438.0-3128' and cadence='daily' and bin_id='1249'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/662841

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/662841/ft1_4FGL_J1438.0-3128_daily_bin1249.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/662841/ft2_4FGL_J1438.0-3128_daily_bin1249.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/662841/ft1_4FGL_J1438.0-3128_daily_bin1249.fits outfile=/scratch/kocevski/662841/ft1_filteredMKT_4FGL_J1438.0-3128_daily_bin1249.fits ra=219.508 dec=-31.4679 rad=12.0 tmin=563068801.0 tmax=563328001.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 3.81
user 3.28
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/662841/ft2_4FGL_J1438.0-3128_daily_bin1249.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/662841/ft1_filteredMKT_4FGL_J1438.0-3128_daily_bin1249.fits evtable="EVENTS" outfile="/scratch/kocevski/662841/ft1_filtered_4FGL_J1438.0-3128_daily_bin1249.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.65
user 0.32
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/662841/ft1_filtered_4FGL_J1438.0-3128_daily_bin1249.fits" evtable="EVENTS" scfile=/scratch/kocevski/662841/ft2_4FGL_J1438.0-3128_daily_bin1249.fits sctable="SC_DATA" outfile=/scratch/kocevski/662841/ltcube_563068801_563328001_4FGL_J1438.0-3128_daily_bin1249.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/662841/ft2_4FGL_J1438.0-3128_daily_bin1249.fits
.....................!
real 12.37
user 11.96
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/662841/ft1_filtered_4FGL_J1438.0-3128_daily_bin1249.fits evtable="EVENTS" scfile=/scratch/kocevski/662841/ft2_4FGL_J1438.0-3128_daily_bin1249.fits sctable="SC_DATA" expcube=/scratch/kocevski/662841/ltcube_563068801_563328001_4FGL_J1438.0-3128_daily_bin1249.fits outfile=/scratch/kocevski/662841/expmap_563068801_563328001_4FGL_J1438.0-3128_daily_bin1249.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/662841/ltcube_563068801_563328001_4FGL_J1438.0-3128_daily_bin1249.fits
.....................!
real 189.15
user 184.63
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 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/662841/ft1_filtered_4FGL_J1438.0-3128_daily_bin1249.fits scfile=/scratch/kocevski/662841/ft2_4FGL_J1438.0-3128_daily_bin1249.fits outfile=/scratch/kocevski/662841/cmap_563068801_563328001_4FGL_J1438.0-3128_daily_bin1249.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/662841/ft1_filtered_4FGL_J1438.0-3128_daily_bin1249.fits scfile=/scratch/kocevski/662841/ft2_4FGL_J1438.0-3128_daily_bin1249.fits outfile=/scratch/kocevski/662841/cmap_HighResolution_563068801_563328001_4FGL_J1438.0-3128_daily_bin1249.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/662841/ft1_filtered_4FGL_J1438.0-3128_daily_bin1249.fits evtable="EVENTS" scfile=/scratch/kocevski/662841/ft2_4FGL_J1438.0-3128_daily_bin1249.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/662841/Model_4FGL_J1438.0-3128_daily_bin1249.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/662841/ft1_filtered_4FGL_J1438.0-3128_daily_bin1249.fits............................!
real 23.01
user 21.75
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/662841/ft1_filtered_4FGL_J1438.0-3128_daily_bin1249.fits', '/scratch/kocevski/662841/ft2_4FGL_J1438.0-3128_daily_bin1249.fits', expMap='/scratch/kocevski/662841/expmap_563068801_563328001_4FGL_J1438.0-3128_daily_bin1249.fits', expCube='/scratch/kocevski/662841/ltcube_563068801_563328001_4FGL_J1438.0-3128_daily_bin1249.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/662841/Model_4FGL_J1438.0-3128_daily_bin1249.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/662841/ft1_filtered_4FGL_J1438.0-3128_daily_bin1249.fits
Spacecraft file(s): /scratch/kocevski/662841/ft2_4FGL_J1438.0-3128_daily_bin1249.fits
Exposure map: /scratch/kocevski/662841/expmap_563068801_563328001_4FGL_J1438.0-3128_daily_bin1249.fits
Exposure cube: /scratch/kocevski/662841/ltcube_563068801_563328001_4FGL_J1438.0-3128_daily_bin1249.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/662841/Model_4FGL_J1438.0-3128_daily_bin1249.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) = 597.908812103

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    181.93       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.6736       1.0000         .10000E-03   10000.    
     4 'Prefactor '    112.40       1.0000         .10000E-03   10000.    
     5 'Prefactor '    98.961       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6996       1.0000         .10000E-03   10000.    
     7 'Prefactor '    359.82       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .69244E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.8712       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11467E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16407E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    16 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    33.582       1.0000         .10000E-03   10000.    
    18 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .50598E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    628.88       1.0000         .10000E-03   10000.    
    22 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    23 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    24 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    25 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    26 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .61731E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .25926E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    .38674       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=   580.5988     FROM MIGRAD    STATUS=CONVERGED    705 CALLS     4517 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     181.89        147.81       -.99304E-06    .61822E-04
   2  norm          .10000E-03    12.789       -.73414E-06** at limit **
   3  Prefactor     5.7268        13.413        .30427E-05    .36411E-03
   4  Prefactor     112.49        126.56       -.27416E-05    .10718E-03
   5  Prefactor     98.912        145.66        .19239E-05    .45976E-04
   6  Prefactor     5.5305        7691.2       -.14316E-03    .17337E-05
   7  Prefactor     356.75        1292.9        .15298E-04    .69707E-05
   8  Prefactor     .10000E-03    448.41        .65049E-05** at limit **
   9  Prefactor     .10000E-03    24.512       -.63605E-06** at limit **
  10  norm          .10000E-03    10.586       -.78778E-07** at limit **
  11  Prefactor     .10000E-03    73.622        .55755E-06** at limit **
  12  norm          1.8712        .69293       -.40046E-07    .95443E-03
  13  Prefactor     .10000E-03    106.58        .13928E-06** at limit **
  14  Prefactor     .10000E-03    211.54       -.60584E-06** at limit **
  15  Prefactor    10000.0        8039.4       -.82726E-05** at limit **
  16  norm          .10000E-03    63.039       -.86149E-06** at limit **
  17  Prefactor     .10038E-03    6361.0        .88842E-03** at limit **
  18  Prefactor    10000.0        2258.6       -.54232E-05** at limit **
  19  Prefactor     .10000E-03    630.64        .33381E-05** at limit **
  20  Prefactor     .10000E-03    194.11       -.10362E-05** at limit **
  21  norm          629.14        531.89        .20527E-04    .75439E-04
  22  Prefactor    10000.0        1409.9       -.53895E-05** at limit **
  23  Prefactor    10000.0        6626.3       -.24221E-05** at limit **
  24  norm         10000.0        6154.9       -.23010E-05** at limit **
  25  norm         10000.0        8939.4       -.11903E-04** at limit **
  26  norm         10000.0        1415.2       -.27168E-05** at limit **
  27  Prefactor     .10000E-03    8211.2        .35353E-05** at limit **
  28  norm          .10000E-03    611.78        .50066E-06** at limit **
  29  Normalizat    .10000E-01    .47626       -.55168E-04** at limit **
  30  Prefactor     .38693        .22448       -.60722E-05    .31452E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 181.885
  norm       = 0.0001
  Prefactor  = 5.72679
  Prefactor  = 112.488
  Prefactor  = 98.9122
  Prefactor  = 5.53049
  Prefactor  = 356.746
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.87119
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 0.000100384
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 629.144
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  norm       = 10000
  norm       = 10000
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.386926
 **********
 **   18 **HESSE 
 **********

 FCN=   580.5988     FROM HESSE     STATUS=OK           564 CALLS     5081 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     181.89        147.96        .14964E-03   -1.3002    
   2  norm          .10000E-03    12.795        .84212E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.7268        13.834        .11038E-03   -1.5229    
   4  Prefactor     112.49        127.05        .18972E-03   -1.3583    
   5  Prefactor     98.912        145.92        .20205E-03   -1.3716    
   6  Prefactor     5.5305        8048.2        .72258E-02   -1.5238    
   7  Prefactor     356.75        1366.2        .10739E-03   -1.1908    
   8  Prefactor     .10000E-03    452.29        .20986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    24.521        .11661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    10.587        .76609E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    73.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.8712        .69621        .11499E-04   -1.5434    
  13  Prefactor     .10000E-03    106.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    211.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor    10000.0        8033.8        .20461E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    63.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10038E-03    6155.8        .34575E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor    10000.0        2257.8        .20431E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    630.78        .19186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    194.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          629.14        537.66        .82386E-04   -1.0637    
  22  Prefactor    10000.0        1410.3        .19878E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor    10000.0        6626.0        .21232E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm         10000.0        6154.9        .21106E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm         10000.0        8939.9        .19006E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm         10000.0        1414.8        .20956E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    8211.7        .21049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    611.79        .21450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    .46325        .92486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .38693        .22561        .18947E-03   -1.1748    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00792e-09
Minuit parameter uncertainties:
  1  148.263
  2  2.90729e-05
  3  13.842
  4  127.364
  5  146.456
  6  432.602
  7  1460.27
  8  0.00127581
  9  6.52531e-05
  10  8.55033e-06
  11  4.71705e-05
  12  0.696217
  13  8.56092e-06
  14  0.000140009
  15  0.00833434
  16  0.000102386
  17  0.716243
  18  0.00306784
  19  0.000713268
  20  0.000185565
  21  542.154
  22  0.00216913
  23  0.00140919
  24  0.00102435
  25  0.014569
  26  0.00108824
  27  0.00344661
  28  0.000137571
  29  4.74792e-06
  30  0.22613
Done.

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

Extracting fit parameters...

4FGL J1438.0-3128
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.400e-04  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:  3.869e-01  2.261e-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.000e-02  4.748e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 219.508 -31.468
Photon Flux Upper Limit: 2.71e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.10e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/662841/likelihoodResults_563068801_563328001_4FGL_J1438.0-3128_daily_bin1249.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) = 580.598823693
delta logL = -2.35165152844e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 580.598800522
delta logL = -3.45949388247e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9099       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .38692       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   580.5988     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      281 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10652E-03    159.49        .18142E-01** at limit **
   2  Index         2.7771        5.9705        .50000        .18152E-05
   3  Normalizat    .10000E-01    .99750E-03    .92521E-02** at limit **
   4  Prefactor     .38692        .71416E-02    .18941E-03    .13505E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010652
  Index      = 2.77707
  Normalizat = 0.01
  Prefactor  = 0.386922
 **********
 **   18 **HESSE 
 **********

 FCN=   580.5988     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      310 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10652E-03    939.11        .28960E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7771        5.6666        .50000       -.46071    
   3  Normalizat    .10000E-01    .61011E-02    .18504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .38692        .17660E-01    .75765E-05   -1.1748    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.27341e-10
Minuit parameter uncertainties:
  1  0.159058
  2  1274.78
  3  2.08908e-08
  4  0.0176607
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/662841': 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) = 580.598800293
delta logL = -1.16981823339e-07

Extracting fit parameters...

4FGL J1438.0-3128
   Spectrum: PowerLaw
301    Prefactor:  1.065e-04  1.591e-01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.777e+00  1.275e+03  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:  3.869e-01  1.766e-02  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.000e-02  2.089e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 219.508 -31.468

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/662841/cmap_HighResolution_563068801_563328001_4FGL_J1438.0-3128_daily_bin1249.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.10e-01', job_status='DONE', photon_flux_upper_limit='2.71e-06', time_completed='2021-09-10 03:11:15.527080', job_id='662841', GAL2='0.39', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631268675.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.39', dlogl='-1.17e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1249' AND source_name='4FGL J1438.0-3128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:11:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 662841: <4FGL_J1438.0-3128_daily_bin1249> in cluster <slac> Done

Job <4FGL_J1438.0-3128_daily_bin1249> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 03:01:13 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:01:15 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:15 2021
Terminated at Fri Sep 10 03:11:16 2021
Results reported at Fri Sep 10 03:11:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.0-3128_daily_bin1249 219.508 -31.4679 563068801 563328001 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 :                                   400.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             232.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   600 sec.
    Turnaround time :                            603 sec.

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

