/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 10 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_bin1495
RA = 219.508, Dec = -31.4679
tmin = 626832001, tmax = 627091201
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='664521', job_status='RUN', time_executed='2021-09-10 03:07:00.249274', time_epoch_executed='1631268420.25' WHERE source_name='4FGL J1438.0-3128' and cadence='daily' and bin_id='1495'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/664521

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/664521/ft1_4FGL_J1438.0-3128_daily_bin1495.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/664521/ft2_4FGL_J1438.0-3128_daily_bin1495.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/664521/ft1_4FGL_J1438.0-3128_daily_bin1495.fits outfile=/scratch/kocevski/664521/ft1_filteredMKT_4FGL_J1438.0-3128_daily_bin1495.fits ra=219.508 dec=-31.4679 rad=12.0 tmin=626832001.0 tmax=627091201.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.98
user 2.79
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/664521/ft2_4FGL_J1438.0-3128_daily_bin1495.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/664521/ft1_filteredMKT_4FGL_J1438.0-3128_daily_bin1495.fits evtable="EVENTS" outfile="/scratch/kocevski/664521/ft1_filtered_4FGL_J1438.0-3128_daily_bin1495.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/664521/ft1_filtered_4FGL_J1438.0-3128_daily_bin1495.fits" evtable="EVENTS" scfile=/scratch/kocevski/664521/ft2_4FGL_J1438.0-3128_daily_bin1495.fits sctable="SC_DATA" outfile=/scratch/kocevski/664521/ltcube_626832001_627091201_4FGL_J1438.0-3128_daily_bin1495.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/664521/ft2_4FGL_J1438.0-3128_daily_bin1495.fits
.....................!
real 12.59
user 12.26
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/664521/ft1_filtered_4FGL_J1438.0-3128_daily_bin1495.fits evtable="EVENTS" scfile=/scratch/kocevski/664521/ft2_4FGL_J1438.0-3128_daily_bin1495.fits sctable="SC_DATA" expcube=/scratch/kocevski/664521/ltcube_626832001_627091201_4FGL_J1438.0-3128_daily_bin1495.fits outfile=/scratch/kocevski/664521/expmap_626832001_627091201_4FGL_J1438.0-3128_daily_bin1495.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/664521/ltcube_626832001_627091201_4FGL_J1438.0-3128_daily_bin1495.fits
.....................!
real 190.87
user 185.10
sys 5.28

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/664521/ft1_filtered_4FGL_J1438.0-3128_daily_bin1495.fits scfile=/scratch/kocevski/664521/ft2_4FGL_J1438.0-3128_daily_bin1495.fits outfile=/scratch/kocevski/664521/cmap_626832001_627091201_4FGL_J1438.0-3128_daily_bin1495.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 1.89
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/664521/ft1_filtered_4FGL_J1438.0-3128_daily_bin1495.fits scfile=/scratch/kocevski/664521/ft2_4FGL_J1438.0-3128_daily_bin1495.fits outfile=/scratch/kocevski/664521/cmap_HighResolution_626832001_627091201_4FGL_J1438.0-3128_daily_bin1495.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/664521/ft1_filtered_4FGL_J1438.0-3128_daily_bin1495.fits evtable="EVENTS" scfile=/scratch/kocevski/664521/ft2_4FGL_J1438.0-3128_daily_bin1495.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/664521/Model_4FGL_J1438.0-3128_daily_bin1495.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/664521/ft1_filtered_4FGL_J1438.0-3128_daily_bin1495.fits.......................!
real 29.42
user 28.02
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    174.24       1.0000         .10000E-03   10000.    
     2 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.1177       1.0000         .10000E-03   10000.    
     4 'Prefactor '    81.275       1.0000         .10000E-03   10000.    
     5 'Prefactor '    67.616       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.329       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .38187E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.053       1.0000         .10000E-03   10000.    
    10 'norm      '    17.993       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .29008E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .29013       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11093E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13184E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .10382E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .56646E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16682E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11154E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    24 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    25 'norm      '    .24431E-01   1.0000         .10000E-03   10000.    
    26 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    27 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    28 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    .90183       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   949.2212     FROM MIGRAD    STATUS=CONVERGED    136 CALLS     3860 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     174.28        7.4251        .18706E-05   -.23204E-02
   2  norm          .10000E-03    11.153        .10386E-04** at limit **
   3  Prefactor     7.1254        8.9988        .55356E-05    .26714E-03
   4  Prefactor     81.229        8.7750       -.25030E-05   -.20318E-04
   5  Prefactor     67.648        6.6572        .26638E-05   -.12748E-02
   6  Prefactor     24.539        43.422        .29170E-04   -.50341E-02
   7  Prefactor     .10065E-03    10.944        .11902E-04** at limit **
   8  Prefactor     .10000E-03    34.441        .19800E-04** at limit **
   9  Prefactor     14.086        5.2423        .47111E-05   -.15769E-03
  10  norm          17.986        3.5516       -.19977E-05   -.70618E-03
  11  Prefactor     .10102E-03    72.372       -.35853E-04** at limit **
  12  norm          .28997        .44956        .65887E-06    .85826E-03
  13  Prefactor     .10412E-03    114.96        .75678E-04** at limit **
  14  Prefactor     .10000E-03    48.891        .37793E-05** at limit **
  15  Prefactor     .12271E-03    55.733        .30546E-04** at limit **
  16  norm          .10036E-03    82.034       -.18677E-04** at limit **
  17  Prefactor     .13027E-03    24.866        .18231E-04** at limit **
  18  Prefactor     .38136E-03    92.078        .77003E-05** at limit **
  19  Prefactor     .10015E-03    64.572        .63295E-04** at limit **
  20  Prefactor     .12537E-03    245.64        .88782E-05** at limit **
  21  norm          .10000E-03    2.9915        .11736E-05** at limit **
  22  Prefactor     .10924E-03    142.64       -.52091E-04** at limit **
  23  Prefactor    10000.0        446.92        .87707E-04** at limit **
  24  norm         10000.0        631.22        .11646E-03** at limit **
  25  norm          .13326E-02    545.22       -.13680E-03** at limit **
  26  norm         10000.0        10.233       -.12931E-04** at limit **
  27  Prefactor    10000.0        56.691        .43161E-04** at limit **
  28  norm         10000.0        33.064        .29758E-04** at limit **
  29  Normalizat    .10000E-01    .38449       -.24714E-05** at limit **
  30  Prefactor     .90138        .17502        .11140E-04    .22022E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 174.28
  norm       = 0.0001
  Prefactor  = 7.12543
  Prefactor  = 81.2286
  Prefactor  = 67.6483
  Prefactor  = 24.539
  Prefactor  = 0.000100654
  Prefactor  = 0.000100002
  Prefactor  = 14.0864
  norm       = 17.9859
  Prefactor  = 0.000101022
  norm       = 0.289972
  Prefactor  = 0.000104123
  Prefactor  = 0.000100001
  Prefactor  = 0.000122715
  norm       = 0.000100361
  Prefactor  = 0.000130274
  Prefactor  = 0.000381363
  Prefactor  = 0.000100149
  Prefactor  = 0.000125374
  norm       = 0.0001
  Prefactor  = 0.000109236
  Prefactor  = 10000
  norm       = 10000
  norm       = 0.00133263
  norm       = 10000
  Prefactor  = 10000
  norm       = 10000
  Normalizat = 0.01
  Prefactor  = 0.901375
 **********
 **   18 **HESSE 
 **********

 FCN=   949.2212     FROM HESSE     STATUS=OK           630 CALLS     4490 TOTAL
                     EDM=   .64E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     174.28        173.88        .76426E-03   -1.3060    
   2  norm          .10000E-03    11.149        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.1254        9.0368        .37590E-02   -1.5174    
   4  Prefactor     81.229        121.07        .11138E-02   -1.3903    
   5  Prefactor     67.648        179.40        .12203E-02   -1.4061    
   6  Prefactor     24.539        444.49        .20303E-02   -1.4717    
   7  Prefactor     .10065E-03    477.68        .10642E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    34.433        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.086        30.011        .26711E-02   -1.4957    
  10  norm          17.986        16.331        .23605E-02   -1.4860    
  11  Prefactor     .10102E-03    76.236        .10702E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .28997        .46744        .52653E-02   -1.5600    
  13  Prefactor     .10412E-03    117.58        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    48.893        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .12271E-03    509.14        .10285E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10036E-03    81.940        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .13027E-03    634.06        .10547E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .38136E-03    864.38        .10193E-01   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10015E-03    64.614        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .12537E-03    281.38        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.9911        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10924E-03    152.28        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor    10000.0        1463.4        .90712E-02    1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm         10000.0        1676.3        .90987E-02    1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .13326E-02    6427.9        .91445E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm         10000.0        556.51        .10685E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor    10000.0        6614.9        .10022E-01    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm         10000.0        6317.9        .10363E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    .36240        .26841       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .90138        .22135        .45028E-01   -.96093    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.42171e-06
Minuit parameter uncertainties:
  1  174.395
  2  0.000143396
  3  9.03857
  4  121.437
  5  180.86
  6  210.723
  7  0.0356508
  8  0.000481258
  9  30.0435
  10  16.3351
  11  0.0176774
  12  0.467444
  13  0.0441232
  14  0.000406276
  15  0.216949
  16  0.0108861
  17  0.280111
  18  1.00111
  19  0.00622054
  20  0.169794
  21  8.41758e-06
  22  0.075196
  23  1.60795
  24  1.31725
  25  3.96136
  26  0.102225
  27  1.16114
  28  0.0578001
  29  1.91984e-07
  30  0.221567
Done.

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

Extracting fit parameters...

4FGL J1438.0-3128
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  4.063e-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:  9.014e-01  2.216e-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  1.920e-07  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/664521/likelihoodResults_626832001_627091201_4FGL_J1438.0-3128_daily_bin1495.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) = 949.221318044
delta logL = -0.00010002570059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 949.221219544
delta logL = -1.52614461513e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8335       1.0000          .0000       10.000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90137       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=   949.2212     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      277 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10717E-03    33.516        .16456E-01** at limit **
   2  Index         2.7100        5.7972        .50000        .10214E-04
   3  Normalizat    .10000E-01    .76852E-03    .10566E-01** at limit **
   4  Prefactor     .90138        .70356E-02    .16648E-03    .46753E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000107174
  Index      = 2.70998
  Normalizat = 0.01
  Prefactor  = 0.901377
 **********
 **   18 **HESSE 
 **********

 FCN=   949.2212     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 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     .10717E-03    291.28        .17553E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7100        6.1924        .50000       -.47575    
   3  Normalizat    .10000E-01    .68438E-02    .21131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .90138        .20993E-01    .33296E-04   -.96093    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.76679e-09
Minuit parameter uncertainties:
  1  0.0918783
  2  584.272
  3  2.13353e-06
  4  0.0209929
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/664521': 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) = 949.221218573
delta logL = -5.54830876354e-07

Extracting fit parameters...

4FGL J1438.0-3128
   Spectrum: PowerLaw
301    Prefactor:  1.072e-04  9.188e-02  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.710e+00  5.843e+02  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.014e-01  2.099e-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.134e-06  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/664521/cmap_HighResolution_626832001_627091201_4FGL_J1438.0-3128_daily_bin1495.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.91e-02', job_status='DONE', photon_flux_upper_limit='6.33e-07', time_completed='2021-09-10 03:14:30.493848', job_id='664521', GAL2='0.90', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631268870.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='-5.55e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1495' AND source_name='4FGL J1438.0-3128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:14:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 664521: <4FGL_J1438.0-3128_daily_bin1495> in cluster <slac> Done

Job <4FGL_J1438.0-3128_daily_bin1495> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 03:06:40 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:06:41 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:06:41 2021
Terminated at Fri Sep 10 03:14:31 2021
Results reported at Fri Sep 10 03:14:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.0-3128_daily_bin1495 219.508 -31.4679 626832001 627091201 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 :                                   433.22 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             284.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   469 sec.
    Turnaround time :                            471 sec.

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

