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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin503
RA = 342.193, Dec = -32.5926
tmin = 369705601, tmax = 369964801
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='472668', job_status='RUN', time_executed='2021-09-28 20:37:33.374624', time_epoch_executed='1632886653.37' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='503'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/472668

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/472668/ft1_4FGL_J2248.7-3235_daily_bin503.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/472668/ft2_4FGL_J2248.7-3235_daily_bin503.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/472668/ft1_4FGL_J2248.7-3235_daily_bin503.fits outfile=/scratch/kocevski/472668/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin503.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=369705601.0 tmax=369964801.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.81
user 3.61
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/472668/ft2_4FGL_J2248.7-3235_daily_bin503.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/472668/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin503.fits evtable="EVENTS" outfile="/scratch/kocevski/472668/ft1_filtered_4FGL_J2248.7-3235_daily_bin503.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/472668/ft1_filtered_4FGL_J2248.7-3235_daily_bin503.fits" evtable="EVENTS" scfile=/scratch/kocevski/472668/ft2_4FGL_J2248.7-3235_daily_bin503.fits sctable="SC_DATA" outfile=/scratch/kocevski/472668/ltcube_369705601_369964801_4FGL_J2248.7-3235_daily_bin503.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/472668/ft2_4FGL_J2248.7-3235_daily_bin503.fits
.....................!
real 11.80
user 11.42
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/472668/ft1_filtered_4FGL_J2248.7-3235_daily_bin503.fits evtable="EVENTS" scfile=/scratch/kocevski/472668/ft2_4FGL_J2248.7-3235_daily_bin503.fits sctable="SC_DATA" expcube=/scratch/kocevski/472668/ltcube_369705601_369964801_4FGL_J2248.7-3235_daily_bin503.fits outfile=/scratch/kocevski/472668/expmap_369705601_369964801_4FGL_J2248.7-3235_daily_bin503.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/472668/ltcube_369705601_369964801_4FGL_J2248.7-3235_daily_bin503.fits
.....................!
real 190.16
user 185.20
sys 4.65

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/472668/ft1_filtered_4FGL_J2248.7-3235_daily_bin503.fits scfile=/scratch/kocevski/472668/ft2_4FGL_J2248.7-3235_daily_bin503.fits outfile=/scratch/kocevski/472668/cmap_369705601_369964801_4FGL_J2248.7-3235_daily_bin503.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/472668/ft1_filtered_4FGL_J2248.7-3235_daily_bin503.fits scfile=/scratch/kocevski/472668/ft2_4FGL_J2248.7-3235_daily_bin503.fits outfile=/scratch/kocevski/472668/cmap_HighResolution_369705601_369964801_4FGL_J2248.7-3235_daily_bin503.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/472668/ft1_filtered_4FGL_J2248.7-3235_daily_bin503.fits evtable="EVENTS" scfile=/scratch/kocevski/472668/ft2_4FGL_J2248.7-3235_daily_bin503.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/472668/Model_4FGL_J2248.7-3235_daily_bin503.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/472668/ft1_filtered_4FGL_J2248.7-3235_daily_bin503.fits.....................!
real 53.40
user 52.04
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3025       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.548       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.8754       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.252       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.531       1.0000         .10000E-03   10000.    
     9 'norm      '    .95995       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1036       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.7766       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.9782       1.0000         .10000E-03   10000.    
    16 'norm      '    1.8102       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.253       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .51668       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    10.225       1.0000         .10000E-03   10000.    
    21 'Prefactor '    43.699       1.0000         .10000E-03   10000.    
    22 'Prefactor '    33.113       1.0000         .10000E-03   10000.    
    23 'norm      '    3.2505       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .79406       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80750       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=   7238.180     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     2957 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3025        .32971       -.21594E-10   -.82610E-04
   2  Prefactor     .10000E-03    3.7126        .75898E-08** at limit **
   3  Prefactor     .10000E-03    1.6089        .35061E-07** at limit **
   4  norm          .10000E-03    7.0308       -.45284E-07** at limit **
   5  Prefactor     30.569        26.380       -.55913E-06   -.24367E-03
   6  Prefactor     8.8700        13.114        .45169E-07    .85622E-06
   7  Prefactor     12.259        9.7151       -.42018E-07   -.25740E-04
   8  Prefactor     11.526        14.624        .35211E-07    .13656E-04
   9  norm          .96446        1.8848       -.12284E-05   -.21619E-02
  10  Prefactor     3.9871        104.91        .54786E-05   -.84726E-04
  11  Prefactor     9.7770        9.6353        .12377E-06    .40223E-04
  12  Prefactor     .10000E-03    2.1186       -.11562E-06** at limit **
  13  norm          .10000E-03    1.3111        .11074E-06** at limit **
  14  Prefactor     .10000E-03    5.1541        .10538E-06** at limit **
  15  Prefactor     7.9793        8.4411        .13734E-06   -.73460E-03
  16  norm          1.8101        .71630       -.14305E-06   -.40456E-02
  17  Prefactor     17.251        20.785        .31702E-07    .21376E-04
  18  Prefactor     .51260        12.137        .43619E-05   -.71521E-03
  19  norm          .10000E-03    3.8512       -.25606E-06** at limit **
  20  norm          10.224        6.2901        .11159E-08    .36985E-04
  21  Prefactor     43.686        49.708       -.15441E-05   -.29450E-04
  22  Prefactor     33.107        28.835       -.55994E-07    .23599E-05
  23  norm          3.2515        5.5763        .84677E-06    .26468E-03
  24  Normalizat    .79424        .14945        .72037E-06   -.20285E-03
  25  Prefactor     .80733        .14377       -.73777E-06   -.21408E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.30254
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 30.569
  Prefactor  = 8.87004
  Prefactor  = 12.2591
  Prefactor  = 11.5258
  norm       = 0.964456
  Prefactor  = 3.98706
  Prefactor  = 9.77701
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.97928
  norm       = 1.8101
  Prefactor  = 17.2513
  Prefactor  = 0.512603
  norm       = 0.0001
  norm       = 10.2236
  Prefactor  = 43.6863
  Prefactor  = 33.1067
  norm       = 3.25147
  Normalizat = 0.79424
  Prefactor  = 0.807325
 **********
 **   18 **HESSE 
 **********

 FCN=   7238.180     FROM HESSE     STATUS=OK           435 CALLS     3392 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3025        .33053        .23809E-04   -1.5480    
   2  Prefactor     .10000E-03    3.7207        .16009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.6133        .10536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    7.0566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     30.569        26.461        .72493E-04   -1.4602    
   6  Prefactor     8.8700        13.110        .13454E-03   -1.5112    
   7  Prefactor     12.259        9.6813        .11444E-03   -1.5008    
   8  Prefactor     11.526        14.637        .11797E-03   -1.5029    
   9  norm          .96446        1.8928        .14032E-02   -1.5512    
  10  Prefactor     3.9871        103.56        .19901E-03   -1.5309    
  11  Prefactor     9.7770        9.6763        .12816E-03   -1.5083    
  12  Prefactor     .10000E-03    2.1365        .12091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.3202        .94980E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.1586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.9793        8.5173        .14195E-03   -1.5143    
  16  norm          1.8101        .73633        .34624E-04   -1.5439    
  17  Prefactor     17.251        20.788        .96424E-04   -1.4877    
  18  Prefactor     .51260        15.092        .35762E-02   -1.5565    
  19  norm          .10000E-03    3.9555        .32539E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          10.224        6.2918        .12531E-03   -1.5068    
  21  Prefactor     43.686        49.396        .60647E-04   -1.4385    
  22  Prefactor     33.107        28.905        .69636E-04   -1.4557    
  23  norm          3.2515        5.5247        .18538E-03   -1.5347    
  24  Normalizat    .79424        .17931        .23068E-03   -1.0028    
  25  Prefactor     .80733        .17107        .23258E-03   -.99459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93946e-09
Minuit parameter uncertainties:
  1  0.330531
  2  5.75127e-07
  3  9.25804e-07
  4  1.4671e-07
  5  26.4713
  6  13.114
  7  9.68255
  8  14.6414
  9  1.89288
  10  40.7174
  11  9.67786
  12  4.74352e-06
  13  2.62947e-06
  14  3.27727e-06
  15  8.51857
  16  0.736331
  17  20.7969
  18  5.56375
  19  1.75151e-05
  20  6.29219
  21  49.4423
  22  28.9176
  23  5.52552
  24  0.179444
  25  0.17118
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  9.777e+00  9.678e+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:  8.073e-01  1.712e-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:  7.942e-01  1.794e-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): 3.47e-08 +/- 3.43e-08
Energy Flux (Fixed Index): 7.97e-06 +/- 7.89e-06

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

Saving results to:
/scratch/kocevski/472668/likelihoodResults_369705601_369964801_4FGL_J2248.7-3235_daily_bin503.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) = 7237.93514025
delta logL = 0.244608966398

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7237.92480595
delta logL = 0.254943265051

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8039       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7443       1.0000          .0000       10.000    
     3 'Normalizat'    .76967       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82765       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=   7237.925     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      244 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7815        81.911        .45889E-02    .50643E-03
   2  Index         3.7477        6.8353        .20844        .10604E-03
   3  Normalizat    .76963        .41530E-01    .43213E-01    .24443E-04
   4  Prefactor     .82771        .41829E-01    .44076E-01   -.40844E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.78151
  Index      = 3.7477
  Normalizat = 0.769628
  Prefactor  = 0.827712
 **********
 **   18 **HESSE 
 **********

 FCN=   7237.925     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      277 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7815        155.09        .14524E-03   -1.5271    
   2  Index         3.7477        6.2620        .91382E-02   -.25315    
   3  Normalizat    .76963        .16608        .23396E-03   -1.0121    
   4  Prefactor     .82771        .17941        .23003E-03   -.98715    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.26534e-09
Minuit parameter uncertainties:
  1  54.6182
  2  9.83793
  3  0.166194
  4  0.179537
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/472668': 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) = 7237.9248041
delta logL = 0.254945119725

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  4.782e+00  5.462e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  3.748e+00  9.838e+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.277e-01  1.795e-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:  7.696e-01  1.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.86
Ra Dec: 342.193 -32.593
Photon Index (Free Index): 3.75 +/- 9.84
Photon Flux (Free Index): 4.77e-08 +/- 4.13e-08
Energy Flux (Free Index): 7.48e-06 +/- 1.82e-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/472668/cmap_HighResolution_369705601_369964801_4FGL_J2248.7-3235_daily_bin503.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.07e-03', comment='SUCCESS', photon_flux='3.47e-08', energy_flux2='7.48e-06', photon_flux_error='3.43e-08', dlogl='2.55e-01', energy_flux='7.97e-06', photon_flux2='4.77e-08', job_status='DONE', time_completed='2021-09-28 20:50:31.571079', photon_index_error2='9.84', photon_index2='3.75', ts='1.29', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='1.82e-05', EG='0.79', time_epoch_completed='1632887431.57', return_code='0', job_id='472668', GAL2='0.83', EG2='0.77', return_code2='102', energy_flux_error='7.89e-06', photon_flux_error2='4.13e-08', ts2='1.86', photon_index='2.76' WHERE bin_id='503' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:50:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 472668: <4FGL_J2248.7-3235_daily_bin503> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin503 342.193 -32.5926 369705601 369964801 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 :                                   776.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            914 sec.

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

