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


Performing analysis on: 4FGL_J1438.0-3128_daily_bin1303
RA = 219.508, Dec = -31.4679
tmin = 577065601, tmax = 577324801
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='662920', job_status='RUN', time_executed='2021-09-10 03:02:07.514493', time_epoch_executed='1631268127.51' WHERE source_name='4FGL J1438.0-3128' and cadence='daily' and bin_id='1303'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/662920

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/662920/ft1_4FGL_J1438.0-3128_daily_bin1303.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/662920/ft2_4FGL_J1438.0-3128_daily_bin1303.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/662920/ft1_4FGL_J1438.0-3128_daily_bin1303.fits outfile=/scratch/kocevski/662920/ft1_filteredMKT_4FGL_J1438.0-3128_daily_bin1303.fits ra=219.508 dec=-31.4679 rad=12.0 tmin=577065601.0 tmax=577324801.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.09
user 2.88
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/662920/ft2_4FGL_J1438.0-3128_daily_bin1303.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/662920/ft1_filteredMKT_4FGL_J1438.0-3128_daily_bin1303.fits evtable="EVENTS" outfile="/scratch/kocevski/662920/ft1_filtered_4FGL_J1438.0-3128_daily_bin1303.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/662920/ft1_filtered_4FGL_J1438.0-3128_daily_bin1303.fits" evtable="EVENTS" scfile=/scratch/kocevski/662920/ft2_4FGL_J1438.0-3128_daily_bin1303.fits sctable="SC_DATA" outfile=/scratch/kocevski/662920/ltcube_577065601_577324801_4FGL_J1438.0-3128_daily_bin1303.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/662920/ft2_4FGL_J1438.0-3128_daily_bin1303.fits
.....................!
real 12.29
user 11.96
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/662920/ft1_filtered_4FGL_J1438.0-3128_daily_bin1303.fits evtable="EVENTS" scfile=/scratch/kocevski/662920/ft2_4FGL_J1438.0-3128_daily_bin1303.fits sctable="SC_DATA" expcube=/scratch/kocevski/662920/ltcube_577065601_577324801_4FGL_J1438.0-3128_daily_bin1303.fits outfile=/scratch/kocevski/662920/expmap_577065601_577324801_4FGL_J1438.0-3128_daily_bin1303.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/662920/ltcube_577065601_577324801_4FGL_J1438.0-3128_daily_bin1303.fits
.....................!
real 190.60
user 185.72
sys 4.49

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/662920/ft1_filtered_4FGL_J1438.0-3128_daily_bin1303.fits scfile=/scratch/kocevski/662920/ft2_4FGL_J1438.0-3128_daily_bin1303.fits outfile=/scratch/kocevski/662920/cmap_577065601_577324801_4FGL_J1438.0-3128_daily_bin1303.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/662920/ft1_filtered_4FGL_J1438.0-3128_daily_bin1303.fits scfile=/scratch/kocevski/662920/ft2_4FGL_J1438.0-3128_daily_bin1303.fits outfile=/scratch/kocevski/662920/cmap_HighResolution_577065601_577324801_4FGL_J1438.0-3128_daily_bin1303.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.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/662920/ft1_filtered_4FGL_J1438.0-3128_daily_bin1303.fits evtable="EVENTS" scfile=/scratch/kocevski/662920/ft2_4FGL_J1438.0-3128_daily_bin1303.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/662920/Model_4FGL_J1438.0-3128_daily_bin1303.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/662920/ft1_filtered_4FGL_J1438.0-3128_daily_bin1303.fits.............................!
real 25.40
user 24.09
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/662920/ft1_filtered_4FGL_J1438.0-3128_daily_bin1303.fits', '/scratch/kocevski/662920/ft2_4FGL_J1438.0-3128_daily_bin1303.fits', expMap='/scratch/kocevski/662920/expmap_577065601_577324801_4FGL_J1438.0-3128_daily_bin1303.fits', expCube='/scratch/kocevski/662920/ltcube_577065601_577324801_4FGL_J1438.0-3128_daily_bin1303.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/662920/Model_4FGL_J1438.0-3128_daily_bin1303.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/662920/ft1_filtered_4FGL_J1438.0-3128_daily_bin1303.fits
Spacecraft file(s): /scratch/kocevski/662920/ft2_4FGL_J1438.0-3128_daily_bin1303.fits
Exposure map: /scratch/kocevski/662920/expmap_577065601_577324801_4FGL_J1438.0-3128_daily_bin1303.fits
Exposure cube: /scratch/kocevski/662920/ltcube_577065601_577324801_4FGL_J1438.0-3128_daily_bin1303.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/662920/Model_4FGL_J1438.0-3128_daily_bin1303.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9903       1.0000         .10000E-03   10000.    
     2 'norm      '    2.0324       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0206       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.6941       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.7979       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6487       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.8497       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .52114       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8888       1.0000         .10000E-03   10000.    
    10 'norm      '    .52615       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6692       1.0000         .10000E-03   10000.    
    12 'norm      '    2.2681       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8725       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20820E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .82691       1.0000         .10000E-03   10000.    
    16 'norm      '    .71263E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.0246       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .82658E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.046       1.0000         .10000E-03   10000.    
    20 'Prefactor '    147.60       1.0000         .10000E-03   10000.    
    21 'norm      '    3.7673       1.0000         .10000E-03   10000.    
    22 'Prefactor '    57.275       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .22204E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    35.606       1.0000         .10000E-03   10000.    
    25 'norm      '    .36604       1.0000         .10000E-03   10000.    
    26 'norm      '    .16242       1.0000         .10000E-03   10000.    
    27 'Prefactor '    11.864       1.0000         .10000E-03   10000.    
    28 'norm      '    .10223E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.7128       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .43324       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   678.3824     FROM MIGRAD    STATUS=CONVERGED    205 CALLS      457 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9903        1.0013         .0000         .0000    
   2  norm          2.0324        1.0340         .0000         .0000    
   3  Prefactor     1.0206        1.2913         .0000         .0000    
   4  Prefactor     10.161        1.0252        .70474E-06   -.27955E-02
   5  Prefactor     5.7979        1.0038         .0000         .0000    
   6  Prefactor     7.6487        1.0021         .0000         .0000    
   7  Prefactor     8.9138        1.0052        .99195E-07   -.36519E-03
   8  Prefactor     .50825E-03    .32244        .27647E-04** at limit **
   9  Prefactor     .38086E-03    .14326       -.24977E-05** at limit **
  10  norm          .10000E-03    .32359        .29669E-06** at limit **
  11  Prefactor     .13821E-03    .97229E-01    .46324E-04** at limit **
  12  norm          2.1287        .99459        .33212E-06   -.43317E-04
  13  Prefactor     .26233E-03    .89870E-01   -.12201E-04** at limit **
  14  Prefactor     .10000E-03    .20824       -.97442E-05** at limit **
  15  Prefactor     .10000E-03    .39311        .33658E-04** at limit **
  16  norm          .10000E-03    .21965        .17197E-05** at limit **
  17  Prefactor     .16115E-03    .50284E-01    .70826E-04** at limit **
  18  Prefactor     .10350E-03    .21207        .25111E-04** at limit **
  19  Prefactor     67.918        2.0530       -.77458E-04   -.10731E-03
  20  Prefactor     149.27        1.0056       -.30413E-05    .28759E-01
  21  norm          2.9973        .90010        .57787E-05    .20919E-03
  22  Prefactor     57.440        1.0015       -.57859E-05   -.24527E-01
  23  Prefactor     .10000E-03    .25333        .71135E-05** at limit **
  24  norm          35.941        1.0048       -.44341E-05    .18391E-02
  25  norm          .10000E-03    .28681       -.66060E-05** at limit **
  26  norm          .17398        .40884        .59617E-05   -.60279E-04
  27  Prefactor     11.930        1.0037       -.18760E-05   -.23440E-04
  28  norm          .10000E-03    .20571       -.19493E-06** at limit **
  29  Normalizat    1.6630        1.0208        .75715E-05   -.74355E-05
  30  Prefactor     .43594        .77118        .39108E-05   -.20029E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.99031
  norm       = 2.0324
  Prefactor  = 1.02056
  Prefactor  = 10.1614
  Prefactor  = 5.79789
  Prefactor  = 7.6487
  Prefactor  = 8.91378
  Prefactor  = 0.00050825
  Prefactor  = 0.000380861
  norm       = 0.0001
  Prefactor  = 0.000138209
  norm       = 2.12874
  Prefactor  = 0.000262335
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000161147
  Prefactor  = 0.000103502
  Prefactor  = 67.9183
  Prefactor  = 149.265
  norm       = 2.99727
  Prefactor  = 57.4396
  Prefactor  = 0.0001
  norm       = 35.9406
  norm       = 0.0001
  norm       = 0.173984
  Prefactor  = 11.9301
  norm       = 0.0001
  Normalizat = 1.66303
  Prefactor  = 0.43594
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   678.3824     FROM HESSE     STATUS=FAILED        11 CALLS      468 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     490.77        480.76         .0000       -1.5076    
   2  norm          2.0324        1.0340         .0000       -1.5423    
   3  Prefactor     1.0206        1.2913         .0000       -1.5506    
   4  Prefactor     10.161        1.0252        .70474E-06   -1.5070    
   5  Prefactor     5.7979        1.0038         .0000       -1.5226    
   6  Prefactor     7.6487        1.0021         .0000       -1.5155    
   7  Prefactor     8.9138        1.0052        .99195E-07   -1.5111    
   8  Prefactor     .50825E-03    .32244        .27647E-04   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .38086E-03    .14326       -.24977E-05   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .32359        .29669E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .13821E-03    .97229E-01    .46324E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1287        .99459        .33212E-06   -1.5416    
  13  Prefactor     .26233E-03    .89870E-01   -.12201E-04   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .20824       -.97442E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .39311        .33658E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .21965        .17197E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .16115E-03    .50284E-01    .70826E-04   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10350E-03    .21207        .25111E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     67.918        2.0530       -.77458E-04   -1.4058    
  20  Prefactor     149.27        1.0056       -.30413E-05   -1.3258    
  21  norm          2.9973        .90010        .57787E-05   -1.5362    
  22  Prefactor     57.440        1.0015       -.57859E-05   -1.4191    
  23  Prefactor     .10000E-03    .25333        .71135E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          35.941        1.0048       -.44341E-05   -1.4508    
  25  norm          .10000E-03    .28681       -.66060E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .17398        .40884        .59617E-05   -1.5625    
  27  Prefactor     11.930        1.0037       -.18760E-05   -1.5017    
  28  norm          .10000E-03    .20571       -.19493E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.6630        1.0208        .75715E-05   -.73295    
  30  Prefactor     .43594        .77118        .39108E-05   -1.1501    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.16635e-09
Minuit parameter uncertainties:
  1  1.00126
  2  1.03401
  3  1.29138
  4  1.02516
  5  1.00377
  6  1.00215
  7  1.00522
  8  0.0229466
  9  0.0126863
  10  4.18152e-06
  11  0.0038549
  12  0.994594
  13  0.00763915
  14  5.05956e-06
  15  2.89874e-05
  16  2.64639e-06
  17  0.00350697
  18  0.00172364
  19  2.053
  20  1.00556
  21  0.900102
  22  1.00147
  23  1.11222e-07
  24  1.00477
  25  9.79105e-07
  26  0.408848
  27  1.00366
  28  1.72878e-08
  29  1.03415
  30  0.7908
Done.

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

Extracting fit parameters...

4FGL J1438.0-3128
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  5.060e-06  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:  4.359e-01  7.908e-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.663e+00  1.034e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/662920/likelihoodResults_577065601_577324801_4FGL_J1438.0-3128_daily_bin1303.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) = 678.38243056
delta logL = -3.02476134948e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 678.38240116
delta logL = -8.48062086334e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18766E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9406       1.0000          .0000       10.000    
     3 'Normalizat'    1.6629       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .43596       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=   678.3824     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      282 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10839E-03    108.51        .18142E-01** at limit **
   2  Index         2.7777        6.2979        .50000        .29012E-05
   3  Normalizat    1.6630        .33522E-01    .46851E-03    .45194E-06
   4  Prefactor     .43594        .68263E-02    .17315E-03   -.19574E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000108386
  Index      = 2.77773
  Normalizat = 1.66304
  Prefactor  = 0.435939
 **********
 **   18 **HESSE 
 **********

 FCN=   678.3824     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      311 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10839E-03    775.31        .24156E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7777        6.3587        .50000       -.46056    
   3  Normalizat    1.6630        .91342E-01    .18741E-04   -.73295    
   4  Prefactor     .43594        .18602E-01    .69259E-05   -1.1501    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.79604e-09
Minuit parameter uncertainties:
  1  0.163422
  2  1326.97
  3  0.0913513
  4  0.0186024
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/662920': 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) = 678.382400511
delta logL = -1.98309521693e-07

Extracting fit parameters...

4FGL J1438.0-3128
   Spectrum: PowerLaw
301    Prefactor:  1.084e-04  1.634e-01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.778e+00  1.327e+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:  4.359e-01  1.860e-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.663e+00  9.135e-02  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/662920/cmap_HighResolution_577065601_577324801_4FGL_J1438.0-3128_daily_bin1303.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-01', job_status='DONE', photon_flux_upper_limit='1.55e-06', time_completed='2021-09-10 03:08:02.062395', job_id='662920', GAL2='0.44', fit_tolerance='1e-08', EG2='1.66', EG='1.66', time_epoch_completed='1631268482.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.44', dlogl='-1.98e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1303' AND source_name='4FGL J1438.0-3128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:08:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 662920: <4FGL_J1438.0-3128_daily_bin1303> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.0-3128_daily_bin1303 219.508 -31.4679 577065601 577324801 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 :                                   346.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             514.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   402 sec.
    Turnaround time :                            404 sec.

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

