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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1279
RA = 342.193, Dec = -32.5926
tmin = 570844801, tmax = 571104001
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='474872', job_status='RUN', time_executed='2021-09-28 20:44:36.700019', time_epoch_executed='1632887076.7' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1279'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/474872

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/474872/ft1_4FGL_J2248.7-3235_daily_bin1279.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/474872/ft2_4FGL_J2248.7-3235_daily_bin1279.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/474872/ft1_4FGL_J2248.7-3235_daily_bin1279.fits outfile=/scratch/kocevski/474872/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1279.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=570844801.0 tmax=571104001.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.80
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/474872/ft2_4FGL_J2248.7-3235_daily_bin1279.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/474872/ft2_4FGL_J2248.7-3235_daily_bin1279.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/474872/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1279.fits evtable="EVENTS" outfile="/scratch/kocevski/474872/ft1_filtered_4FGL_J2248.7-3235_daily_bin1279.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/474872/ft1_filtered_4FGL_J2248.7-3235_daily_bin1279.fits" evtable="EVENTS" scfile=/scratch/kocevski/474872/ft2_4FGL_J2248.7-3235_daily_bin1279.fits sctable="SC_DATA" outfile=/scratch/kocevski/474872/ltcube_570844801_571104001_4FGL_J2248.7-3235_daily_bin1279.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/474872/ft2_4FGL_J2248.7-3235_daily_bin1279.fits
.....................!
real 12.48
user 12.11
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/474872/ft1_filtered_4FGL_J2248.7-3235_daily_bin1279.fits evtable="EVENTS" scfile=/scratch/kocevski/474872/ft2_4FGL_J2248.7-3235_daily_bin1279.fits sctable="SC_DATA" expcube=/scratch/kocevski/474872/ltcube_570844801_571104001_4FGL_J2248.7-3235_daily_bin1279.fits outfile=/scratch/kocevski/474872/expmap_570844801_571104001_4FGL_J2248.7-3235_daily_bin1279.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/474872/ltcube_570844801_571104001_4FGL_J2248.7-3235_daily_bin1279.fits
.....................!
real 192.59
user 186.66
sys 5.61

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
Added 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J2248.7-3235 @ 342.193 -32.5926

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/474872/ft1_filtered_4FGL_J2248.7-3235_daily_bin1279.fits scfile=/scratch/kocevski/474872/ft2_4FGL_J2248.7-3235_daily_bin1279.fits outfile=/scratch/kocevski/474872/cmap_570844801_571104001_4FGL_J2248.7-3235_daily_bin1279.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=342.193 yref=-32.5926 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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/474872/ft1_filtered_4FGL_J2248.7-3235_daily_bin1279.fits scfile=/scratch/kocevski/474872/ft2_4FGL_J2248.7-3235_daily_bin1279.fits outfile=/scratch/kocevski/474872/cmap_HighResolution_570844801_571104001_4FGL_J2248.7-3235_daily_bin1279.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=342.193 yref=-32.5926 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/474872/ft1_filtered_4FGL_J2248.7-3235_daily_bin1279.fits evtable="EVENTS" scfile=/scratch/kocevski/474872/ft2_4FGL_J2248.7-3235_daily_bin1279.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/474872/Model_4FGL_J2248.7-3235_daily_bin1279.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 GAL_V02
Working on...
/scratch/kocevski/474872/ft1_filtered_4FGL_J2248.7-3235_daily_bin1279.fits........................!
real 19.50
user 18.25
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/474872/ft1_filtered_4FGL_J2248.7-3235_daily_bin1279.fits', '/scratch/kocevski/474872/ft2_4FGL_J2248.7-3235_daily_bin1279.fits', expMap='/scratch/kocevski/474872/expmap_570844801_571104001_4FGL_J2248.7-3235_daily_bin1279.fits', expCube='/scratch/kocevski/474872/ltcube_570844801_571104001_4FGL_J2248.7-3235_daily_bin1279.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/474872/Model_4FGL_J2248.7-3235_daily_bin1279.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2248.7-3235'

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  4.211e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  2.761e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
313        Scale:  4.468e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/474872/ft1_filtered_4FGL_J2248.7-3235_daily_bin1279.fits
Spacecraft file(s): /scratch/kocevski/474872/ft2_4FGL_J2248.7-3235_daily_bin1279.fits
Exposure map: /scratch/kocevski/474872/expmap_570844801_571104001_4FGL_J2248.7-3235_daily_bin1279.fits
Exposure cube: /scratch/kocevski/474872/ltcube_570844801_571104001_4FGL_J2248.7-3235_daily_bin1279.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/474872/Model_4FGL_J2248.7-3235_daily_bin1279.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) = 1062.81771506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    58.307       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .38086E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    70.298       1.0000         .10000E-03   10000.    
     4 'norm      '    8.3958       1.0000         .10000E-03   10000.    
     5 'Prefactor '    155.29       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12126E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .72617E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .29429       1.0000         .10000E-03   10000.    
     9 'norm      '    5.6188       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .46627E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .27856E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .69310E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.9017       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .97166E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .19412E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .87942       1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.209       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.5462       1.0000         .10000E-03   10000.    
    19 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    30.144       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11290E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.3342       1.0000         .10000E-03   10000.    
    23 'norm      '    10.308       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1593       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .19232       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1062.638     FROM MIGRAD    STATUS=CONVERGED    239 CALLS     2212 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          44.656        87.449       -.10459E-04    .13764E-02
   2  Prefactor     .10000E-03    78.037       -.52937E-04** at limit **
   3  Prefactor     71.514        90.170       -.13104E-05    .54173E-02
   4  norm          9.2339        78.004        .98207E-04    .48273E-03
   5  Prefactor     149.06        264.95       -.12245E-04    .25647E-02
   6  Prefactor     .10000E-03    41.495       -.10189E-04** at limit **
   7  Prefactor     .10000E-03    15.475        .57551E-05** at limit **
   8  Prefactor     .10000E-03    130.90        .23893E-04** at limit **
   9  norm          5.6141        5.4228       -.32749E-05    .69258E-05
  10  Prefactor     .10000E-03    52.865        .43976E-04** at limit **
  11  Prefactor     .79549        229.92        .69456E-04   -.10398E-03
  12  Prefactor     .10000E-03    12.875        .22769E-05** at limit **
  13  norm          6.9016        7.6516        .93470E-06   -.47941E-04
  14  Prefactor     .10000E-03    22.228        .16218E-05** at limit **
  15  Prefactor     .10000E-03    14.768        .60841E-05** at limit **
  16  norm          .87715        1.1246       -.91869E-07   -.17186E-03
  17  Prefactor     37.271        23.395       -.41905E-05   -.21293E-01
  18  Prefactor     8.5690        18.515        .51961E-05   -.74615E-04
  19  norm          .10000E-03    3.5350       -.80893E-06** at limit **
  20  norm          29.881        19.070       -.68788E-05    .16481E-03
  21  Prefactor     .10000E-03    101.77        .51144E-04** at limit **
  22  Prefactor     8.6240        106.72        .48442E-04   -.16779E-02
  23  norm          10.391        8.6203       -.84288E-06   -.78348E-04
  24  Normalizat    1.1593        .41269       -.13792E-04   -.53877E-04
  25  Prefactor     .19638        .36385        .26680E-04   -.26373E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 44.6557
  Prefactor  = 0.0001
  Prefactor  = 71.5142
  norm       = 9.23389
  Prefactor  = 149.062
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 5.6141
  Prefactor  = 0.0001
  Prefactor  = 0.79549
  Prefactor  = 0.0001
  norm       = 6.90158
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.87715
  Prefactor  = 37.2709
  Prefactor  = 8.56899
  norm       = 0.0001
  norm       = 29.8806
  Prefactor  = 0.0001
  Prefactor  = 8.62398
  norm       = 10.3906
  Normalizat = 1.15933
  Prefactor  = 0.196385
 **********
 **   18 **HESSE 
 **********

 FCN=   1062.638     FROM HESSE     STATUS=OK           475 CALLS     2687 TOTAL
                     EDM=   .79E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          44.656        88.183        .13135E-02   -1.4370    
   2  Prefactor     .10000E-03    78.169        .10643E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     71.514        92.762        .11969E-02   -1.4015    
   4  norm          9.2339        77.781        .34588E-02   -1.5100    
   5  Prefactor     149.06        270.84        .80878E-03   -1.3260    
   6  Prefactor     .10000E-03    41.477        .90836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.459        .10479E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    132.97        .10400E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.6141        5.4295        .42368E-02   -1.5234    
  10  Prefactor     .10000E-03    52.948        .92536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .79549        43.974        .91614E-01   -1.5530    
  12  Prefactor     .10000E-03    12.967        .10493E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.9016        7.6586        .38179E-02   -1.5182    
  14  Prefactor     .10000E-03    22.244        .90716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.699        .10128E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .87715        1.1289        .76299E-02   -1.5521    
  17  Prefactor     37.271        75.725        .16210E-02   -1.4486    
  18  Prefactor     8.5690        18.386        .34281E-02   -1.5122    
  19  norm          .10000E-03    3.5271        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          29.881        18.945        .18244E-02   -1.4614    
  21  Prefactor     .10000E-03    101.62        .90794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.6240        112.97        .34717E-02   -1.5121    
  23  norm          10.391        8.5852        .31199E-02   -1.5063    
  24  Normalizat    1.1593        .41590        .35978E-01   -.87869    
  25  Prefactor     .19638        .38507        .92314E-01   -1.2896    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.87777e-06
Minuit parameter uncertainties:
  1  88.442
  2  0.000165416
  3  92.95
  4  53.6936
  5  273.151
  6  0.000100289
  7  2.89964e-05
  8  0.000584646
  9  5.42995
  10  0.000112217
  11  11.8374
  12  1.86141e-06
  13  7.65967
  14  7.98772e-06
  15  2.23313e-05
  16  1.1289
  17  75.9216
  18  18.3986
  19  1.85423e-06
  20  18.949
  21  0.000298983
  22  62.5712
  23  8.58619
  24  0.417092
  25  0.390196
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  7.955e-01  1.184e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  2.761e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
313        Scale:  4.468e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  1.964e-01  3.902e-01  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  1.159e+00  4.171e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 342.193 -32.593
Photon Flux Upper Limit: 2.77e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/474872/likelihoodResults_570844801_571104001_4FGL_J2248.7-3235_daily_bin1279.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) = 1062.63768564
delta logL = 0.00016766746603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1062.63764392
delta logL = 0.000209391628687

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .79558       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9039       1.0000          .0000       10.000    
     3 'Normalizat'    1.1591       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .19640       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1062.638     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      234 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .90347        217.53        .98762E-01    .34089E-04
   2  Index         2.9490        5.8520        .50000       -.34398E-05
   3  Normalizat    1.1585        .23597E-01    .35981E-01   -.10298E-03
   4  Prefactor     .19677        .22359E-01    .92225E-01    .77187E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.903468
  Index      = 2.94895
  Normalizat = 1.15847
  Prefactor  = 0.196773
 **********
 **   18 **HESSE 
 **********

 FCN=   1062.638     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .90347        241.08        .33875E-02   -1.5518    
   2  Index         2.9490        5.0668        .30313E-01   -.42268    
   3  Normalizat    1.1585        .38808        .18798E-03   -.87896    
   4  Prefactor     .19677        .35554        .40851E-03   -1.2893    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76095e-09
Minuit parameter uncertainties:
  1  29.6364
  2  10.3361
  3  0.389043
  4  0.359546
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/474872': 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) = 1062.63761893
delta logL = 0.000234375428818

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  9.035e-01  2.964e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  2.949e+00  1.034e+01  0.000e+00  1.000e+01 (-1.000e+00)
313        Scale:  4.468e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  1.968e-01  3.595e-01  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  1.158e+00  3.890e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 342.193 -32.593

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/474872/cmap_HighResolution_570844801_571104001_4FGL_J2248.7-3235_daily_bin1279.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.19e-02', job_status='DONE', photon_flux_upper_limit='2.77e-07', time_completed='2021-09-28 20:50:52.448147', job_id='474872', GAL2='0.20', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1632887452.45', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.20', dlogl='2.34e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1279' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:50:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 474872: <4FGL_J2248.7-3235_daily_bin1279> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin1279> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 20:41:26 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:41:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 20:41:28 2021
Terminated at Tue Sep 28 20:50:53 2021
Results reported at Tue Sep 28 20:50:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1279 342.193 -32.5926 570844801 571104001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2248.7-3235 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   376.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             238.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   564 sec.
    Turnaround time :                            567 sec.

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

