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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1449
RA = 342.193, Dec = -32.5926
tmin = 614908801, tmax = 615168001
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='476159', job_status='RUN', time_executed='2021-09-28 20:48:43.584644', time_epoch_executed='1632887323.58' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1449'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/476159

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/476159/ft1_4FGL_J2248.7-3235_daily_bin1449.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/476159/ft2_4FGL_J2248.7-3235_daily_bin1449.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/476159/ft1_4FGL_J2248.7-3235_daily_bin1449.fits outfile=/scratch/kocevski/476159/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1449.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=614908801.0 tmax=615168001.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.61
user 3.39
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/476159/ft2_4FGL_J2248.7-3235_daily_bin1449.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/476159/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1449.fits evtable="EVENTS" outfile="/scratch/kocevski/476159/ft1_filtered_4FGL_J2248.7-3235_daily_bin1449.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.51
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/476159/ft1_filtered_4FGL_J2248.7-3235_daily_bin1449.fits" evtable="EVENTS" scfile=/scratch/kocevski/476159/ft2_4FGL_J2248.7-3235_daily_bin1449.fits sctable="SC_DATA" outfile=/scratch/kocevski/476159/ltcube_614908801_615168001_4FGL_J2248.7-3235_daily_bin1449.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/476159/ft2_4FGL_J2248.7-3235_daily_bin1449.fits
.....................!
real 11.75
user 11.39
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/476159/ft1_filtered_4FGL_J2248.7-3235_daily_bin1449.fits evtable="EVENTS" scfile=/scratch/kocevski/476159/ft2_4FGL_J2248.7-3235_daily_bin1449.fits sctable="SC_DATA" expcube=/scratch/kocevski/476159/ltcube_614908801_615168001_4FGL_J2248.7-3235_daily_bin1449.fits outfile=/scratch/kocevski/476159/expmap_614908801_615168001_4FGL_J2248.7-3235_daily_bin1449.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/476159/ltcube_614908801_615168001_4FGL_J2248.7-3235_daily_bin1449.fits
.....................!
real 193.60
user 187.81
sys 5.43

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/476159/ft1_filtered_4FGL_J2248.7-3235_daily_bin1449.fits scfile=/scratch/kocevski/476159/ft2_4FGL_J2248.7-3235_daily_bin1449.fits outfile=/scratch/kocevski/476159/cmap_614908801_615168001_4FGL_J2248.7-3235_daily_bin1449.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/476159/ft1_filtered_4FGL_J2248.7-3235_daily_bin1449.fits scfile=/scratch/kocevski/476159/ft2_4FGL_J2248.7-3235_daily_bin1449.fits outfile=/scratch/kocevski/476159/cmap_HighResolution_614908801_615168001_4FGL_J2248.7-3235_daily_bin1449.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/476159/ft1_filtered_4FGL_J2248.7-3235_daily_bin1449.fits evtable="EVENTS" scfile=/scratch/kocevski/476159/ft2_4FGL_J2248.7-3235_daily_bin1449.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/476159/Model_4FGL_J2248.7-3235_daily_bin1449.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/476159/ft1_filtered_4FGL_J2248.7-3235_daily_bin1449.fits.....................!
real 38.95
user 37.57
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .61566       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.012       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9467       1.0000         .10000E-03   10000.    
     4 'norm      '    19.567       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15432E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17958E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    36.641       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .18272       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.244       1.0000         .10000E-03   10000.    
    16 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    56.048       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.9173       1.0000         .10000E-03   10000.    
    20 'norm      '    .10131E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.367       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .89374       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98844       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=   4676.686     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     3358 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .61569        .32077       -.66718E-08    .20337E-03
   2  Prefactor     15.018        20.700       -.87386E-05    .22266E-04
   3  Prefactor     4.9473        7.3356       -.98081E-06   -.51899E-04
   4  norm          19.557        18.979        .14539E-04    .12489E-03
   5  Prefactor     .10000E-03    23.685        .68842E-05** at limit **
   6  Prefactor     .10000E-03    12.628       -.44139E-06** at limit **
   7  Prefactor     .10000E-03    18.777       -.67580E-05** at limit **
   8  Prefactor     .11053E-03    24.447       -.44886E-05** at limit **
   9  norm          .10000E-03    .91698       -.46611E-07** at limit **
  10  Prefactor     .10000E-03    473.74       -.58104E-04** at limit **
  11  Prefactor     36.640        15.601       -.31660E-06    .19391E-03
  12  Prefactor     .10003E-03    6.0202       -.12052E-05** at limit **
  13  norm          .17957        3.6585       -.39844E-06   -.62448E-04
  14  Prefactor     .10000E-03    6.2148        .58717E-07** at limit **
  15  Prefactor     13.245        10.749       -.78884E-06    .42871E-03
  16  norm          .10000E-03    .30170        .71847E-07** at limit **
  17  Prefactor     56.067        73.663        .13396E-04    .56543E-04
  18  Prefactor     .10000E-03    5.1243       -.89350E-08** at limit **
  19  norm          2.9178        3.2715       -.72112E-08    .85384E-04
  20  norm          .10000E-03    9.7208        .33165E-06** at limit **
  21  Prefactor     .10000E-03    16.072        .29389E-05** at limit **
  22  Prefactor     14.392        33.368       -.38608E-04    .14790E-05
  23  norm          .10000E-03    1.6844       -.46509E-07** at limit **
  24  Normalizat    .89368        .20453        .27873E-05    .64363E-03
  25  Prefactor     .98844        .19311        .67286E-07    .68479E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.615687
  Prefactor  = 15.0176
  Prefactor  = 4.94731
  norm       = 19.5565
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000110531
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 36.6404
  Prefactor  = 0.000100032
  norm       = 0.179572
  Prefactor  = 0.0001
  Prefactor  = 13.2455
  norm       = 0.0001
  Prefactor  = 56.0673
  Prefactor  = 0.0001
  norm       = 2.91776
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.3923
  norm       = 0.0001
  Normalizat = 0.893684
  Prefactor  = 0.98844
 **********
 **   18 **HESSE 
 **********

 FCN=   4676.686     FROM HESSE     STATUS=OK           431 CALLS     3789 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .61569        .32141        .27209E-04   -1.5551    
   2  Prefactor     15.018        20.717        .10337E-03   -1.4933    
   3  Prefactor     4.9473        7.3326        .18083E-03   -1.5263    
   4  norm          19.557        18.999        .90546E-04   -1.4823    
   5  Prefactor     .10000E-03    23.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .11053E-03    34.560        .92280E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .92177        .63923E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    492.49        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     36.640        15.624        .66209E-04   -1.4497    
  12  Prefactor     .10003E-03    34.141        .32303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .17957        40.556        .21555E-02   -1.5623    
  14  Prefactor     .10000E-03    6.2160        .16640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.245        10.832        .11006E-03   -1.4980    
  16  norm          .10000E-03    .36510        .68361E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     56.067        73.754        .53582E-04   -1.4209    
  18  Prefactor     .10000E-03    5.1372        .15106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.9178        3.2719        .12782E-03   -1.5366    
  20  norm          .10000E-03    10.033        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.392        33.453        .10567E-03   -1.4949    
  23  norm          .10000E-03    1.6975        .86644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .89368        .24741        .24665E-03   -.96682    
  25  Prefactor     .98844        .23346        .23356E-03   -.93116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43514e-08
Minuit parameter uncertainties:
  1  0.321415
  2  20.7265
  3  7.33395
  4  19.0051
  5  3.73829e-06
  6  1.67564e-05
  7  5.58567e-05
  8  0.0381775
  9  4.64208e-06
  10  0.00271059
  11  15.6257
  12  0.00209331
  13  5.39952
  14  5.8359e-06
  15  10.8333
  16  3.90206e-06
  17  73.8745
  18  4.01802e-06
  19  3.27212
  20  0.000100139
  21  1.32691e-05
  22  33.4963
  23  2.94659e-06
  24  0.247722
  25  0.233698
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  3.664e+01  1.563e+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:  9.884e-01  2.337e-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:  8.937e-01  2.477e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.03
Ra Dec: 342.193 -32.593
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 1.30e-07 +/- 5.53e-08
Energy Flux (Fixed Index): 2.99e-05 +/- 1.27e-05

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) = 4675.46728381
delta logL = 1.2182836819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4675.42505421
delta logL = 1.26051327508

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.936       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1336       1.0000          .0000       10.000    
     3 'Normalizat'    .94529       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95048       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=   4675.425     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      203 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.936        18.571        .15476E-02    .40725E-02
   2  Index         2.1334        .33726        .12873       -.27625E-04
   3  Normalizat    .94536        .19383        .45478E-01    .93811E-05
   4  Prefactor     .95043        .19138        .45645E-01    .82879E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.9363
  Index      = 2.13345
  Normalizat = 0.945356
  Prefactor  = 0.950433
 **********
 **   18 **HESSE 
 **********

 FCN=   4675.425     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.936        18.661        .61903E-04   -1.4412    
   2  Index         2.1334        .35908        .53706E-02   -.61054    
   3  Normalizat    .94536        .23261        .24063E-03   -.94884    
   4  Prefactor     .95043        .22904        .23747E-03   -.94400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34807e-08
Minuit parameter uncertainties:
  1  18.6632
  2  0.359541
  3  0.232861
  4  0.229277
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/476159': 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) = 4675.42505409
delta logL = 1.26051340354

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  4.194e+01  1.866e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  2.133e+00  3.595e-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:  9.504e-01  2.293e-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.454e-01  2.329e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.53
Ra Dec: 342.193 -32.593
Photon Index (Free Index): 2.13 +/- 0.36
Photon Flux (Free Index): 9.02e-08 +/- 4.82e-08
Energy Flux (Free Index): 4.61e-05 +/- 2.83e-05

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/476159/cmap_HighResolution_614908801_615168001_4FGL_J2248.7-3235_daily_bin1449.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.30e-07', energy_flux2='4.61e-05', photon_flux_error='5.53e-08', dlogl='1.26e+00', energy_flux='2.99e-05', photon_flux2='9.02e-08', job_status='DONE', time_completed='2021-09-28 20:58:18.304788', photon_index_error2='0.36', photon_index2='2.13', ts='13.03', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='2.83e-05', EG='0.89', time_epoch_completed='1632887898.3', return_code='0', job_id='476159', GAL2='0.95', EG2='0.95', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='4.82e-08', ts2='15.53', photon_index='2.76' WHERE bin_id='1449' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:58:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 476159: <4FGL_J2248.7-3235_daily_bin1449> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin1449> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 20:45:30 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:45:32 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:45:32 2021
Terminated at Tue Sep 28 20:58:19 2021
Results reported at Tue Sep 28 20:58:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1449 342.193 -32.5926 614908801 615168001 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 :                                   568.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             258.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            769 sec.

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

