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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin631
RA = 342.193, Dec = -32.5926
tmin = 402883201, tmax = 403142401
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='472856', job_status='RUN', time_executed='2021-09-28 20:38:54.643823', time_epoch_executed='1632886734.64' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='631'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/472856

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/472856/ft1_4FGL_J2248.7-3235_daily_bin631.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/472856/ft2_4FGL_J2248.7-3235_daily_bin631.fits


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

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

Done.
real 4.61
user 4.38
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/472856/ft1_filtered_4FGL_J2248.7-3235_daily_bin631.fits" evtable="EVENTS" scfile=/scratch/kocevski/472856/ft2_4FGL_J2248.7-3235_daily_bin631.fits sctable="SC_DATA" outfile=/scratch/kocevski/472856/ltcube_402883201_403142401_4FGL_J2248.7-3235_daily_bin631.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/472856/ft2_4FGL_J2248.7-3235_daily_bin631.fits
.....................!
real 12.61
user 12.22
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/472856/ft1_filtered_4FGL_J2248.7-3235_daily_bin631.fits evtable="EVENTS" scfile=/scratch/kocevski/472856/ft2_4FGL_J2248.7-3235_daily_bin631.fits sctable="SC_DATA" expcube=/scratch/kocevski/472856/ltcube_402883201_403142401_4FGL_J2248.7-3235_daily_bin631.fits outfile=/scratch/kocevski/472856/expmap_402883201_403142401_4FGL_J2248.7-3235_daily_bin631.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/472856/ltcube_402883201_403142401_4FGL_J2248.7-3235_daily_bin631.fits
.....................!
real 191.88
user 185.93
sys 5.60

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/472856/ft1_filtered_4FGL_J2248.7-3235_daily_bin631.fits scfile=/scratch/kocevski/472856/ft2_4FGL_J2248.7-3235_daily_bin631.fits outfile=/scratch/kocevski/472856/cmap_402883201_403142401_4FGL_J2248.7-3235_daily_bin631.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/472856/ft1_filtered_4FGL_J2248.7-3235_daily_bin631.fits scfile=/scratch/kocevski/472856/ft2_4FGL_J2248.7-3235_daily_bin631.fits outfile=/scratch/kocevski/472856/cmap_HighResolution_402883201_403142401_4FGL_J2248.7-3235_daily_bin631.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/472856/ft1_filtered_4FGL_J2248.7-3235_daily_bin631.fits evtable="EVENTS" scfile=/scratch/kocevski/472856/ft2_4FGL_J2248.7-3235_daily_bin631.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/472856/Model_4FGL_J2248.7-3235_daily_bin631.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/472856/ft1_filtered_4FGL_J2248.7-3235_daily_bin631.fits.....................!
real 44.07
user 42.68
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .74182       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    16.269       1.0000         .10000E-03   10000.    
     5 'Prefactor '    64.029       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15493       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.614       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.8617       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.0399       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.921       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.5700       1.0000         .10000E-03   10000.    
    20 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    39.760       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    159.89       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91279       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0152       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5556.733     FROM MIGRAD    STATUS=CONVERGED    115 CALLS     2446 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .74176        .33098        .59060E-07    .59137E-04
   2  Prefactor     .10000E-03    15.768       -.59578E-05** at limit **
   3  Prefactor     .10000E-03    3.6434       -.18375E-05** at limit **
   4  norm          16.265        1.1249        .81963E-07   -.10781E-02
   5  Prefactor     64.011        1.5979       -.52017E-07    .23768E-02
   6  Prefactor     .10023E-03    534.00       -.14406E-05** at limit **
   7  Prefactor     22.609        1.4334        .15017E-06   -.25458E-02
   8  Prefactor     .10000E-03    10.751        .46685E-05** at limit **
   9  norm          2.8612        2.1958       -.22471E-06   -.43550E-04
  10  Prefactor     .10000E-03    63.909        .13397E-05** at limit **
  11  Prefactor     .10000E-03    3.1655        .12445E-05** at limit **
  12  Prefactor     4.0389        6.1700       -.27131E-05   -.80993E-03
  13  norm          .10000E-03    2.3459       -.35630E-06** at limit **
  14  Prefactor     18.919        1.3240        .11719E-06   -.14630E-02
  15  Prefactor     .10000E-03    2.4676       -.11429E-05** at limit **
  16  norm          .10000E-03    .16839        .44620E-06** at limit **
  17  Prefactor     .10001E-03    10.663        .15626E-05** at limit **
  18  Prefactor     .10000E-03    4.2409        .12663E-06** at limit **
  19  norm          5.5695        1.8293        .56502E-06   -.10763E-03
  20  norm          .10000E-03    8.6304        .23916E-05** at limit **
  21  Prefactor     39.800        3.1855        .21977E-06   -.78793E-02
  22  Prefactor     .10000E-03    20.490        .34047E-05** at limit **
  23  norm          159.90        1.6771        .35714E-07   -.48317E-02
  24  Normalizat    .91263        .24436        .30556E-05    .61668E-04
  25  Prefactor     1.0155        .24560       -.57157E-05    .58541E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.741763
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.265
  Prefactor  = 64.0114
  Prefactor  = 0.000100234
  Prefactor  = 22.6095
  Prefactor  = 0.0001
  norm       = 2.86115
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 4.03891
  norm       = 0.0001
  Prefactor  = 18.9189
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  norm       = 5.56947
  norm       = 0.0001
  Prefactor  = 39.7995
  Prefactor  = 0.000100004
  norm       = 159.896
  Normalizat = 0.912629
  Prefactor  = 1.01554
 **********
 **   18 **HESSE 
 **********

 FCN=   5556.733     FROM HESSE     STATUS=OK           479 CALLS     2925 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .74176        .32969        .63043E-02   -1.5536    
   2  Prefactor     .10000E-03    15.730        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.6281        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          16.265        19.512        .24824E-02   -1.4901    
   5  Prefactor     64.011        53.644        .12538E-02   -1.4106    
   6  Prefactor     .10023E-03    17.382        .97700E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.609        15.479        .21058E-02   -1.4757    
   8  Prefactor     .10000E-03    10.757        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.8612        2.2078        .60077E-02   -1.5370    
  10  Prefactor     .10000E-03    64.960        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.1641        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.0389        6.4245        .50155E-02   -1.5306    
  13  norm          .10000E-03    2.3177        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.919        12.389        .23019E-02   -1.4838    
  15  Prefactor     .10000E-03    2.4632        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .16496        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    18.758        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.2225        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.5695        6.8170        .42557E-02   -1.5236    
  20  norm          .10000E-03    18.367        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     39.800        107.60        .15892E-02   -1.4445    
  22  Prefactor     .10000E-03    20.820        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          159.90        20.689        .79724E-03   -1.3172    
  24  Normalizat    .91263        .20702        .45065E-01   -.96018    
  25  Prefactor     1.0155        .20612        .42652E-01   -.92213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75471e-06
Minuit parameter uncertainties:
  1  0.329693
  2  0.000175559
  3  1.23139e-05
  4  19.5201
  5  53.6844
  6  0.00403472
  7  15.4821
  8  4.3666e-05
  9  2.20789
  10  0.000646933
  11  6.83397e-06
  12  6.42557
  13  2.13851e-06
  14  12.3908
  15  6.06625e-06
  16  5.93311e-07
  17  0.000858449
  18  2.53866e-06
  19  6.81792
  20  0.000174267
  21  108.133
  22  0.000607716
  23  20.6901
  24  0.207196
  25  0.206282
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.000e-04  6.834e-06  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:  1.016e+00  2.063e-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.126e-01  2.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/472856/likelihoodResults_402883201_403142401_4FGL_J2248.7-3235_daily_bin631.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): 102
logL (Free Index) = 5556.73496731
delta logL = -0.00148946974787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5556.73347779
delta logL = 4.40695657744e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7526       1.0000          .0000       10.000    
     3 'Normalizat'    .91264       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0155       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=   5556.733     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      246 TOTAL
                     EDM=   .74E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.942        .12989E-01** at limit **
   2  Index         2.3206        6.1110        .50000        .16289E-06
   3  Normalizat    .91263        .17314E-01    .27558E-03    .49958E-04
   4  Prefactor     1.0155        .17355E-01    .26186E-03    .67208E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.32059
  Normalizat = 0.912629
  Prefactor  = 1.01554
 **********
 **   18 **HESSE 
 **********

 FCN=   5556.733     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    380.20        .13521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3206        5.9691        .50000       -.56555    
   3  Normalizat    .91263        .59953E-01    .11023E-04   -.96018    
   4  Prefactor     1.0155        .60094E-01    .10474E-04   -.92213    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.88653e-11
Minuit parameter uncertainties:
  1  0.000437286
  2  1442.56
  3  0.0599569
  4  0.0600982
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/472856': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5556.73347654
delta logL = 1.30354055727e-06

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.000e-04  4.373e-04  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  2.321e+00  1.443e+03  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:  1.016e+00  6.010e-02  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.126e-01  5.996e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/472856/cmap_HighResolution_402883201_403142401_4FGL_J2248.7-3235_daily_bin631.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.45e-03', job_status='DONE', photon_flux_upper_limit='5.63e-08', time_completed='2021-09-28 20:49:48.802751', job_id='472856', GAL2='1.02', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1632887388.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.30e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='631' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:49:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 472856: <4FGL_J2248.7-3235_daily_bin631> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin631 342.193 -32.5926 402883201 403142401 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 :                                   653.56 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            859 sec.

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

