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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1020
RA = 342.193, Dec = -32.5926
tmin = 503712001, tmax = 503971201
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='474465', job_status='RUN', time_executed='2021-09-28 20:42:12.385935', time_epoch_executed='1632886932.39' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1020'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/474465

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/474465/ft1_4FGL_J2248.7-3235_daily_bin1020.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/474465/ft2_4FGL_J2248.7-3235_daily_bin1020.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/474465/ft1_4FGL_J2248.7-3235_daily_bin1020.fits outfile=/scratch/kocevski/474465/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1020.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=503712001.0 tmax=503971201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.57
user 5.32
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/474465/ft2_4FGL_J2248.7-3235_daily_bin1020.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/474465/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1020.fits evtable="EVENTS" outfile="/scratch/kocevski/474465/ft1_filtered_4FGL_J2248.7-3235_daily_bin1020.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/474465/ft1_filtered_4FGL_J2248.7-3235_daily_bin1020.fits" evtable="EVENTS" scfile=/scratch/kocevski/474465/ft2_4FGL_J2248.7-3235_daily_bin1020.fits sctable="SC_DATA" outfile=/scratch/kocevski/474465/ltcube_503712001_503971201_4FGL_J2248.7-3235_daily_bin1020.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/474465/ft2_4FGL_J2248.7-3235_daily_bin1020.fits
.....................!
real 11.75
user 11.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/474465/ft1_filtered_4FGL_J2248.7-3235_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/474465/ft2_4FGL_J2248.7-3235_daily_bin1020.fits sctable="SC_DATA" expcube=/scratch/kocevski/474465/ltcube_503712001_503971201_4FGL_J2248.7-3235_daily_bin1020.fits outfile=/scratch/kocevski/474465/expmap_503712001_503971201_4FGL_J2248.7-3235_daily_bin1020.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/474465/ltcube_503712001_503971201_4FGL_J2248.7-3235_daily_bin1020.fits
.....................!
real 190.29
user 185.04
sys 4.90

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/474465/ft1_filtered_4FGL_J2248.7-3235_daily_bin1020.fits scfile=/scratch/kocevski/474465/ft2_4FGL_J2248.7-3235_daily_bin1020.fits outfile=/scratch/kocevski/474465/cmap_503712001_503971201_4FGL_J2248.7-3235_daily_bin1020.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/474465/ft1_filtered_4FGL_J2248.7-3235_daily_bin1020.fits scfile=/scratch/kocevski/474465/ft2_4FGL_J2248.7-3235_daily_bin1020.fits outfile=/scratch/kocevski/474465/cmap_HighResolution_503712001_503971201_4FGL_J2248.7-3235_daily_bin1020.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/474465/ft1_filtered_4FGL_J2248.7-3235_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/474465/ft2_4FGL_J2248.7-3235_daily_bin1020.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/474465/Model_4FGL_J2248.7-3235_daily_bin1020.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/474465/ft1_filtered_4FGL_J2248.7-3235_daily_bin1020.fits.....................!
real 54.52
user 53.23
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2173       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.3637       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1321       1.0000         .10000E-03   10000.    
     4 'norm      '    33.515       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.881       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.493       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.9079       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.534       1.0000         .10000E-03   10000.    
    16 'norm      '    .12575       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.486       1.0000         .10000E-03   10000.    
    19 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.7038       1.0000         .10000E-03   10000.    
    21 'Prefactor '    44.760       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.7824       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1865       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .71534       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=   7145.315     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2888 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2173        .36367        .10776E-07    .52192E-04
   2  Prefactor     9.3637        11.913        .24112E-06   -.23127E-05
   3  Prefactor     3.1317        8.0560        .35727E-05   -.24416E-03
   4  norm          33.513        17.686        .78927E-07   -.29714E-04
   5  Prefactor     .10000E-03    23.678       -.19126E-06** at limit **
   6  Prefactor     .10000E-03    22.545        .17022E-06** at limit **
   7  Prefactor     20.882        10.886        .22349E-06    .32061E-04
   8  Prefactor     .10000E-03    6.2769        .85745E-08** at limit **
   9  norm          .10000E-03    .45484       -.15638E-07** at limit **
  10  Prefactor     .10000E-03    12.289        .64944E-07** at limit **
  11  Prefactor     18.497        10.244        .67972E-07    .22184E-04
  12  Prefactor     .10000E-03    3.9580        .20019E-07** at limit **
  13  norm          .10000E-03    .86369       -.21599E-07** at limit **
  14  Prefactor     6.9124        12.691       -.45712E-07    .10817E-03
  15  Prefactor     10.531        11.583        .40675E-06    .14562E-03
  16  norm          .12546        .45723       -.30849E-08   -.86341E-04
  17  Prefactor     .10000E-03    13.506       -.17848E-06** at limit **
  18  Prefactor     14.488        11.601        .19223E-06    .15540E-03
  19  norm          .10000E-03    3.2306       -.46322E-06** at limit **
  20  norm          6.7047        9.0664       -.24697E-07   -.66064E-04
  21  Prefactor     44.801        74.707       -.55274E-05    .13550E-03
  22  Prefactor     .10000E-03    20.467        .20949E-06** at limit **
  23  norm          1.7792        11.893        .48472E-05    .28918E-03
  24  Normalizat    1.1862        .18161       -.20579E-05   -.26638E-04
  25  Prefactor     .71561        .16063        .11020E-05   -.49307E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.21732
  Prefactor  = 9.36375
  Prefactor  = 3.13173
  norm       = 33.5134
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.882
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.4966
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.91237
  Prefactor  = 10.5313
  norm       = 0.125459
  Prefactor  = 0.0001
  Prefactor  = 14.4878
  norm       = 0.0001
  norm       = 6.70465
  Prefactor  = 44.801
  Prefactor  = 0.0001
  norm       = 1.77924
  Normalizat = 1.18619
  Prefactor  = 0.715614
 **********
 **   18 **HESSE 
 **********

 FCN=   7145.315     FROM HESSE     STATUS=OK           429 CALLS     3317 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2173        .36306        .26875E-04   -1.5487    
   2  Prefactor     9.3637        11.916        .13097E-03   -1.5096    
   3  Prefactor     3.1317        8.1189        .11454E-02   -1.5354    
   4  norm          33.513        17.687        .69218E-04   -1.4550    
   5  Prefactor     .10000E-03    23.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.882        10.896        .87653E-04   -1.4794    
   8  Prefactor     .10000E-03    6.2800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .45736        .55649E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.497        10.266        .93135E-04   -1.4848    
  12  Prefactor     .10000E-03    3.9842        .16423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .86471        .76649E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.9124        12.566        .15265E-03   -1.5182    
  15  Prefactor     10.531        11.196        .12345E-03   -1.5059    
  16  norm          .12546        .54285        .74601E-03   -1.5637    
  17  Prefactor     .10000E-03    13.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.488        11.473        .10524E-03   -1.4947    
  19  norm          .10000E-03    3.2693        .14888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.7047        9.0633        .15498E-03   -1.5190    
  21  Prefactor     44.801        75.239        .59926E-04   -1.4368    
  22  Prefactor     .10000E-03    20.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.7792        12.239        .31345E-03   -1.5441    
  24  Normalizat    1.1862        .21903        .23496E-03   -.87031    
  25  Prefactor     .71561        .19498        .27815E-03   -1.0292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99539e-08
Minuit parameter uncertainties:
  1  0.363063
  2  11.9187
  3  8.12177
  4  17.6896
  5  0.000160722
  6  2.19035e-05
  7  10.8966
  8  1.96677e-06
  9  7.00301e-07
  10  6.44058e-05
  11  10.2668
  12  1.59544e-06
  13  1.50639e-06
  14  12.5711
  15  11.1986
  16  0.521738
  17  0.000121224
  18  11.4749
  19  4.79967e-05
  20  9.06518
  21  75.3988
  22  0.000183963
  23  9.33562
  24  0.219198
  25  0.195166
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.850e+01  1.027e+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:  7.156e-01  1.952e-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.186e+00  2.192e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.00
Ra Dec: 342.193 -32.593
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 6.56e-08 +/- 3.64e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 8.37e-06

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) = 7144.75192881
delta logL = 0.563217509893

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7144.73142276
delta logL = 0.583723560084

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.699       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2268       1.0000          .0000       10.000    
     3 'Normalizat'    1.2107       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69837       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=   7144.731     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      212 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.699        12.589        .22009E-02   -.29887E-03
   2  Index         2.2263        .43683        .20002       -.28220E-04
   3  Normalizat    1.2111        .16536        .52660E-01    .14906E-04
   4  Prefactor     .69789        .15592        .63560E-01    .51738E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.6991
  Index      = 2.22628
  Normalizat = 1.2111
  Prefactor  = 0.697895
 **********
 **   18 **HESSE 
 **********

 FCN=   7144.731     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.699        11.453        .88036E-04   -1.4798    
   2  Index         2.2263        .45216        .77574E-02   -.58806    
   3  Normalizat    1.2111        .19982        .23283E-03   -.86260    
   4  Prefactor     .69789        .18769        .28118E-03   -1.0361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81627e-10
Minuit parameter uncertainties:
  1  11.4545
  2  0.453053
  3  0.199943
  4  0.187862
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/474465': 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) = 7144.73141861
delta logL = 0.583727704346

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  2.070e+01  1.145e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  2.226e+00  4.531e-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:  6.979e-01  1.879e-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.211e+00  1.999e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.14
Ra Dec: 342.193 -32.593
Photon Index (Free Index): 2.23 +/- 0.45
Photon Flux (Free Index): 4.73e-08 +/- 3.16e-08
Energy Flux (Free Index): 2.03e-05 +/- 1.40e-05

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/474465/cmap_HighResolution_503712001_503971201_4FGL_J2248.7-3235_daily_bin1020.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.56e-08', energy_flux2='2.03e-05', photon_flux_error='3.64e-08', dlogl='5.84e-01', energy_flux='1.51e-05', photon_flux2='4.73e-08', job_status='DONE', time_completed='2021-09-28 20:53:33.049372', photon_index_error2='0.45', photon_index2='2.23', ts='7.00', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='1.40e-05', EG='1.19', time_epoch_completed='1632887613.05', return_code='0', job_id='474465', GAL2='0.70', EG2='1.21', return_code2='0', energy_flux_error='8.37e-06', photon_flux_error2='3.16e-08', ts2='8.14', photon_index='2.76' WHERE bin_id='1020' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:53:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 474465: <4FGL_J2248.7-3235_daily_bin1020> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin1020> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 20:40:49 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:40: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:40:51 2021
Terminated at Tue Sep 28 20:53:33 2021
Results reported at Tue Sep 28 20:53:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1020 342.193 -32.5926 503712001 503971201 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 :                                   674.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            764 sec.

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

