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


Performing analysis on: 4FGL_J1438.0-3128_daily_bin1187
RA = 219.508, Dec = -31.4679
tmin = 546998401, tmax = 547257601
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='662752', job_status='RUN', time_executed='2021-09-10 03:01:48.587266', time_epoch_executed='1631268108.59' WHERE source_name='4FGL J1438.0-3128' and cadence='daily' and bin_id='1187'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/662752

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/662752/ft1_4FGL_J1438.0-3128_daily_bin1187.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/662752/ft2_4FGL_J1438.0-3128_daily_bin1187.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/662752/ft1_4FGL_J1438.0-3128_daily_bin1187.fits outfile=/scratch/kocevski/662752/ft1_filteredMKT_4FGL_J1438.0-3128_daily_bin1187.fits ra=219.508 dec=-31.4679 rad=12.0 tmin=546998401.0 tmax=547257601.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.58
user 3.36
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/662752/ft2_4FGL_J1438.0-3128_daily_bin1187.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/662752/ft1_filteredMKT_4FGL_J1438.0-3128_daily_bin1187.fits evtable="EVENTS" outfile="/scratch/kocevski/662752/ft1_filtered_4FGL_J1438.0-3128_daily_bin1187.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.51
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/662752/ft1_filtered_4FGL_J1438.0-3128_daily_bin1187.fits" evtable="EVENTS" scfile=/scratch/kocevski/662752/ft2_4FGL_J1438.0-3128_daily_bin1187.fits sctable="SC_DATA" outfile=/scratch/kocevski/662752/ltcube_546998401_547257601_4FGL_J1438.0-3128_daily_bin1187.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/662752/ft2_4FGL_J1438.0-3128_daily_bin1187.fits
.....................!
real 11.82
user 11.48
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/662752/ft1_filtered_4FGL_J1438.0-3128_daily_bin1187.fits evtable="EVENTS" scfile=/scratch/kocevski/662752/ft2_4FGL_J1438.0-3128_daily_bin1187.fits sctable="SC_DATA" expcube=/scratch/kocevski/662752/ltcube_546998401_547257601_4FGL_J1438.0-3128_daily_bin1187.fits outfile=/scratch/kocevski/662752/expmap_546998401_547257601_4FGL_J1438.0-3128_daily_bin1187.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/662752/ltcube_546998401_547257601_4FGL_J1438.0-3128_daily_bin1187.fits
.....................!
real 191.34
user 186.46
sys 4.33

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/662752/ft1_filtered_4FGL_J1438.0-3128_daily_bin1187.fits scfile=/scratch/kocevski/662752/ft2_4FGL_J1438.0-3128_daily_bin1187.fits outfile=/scratch/kocevski/662752/cmap_546998401_547257601_4FGL_J1438.0-3128_daily_bin1187.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/662752/ft1_filtered_4FGL_J1438.0-3128_daily_bin1187.fits scfile=/scratch/kocevski/662752/ft2_4FGL_J1438.0-3128_daily_bin1187.fits outfile=/scratch/kocevski/662752/cmap_HighResolution_546998401_547257601_4FGL_J1438.0-3128_daily_bin1187.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/662752/ft1_filtered_4FGL_J1438.0-3128_daily_bin1187.fits evtable="EVENTS" scfile=/scratch/kocevski/662752/ft2_4FGL_J1438.0-3128_daily_bin1187.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/662752/Model_4FGL_J1438.0-3128_daily_bin1187.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/662752/ft1_filtered_4FGL_J1438.0-3128_daily_bin1187.fits.....................!
real 90.59
user 89.10
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.451       1.0000         .10000E-03   10000.    
     4 'Prefactor '    39.936       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10420E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.306       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .20922E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.905       1.0000         .10000E-03   10000.    
    10 'norm      '    .35378E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    38.164       1.0000         .10000E-03   10000.    
    12 'norm      '    .76104       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0332       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.9086       1.0000         .10000E-03   10000.    
    17 'Prefactor '    169.53       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    40.112       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.929       1.0000         .10000E-03   10000.    
    21 'norm      '    .14510E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.181       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.1306       1.0000         .10000E-03   10000.    
    24 'norm      '    9.5130       1.0000         .10000E-03   10000.    
    25 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .99588       1.0000         .10000E-03   10000.    
    27 'Prefactor '    20.846       1.0000         .10000E-03   10000.    
    28 'norm      '    3.9245       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3588       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .93856       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=   4989.542     FROM MIGRAD    STATUS=CONVERGED    778 CALLS     4635 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    63.704        .66642E-06** at limit **
   2  norm          .10000E-03    46.510       -.63929E-06** at limit **
   3  Prefactor     10.456        9.4083        .42149E-06    .84269E-04
   4  Prefactor     39.994        125.06       -.55419E-05   -.29375E-04
   5  Prefactor     .10000E-03    79.180        .84680E-06** at limit **
   6  Prefactor     27.347        43.923       -.14035E-06   -.26061E-05
   7  Prefactor     .10008E-03    6309.2        .37944E-04** at limit **
   8  Prefactor     .10000E-03    11.367        .50945E-07** at limit **
   9  Prefactor     26.847        38.947       -.87666E-06   -.71417E-04
  10  norm          .10000E-03    18.829        .59551E-05** at limit **
  11  Prefactor     38.001        65.141       -.22506E-05   -.10710E-03
  12  norm          .76097        .58478        .65807E-07    .86167E-04
  13  Prefactor     .10000E-03    51.849       -.21395E-06** at limit **
  14  Prefactor     .90566        350.61        .29604E-05   -.20747E-04
  15  Prefactor     .10000E-03    45.083       -.60505E-07** at limit **
  16  norm          6.8994        34.650        .60225E-06   -.75378E-05
  17  Prefactor     169.48        180.24        .47243E-07   -.10441E-04
  18  Prefactor     .10000E-03    14.412        .19186E-06** at limit **
  19  Prefactor     40.141        66.922        .10049E-06   -.65104E-04
  20  Prefactor     17.917        210.76        .11256E-05   -.34215E-05
  21  norm          .10000E-03    1.6386       -.12318E-06** at limit **
  22  Prefactor     23.105        30.943        .14026E-05   -.17686E-03
  23  Prefactor     4.1328        24.370        .38498E-06   -.15854E-04
  24  norm          9.5178        11.989        .10535E-06   -.68166E-04
  25  norm          .10000E-03    41.858        .18573E-06** at limit **
  26  norm          .99598        .96272        .10462E-06    .14764E-03
  27  Prefactor     20.843        12.917       -.13489E-06   -.40187E-04
  28  norm          3.9249        5.8841        .45887E-06    .51460E-04
  29  Normalizat    1.3583        .41626        .20262E-05   -.12622E-03
  30  Prefactor     .93865        .13216       -.11320E-05   -.15175E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.4558
  Prefactor  = 39.9938
  Prefactor  = 0.0001
  Prefactor  = 27.3471
  Prefactor  = 0.000100083
  Prefactor  = 0.0001
  Prefactor  = 26.847
  norm       = 0.000100001
  Prefactor  = 38.0009
  norm       = 0.760975
  Prefactor  = 0.0001
  Prefactor  = 0.90566
  Prefactor  = 0.0001
  norm       = 6.89937
  Prefactor  = 169.478
  Prefactor  = 0.0001
  Prefactor  = 40.1414
  Prefactor  = 17.9174
  norm       = 0.000100002
  Prefactor  = 23.1045
  Prefactor  = 4.13279
  norm       = 9.51778
  norm       = 0.0001
  norm       = 0.995984
  Prefactor  = 20.8427
  norm       = 3.92489
  Normalizat = 1.3583
  Prefactor  = 0.938654
 **********
 **   18 **HESSE 
 **********

 FCN=   4989.542     FROM HESSE     STATUS=OK           590 CALLS     5225 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    63.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    47.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.456        9.4900        .12394E-03   -1.5061    
   4  Prefactor     39.994        126.25        .63428E-04   -1.4442    
   5  Prefactor     .10000E-03    79.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     27.347        43.926        .76665E-04   -1.4662    
   7  Prefactor     .10008E-03    6320.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.847        38.979        .77233E-04   -1.4671    
  10  norm          .10000E-03    19.260        .34843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     38.001        66.614        .32439E-03   -1.4474    
  12  norm          .76097        .57186        .45787E-04   -1.5534    
  13  Prefactor     .10000E-03    51.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .90566        349.91        .78535E-02   -1.5518    
  15  Prefactor     .10000E-03    45.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.8994        34.637        .15264E-03   -1.5183    
  17  Prefactor     169.48        179.67        .15492E-03   -1.3097    
  18  Prefactor     .10000E-03    14.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     40.141        67.036        .63289E-04   -1.4440    
  20  Prefactor     17.917        211.08        .94590E-04   -1.4861    
  21  norm          .10000E-03    2.5420        .16021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     23.105        31.449        .83196E-04   -1.4746    
  23  Prefactor     4.1328        24.025        .19834E-03   -1.5301    
  24  norm          9.5178        12.027        .12993E-03   -1.5091    
  25  norm          .10000E-03    41.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .99598        .92368        .64468E-03   -1.5508    
  27  Prefactor     20.843        12.853        .87726E-04   -1.4795    
  28  norm          3.9249        5.8627        .18712E-03   -1.5312    
  29  Normalizat    1.3583        .47534        .46702E-03   -.81842    
  30  Prefactor     .93865        .15287        .17316E-03   -.94803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41244e-08
Minuit parameter uncertainties:
  1  7.76413e-05
  2  9.32428e-05
  3  9.49138
  4  127.109
  5  0.000115048
  6  43.9781
  7  0.0310436
  8  2.38741e-06
  9  39.0162
  10  0.000250435
  11  66.7446
  12  0.571861
  13  3.33491e-05
  14  35.8138
  15  5.96247e-06
  16  30.9459
  17  180.259
  18  1.39474e-05
  19  67.1618
  20  123.544
  21  0.000142817
  22  31.4717
  23  19.9407
  24  12.0299
  25  3.08041e-06
  26  0.923693
  27  12.855
  28  5.86359
  29  0.476891
  30  0.152943
Done.

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

Extracting fit parameters...

4FGL J1438.0-3128
   Spectrum: PowerLaw
301    Prefactor:  9.057e-01  3.581e+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:  9.387e-01  1.529e-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.358e+00  4.769e-01  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.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.73e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/662752/likelihoodResults_546998401_547257601_4FGL_J1438.0-3128_daily_bin1187.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) = 4989.48510144
delta logL = 0.0566943338308

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4989.4827651
delta logL = 0.0590306792892

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.049       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7724       1.0000          .0000       10.000    
     3 'Normalizat'    1.3629       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93458       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=   4989.483     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      307 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.052        41.670        .11089E-03   -.14460E-03
   2  Index         1.7724        1.2207        .14030E-01   -.69143E-04
   3  Normalizat    1.3630        .44723        .46630E-03    .98645E-04
   4  Prefactor     .93458        .14270        .17348E-03    .33104E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.0519
  Index      = 1.77237
  Normalizat = 1.36298
  Prefactor  = 0.93458
 **********
 **   18 **HESSE 
 **********

 FCN=   4989.483     FROM HESSE     STATUS=OK            23 CALLS      330 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.052        41.842        .22177E-04   -1.4985    
   2  Index         1.7724        1.2262        .56118E-03   -.70171    
   3  Normalizat    1.3630        .44751        .18652E-04   -.81705    
   4  Prefactor     .93458        .14279        .34695E-04   -.94943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.43935e-10
Minuit parameter uncertainties:
  1  41.936
  2  1.24832
  3  0.448801
  4  0.14285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/662752': 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) = 4989.48276504
delta logL = 0.0590307358716

Extracting fit parameters...

4FGL J1438.0-3128
   Spectrum: PowerLaw
301    Prefactor:  1.305e+01  4.194e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  1.772e+00  1.248e+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:  9.346e-01  1.429e-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.363e+00  4.488e-01  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/662752/cmap_HighResolution_546998401_547257601_4FGL_J1438.0-3128_daily_bin1187.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.73e-02', job_status='DONE', photon_flux_upper_limit='2.23e-07', time_completed='2021-09-10 03:16:51.002658', job_id='662752', GAL2='0.93', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1631269011.0', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='5.90e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1187' AND source_name='4FGL J1438.0-3128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:16:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 662752: <4FGL_J1438.0-3128_daily_bin1187> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.0-3128_daily_bin1187 219.508 -31.4679 546998401 547257601 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 :                                   895.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             333.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            943 sec.

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

