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


Performing analysis on: 4FGL_J1438.0-3128_daily_bin1318
RA = 219.508, Dec = -31.4679
tmin = 580953601, tmax = 581212801
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='662941', job_status='RUN', time_executed='2021-09-10 03:02:44.678233', time_epoch_executed='1631268164.68' WHERE source_name='4FGL J1438.0-3128' and cadence='daily' and bin_id='1318'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/662941

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/662941/ft1_4FGL_J1438.0-3128_daily_bin1318.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/662941/ft2_4FGL_J1438.0-3128_daily_bin1318.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/662941/ft1_4FGL_J1438.0-3128_daily_bin1318.fits outfile=/scratch/kocevski/662941/ft1_filteredMKT_4FGL_J1438.0-3128_daily_bin1318.fits ra=219.508 dec=-31.4679 rad=12.0 tmin=580953601.0 tmax=581212801.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.02
user 2.76
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/662941/ft2_4FGL_J1438.0-3128_daily_bin1318.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/662941/ft1_filteredMKT_4FGL_J1438.0-3128_daily_bin1318.fits evtable="EVENTS" outfile="/scratch/kocevski/662941/ft1_filtered_4FGL_J1438.0-3128_daily_bin1318.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.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/662941/ft1_filtered_4FGL_J1438.0-3128_daily_bin1318.fits evtable="EVENTS" scfile=/scratch/kocevski/662941/ft2_4FGL_J1438.0-3128_daily_bin1318.fits sctable="SC_DATA" expcube=/scratch/kocevski/662941/ltcube_580953601_581212801_4FGL_J1438.0-3128_daily_bin1318.fits outfile=/scratch/kocevski/662941/expmap_580953601_581212801_4FGL_J1438.0-3128_daily_bin1318.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/662941/ltcube_580953601_581212801_4FGL_J1438.0-3128_daily_bin1318.fits
.....................!
real 189.62
user 185.31
sys 3.94

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/662941/ft1_filtered_4FGL_J1438.0-3128_daily_bin1318.fits scfile=/scratch/kocevski/662941/ft2_4FGL_J1438.0-3128_daily_bin1318.fits outfile=/scratch/kocevski/662941/cmap_580953601_581212801_4FGL_J1438.0-3128_daily_bin1318.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/662941/ft1_filtered_4FGL_J1438.0-3128_daily_bin1318.fits scfile=/scratch/kocevski/662941/ft2_4FGL_J1438.0-3128_daily_bin1318.fits outfile=/scratch/kocevski/662941/cmap_HighResolution_580953601_581212801_4FGL_J1438.0-3128_daily_bin1318.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/662941/ft1_filtered_4FGL_J1438.0-3128_daily_bin1318.fits evtable="EVENTS" scfile=/scratch/kocevski/662941/ft2_4FGL_J1438.0-3128_daily_bin1318.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/662941/Model_4FGL_J1438.0-3128_daily_bin1318.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/662941/ft1_filtered_4FGL_J1438.0-3128_daily_bin1318.fits......................!
real 37.60
user 36.24
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7505       1.0000         .10000E-03   10000.    
     2 'norm      '    17.745       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    67.463       1.0000         .10000E-03   10000.    
     5 'Prefactor '    334.04       1.0000         .10000E-03   10000.    
     6 'Prefactor '    173.07       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10763E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.9612       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    51.042       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    177.49       1.0000         .10000E-03   10000.    
    18 'Prefactor '    229.50       1.0000         .10000E-03   10000.    
    19 'Prefactor '    157.49       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.9592       1.0000         .10000E-03   10000.    
    24 'norm      '    242.81       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .60509E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    2.6939       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .41651       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=   1427.904     FROM MIGRAD    STATUS=CONVERGED    749 CALLS     4466 TOTAL
                     EDM=   .43E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6931        1834.4       -.42077E-05    .95569E-06
   2  norm          17.736        31.133       -.25537E-06    .10705E-04
   3  Prefactor     .10000E-03    5.4936       -.29997E-06** at limit **
   4  Prefactor     67.385        129.58        .60338E-06    .86116E-05
   5  Prefactor     333.90        247.74        .15683E-05    .11611E-04
   6  Prefactor     173.12        187.42       -.16270E-05    .11424E-05
   7  Prefactor     .10000E-03    526.85       -.24249E-05** at limit **
   8  Prefactor     .10000E-03    29.763        .17399E-06** at limit **
   9  Prefactor     .10000E-03    26.663       -.49782E-06** at limit **
  10  norm          .10000E-03    6.5144       -.49904E-06** at limit **
  11  Prefactor     .10000E-03    51.687        .98460E-06** at limit **
  12  norm          1.9611        .61130        .76968E-08    .20188E-03
  13  Prefactor     .10000E-03    62.453       -.10813E-05** at limit **
  14  Prefactor     51.147        148.82       -.49724E-05   -.25431E-05
  15  Prefactor     .10000E-03    127.45        .25784E-05** at limit **
  16  norm          .10000E-03    286.62        .79259E-05** at limit **
  17  Prefactor     177.79        5609.0        .14749E-04   -.76408E-06
  18  Prefactor     229.55        167.46       -.72856E-06   -.10144E-05
  19  Prefactor     157.53        144.10        .19225E-05    .14490E-04
  20  Prefactor     .10000E-03    90.632       -.93125E-06** at limit **
  21  norm          .10000E-03    2.0500       -.62156E-06** at limit **
  22  Prefactor     .10000E-03    43.975       -.15911E-05** at limit **
  23  Prefactor     .81552        9065.0        .12819E-03   -.13074E-05
  24  norm          243.02        148.65       -.40477E-06   -.21615E-04
  25  norm          .10000E-03    155.84        .68119E-06** at limit **
  26  norm          .10000E-03    28.193       -.10629E-05** at limit **
  27  Prefactor     .10000E-03    459.91       -.81769E-05** at limit **
  28  norm          .10000E-03    82.439       -.18920E-05** at limit **
  29  Normalizat    2.6944        .92633        .90625E-06   -.41231E-05
  30  Prefactor     .41644        .27443        .21747E-05    .49619E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.69315
  norm       = 17.7357
  Prefactor  = 0.0001
  Prefactor  = 67.3851
  Prefactor  = 333.896
  Prefactor  = 173.125
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.96109
  Prefactor  = 0.0001
  Prefactor  = 51.1469
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 177.794
  Prefactor  = 229.552
  Prefactor  = 157.527
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.815517
  norm       = 243.022
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 2.69437
  Prefactor  = 0.416443
 **********
 **   18 **HESSE 
 **********

 FCN=   1427.904     FROM HESSE     STATUS=OK           578 CALLS     5044 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6931        1887.2        .15443E-03   -1.5190    
   2  norm          17.736        31.220        .95079E-04   -1.4865    
   3  Prefactor     .10000E-03    5.5063        .86526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     67.385        129.95        .48866E-04   -1.4064    
   5  Prefactor     333.90        249.81        .11130E-03   -1.2033    
   6  Prefactor     173.12        188.03        .15336E-03   -1.3069    
   7  Prefactor     .10000E-03    526.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    26.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    6.5110        .94167E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    51.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.9611        .61297        .15522E-04   -1.5428    
  13  Prefactor     .10000E-03    62.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     51.147        148.69        .28067E-03   -1.4276    
  15  Prefactor     .10000E-03    127.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    284.17        .56549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     177.79        5606.7        .15147E-03   -1.3033    
  18  Prefactor     229.55        167.48        .13356E-03   -1.2666    
  19  Prefactor     157.53        142.82        .16064E-03   -1.3191    
  20  Prefactor     .10000E-03    90.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.0615        .52937E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    43.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .81552        9111.1        .29637E-02   -1.5527    
  24  norm          243.02        149.35        .12994E-03   -1.2577    
  25  norm          .10000E-03    155.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    28.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    464.66        .21060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    82.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    2.6944        1.0903        .41530E-03   -.48091    
  30  Prefactor     .41644        .31392        .27908E-03   -1.1598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.45763e-11
Minuit parameter uncertainties:
  1  232.613
  2  31.2488
  3  6.09472e-06
  4  130.504
  5  250.622
  6  188.683
  7  0.000294037
  8  5.29136e-06
  9  2.11799e-05
  10  9.93248e-06
  11  6.97874e-05
  12  0.612969
  13  3.07398e-05
  14  149.786
  15  0.000121073
  16  0.000269482
  17  1363.68
  18  167.834
  19  143.139
  20  3.99008e-05
  21  1.02108e-06
  22  1.86544e-05
  23  206.724
  24  149.581
  25  8.21142e-05
  26  3.09198e-05
  27  0.000570335
  28  9.4956e-05
  29  1.10167
  30  0.31523
Done.

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

Extracting fit parameters...

4FGL J1438.0-3128
   Spectrum: PowerLaw
301    Prefactor:  5.115e+01  1.498e+02  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.164e-01  3.152e-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:  2.694e+00  1.102e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/662941/likelihoodResults_580953601_581212801_4FGL_J1438.0-3128_daily_bin1318.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) = 1427.89500676
delta logL = 0.00852022709114

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1427.88940428
delta logL = 0.0141227029274

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.044       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8071       1.0000          .0000       10.000    
     3 'Normalizat'    2.6673       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .42232       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=   1427.889     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      265 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.004        169.48        .65849E-04   -.58916E-04
   2  Index         2.8102        2.6085        .89441E-02   -.36835E-04
   3  Normalizat    2.6658        1.0148        .41662E-03   -.41662E-03
   4  Prefactor     .42273        .30529        .27707E-03   -.72603E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.0043
  Index      = 2.81019
  Normalizat = 2.66578
  Prefactor  = 0.422729
 **********
 **   18 **HESSE 
 **********

 FCN=   1427.889     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.004        133.22        .13170E-04   -1.4491    
   2  Index         2.8102        2.2406        .35776E-03   -.45333    
   3  Normalizat    2.6658        1.0118        .83324E-04   -.48738    
   4  Prefactor     .42273        .30413        .55413E-04   -1.1566    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09958e-09
Minuit parameter uncertainties:
  1  134.314
  2  2.34561
  3  1.02092
  4  0.305297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/662941': 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) = 1427.88940201
delta logL = 0.0141249797821

Extracting fit parameters...

4FGL J1438.0-3128
   Spectrum: PowerLaw
301    Prefactor:  3.700e+01  1.343e+02  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.810e+00  2.346e+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:  4.227e-01  3.053e-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:  2.666e+00  1.021e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.21
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/662941/cmap_HighResolution_580953601_581212801_4FGL_J1438.0-3128_daily_bin1318.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.78e-02', job_status='DONE', photon_flux_upper_limit='8.74e-07', time_completed='2021-09-10 03:11:00.484011', job_id='662941', GAL2='0.42', fit_tolerance='1e-08', EG2='2.67', EG='2.69', time_epoch_completed='1631268660.48', return_code2='0', ts='0.21', comment='SUCCESS', return_code='0', GAL='0.42', dlogl='1.41e-02', ts2='0.24', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1318' AND source_name='4FGL J1438.0-3128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:11:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 662941: <4FGL_J1438.0-3128_daily_bin1318> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.0-3128_daily_bin1318 219.508 -31.4679 580953601 581212801 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 :                                   487.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   578 sec.
    Turnaround time :                            579 sec.

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

