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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1072
RA = 342.193, Dec = -32.5926
tmin = 517190401, tmax = 517449601
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='474544', job_status='RUN', time_executed='2021-09-28 20:43:29.549297', time_epoch_executed='1632887009.55' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1072'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/474544

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/474544/ft1_4FGL_J2248.7-3235_daily_bin1072.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/474544/ft2_4FGL_J2248.7-3235_daily_bin1072.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/474544/ft1_4FGL_J2248.7-3235_daily_bin1072.fits outfile=/scratch/kocevski/474544/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1072.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=517190401.0 tmax=517449601.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 4.63
user 4.37
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/474544/ft2_4FGL_J2248.7-3235_daily_bin1072.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/474544/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1072.fits evtable="EVENTS" outfile="/scratch/kocevski/474544/ft1_filtered_4FGL_J2248.7-3235_daily_bin1072.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/474544/ft1_filtered_4FGL_J2248.7-3235_daily_bin1072.fits" evtable="EVENTS" scfile=/scratch/kocevski/474544/ft2_4FGL_J2248.7-3235_daily_bin1072.fits sctable="SC_DATA" outfile=/scratch/kocevski/474544/ltcube_517190401_517449601_4FGL_J2248.7-3235_daily_bin1072.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/474544/ft2_4FGL_J2248.7-3235_daily_bin1072.fits
.....................!
real 11.89
user 11.52
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/474544/ft1_filtered_4FGL_J2248.7-3235_daily_bin1072.fits evtable="EVENTS" scfile=/scratch/kocevski/474544/ft2_4FGL_J2248.7-3235_daily_bin1072.fits sctable="SC_DATA" expcube=/scratch/kocevski/474544/ltcube_517190401_517449601_4FGL_J2248.7-3235_daily_bin1072.fits outfile=/scratch/kocevski/474544/expmap_517190401_517449601_4FGL_J2248.7-3235_daily_bin1072.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/474544/ltcube_517190401_517449601_4FGL_J2248.7-3235_daily_bin1072.fits
.....................!
real 191.85
user 186.66
sys 4.81

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/474544/ft1_filtered_4FGL_J2248.7-3235_daily_bin1072.fits scfile=/scratch/kocevski/474544/ft2_4FGL_J2248.7-3235_daily_bin1072.fits outfile=/scratch/kocevski/474544/cmap_517190401_517449601_4FGL_J2248.7-3235_daily_bin1072.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/474544/ft1_filtered_4FGL_J2248.7-3235_daily_bin1072.fits scfile=/scratch/kocevski/474544/ft2_4FGL_J2248.7-3235_daily_bin1072.fits outfile=/scratch/kocevski/474544/cmap_HighResolution_517190401_517449601_4FGL_J2248.7-3235_daily_bin1072.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/474544/ft1_filtered_4FGL_J2248.7-3235_daily_bin1072.fits evtable="EVENTS" scfile=/scratch/kocevski/474544/ft2_4FGL_J2248.7-3235_daily_bin1072.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/474544/Model_4FGL_J2248.7-3235_daily_bin1072.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/474544/ft1_filtered_4FGL_J2248.7-3235_daily_bin1072.fits.....................!
real 46.56
user 45.21
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/474544/ft1_filtered_4FGL_J2248.7-3235_daily_bin1072.fits', '/scratch/kocevski/474544/ft2_4FGL_J2248.7-3235_daily_bin1072.fits', expMap='/scratch/kocevski/474544/expmap_517190401_517449601_4FGL_J2248.7-3235_daily_bin1072.fits', expCube='/scratch/kocevski/474544/ltcube_517190401_517449601_4FGL_J2248.7-3235_daily_bin1072.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/474544/Model_4FGL_J2248.7-3235_daily_bin1072.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/474544/ft1_filtered_4FGL_J2248.7-3235_daily_bin1072.fits
Spacecraft file(s): /scratch/kocevski/474544/ft2_4FGL_J2248.7-3235_daily_bin1072.fits
Exposure map: /scratch/kocevski/474544/expmap_517190401_517449601_4FGL_J2248.7-3235_daily_bin1072.fits
Exposure cube: /scratch/kocevski/474544/ltcube_517190401_517449601_4FGL_J2248.7-3235_daily_bin1072.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/474544/Model_4FGL_J2248.7-3235_daily_bin1072.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) = 5900.20802053

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8240       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .23674E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .30767E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.997       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.8655       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .26324E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.7159       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.302       1.0000         .10000E-03   10000.    
    16 'norm      '    .64491       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.6420       1.0000         .10000E-03   10000.    
    21 'Prefactor '    36.480       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.828       1.0000         .10000E-03   10000.    
    23 'norm      '    2.3242       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0384       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81919       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5900.121     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     2939 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8240        .42423        .63904E-08   -.24392E-03
   2  Prefactor     .10000E-03    46.767        .11458E-06** at limit **
   3  Prefactor     .10003E-03    4.2791        .91947E-06** at limit **
   4  norm          .10000E-03    11.385       -.52319E-06** at limit **
   5  Prefactor     .10000E-03    9.2147       -.65121E-07** at limit **
   6  Prefactor     .10000E-03    11.839       -.28244E-06** at limit **
   7  Prefactor     13.993        13.228        .27794E-06    .14463E-03
   8  Prefactor     .10000E-03    6.1238       -.72626E-08** at limit **
   9  norm          .10000E-03    .86314        .80343E-07** at limit **
  10  Prefactor     5.9367        98.362        .47418E-05    .66645E-04
  11  Prefactor     .10000E-03    26.991       -.20282E-05** at limit **
  12  Prefactor     .10000E-03    4.0818       -.87580E-08** at limit **
  13  norm          2.7158        3.4021       -.65646E-07   -.55875E-04
  14  Prefactor     .10000E-03    7.0269       -.91422E-07** at limit **
  15  Prefactor     17.299        13.943        .97188E-06   -.30019E-03
  16  norm          .64500        .97740       -.21539E-06   -.44362E-03
  17  Prefactor     .10000E-03    10.808        .48586E-06** at limit **
  18  Prefactor     .10000E-03    11.890        .17879E-06** at limit **
  19  norm          .10000E-03    1.7862       -.22257E-07** at limit **
  20  norm          6.6420        6.9302        .96089E-06   -.31204E-03
  21  Prefactor     36.486        47.950       -.38671E-06   -.11269E-04
  22  Prefactor     13.779        44.038        .33635E-05    .87650E-04
  23  norm          2.3231        4.7964        .36686E-06   -.77831E-04
  24  Normalizat    1.0384        .18694       -.10259E-05   -.91745E-04
  25  Prefactor     .81924        .17355        .27396E-06   -.13289E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.82401
  Prefactor  = 0.0001
  Prefactor  = 0.000100034
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.9927
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.93674
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.71575
  Prefactor  = 0.0001
  Prefactor  = 17.2989
  norm       = 0.645002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.64196
  Prefactor  = 36.4863
  Prefactor  = 13.7786
  norm       = 2.32306
  Normalizat = 1.03843
  Prefactor  = 0.819241
 **********
 **   18 **HESSE 
 **********

 FCN=   5900.121     FROM HESSE     STATUS=OK           429 CALLS     3368 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8240        .42476        .23398E-04   -1.5438    
   2  Prefactor     .10000E-03    48.916        .40143E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10003E-03    25.010        .28474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    11.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.2167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.993        13.116        .10706E-03   -1.4960    
   8  Prefactor     .10000E-03    6.1349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .86416        .69456E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.9367        106.99        .16582E-03   -1.5221    
  11  Prefactor     .10000E-03    28.110        .42888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.1995        .30304E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.7158        3.3748        .14807E-03   -1.5378    
  14  Prefactor     .10000E-03    7.0381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.299        14.560        .48144E-03   -1.4876    
  16  norm          .64500        .94254        .59702E-03   -1.5547    
  17  Prefactor     .10000E-03    10.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.159        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.7876        .10019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.6420        7.2014        .77852E-03   -1.5192    
  21  Prefactor     36.486        47.407        .66354E-04   -1.4499    
  22  Prefactor     13.779        45.542        .10771E-03   -1.4965    
  23  norm          2.3231        4.7115        .19945E-03   -1.5403    
  24  Normalizat    1.0384        .22067        .22807E-03   -.91754    
  25  Prefactor     .81924        .20902        .25153E-03   -.99023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94973e-09
Minuit parameter uncertainties:
  1  0.424758
  2  8.53966e-05
  3  0.00185513
  4  8.07153e-05
  5  6.25486e-06
  6  3.28493e-05
  7  13.1188
  8  1.86891e-06
  9  4.63773e-06
  10  50.5091
  11  0.000291204
  12  4.36957e-06
  13  3.37506
  14  1.29433e-05
  15  14.563
  16  0.942562
  17  6.43639e-05
  18  1.59562e-05
  19  1.33098e-06
  20  7.2023
  21  47.4556
  22  45.6568
  23  4.71229
  24  0.220867
  25  0.209227
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.000e-04  2.912e-04  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:  8.192e-01  2.092e-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.038e+00  2.209e-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: 9.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/474544/likelihoodResults_517190401_517449601_4FGL_J2248.7-3235_daily_bin1072.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) = 5900.12138316
delta logL = -0.000168518455212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5900.12121474
delta logL = -9.99170879368e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5900.121     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      243 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10259E-03    734.97        .36285E-02** at limit **
   2  Index         2.8815        6.3049        .50000       -.54043E-05
   3  Normalizat    1.0384        .20813E-01    .22808E-03    .32755E-03
   4  Prefactor     .81924        .20729E-01    .25153E-03    .23106E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102591
  Index      = 2.88152
  Normalizat = 1.03843
  Prefactor  = 0.819241
 **********
 **   18 **HESSE 
 **********

 FCN=   5900.121     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10259E-03    6656.2        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8815        5.1661        .50000       -.43752    
   3  Normalizat    1.0384        .53895E-01    .45615E-04   -.91754    
   4  Prefactor     .81924        .53684E-01    .10061E-04   -.99023    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.86197e-08
Minuit parameter uncertainties:
  1  0.197412
  2  2674.6
  3  0.0538982
  4  0.0536876
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/474544': 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) = 5900.12121451
delta logL = 1.30386069941e-07

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.026e-04  1.974e-01  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  2.882e+00  2.675e+03  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:  8.192e-01  5.369e-02  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.038e+00  5.390e-02  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/474544/cmap_HighResolution_517190401_517449601_4FGL_J2248.7-3235_daily_bin1072.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.59e-03', job_status='DONE', photon_flux_upper_limit='9.61e-08', time_completed='2021-09-28 20:55:30.516074', job_id='474544', GAL2='0.82', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1632887730.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.30e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1072' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:55:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 474544: <4FGL_J2248.7-3235_daily_bin1072> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin1072> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 20:40:57 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:40:59 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:40:59 2021
Terminated at Tue Sep 28 20:55:30 2021
Results reported at Tue Sep 28 20:55:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1072 342.193 -32.5926 517190401 517449601 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 :                                   715.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            873 sec.

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

