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


Performing analysis on: 4FGL_J0338.9-2848_daily_bin1065
RA = 54.7447, Dec = -28.8009
tmin = 515376001, tmax = 515635201
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='723533', job_status='RUN', time_executed='2021-08-18 21:25:38.626390', time_epoch_executed='1629347138.63' WHERE source_name='4FGL J0338.9-2848' and cadence='daily' and bin_id='1065'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/723533

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/723533/ft1_4FGL_J0338.9-2848_daily_bin1065.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/723533/ft2_4FGL_J0338.9-2848_daily_bin1065.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/723533/ft1_4FGL_J0338.9-2848_daily_bin1065.fits outfile=/scratch/kocevski/723533/ft1_filteredMKT_4FGL_J0338.9-2848_daily_bin1065.fits ra=54.7447 dec=-28.8009 rad=12.0 tmin=515376001.0 tmax=515635201.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 5.98
user 3.25
sys 2.68

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/723533/ft2_4FGL_J0338.9-2848_daily_bin1065.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/723533/ft2_4FGL_J0338.9-2848_daily_bin1065.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/723533/ft1_filteredMKT_4FGL_J0338.9-2848_daily_bin1065.fits evtable="EVENTS" outfile="/scratch/kocevski/723533/ft1_filtered_4FGL_J0338.9-2848_daily_bin1065.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 2.98
user 0.34
sys 2.61

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/723533/ft1_filtered_4FGL_J0338.9-2848_daily_bin1065.fits" evtable="EVENTS" scfile=/scratch/kocevski/723533/ft2_4FGL_J0338.9-2848_daily_bin1065.fits sctable="SC_DATA" outfile=/scratch/kocevski/723533/ltcube_515376001_515635201_4FGL_J0338.9-2848_daily_bin1065.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/723533/ft2_4FGL_J0338.9-2848_daily_bin1065.fits
.....................!
real 16.17
user 13.00
sys 3.12

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/723533/ft1_filtered_4FGL_J0338.9-2848_daily_bin1065.fits evtable="EVENTS" scfile=/scratch/kocevski/723533/ft2_4FGL_J0338.9-2848_daily_bin1065.fits sctable="SC_DATA" expcube=/scratch/kocevski/723533/ltcube_515376001_515635201_4FGL_J0338.9-2848_daily_bin1065.fits outfile=/scratch/kocevski/723533/expmap_515376001_515635201_4FGL_J0338.9-2848_daily_bin1065.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/723533/ltcube_515376001_515635201_4FGL_J0338.9-2848_daily_bin1065.fits
.....................!
real 194.42
user 185.27
sys 8.50

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 Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 163 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 J0338.9-2848 @ 54.7447 -28.8009

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/723533/ft1_filtered_4FGL_J0338.9-2848_daily_bin1065.fits scfile=/scratch/kocevski/723533/ft2_4FGL_J0338.9-2848_daily_bin1065.fits outfile=/scratch/kocevski/723533/cmap_515376001_515635201_4FGL_J0338.9-2848_daily_bin1065.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=54.7447 yref=-28.8009 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 2.95
user 0.37
sys 2.56

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/723533/ft1_filtered_4FGL_J0338.9-2848_daily_bin1065.fits scfile=/scratch/kocevski/723533/ft2_4FGL_J0338.9-2848_daily_bin1065.fits outfile=/scratch/kocevski/723533/cmap_HighResolution_515376001_515635201_4FGL_J0338.9-2848_daily_bin1065.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=54.7447 yref=-28.8009 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 2.97
user 0.38
sys 2.55

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/723533/ft1_filtered_4FGL_J0338.9-2848_daily_bin1065.fits evtable="EVENTS" scfile=/scratch/kocevski/723533/ft2_4FGL_J0338.9-2848_daily_bin1065.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/723533/Model_4FGL_J0338.9-2848_daily_bin1065.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 EG_v02
adding source Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/723533/ft1_filtered_4FGL_J0338.9-2848_daily_bin1065.fits.....................!
real 152.07
user 147.19
sys 4.47

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/723533/ft1_filtered_4FGL_J0338.9-2848_daily_bin1065.fits', '/scratch/kocevski/723533/ft2_4FGL_J0338.9-2848_daily_bin1065.fits', expMap='/scratch/kocevski/723533/expmap_515376001_515635201_4FGL_J0338.9-2848_daily_bin1065.fits', expCube='/scratch/kocevski/723533/ltcube_515376001_515635201_4FGL_J0338.9-2848_daily_bin1065.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/723533/Model_4FGL_J0338.9-2848_daily_bin1065.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0338.9-2848'

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  7.603e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
259        Index:  1.942e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/723533/ft1_filtered_4FGL_J0338.9-2848_daily_bin1065.fits
Spacecraft file(s): /scratch/kocevski/723533/ft2_4FGL_J0338.9-2848_daily_bin1065.fits
Exposure map: /scratch/kocevski/723533/expmap_515376001_515635201_4FGL_J0338.9-2848_daily_bin1065.fits
Exposure cube: /scratch/kocevski/723533/ltcube_515376001_515635201_4FGL_J0338.9-2848_daily_bin1065.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/723533/Model_4FGL_J0338.9-2848_daily_bin1065.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) = 7160.78356033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.7962       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.0177       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.648       1.0000         .10000E-03   10000.    
     8 'norm      '    3.2921       1.0000         .10000E-03   10000.    
     9 'norm      '    .33280       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12759E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0082       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.8309       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.027       1.0000         .10000E-03   10000.    
    16 'norm      '    2.9972       1.0000         .10000E-03   10000.    
    17 'norm      '    .74040       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .64362       1.0000         .10000E-03   10000.    
    20 'norm      '    13.062       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .24210E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    .12570       1.0000         .10000E-03   10000.    
    23 'norm      '    3.9130       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .75058       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95386       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7160.778     FROM MIGRAD    STATUS=CONVERGED    595 CALLS     2964 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.2056       -.77333E-07** at limit **
   2  Prefactor     .10000E-03    4.4013       -.10588E-06** at limit **
   3  norm          8.7966        3.3518       -.87463E-07   -.31465E-04
   4  Prefactor     7.0196        12.398        .69384E-06    .86860E-03
   5  Prefactor     .10001E-03    44.944        .72530E-05** at limit **
   6  Prefactor     .10000E-03    10.490       -.26961E-06** at limit **
   7  Prefactor     26.639        27.075        .12322E-05    .20753E-03
   8  norm          3.2922        2.0600       -.24944E-07    .63340E-04
   9  norm          .33279        .32602       -.78080E-08   -.26805E-03
  10  Prefactor     .10002E-03    103.70       -.11417E-04** at limit **
  11  Prefactor     .10003E-03    113.56        .25102E-04** at limit **
  12  Prefactor     .10000E-03    .89841       -.98192E-07** at limit **
  13  Prefactor     2.0079        3.2440        .72258E-07    .58172E-03
  14  Prefactor     3.8309        2.7693        .11798E-06    .30131E-03
  15  Prefactor     15.027        11.287        .24228E-06    .22596E-03
  16  norm          2.9969        .91559        .50307E-07    .15444E-02
  17  norm          .73988        .90542        .22946E-07    .11020E-03
  18  Prefactor     .10000E-03    27.139       -.81773E-06** at limit **
  19  Prefactor     .64368        1.5322        .14023E-06    .61260E-03
  20  norm          13.060        9.1523       -.53627E-06   -.26367E-03
  21  Prefactor     .10005E-03    76.954        .35043E-04** at limit **
  22  norm          .12577        .20447       -.93045E-07    .28201E-03
  23  norm          3.9132        4.3157        .14133E-06    .24615E-03
  24  Normalizat    .75057        .13712        .76418E-06    .22483E-03
  25  Prefactor     .95378        .14571        .14758E-06    .11905E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.79661
  Prefactor  = 7.01956
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 26.6393
  norm       = 3.29222
  norm       = 0.332786
  Prefactor  = 0.000100015
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 2.00791
  Prefactor  = 3.83087
  Prefactor  = 15.0275
  norm       = 2.99687
  norm       = 0.739883
  Prefactor  = 0.0001
  Prefactor  = 0.643676
  norm       = 13.0601
  Prefactor  = 0.000100048
  norm       = 0.125769
  norm       = 3.91323
  Normalizat = 0.750568
  Prefactor  = 0.953775
 **********
 **   18 **HESSE 
 **********

 FCN=   7160.778     FROM HESSE     STATUS=OK           439 CALLS     3403 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.2148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.4235        .17337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.7966        3.3514        .92312E-04   -1.5115    
   4  Prefactor     7.0196        13.510        .75718E-03   -1.5178    
   5  Prefactor     .10001E-03    45.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.639        27.163        .77604E-04   -1.4675    
   8  norm          3.2922        2.0617        .92915E-04   -1.5345    
   9  norm          .33279        .33883        .46524E-03   -1.5593    
  10  Prefactor     .10002E-03    106.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10003E-03    117.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .93100        .15624E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.0079        3.2241        .17304E-03   -1.5425    
  14  Prefactor     3.8309        2.7394        .10984E-03   -1.5316    
  15  Prefactor     15.027        11.229        .10332E-03   -1.4932    
  16  norm          2.9969        .91382        .41458E-04   -1.5362    
  17  norm          .73988        .81183        .83800E-03   -1.5536    
  18  Prefactor     .10000E-03    27.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .64368        1.5029        .15618E-03   -1.5548    
  20  norm          13.060        9.0948        .11083E-03   -1.4985    
  21  Prefactor     .10005E-03    78.911        .51842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .12577        .19703        .45414E-03   -1.5637    
  23  norm          3.9132        4.2924        .17671E-03   -1.5312    
  24  Normalizat    .75057        .15725        .23548E-03   -1.0193    
  25  Prefactor     .95378        .16790        .23315E-03   -.94287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63449e-09
Minuit parameter uncertainties:
  1  1.37688e-05
  2  1.5598e-05
  3  3.35151
  4  13.5161
  5  0.000990143
  6  8.37233e-05
  7  27.1757
  8  2.06173
  9  0.338832
  10  0.0025374
  11  0.00366792
  12  1.15704e-05
  13  3.22433
  14  2.73946
  15  11.2302
  16  0.91382
  17  0.811842
  18  0.000109369
  19  1.50296
  20  9.09576
  21  0.00390183
  22  0.197026
  23  4.29271
  24  0.157342
  25  0.16799
Done.

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

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  1.000e-04  2.537e-03  1.000e-04  1.000e+04 ( 1.000e-14)
259        Index:  1.942e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  9.538e-01  1.680e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  7.506e-01  1.573e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 54.745 -28.801
Photon Flux Upper Limit: 4.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/723533/likelihoodResults_515376001_515635201_4FGL_J0338.9-2848_daily_bin1065.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) = 7160.7776511
delta logL = -4.44951865575e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7160.77760652
delta logL = 7.85576048656e-08

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 'Index     '    1.9806       1.0000          .0000       10.000    
     3 'Normalizat'    .75057       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95378       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7160.778     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      260 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10199E-03    3.1520        .12571    ** at limit **
   2  Index         2.1162        1.4686        .50000       -.10053E-04
   3  Normalizat    .75057        .12253E-02    .42962E-01    .10075E-02
   4  Prefactor     .95378        .13616E-02    .45687E-01    .82093E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101991
  Index      = 2.11616
  Normalizat = 0.750569
  Prefactor  = 0.953775
 **********
 **   18 **HESSE 
 **********

 FCN=   7160.778     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      299 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10199E-03    3.4552        .11980       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1162        1.4866        .50000       -.61477    
   3  Normalizat    .75057        .12400E-02    .23548E-03   -1.0193    
   4  Prefactor     .95378        .13782E-02    .23315E-03   -.94287    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.27462e-12
Minuit parameter uncertainties:
  1  0.0052462
  2  1.52154
  3  0.00124004
  4  0.00137821
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/723533': 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) = 7160.77760623
delta logL = 3.75171111955e-07

Extracting fit parameters...

4FGL J0338.9-2848
   Spectrum: PowerLaw
258    Prefactor:  1.020e-04  5.246e-03  1.000e-04  1.000e+04 ( 1.000e-14)
259        Index:  2.116e+00  1.522e+00  0.000e+00  1.000e+01 (-1.000e+00)
260        Scale:  2.410e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  9.538e-01  1.378e-03  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  7.506e-01  1.240e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 54.745 -28.801

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/723533/cmap_HighResolution_515376001_515635201_4FGL_J0338.9-2848_daily_bin1065.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.33e-03', job_status='DONE', photon_flux_upper_limit='4.47e-08', time_completed='2021-08-18 21:40:01.031346', job_id='723533', GAL2='0.95', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1629348001.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='3.75e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='1065' AND source_name='4FGL J0338.9-2848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 21:40:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 723533: <4FGL_J0338.9-2848_daily_bin1065> in cluster <slac> Done

Job <4FGL_J0338.9-2848_daily_bin1065> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Aug 18 21:23:59 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 21:24:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Aug 18 21:24:21 2021
Terminated at Wed Aug 18 21:40:04 2021
Results reported at Wed Aug 18 21:40:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0338.9-2848_daily_bin1065 54.7447 -28.8009 515376001 515635201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0338.9-2848 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   895.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            965 sec.

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

