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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1626
RA = 342.193, Dec = -32.5926
tmin = 660787201, tmax = 661046401
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='171942', job_status='RUN', time_executed='2021-12-13 00:36:39.332441', time_epoch_executed='1639384599.33' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1626'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/171942

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/171942/ft1_4FGL_J2248.7-3235_daily_bin1626.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/171942/ft2_4FGL_J2248.7-3235_daily_bin1626.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/171942/ft1_4FGL_J2248.7-3235_daily_bin1626.fits outfile=/scratch/kocevski/171942/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1626.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=660787201.0 tmax=661046401.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.52
user 3.31
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/171942/ft1_filtered_4FGL_J2248.7-3235_daily_bin1626.fits" evtable="EVENTS" scfile=/scratch/kocevski/171942/ft2_4FGL_J2248.7-3235_daily_bin1626.fits sctable="SC_DATA" outfile=/scratch/kocevski/171942/ltcube_660787201_661046401_4FGL_J2248.7-3235_daily_bin1626.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/171942/ft2_4FGL_J2248.7-3235_daily_bin1626.fits
.....................!
real 11.56
user 11.17
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/171942/ft1_filtered_4FGL_J2248.7-3235_daily_bin1626.fits evtable="EVENTS" scfile=/scratch/kocevski/171942/ft2_4FGL_J2248.7-3235_daily_bin1626.fits sctable="SC_DATA" expcube=/scratch/kocevski/171942/ltcube_660787201_661046401_4FGL_J2248.7-3235_daily_bin1626.fits outfile=/scratch/kocevski/171942/expmap_660787201_661046401_4FGL_J2248.7-3235_daily_bin1626.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/171942/ltcube_660787201_661046401_4FGL_J2248.7-3235_daily_bin1626.fits
.....................!
real 191.12
user 185.19
sys 5.58

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/171942/ft1_filtered_4FGL_J2248.7-3235_daily_bin1626.fits scfile=/scratch/kocevski/171942/ft2_4FGL_J2248.7-3235_daily_bin1626.fits outfile=/scratch/kocevski/171942/cmap_660787201_661046401_4FGL_J2248.7-3235_daily_bin1626.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/171942/ft1_filtered_4FGL_J2248.7-3235_daily_bin1626.fits scfile=/scratch/kocevski/171942/ft2_4FGL_J2248.7-3235_daily_bin1626.fits outfile=/scratch/kocevski/171942/cmap_HighResolution_660787201_661046401_4FGL_J2248.7-3235_daily_bin1626.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/171942/ft1_filtered_4FGL_J2248.7-3235_daily_bin1626.fits evtable="EVENTS" scfile=/scratch/kocevski/171942/ft2_4FGL_J2248.7-3235_daily_bin1626.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/171942/Model_4FGL_J2248.7-3235_daily_bin1626.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/171942/ft1_filtered_4FGL_J2248.7-3235_daily_bin1626.fits.....................!
real 38.66
user 37.30
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3408       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.630       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6148       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.141       1.0000         .10000E-03   10000.    
     9 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    145.95       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.252       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.4698       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.511       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.2063       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.790       1.0000         .10000E-03   10000.    
    19 'norm      '    5.2082       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    30.220       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10494E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .93081       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83694       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=   4396.464     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2947 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3408        .50132        .13826E-09    .18865E-04
   2  Prefactor     .10000E-03    8.9142       -.82781E-07** at limit **
   3  Prefactor     .10000E-03    4.2859       -.15196E-06** at limit **
   4  norm          .10000E-03    10.437       -.85925E-08** at limit **
   5  Prefactor     .10000E-03    22.680       -.87741E-07** at limit **
   6  Prefactor     23.635        24.908        .19442E-06   -.24110E-04
   7  Prefactor     2.6117        26.426        .85711E-06   -.18008E-04
   8  Prefactor     10.140        20.463        .13372E-06   -.13913E-04
   9  norm          .10000E-03    1.2615        .60895E-07** at limit **
  10  Prefactor     145.96        72.820        .28638E-06   -.72909E-04
  11  Prefactor     13.256        16.065        .45493E-06   -.10467E-03
  12  Prefactor     6.4705        8.7101        .22530E-06   -.39203E-04
  13  norm          .10000E-03    1.7772        .53541E-07** at limit **
  14  Prefactor     .10000E-03    6.9454        .17085E-06** at limit **
  15  Prefactor     11.513        11.772       -.93464E-06   -.68291E-03
  16  norm          .10000E-03    .48093        .58997E-06** at limit **
  17  Prefactor     4.2556        286.70        .10794E-05    .12808E-04
  18  Prefactor     14.787        18.018       -.34788E-06   -.37391E-03
  19  norm          5.2077        5.0718       -.52890E-07   -.17895E-04
  20  norm          .10000E-03    3.6836        .12860E-07** at limit **
  21  Prefactor     30.243        49.719        .86144E-06    .80606E-05
  22  Prefactor     .10000E-03    116.00       -.65677E-06** at limit **
  23  norm          .10000E-03    2.0376        .33095E-06** at limit **
  24  Normalizat    .93051        .23455       -.21457E-05   -.62117E-04
  25  Prefactor     .83721        .21721        .20317E-05   -.27458E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.34076
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.6347
  Prefactor  = 2.61175
  Prefactor  = 10.14
  norm       = 0.0001
  Prefactor  = 145.958
  Prefactor  = 13.2563
  Prefactor  = 6.47046
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5126
  norm       = 0.0001
  Prefactor  = 4.25564
  Prefactor  = 14.7872
  norm       = 5.20767
  norm       = 0.0001
  Prefactor  = 30.2428
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.930507
  Prefactor  = 0.837209
 **********
 **   18 **HESSE 
 **********

 FCN=   4396.464     FROM HESSE     STATUS=OK           427 CALLS     3374 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3408        .50082        .27804E-04   -1.5476    
   2  Prefactor     .10000E-03    8.9241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.2978        .13395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    10.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     23.635        24.905        .82402E-04   -1.4735    
   7  Prefactor     2.6117        25.752        .25225E-03   -1.5385    
   8  Prefactor     10.140        20.451        .12583E-03   -1.5071    
   9  norm          .10000E-03    1.2654        .72553E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     145.96        72.030        .33354E-04   -1.3286    
  11  Prefactor     13.256        16.073        .11003E-03   -1.4980    
  12  Prefactor     6.4705        8.6921        .15778E-03   -1.5199    
  13  norm          .10000E-03    1.7866        .86269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.9559        .17066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.513        12.460        .11807E-03   -1.5029    
  16  norm          .10000E-03    .71358        .83212E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.2556        283.45        .19649E-03   -1.5295    
  18  Prefactor     14.787        17.988        .10415E-03   -1.4939    
  19  norm          5.2077        5.0724        .14045E-03   -1.5252    
  20  norm          .10000E-03    3.6971        .12427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     30.243        49.785        .72883E-04   -1.4608    
  22  Prefactor     .10000E-03    116.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.0203        .91832E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .93051        .26429        .24025E-03   -.95396    
  25  Prefactor     .83721        .24444        .24857E-03   -.98371    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.77445e-10
Minuit parameter uncertainties:
  1  0.500817
  2  3.25126e-06
  3  6.3745e-06
  4  2.06892e-06
  5  9.7647e-06
  6  24.9157
  7  16.4111
  8  20.4651
  9  2.16023e-06
  10  72.0729
  11  16.0777
  12  8.69378
  13  7.62991e-08
  14  2.48924e-07
  15  12.4624
  16  9.42888e-06
  17  69.8093
  18  17.9949
  19  5.07284
  20  8.551e-07
  21  49.8533
  22  0.000287386
  23  8.86052e-06
  24  0.264659
  25  0.244758
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.326e+01  1.608e+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:  8.372e-01  2.448e-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.305e-01  2.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/171942/likelihoodResults_660787201_661046401_4FGL_J2248.7-3235_daily_bin1626.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) = 4396.08420096
delta logL = 0.379599380587

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4396.0515331
delta logL = 0.412267246695

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9935       1.0000         .10000E-03   10000.    
     2 'Index     '    4.5401       1.0000          .0000       10.000    
     3 'Normalizat'    .88271       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87814       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=   4396.052     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      284 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9968        113.33        .95667E-04    .20553E-02
   2  Index         4.5406        6.9815        .71659E-02    .23300E-03
   3  Normalizat    .88265        .21896        .24580E-03   -.63248E-03
   4  Prefactor     .87805        .21484        .24333E-03   -.76927E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.99681
  Index      = 4.54062
  Normalizat = 0.882648
  Prefactor  = 0.878049
 **********
 **   18 **HESSE 
 **********

 FCN=   4396.052     FROM HESSE     STATUS=OK            23 CALLS      307 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9968        11.917        .38267E-05   -1.5362    
   2  Index         4.5406        2.9477        .28664E-03   -.92007E-01
   3  Normalizat    .88265        .25062        .49159E-04   -.97073    
   4  Prefactor     .87805        .24276        .48667E-04   -.96912    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16704e-09
Minuit parameter uncertainties:
  1  11.9269
  2  3.15455
  3  0.250954
  4  0.24306
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/171942': 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) = 4396.05153074
delta logL = 0.412269607265

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  2.997e+00  1.193e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  4.541e+00  3.155e+00  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.780e-01  2.431e-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.826e-01  2.510e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.80
Ra Dec: 342.193 -32.593
Photon Index (Free Index): 4.54 +/- 3.15
Photon Flux (Free Index): 7.61e-08 +/- 6.86e-08
Energy Flux (Free Index): 1.06e-05 +/- 1.04e-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/171942/cmap_HighResolution_660787201_661046401_4FGL_J2248.7-3235_daily_bin1626.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-02', comment='SUCCESS', energy_flux2='1.06e-05', dlogl='4.12e-01', photon_flux2='7.61e-08', job_status='DONE', time_completed='2021-12-13 00:46:19.915170', photon_index_error2='3.15', photon_index2='4.54', ts='0.88', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.64e-07', energy_flux_error2='1.04e-05', EG='0.93', time_epoch_completed='1639385179.92', return_code='0', job_id='171942', GAL2='0.88', EG2='0.88', return_code2='0', photon_flux_error2='6.86e-08', ts2='1.80', photon_index='2.76' WHERE bin_id='1626' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 13 00:46:19 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 171942: <4FGL_J2248.7-3235_daily_bin1626> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin1626> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Dec 13 00:36:00 2021
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 13 00:36:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 13 00:36:01 2021
Terminated at Mon Dec 13 00:46:20 2021
Results reported at Mon Dec 13 00:46:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1626 342.193 -32.5926 660787201 661046401 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 :                                   583.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             365.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   619 sec.
    Turnaround time :                            620 sec.

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

