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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin787
RA = 342.193, Dec = -32.5926
tmin = 443318401, tmax = 443577601
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='473080', job_status='RUN', time_executed='2021-09-28 20:38:37.093024', time_epoch_executed='1632886717.09' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='787'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/473080

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/473080/ft1_4FGL_J2248.7-3235_daily_bin787.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/473080/ft2_4FGL_J2248.7-3235_daily_bin787.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/473080/ft1_4FGL_J2248.7-3235_daily_bin787.fits outfile=/scratch/kocevski/473080/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin787.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=443318401.0 tmax=443577601.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.62
user 4.35
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/473080/ft2_4FGL_J2248.7-3235_daily_bin787.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/473080/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin787.fits evtable="EVENTS" outfile="/scratch/kocevski/473080/ft1_filtered_4FGL_J2248.7-3235_daily_bin787.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/473080/ft1_filtered_4FGL_J2248.7-3235_daily_bin787.fits" evtable="EVENTS" scfile=/scratch/kocevski/473080/ft2_4FGL_J2248.7-3235_daily_bin787.fits sctable="SC_DATA" outfile=/scratch/kocevski/473080/ltcube_443318401_443577601_4FGL_J2248.7-3235_daily_bin787.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/473080/ft2_4FGL_J2248.7-3235_daily_bin787.fits
.....................!
real 11.64
user 11.29
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/473080/ft1_filtered_4FGL_J2248.7-3235_daily_bin787.fits evtable="EVENTS" scfile=/scratch/kocevski/473080/ft2_4FGL_J2248.7-3235_daily_bin787.fits sctable="SC_DATA" expcube=/scratch/kocevski/473080/ltcube_443318401_443577601_4FGL_J2248.7-3235_daily_bin787.fits outfile=/scratch/kocevski/473080/expmap_443318401_443577601_4FGL_J2248.7-3235_daily_bin787.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/473080/ltcube_443318401_443577601_4FGL_J2248.7-3235_daily_bin787.fits
.....................!
real 191.89
user 185.98
sys 5.54

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/473080/ft1_filtered_4FGL_J2248.7-3235_daily_bin787.fits scfile=/scratch/kocevski/473080/ft2_4FGL_J2248.7-3235_daily_bin787.fits outfile=/scratch/kocevski/473080/cmap_443318401_443577601_4FGL_J2248.7-3235_daily_bin787.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/473080/ft1_filtered_4FGL_J2248.7-3235_daily_bin787.fits scfile=/scratch/kocevski/473080/ft2_4FGL_J2248.7-3235_daily_bin787.fits outfile=/scratch/kocevski/473080/cmap_HighResolution_443318401_443577601_4FGL_J2248.7-3235_daily_bin787.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.58
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/473080/ft1_filtered_4FGL_J2248.7-3235_daily_bin787.fits evtable="EVENTS" scfile=/scratch/kocevski/473080/ft2_4FGL_J2248.7-3235_daily_bin787.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/473080/Model_4FGL_J2248.7-3235_daily_bin787.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/473080/ft1_filtered_4FGL_J2248.7-3235_daily_bin787.fits.....................!
real 51.29
user 49.87
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9873       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.2623       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.987       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.1147       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3635       1.0000         .10000E-03   10000.    
     9 'norm      '    .47290       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0617       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .28628E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.564       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.0909       1.0000         .10000E-03   10000.    
    20 'norm      '    .11083E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .66295E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.2751       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .97817       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .75063       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=   7051.705     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     2523 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9873        .38518        .43877E-08    .65867E-04
   2  Prefactor     5.2632        9.2110        .87086E-06   -.70938E-03
   3  Prefactor     .10000E-03    2.2866        .22796E-07** at limit **
   4  norm          .10000E-03    4.3459       -.41408E-07** at limit **
   5  Prefactor     .10000E-03    22.357        .46193E-06** at limit **
   6  Prefactor     26.988        19.177        .33549E-07    .33444E-04
   7  Prefactor     8.1106        7.9841        .48747E-06   -.92081E-03
   8  Prefactor     3.3590        20.587        .44887E-05    .10224E-03
   9  norm          .47407        1.1876        .12046E-06   -.32264E-03
  10  Prefactor     .10000E-03    10.890        .27394E-05** at limit **
  11  Prefactor     2.0622        6.2207        .23612E-06   -.19178E-03
  12  Prefactor     .10000E-03    4.2216       -.57219E-06** at limit **
  13  norm          .10000E-03    .82137        .30951E-07** at limit **
  14  Prefactor     14.561        8.2084        .19150E-07   -.12597E-04
  15  Prefactor     .10000E-03    2.4576       -.41612E-08** at limit **
  16  norm          .10000E-03    .83608E-01   -.60211E-08** at limit **
  17  Prefactor     .10000E-03    17.542       -.99763E-06** at limit **
  18  Prefactor     .10000E-03    1.8644        .32937E-07** at limit **
  19  norm          3.0904        3.3362       -.34764E-07    .17296E-04
  20  norm          .10000E-03    9.7620       -.31887E-05** at limit **
  21  Prefactor     .10000E-03    181.09       -.33323E-05** at limit **
  22  Prefactor     .10000E-03    8.6783        .92367E-06** at limit **
  23  norm          5.2670        3.9778        .75108E-07    .92140E-04
  24  Normalizat    .97817        .14238       -.45697E-06    .18567E-03
  25  Prefactor     .75057        .14028       -.25531E-07    .92212E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.98734
  Prefactor  = 5.26321
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.9877
  Prefactor  = 8.11064
  Prefactor  = 3.35899
  norm       = 0.474066
  Prefactor  = 0.000100001
  Prefactor  = 2.06216
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.5612
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.09041
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 5.26705
  Normalizat = 0.978171
  Prefactor  = 0.750568
 **********
 **   18 **HESSE 
 **********

 FCN=   7051.705     FROM HESSE     STATUS=OK           427 CALLS     2950 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9873        .38553        .22284E-04   -1.5426    
   2  Prefactor     5.2632        11.561        .87609E-03   -1.5249    
   3  Prefactor     .10000E-03    2.3051        .12397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.3490        .17097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     26.988        19.149        .77115E-04   -1.4669    
   7  Prefactor     8.1106        8.9784        .70372E-03   -1.5138    
   8  Prefactor     3.3590        20.780        .22065E-03   -1.5341    
   9  norm          .47407        .98756        .13977E-02   -1.5570    
  10  Prefactor     .10000E-03    11.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.0622        6.3087        .28779E-03   -1.5421    
  12  Prefactor     .10000E-03    9.7520        .32954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .82458        .74279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.561        8.1655        .10495E-03   -1.4945    
  15  Prefactor     .10000E-03    2.4907        .12824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .85783E-01    .47278E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.8687        .11196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.0904        3.3430        .14987E-03   -1.5356    
  20  norm          .10000E-03    10.133        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    185.27        .42020E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.7094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.2670        3.9731        .13477E-03   -1.5249    
  24  Normalizat    .97817        .17062        .21028E-03   -.93765    
  25  Prefactor     .75057        .16847        .24060E-03   -1.0158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.86478e-09
Minuit parameter uncertainties:
  1  0.385527
  2  11.5664
  3  7.72631e-08
  4  1.62821e-06
  5  2.22386e-05
  6  19.1538
  7  8.9799
  8  16.7178
  9  0.987599
  10  0.000187373
  11  6.31069
  12  0.000128001
  13  6.29519e-07
  14  8.16613
  15  4.84805e-07
  16  2.66295e-09
  17  8.67154e-05
  18  1.22009e-06
  19  3.34315
  20  0.000153327
  21  0.00068634
  22  5.77418e-05
  23  3.97328
  24  0.170713
  25  0.168588
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  2.062e+00  6.311e+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

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  7.506e-01  1.686e-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:  9.782e-01  1.707e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 342.193 -32.593
Photon Flux Upper Limit: 6.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/473080/likelihoodResults_443318401_443577601_4FGL_J2248.7-3235_daily_bin787.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) = 7051.68008137
delta logL = 0.0246417690742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7051.6174381
delta logL = 0.0872850453816

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25726E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    8.6968       1.0000          .0000       10.000    
     3 'Normalizat'    .96231       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76404       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=   7051.617     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      317 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24220E-02    .62713E-01    .18050E-02** at limit **
   2  Index         8.7439        9.2713        .50000        .68936E-04
   3  Normalizat    .96243        .18739E-01    .45693E-01   -.10959E-03
   4  Prefactor     .76404        .19117E-01    .43247E-01    .14935E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00242196
  Index      = 8.7439
  Normalizat = 0.962428
  Prefactor  = 0.764037
 **********
 **   18 **HESSE 
 **********

 FCN=   7051.617     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      350 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24220E-02    .48473        .76612E-04   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.7439        5.4952        .32617E-02    .84622    
   3  Normalizat    .96243        .10800        .21181E-03   -.94300    
   4  Prefactor     .76404        .10773        .23873E-03   -1.0107    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.86104e-09
Minuit parameter uncertainties:
  1  0.0670982
  2  19.507
  3  0.108027
  4  0.107757
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/473080': 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) = 7051.61742635
delta logL = 0.0872967906334

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  2.422e-03  6.710e-02  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  8.744e+00  1.951e+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:  7.640e-01  1.078e-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:  9.624e-01  1.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/473080/cmap_HighResolution_443318401_443577601_4FGL_J2248.7-3235_daily_bin787.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.14e-03', job_status='DONE', photon_flux_upper_limit='6.51e-08', time_completed='2021-09-28 20:50:49.753131', job_id='473080', GAL2='0.76', fit_tolerance='1e-08', EG2='0.96', EG='0.98', time_epoch_completed='1632887449.75', return_code2='102', ts='0.13', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='8.73e-02', ts2='0.32', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='787' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:50:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 473080: <4FGL_J2248.7-3235_daily_bin787> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin787> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 20:35:48 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:35:51 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:35:51 2021
Terminated at Tue Sep 28 20:50:50 2021
Results reported at Tue Sep 28 20:50:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin787 342.193 -32.5926 443318401 443577601 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 :                                   731.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            902 sec.

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

