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


Performing analysis on: 4FGL_J1338.0-4159_daily_bin1189
RA = 204.522, Dec = -41.9953
tmin = 547516801, tmax = 547776001
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='835598', job_status='RUN', time_executed='2021-09-08 06:36:25.850990', time_epoch_executed='1631108185.85' WHERE source_name='4FGL J1338.0-4159' and cadence='daily' and bin_id='1189'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/835598

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/835598/ft1_4FGL_J1338.0-4159_daily_bin1189.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/835598/ft2_4FGL_J1338.0-4159_daily_bin1189.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/835598/ft1_4FGL_J1338.0-4159_daily_bin1189.fits outfile=/scratch/kocevski/835598/ft1_filteredMKT_4FGL_J1338.0-4159_daily_bin1189.fits ra=204.522 dec=-41.9953 rad=12.0 tmin=547516801.0 tmax=547776001.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.54
user 3.30
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/835598/ft2_4FGL_J1338.0-4159_daily_bin1189.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/835598/ft2_4FGL_J1338.0-4159_daily_bin1189.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/835598/ft1_filteredMKT_4FGL_J1338.0-4159_daily_bin1189.fits evtable="EVENTS" outfile="/scratch/kocevski/835598/ft1_filtered_4FGL_J1338.0-4159_daily_bin1189.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/835598/ft1_filtered_4FGL_J1338.0-4159_daily_bin1189.fits" evtable="EVENTS" scfile=/scratch/kocevski/835598/ft2_4FGL_J1338.0-4159_daily_bin1189.fits sctable="SC_DATA" outfile=/scratch/kocevski/835598/ltcube_547516801_547776001_4FGL_J1338.0-4159_daily_bin1189.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/835598/ft2_4FGL_J1338.0-4159_daily_bin1189.fits
.....................!
real 14.91
user 14.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/835598/ft1_filtered_4FGL_J1338.0-4159_daily_bin1189.fits evtable="EVENTS" scfile=/scratch/kocevski/835598/ft2_4FGL_J1338.0-4159_daily_bin1189.fits sctable="SC_DATA" expcube=/scratch/kocevski/835598/ltcube_547516801_547776001_4FGL_J1338.0-4159_daily_bin1189.fits outfile=/scratch/kocevski/835598/expmap_547516801_547776001_4FGL_J1338.0-4159_daily_bin1189.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/835598/ltcube_547516801_547776001_4FGL_J1338.0-4159_daily_bin1189.fits
.....................!
real 193.10
user 186.92
sys 5.30

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.
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Added 268 point sources and 5 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 J1338.0-4159 @ 204.522 -41.9953

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/835598/ft1_filtered_4FGL_J1338.0-4159_daily_bin1189.fits scfile=/scratch/kocevski/835598/ft2_4FGL_J1338.0-4159_daily_bin1189.fits outfile=/scratch/kocevski/835598/cmap_547516801_547776001_4FGL_J1338.0-4159_daily_bin1189.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=204.522 yref=-41.9953 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/835598/ft1_filtered_4FGL_J1338.0-4159_daily_bin1189.fits scfile=/scratch/kocevski/835598/ft2_4FGL_J1338.0-4159_daily_bin1189.fits outfile=/scratch/kocevski/835598/cmap_HighResolution_547516801_547776001_4FGL_J1338.0-4159_daily_bin1189.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=204.522 yref=-41.9953 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/835598/ft1_filtered_4FGL_J1338.0-4159_daily_bin1189.fits evtable="EVENTS" scfile=/scratch/kocevski/835598/ft2_4FGL_J1338.0-4159_daily_bin1189.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/835598/Model_4FGL_J1338.0-4159_daily_bin1189.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 FGES J1409.1-6121
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1420-607
Working on...
/scratch/kocevski/835598/ft1_filtered_4FGL_J1338.0-4159_daily_bin1189.fits......................!
real 47.93
user 46.51
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/835598/ft1_filtered_4FGL_J1338.0-4159_daily_bin1189.fits', '/scratch/kocevski/835598/ft2_4FGL_J1338.0-4159_daily_bin1189.fits', expMap='/scratch/kocevski/835598/expmap_547516801_547776001_4FGL_J1338.0-4159_daily_bin1189.fits', expCube='/scratch/kocevski/835598/ltcube_547516801_547776001_4FGL_J1338.0-4159_daily_bin1189.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/835598/Model_4FGL_J1338.0-4159_daily_bin1189.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0-4159'

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  9.822e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/835598/ft1_filtered_4FGL_J1338.0-4159_daily_bin1189.fits
Spacecraft file(s): /scratch/kocevski/835598/ft2_4FGL_J1338.0-4159_daily_bin1189.fits
Exposure map: /scratch/kocevski/835598/expmap_547516801_547776001_4FGL_J1338.0-4159_daily_bin1189.fits
Exposure cube: /scratch/kocevski/835598/ltcube_547516801_547776001_4FGL_J1338.0-4159_daily_bin1189.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/835598/Model_4FGL_J1338.0-4159_daily_bin1189.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) = 2264.56432875

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11039E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.254       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    101.74       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    13.380       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    309.54       1.0000         .10000E-03   10000.    
    10 'Prefactor '    42.681       1.0000         .10000E-03   10000.    
    11 'norm      '    49.085       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.594       1.0000         .10000E-03   10000.    
    13 'Prefactor '    100.94       1.0000         .10000E-03   10000.    
    14 'Prefactor '    910.41       1.0000         .10000E-03   10000.    
    15 'Prefactor '    168.64       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14427E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .76770       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3215       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .78175       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2264.549     FROM MIGRAD    STATUS=CONVERGED    383 CALLS     1977 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.279        .14229E-06** at limit **
   2  Prefactor     .10000E-03    291.03       -.45232E-03** at limit **
   3  Prefactor     18.248        31.410        .90446E-06   -.24142E-04
   4  Prefactor     .10000E-03    20.720       -.59274E-06** at limit **
   5  norm          101.71        75.571       -.20418E-04   -.55787E-04
   6  Prefactor     .10001E-03    40.058        .10293E-04** at limit **
   7  norm          13.379        17.663        .14364E-05   -.62758E-04
   8  norm          .10000E-03    59.657       -.31525E-04** at limit **
   9  Prefactor     309.60        836.90        .31329E-04   -.89005E-06
  10  Prefactor     42.678        92.072       -.41795E-05   -.15550E-04
  11  norm          49.075        59.381       -.89525E-05   -.20894E-04
  12  Prefactor     24.604        146.24        .18815E-04   -.35703E-04
  13  Prefactor     100.98        109.94        .36745E-04   -.58437E-04
  14  Prefactor     910.20        1202.5       -.70945E-04   -.39040E-05
  15  Prefactor     168.62        220.49       -.12352E-04   -.88383E-05
  16  Prefactor     .10002E-03    153.53        .82175E-04** at limit **
  17  norm          .76758        .52883        .52180E-07   -.86061E-03
  18  Prefactor     .10000E-03    145.53        .13018E-03** at limit **
  19  Normalizat    1.3210        .63010       -.15876E-04   -.12467E-03
  20  Prefactor     .78201        .20202        .36173E-05   -.60981E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.2482
  Prefactor  = 0.0001
  norm       = 101.713
  Prefactor  = 0.000100009
  norm       = 13.3793
  norm       = 0.0001
  Prefactor  = 309.596
  Prefactor  = 42.6778
  norm       = 49.0754
  Prefactor  = 24.6044
  Prefactor  = 100.981
  Prefactor  = 910.202
  Prefactor  = 168.625
  Prefactor  = 0.000100021
  norm       = 0.767582
  Prefactor  = 0.0001
  Normalizat = 1.32099
  Prefactor  = 0.78201
 **********
 **   18 **HESSE 
 **********

 FCN=   2264.549     FROM HESSE     STATUS=OK           279 CALLS     2256 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    291.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.248        31.490        .93743E-04   -1.4853    
   4  Prefactor     .10000E-03    20.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          101.71        75.769        .19930E-03   -1.3687    
   6  Prefactor     .10001E-03    40.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          13.379        17.748        .10950E-03   -1.4976    
   8  norm          .10000E-03    59.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     309.60        841.98        .11548E-03   -1.2170    
  10  Prefactor     42.678        92.188        .61363E-04   -1.4400    
  11  norm          49.075        59.374        .28618E-03   -1.4306    
  12  Prefactor     24.604        146.63        .80773E-04   -1.4716    
  13  Prefactor     100.98        110.22        .20008E-03   -1.3695    
  14  Prefactor     910.20        1203.7        .69525E-04   -.95786    
  15  Prefactor     168.62        220.66        .15533E-03   -1.3103    
  16  Prefactor     .10002E-03    157.16        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .76758        .52762        .26715E-04   -1.5533    
  18  Prefactor     .10000E-03    145.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3210        .73432        .46658E-03   -.82942    
  20  Prefactor     .78201        .23973        .19035E-03   -1.0039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48331e-09
Minuit parameter uncertainties:
  1  5.48883e-06
  2  7.85488e-06
  3  31.5183
  4  5.29962e-05
  5  75.8412
  6  0.00118191
  7  17.7547
  8  2.51068e-06
  9  879.26
  10  92.4978
  11  59.4457
  12  120.575
  13  110.442
  14  1241.97
  15  221.754
  16  0.00360515
  17  0.527619
  18  1.91298e-05
  19  0.740243
  20  0.240052
Done.

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

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  3.096e+02  8.793e+02  1.000e-04  1.000e+04 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  7.820e-01  2.401e-01  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.321e+00  7.402e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.15
Ra Dec: 204.522 -41.995
Photon Flux Upper Limit: 4.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/835598/likelihoodResults_547516801_547776001_4FGL_J1338.0-4159_daily_bin1189.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) = 2264.52255919
delta logL = 0.026243349093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2264.51509969
delta logL = 0.0337028507479

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    213.91       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2900       1.0000          .0000       10.000    
     3 'Normalizat'    1.3117       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78073       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+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=   2264.515     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      270 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     213.88        793.54        .13823E-03    .87013E-05
   2  Index         2.2909        1.4011        .67065E-02    .27788E-04
   3  Normalizat    1.3115        .68319        .46785E-03    .19768E-04
   4  Prefactor     .78076        .22625        .19041E-03    .18598E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 213.882
  Index      = 2.29094
  Normalizat = 1.3115
  Prefactor  = 0.780761
 **********
 **   18 **HESSE 
 **********

 FCN=   2264.515     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     213.88        689.31        .27646E-04   -1.2772    
   2  Index         2.2909        1.2038        .26826E-03   -.57259    
   3  Normalizat    1.3115        .68196        .18714E-04   -.83224    
   4  Prefactor     .78076        .22590        .76164E-05   -1.0044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08457e-11
Minuit parameter uncertainties:
  1  718.486
  2  1.22093
  3  0.686719
  4  0.226172
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/835598': 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) = 2264.51509908
delta logL = 0.0337034576237

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  2.139e+02  7.185e+02  1.000e-04  1.000e+04 ( 1.000e-15)
370        Index:  2.291e+00  1.221e+00  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  7.808e-01  2.262e-01  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.311e+00  6.867e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
Ra Dec: 204.522 -41.995

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/835598/cmap_HighResolution_547516801_547776001_4FGL_J1338.0-4159_daily_bin1189.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.02e-02', job_status='DONE', photon_flux_upper_limit='4.03e-07', time_completed='2021-09-08 06:45:22.420237', job_id='835598', GAL2='0.78', fit_tolerance='1e-08', EG2='1.31', EG='1.32', time_epoch_completed='1631108722.42', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='3.37e-02', ts2='0.22', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='1189' AND source_name='4FGL J1338.0-4159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 06:45:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 835598: <4FGL_J1338.0-4159_daily_bin1189> in cluster <slac> Done

Job <4FGL_J1338.0-4159_daily_bin1189> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 06:35:23 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 06:35:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 06:35:41 2021
Terminated at Wed Sep  8 06:45:22 2021
Results reported at Wed Sep  8 06:45:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.0-4159_daily_bin1189 204.522 -41.9953 547516801 547776001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1338.0-4159 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   513.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             266.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   581 sec.
    Turnaround time :                            599 sec.

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

