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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1436
RA = 342.193, Dec = -32.5926
tmin = 611539201, tmax = 611798401
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='476138', job_status='RUN', time_executed='2021-09-28 20:46:28.814861', time_epoch_executed='1632887188.81' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1436'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/476138

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/476138/ft1_4FGL_J2248.7-3235_daily_bin1436.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/476138/ft2_4FGL_J2248.7-3235_daily_bin1436.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/476138/ft1_4FGL_J2248.7-3235_daily_bin1436.fits outfile=/scratch/kocevski/476138/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1436.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=611539201.0 tmax=611798401.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.44
user 3.25
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/476138/ft1_filtered_4FGL_J2248.7-3235_daily_bin1436.fits" evtable="EVENTS" scfile=/scratch/kocevski/476138/ft2_4FGL_J2248.7-3235_daily_bin1436.fits sctable="SC_DATA" outfile=/scratch/kocevski/476138/ltcube_611539201_611798401_4FGL_J2248.7-3235_daily_bin1436.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/476138/ft2_4FGL_J2248.7-3235_daily_bin1436.fits
.....................!
real 11.94
user 11.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/476138/ft1_filtered_4FGL_J2248.7-3235_daily_bin1436.fits evtable="EVENTS" scfile=/scratch/kocevski/476138/ft2_4FGL_J2248.7-3235_daily_bin1436.fits sctable="SC_DATA" expcube=/scratch/kocevski/476138/ltcube_611539201_611798401_4FGL_J2248.7-3235_daily_bin1436.fits outfile=/scratch/kocevski/476138/expmap_611539201_611798401_4FGL_J2248.7-3235_daily_bin1436.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/476138/ltcube_611539201_611798401_4FGL_J2248.7-3235_daily_bin1436.fits
.....................!
real 190.66
user 185.06
sys 4.51

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/476138/ft1_filtered_4FGL_J2248.7-3235_daily_bin1436.fits scfile=/scratch/kocevski/476138/ft2_4FGL_J2248.7-3235_daily_bin1436.fits outfile=/scratch/kocevski/476138/cmap_611539201_611798401_4FGL_J2248.7-3235_daily_bin1436.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/476138/ft1_filtered_4FGL_J2248.7-3235_daily_bin1436.fits scfile=/scratch/kocevski/476138/ft2_4FGL_J2248.7-3235_daily_bin1436.fits outfile=/scratch/kocevski/476138/cmap_HighResolution_611539201_611798401_4FGL_J2248.7-3235_daily_bin1436.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/476138/ft1_filtered_4FGL_J2248.7-3235_daily_bin1436.fits evtable="EVENTS" scfile=/scratch/kocevski/476138/ft2_4FGL_J2248.7-3235_daily_bin1436.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/476138/Model_4FGL_J2248.7-3235_daily_bin1436.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/476138/ft1_filtered_4FGL_J2248.7-3235_daily_bin1436.fits.....................!
real 49.61
user 48.08
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .68324       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    19.665       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15634E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15669E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.0695       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.0066       1.0000         .10000E-03   10000.    
    13 'norm      '    .17805       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.1409       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.700       1.0000         .10000E-03   10000.    
    16 'norm      '    .38420       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    12.974       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.8198       1.0000         .10000E-03   10000.    
    23 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1352       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .62292       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=   6669.423     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     3089 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .68322        .26637        .58019E-02   -.85517E-04
   2  Prefactor     .10000E-03    4.5789        .90712E-02** at limit **
   3  Prefactor     .10000E-03    2.1768        .90712E-02** at limit **
   4  norm          19.665        15.371        .22580E-02    .81837E-03
   5  Prefactor     .10000E-03    59.081        .90712E-02** at limit **
   6  Prefactor     .10000E-03    6.5705        .90712E-01** at limit **
   7  Prefactor     .10013E-03    5.3028        .91012E-01** at limit **
   8  Prefactor     .10000E-03    8.6328        .90712E-02** at limit **
   9  norm          .10000E-03    .36231        .90712E-02** at limit **
  10  Prefactor     .10000E-03    7.8967        .90712E-02** at limit **
  11  Prefactor     8.0681        8.4889        .35285E-02   -.56912E-03
  12  Prefactor     6.0060        5.7315        .40958E-02    .23753E-03
  13  norm          .17743        1.4886        .34965E-01    .15145E-02
  14  Prefactor     6.1463        14.471        .40502E-02   -.91600E-04
  15  Prefactor     17.708        10.485        .23800E-02    .12407E-03
  16  norm          .38311        .61320        .10788E-01    .15199E-02
  17  Prefactor     .10000E-03    16.855        .90712E-02** at limit **
  18  Prefactor     .10000E-03    4.3386        .90712E-02** at limit **
  19  norm          .10000E-03    1.4354        .90712E-02** at limit **
  20  norm          12.975        8.0344        .27801E-02    .12758E-02
  21  Prefactor     .10000E-03    92.830        .90712E-02** at limit **
  22  Prefactor     1.8147        100.35        .77389E-02   -.41079E-04
  23  norm          .10000E-03    2.5076        .90712E-02** at limit **
  24  Normalizat    1.1354        .15582        .36718E-01    .10256E-03
  25  Prefactor     .62287        .14937        .59612E-01    .10583E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.683219
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.6651
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100134
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.06808
  Prefactor  = 6.00598
  norm       = 0.177429
  Prefactor  = 6.1463
  Prefactor  = 17.7081
  norm       = 0.383113
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.9749
  Prefactor  = 0.000100001
  Prefactor  = 1.8147
  norm       = 0.0001
  Normalizat = 1.13539
  Prefactor  = 0.62287
 **********
 **   18 **HESSE 
 **********

 FCN=   6669.423     FROM HESSE     STATUS=OK           445 CALLS     3534 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .68322        .26717        .25578E-04   -1.5543    
   2  Prefactor     .10000E-03    4.5846        .17067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.1883        .11765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          19.665        15.366        .90320E-04   -1.4821    
   5  Prefactor     .10000E-03    60.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.5468        .77850E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10013E-03    11.119        .56232E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.6621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .36289        .47996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.9000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.0681        8.5104        .14114E-03   -1.5140    
  12  Prefactor     6.0060        5.7284        .16383E-03   -1.5218    
  13  norm          .17743        3.2388        .18429E-02   -1.5624    
  14  Prefactor     6.1463        15.078        .16201E-03   -1.5212    
  15  Prefactor     17.708        10.198        .95200E-04   -1.4866    
  16  norm          .38311        .54388        .58935E-03   -1.5584    
  17  Prefactor     .10000E-03    16.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.3510        .16585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.4388        .95552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          12.975        8.0321        .55603E-03   -1.4987    
  21  Prefactor     .10000E-03    94.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.8147        101.05        .30955E-03   -1.5439    
  23  norm          .10000E-03    2.5539        .12621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1354        .18813        .20246E-03   -.88624    
  25  Prefactor     .62287        .17873        .26369E-03   -1.0663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.60894e-08
Minuit parameter uncertainties:
  1  0.267168
  2  1.9362e-05
  3  8.51914e-06
  4  15.369
  5  0.000493577
  6  1.56014e-05
  7  0.00244524
  8  1.67737e-05
  9  1.77151e-06
  10  5.93254e-05
  11  8.51164
  12  5.72891
  13  1.51579
  14  15.0875
  15  10.1988
  16  0.543889
  17  4.76311e-05
  18  2.06741e-05
  19  1.24199e-05
  20  8.03276
  21  0.000476645
  22  27.1306
  23  3.92253e-06
  24  0.188244
  25  0.178893
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  8.068e+00  8.512e+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:  6.229e-01  1.789e-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.135e+00  1.882e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.29
Ra Dec: 342.193 -32.593
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 2.86e-08 +/- 3.01e-08
Energy Flux (Fixed Index): 6.58e-06 +/- 6.94e-06

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

Saving results to:
/scratch/kocevski/476138/likelihoodResults_611539201_611798401_4FGL_J2248.7-3235_daily_bin1436.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) = 6669.42295882
delta logL = 0.000252465683843

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6669.42290338
delta logL = 0.000307905685986

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1399       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7322       1.0000          .0000       10.000    
     3 'Normalizat'    1.1363       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62228       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=   6669.423     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      275 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1435        9.2651        .70263E-03   -.48573E-04
   2  Index         2.7326        1.1585        .11470E-01   -.58368E-05
   3  Normalizat    1.1362        .17998        .20240E-03   -.35724E-04
   4  Prefactor     .62227        .17592        .26381E-03   -.41931E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.14351
  Index      = 2.73257
  Normalizat = 1.1362
  Prefactor  = 0.622265
 **********
 **   18 **HESSE 
 **********

 FCN=   6669.423     FROM HESSE     STATUS=OK            27 CALLS      302 TOTAL
                     EDM=   .76E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1435        9.0489        .28105E-04   -1.5137    
   2  Index         2.7326        1.1311        .45882E-03   -.47067    
   3  Normalizat    1.1362        .18014        .80959E-05   -.88598    
   4  Prefactor     .62227        .17602        .10552E-04   -1.0666    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.59802e-12
Minuit parameter uncertainties:
  1  9.05046
  2  1.14365
  3  0.180234
  4  0.176179
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/476138': 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) = 6669.4229027
delta logL = 0.000308590354507

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  8.144e+00  9.050e+00  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  2.733e+00  1.144e+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:  6.223e-01  1.762e-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.136e+00  1.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.29
Ra Dec: 342.193 -32.593
Photon Index (Free Index): 2.73 +/- 1.14
Photon Flux (Free Index): 2.81e-08 +/- 3.55e-08
Energy Flux (Free Index): 6.60e-06 +/- 7.03e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/476138/cmap_HighResolution_611539201_611798401_4FGL_J2248.7-3235_daily_bin1436.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.58e-03', comment='SUCCESS', photon_flux='2.86e-08', energy_flux2='6.60e-06', photon_flux_error='3.01e-08', dlogl='3.09e-04', energy_flux='6.58e-06', photon_flux2='2.81e-08', job_status='DONE', time_completed='2021-09-28 20:59:04.776972', photon_index_error2='1.14', photon_index2='2.73', ts='1.29', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', photon_flux_upper_limit='9.59e-08', energy_flux_error2='7.03e-06', EG='1.14', time_epoch_completed='1632887944.78', return_code='0', job_id='476138', GAL2='0.62', EG2='1.14', return_code2='0', energy_flux_error='6.94e-06', photon_flux_error2='3.55e-08', ts2='1.29', photon_index='2.76' WHERE bin_id='1436' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:59:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 476138: <4FGL_J2248.7-3235_daily_bin1436> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1436 342.193 -32.5926 611539201 611798401 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 :                                   745.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            816 sec.

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

