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


Performing analysis on: 4FGL_J1438.0-3128_daily_bin1440
RA = 219.508, Dec = -31.4679
tmin = 612576001, tmax = 612835201
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='664435', job_status='RUN', time_executed='2021-09-10 03:07:25.289169', time_epoch_executed='1631268445.29' WHERE source_name='4FGL J1438.0-3128' and cadence='daily' and bin_id='1440'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/664435

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/664435/ft1_4FGL_J1438.0-3128_daily_bin1440.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/664435/ft2_4FGL_J1438.0-3128_daily_bin1440.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/664435/ft1_4FGL_J1438.0-3128_daily_bin1440.fits outfile=/scratch/kocevski/664435/ft1_filteredMKT_4FGL_J1438.0-3128_daily_bin1440.fits ra=219.508 dec=-31.4679 rad=12.0 tmin=612576001.0 tmax=612835201.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.77
user 2.56
sys 0.18

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/664435/ft1_filtered_4FGL_J1438.0-3128_daily_bin1440.fits" evtable="EVENTS" scfile=/scratch/kocevski/664435/ft2_4FGL_J1438.0-3128_daily_bin1440.fits sctable="SC_DATA" outfile=/scratch/kocevski/664435/ltcube_612576001_612835201_4FGL_J1438.0-3128_daily_bin1440.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/664435/ft2_4FGL_J1438.0-3128_daily_bin1440.fits
.....................!
real 12.32
user 11.97
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/664435/ft1_filtered_4FGL_J1438.0-3128_daily_bin1440.fits evtable="EVENTS" scfile=/scratch/kocevski/664435/ft2_4FGL_J1438.0-3128_daily_bin1440.fits sctable="SC_DATA" expcube=/scratch/kocevski/664435/ltcube_612576001_612835201_4FGL_J1438.0-3128_daily_bin1440.fits outfile=/scratch/kocevski/664435/expmap_612576001_612835201_4FGL_J1438.0-3128_daily_bin1440.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/664435/ltcube_612576001_612835201_4FGL_J1438.0-3128_daily_bin1440.fits
.....................!
real 190.98
user 185.33
sys 5.26

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/664435/ft1_filtered_4FGL_J1438.0-3128_daily_bin1440.fits scfile=/scratch/kocevski/664435/ft2_4FGL_J1438.0-3128_daily_bin1440.fits outfile=/scratch/kocevski/664435/cmap_612576001_612835201_4FGL_J1438.0-3128_daily_bin1440.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/664435/ft1_filtered_4FGL_J1438.0-3128_daily_bin1440.fits scfile=/scratch/kocevski/664435/ft2_4FGL_J1438.0-3128_daily_bin1440.fits outfile=/scratch/kocevski/664435/cmap_HighResolution_612576001_612835201_4FGL_J1438.0-3128_daily_bin1440.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/664435/ft1_filtered_4FGL_J1438.0-3128_daily_bin1440.fits evtable="EVENTS" scfile=/scratch/kocevski/664435/ft2_4FGL_J1438.0-3128_daily_bin1440.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/664435/Model_4FGL_J1438.0-3128_daily_bin1440.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/664435/ft1_filtered_4FGL_J1438.0-3128_daily_bin1440.fits......................!
real 44.15
user 42.77
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.4716       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    105.06       1.0000         .10000E-03   10000.    
     7 'Prefactor '    816.36       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.4505       1.0000         .10000E-03   10000.    
    10 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    61.294       1.0000         .10000E-03   10000.    
    12 'norm      '    .58756       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    226.69       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16314E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    41.787       1.0000         .10000E-03   10000.    
    19 'Prefactor '    33.474       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.8689       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.3032       1.0000         .10000E-03   10000.    
    23 'Prefactor '    64.874       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10508E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .26149       1.0000         .10000E-03   10000.    
    27 'Prefactor '    46.517       1.0000         .10000E-03   10000.    
    28 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .95035       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .94691       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=   2021.861     FROM MIGRAD    STATUS=CONVERGED    749 CALLS     4516 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    79.764        .24861E-06** at limit **
   2  norm          .10000E-03    67.869        .21836E-05** at limit **
   3  Prefactor     9.4807        13.519        .12544E-05   -.10055E-03
   4  Prefactor     .10000E-03    54.331       -.21439E-06** at limit **
   5  Prefactor     .10000E-03    55.038        .31601E-06** at limit **
   6  Prefactor     105.07        124.69        .40236E-06   -.51680E-05
   7  Prefactor     815.75        1407.5       -.12582E-04   -.58741E-06
   8  Prefactor     .10000E-03    34.629        .30821E-06** at limit **
   9  Prefactor     8.4631        83.627        .59220E-05    .23251E-05
  10  norm          .10000E-03    7.6951        .80089E-06** at limit **
  11  Prefactor     61.320        90.368       -.55776E-06    .28564E-05
  12  norm          .58757        .38432       -.12914E-06    .17765E-03
  13  Prefactor     .10000E-03    48.859        .40203E-06** at limit **
  14  Prefactor     .10000E-03    70.397        .51597E-06** at limit **
  15  Prefactor     226.72        237.14        .42562E-06    .28845E-04
  16  norm          .10000E-03    14.012       -.98265E-07** at limit **
  17  Prefactor     .10000E-03    284.74       -.39517E-07** at limit **
  18  Prefactor     41.752        89.744        .42585E-05    .88939E-04
  19  Prefactor     33.426        108.60       -.11536E-05   -.40418E-05
  20  Prefactor     .10000E-03    89.786       -.60650E-07** at limit **
  21  norm          5.8710        4.8675       -.16902E-06    .10004E-03
  22  Prefactor     3.2642        182.15       -.22802E-06    .12419E-04
  23  Prefactor     64.843        88.255        .21844E-05    .10334E-03
  24  norm          .10000E-03    11.937       -.33494E-06** at limit **
  25  norm          .10000E-03    142.03        .36764E-06** at limit **
  26  norm          .31198        7.9316       -.13461E-05    .22575E-03
  27  Prefactor     46.339        84.393        .10829E-05    .59841E-04
  28  norm          .10000E-03    17.719       -.25407E-05** at limit **
  29  Normalizat    .94955        .91139       -.34855E-04    .37250E-04
  30  Prefactor     .94697        .27351        .10987E-04    .63979E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.48066
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 105.068
  Prefactor  = 815.754
  Prefactor  = 0.0001
  Prefactor  = 8.46313
  norm       = 0.0001
  Prefactor  = 61.32
  norm       = 0.587568
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 226.723
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.7521
  Prefactor  = 33.4261
  Prefactor  = 0.0001
  norm       = 5.87104
  Prefactor  = 3.26418
  Prefactor  = 64.8432
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.311983
  Prefactor  = 46.3385
  norm       = 0.000100001
  Normalizat = 0.949554
  Prefactor  = 0.946975
 **********
 **   18 **HESSE 
 **********

 FCN=   2021.861     FROM HESSE     STATUS=OK           580 CALLS     5096 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    79.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    69.864        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.4807        13.535        .13022E-03   -1.5092    
   4  Prefactor     .10000E-03    54.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    55.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     105.07        124.72        .19616E-03   -1.3654    
   7  Prefactor     815.75        1407.2        .73044E-04   -.99150    
   8  Prefactor     .10000E-03    34.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.4631        83.499        .13790E-03   -1.5126    
  10  norm          .10000E-03    7.7212        .12190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     61.320        90.277        .51251E-04   -1.4140    
  12  norm          .58757        .38095        .21031E-04   -1.5555    
  13  Prefactor     .10000E-03    48.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    70.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     226.72        237.05        .13437E-03   -1.2685    
  16  norm          .10000E-03    14.014        .16442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    284.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     41.752        90.098        .62013E-04   -1.4415    
  19  Prefactor     33.426        108.75        .69261E-04   -1.4551    
  20  Prefactor     .10000E-03    89.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.8710        4.8386        .74011E-04   -1.5223    
  22  Prefactor     3.2642        180.10        .22275E-03   -1.5347    
  23  Prefactor     64.843        88.446        .24913E-03   -1.4096    
  24  norm          .10000E-03    11.944        .15178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    142.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .31198        43.132        .23207E-02   -1.5596    
  27  Prefactor     46.339        85.830        .29394E-03   -1.4345    
  28  norm          .10000E-03    17.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .94955        .91244        .53729E-03   -.94740    
  30  Prefactor     .94697        .27456        .17651E-03   -.94518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24192e-09
Minuit parameter uncertainties:
  1  5.57586e-05
  2  0.000274035
  3  13.5398
  4  2.61829e-05
  5  0.000131793
  6  125.031
  7  1478
  8  8.35124e-06
  9  53.2628
  10  6.4592e-05
  11  90.4791
  12  0.380951
  13  0.000130013
  14  0.000107056
  15  238.059
  16  8.49514e-06
  17  0.000121028
  18  90.3933
  19  109.401
  20  0.00011464
  21  4.83889
  22  48.6466
  23  88.6259
  24  3.27116e-05
  25  0.000686498
  26  7.3408
  27  86.0604
  28  0.000312295
  29  0.928025
  30  0.274964
Done.

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

Extracting fit parameters...

4FGL J1438.0-3128
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.071e-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.470e-01  2.750e-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:  9.496e-01  9.280e-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: 3.94e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/664435/likelihoodResults_612576001_612835201_4FGL_J1438.0-3128_daily_bin1440.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) = 2021.86120057
delta logL = -6.74102138873e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2021.86113294
delta logL = 2.175663667e-07

Fit tolerance = 1e-08

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

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

 FCN=   2021.861     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      248 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    69.083        .90712E-02** at limit **
   2  Index         3.0948        5.0490        .50000       -.19651E-05
   3  Normalizat    .94955        .12949E-01    .12113        .14949E-04
   4  Prefactor     .94698        .42709E-02    .45601E-01    .14512E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.09478
  Normalizat = 0.94955
  Prefactor  = 0.946975
 **********
 **   18 **HESSE 
 **********

 FCN=   2021.861     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      279 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6177.0        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0948        5.9460        .50000       -.39093    
   3  Normalizat    .94955        .79177E-01    .53733E-03   -.94740    
   4  Prefactor     .94698        .26216E-01    .17650E-03   -.94518    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.04724e-07
Minuit parameter uncertainties:
  1  0.00189363
  2  1043.85
  3  0.0791864
  4  0.0262167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/664435': 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) = 2021.86113291
delta logL = 2.45876208282e-07

Extracting fit parameters...

4FGL J1438.0-3128
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.894e-03  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  3.095e+00  1.044e+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:  9.470e-01  2.622e-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:  9.496e-01  7.919e-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/664435/cmap_HighResolution_612576001_612835201_4FGL_J1438.0-3128_daily_bin1440.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.05e-02', job_status='DONE', photon_flux_upper_limit='3.94e-07', time_completed='2021-09-10 03:16:43.080893', job_id='664435', GAL2='0.95', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1631269003.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='2.46e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1440' AND source_name='4FGL J1438.0-3128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:16:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 664435: <4FGL_J1438.0-3128_daily_bin1440> in cluster <slac> Done

Job <4FGL_J1438.0-3128_daily_bin1440> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 03:06:33 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:06:35 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:35 2021
Terminated at Fri Sep 10 03:16:43 2021
Results reported at Fri Sep 10 03:16:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.0-3128_daily_bin1440 219.508 -31.4679 612576001 612835201 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 :                                   545.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             377.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   608 sec.
    Turnaround time :                            610 sec.

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

