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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1492
RA = 342.193, Dec = -32.5926
tmin = 626054401, tmax = 626313601
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='476220', job_status='RUN', time_executed='2021-09-28 20:46:05.273464', time_epoch_executed='1632887165.27' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1492'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/476220

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/476220/ft1_4FGL_J2248.7-3235_daily_bin1492.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/476220/ft2_4FGL_J2248.7-3235_daily_bin1492.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/476220/ft1_4FGL_J2248.7-3235_daily_bin1492.fits outfile=/scratch/kocevski/476220/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1492.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=626054401.0 tmax=626313601.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.08
user 3.83
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/476220/ft2_4FGL_J2248.7-3235_daily_bin1492.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/476220/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1492.fits evtable="EVENTS" outfile="/scratch/kocevski/476220/ft1_filtered_4FGL_J2248.7-3235_daily_bin1492.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/476220/ft1_filtered_4FGL_J2248.7-3235_daily_bin1492.fits" evtable="EVENTS" scfile=/scratch/kocevski/476220/ft2_4FGL_J2248.7-3235_daily_bin1492.fits sctable="SC_DATA" outfile=/scratch/kocevski/476220/ltcube_626054401_626313601_4FGL_J2248.7-3235_daily_bin1492.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/476220/ft2_4FGL_J2248.7-3235_daily_bin1492.fits
.....................!
real 11.57
user 11.22
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/476220/ft1_filtered_4FGL_J2248.7-3235_daily_bin1492.fits evtable="EVENTS" scfile=/scratch/kocevski/476220/ft2_4FGL_J2248.7-3235_daily_bin1492.fits sctable="SC_DATA" expcube=/scratch/kocevski/476220/ltcube_626054401_626313601_4FGL_J2248.7-3235_daily_bin1492.fits outfile=/scratch/kocevski/476220/expmap_626054401_626313601_4FGL_J2248.7-3235_daily_bin1492.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/476220/ltcube_626054401_626313601_4FGL_J2248.7-3235_daily_bin1492.fits
.....................!
real 189.43
user 185.13
sys 3.96

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/476220/ft1_filtered_4FGL_J2248.7-3235_daily_bin1492.fits scfile=/scratch/kocevski/476220/ft2_4FGL_J2248.7-3235_daily_bin1492.fits outfile=/scratch/kocevski/476220/cmap_626054401_626313601_4FGL_J2248.7-3235_daily_bin1492.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .63081       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.5029       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.991       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.849       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.5317       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.0430       1.0000         .10000E-03   10000.    
     9 'norm      '    .98294       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.018       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7895       1.0000         .10000E-03   10000.    
    13 'norm      '    2.6262       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    38.450       1.0000         .10000E-03   10000.    
    16 'norm      '    1.9265       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.631       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    10.459       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.462       1.0000         .10000E-03   10000.    
    23 'norm      '    1.2085       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .68434       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90880       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=   7396.977     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2511 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .63082        .24777        .58914E-02    .63770E-04
   2  Prefactor     4.5028        8.3773        .47433E-02    .18047E-03
   3  Prefactor     .10000E-03    1.6981        .90712E-02** at limit **
   4  norm          12.991        16.020        .27784E-02   -.13339E-03
   5  Prefactor     .10000E-03    7.7017        .90712E-02** at limit **
   6  Prefactor     14.849        14.092        .25985E-02    .16627E-03
   7  Prefactor     6.5322        6.2717        .39257E-02    .70053E-04
   8  Prefactor     4.0448        13.985        .50135E-02    .15693E-03
   9  norm          .98309        1.2169        .13105E-01    .71333E-04
  10  Prefactor     .10000E-03    41.343        .90712E-02** at limit **
  11  Prefactor     17.019        10.723        .24272E-02    .20960E-03
  12  Prefactor     4.7896        4.2861        .45959E-02    .14484E-02
  13  norm          2.6260        2.5480        .62913E-02   -.57637E-04
  14  Prefactor     .10000E-03    9.2148        .90712E-02** at limit **
  15  Prefactor     38.447        11.742        .16159E-02   -.65642E-03
  16  norm          1.9267        .85226        .74824E-02    .46250E-03
  17  Prefactor     13.630        42.329        .27122E-02    .71000E-03
  18  Prefactor     .10000E-03    2.9519        .90712E-02** at limit **
  19  norm          .10000E-03    2.5924        .90712E-02** at limit **
  20  norm          10.459        5.9689        .30973E-02   -.61764E-04
  21  Prefactor     .10000E-03    17.095        .90712E-02** at limit **
  22  Prefactor     13.462        16.342        .27292E-02    .62566E-05
  23  norm          1.2089        2.2274        .10296E-01    .69722E-03
  24  Normalizat    .68432        .14868        .42081E-01    .85576E-04
  25  Prefactor     .90883        .14617        .45117E-01    .91424E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.630821
  Prefactor  = 4.50284
  Prefactor  = 0.0001
  norm       = 12.9906
  Prefactor  = 0.0001
  Prefactor  = 14.8495
  Prefactor  = 6.53223
  Prefactor  = 4.04485
  norm       = 0.983088
  Prefactor  = 0.0001
  Prefactor  = 17.0188
  Prefactor  = 4.78965
  norm       = 2.62605
  Prefactor  = 0.0001
  Prefactor  = 38.4466
  norm       = 1.9267
  Prefactor  = 13.6302
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.4593
  Prefactor  = 0.0001
  Prefactor  = 13.4619
  norm       = 1.20895
  Normalizat = 0.684324
  Prefactor  = 0.908826
 **********
 **   18 **HESSE 
 **********

 FCN=   7396.977     FROM HESSE     STATUS=OK           433 CALLS     2944 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .63082        .24767        .26057E-04   -1.5549    
   2  Prefactor     4.5028        8.3754        .18973E-03   -1.5284    
   3  Prefactor     .10000E-03    1.7090        .10942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.991        15.998        .11114E-03   -1.4987    
   5  Prefactor     .10000E-03    7.7027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.849        14.087        .10394E-03   -1.4937    
   7  Prefactor     6.5322        6.2678        .15703E-03   -1.5197    
   8  Prefactor     4.0448        13.973        .20054E-03   -1.5306    
   9  norm          .98309        1.1819        .10176E-03   -1.5510    
  10  Prefactor     .10000E-03    41.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.019        10.751        .97089E-04   -1.4883    
  12  Prefactor     4.7896        4.2848        .16307E-03   -1.5270    
  13  norm          2.6260        2.5452        .12837E-03   -1.5384    
  14  Prefactor     .10000E-03    9.2376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     38.447        11.982        .64638E-04   -1.4467    
  16  norm          1.9267        .86391        .40297E-04   -1.5430    
  17  Prefactor     13.630        42.327        .10849E-03   -1.4969    
  18  Prefactor     .10000E-03    2.9559        .14422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.6315        .13479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          10.459        5.9686        .12389E-03   -1.5061    
  21  Prefactor     .10000E-03    17.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.462        16.342        .10917E-03   -1.4974    
  23  norm          1.2089        2.1735        .16831E-03   -1.5488    
  24  Normalizat    .68432        .17764        .25128E-03   -1.0452    
  25  Prefactor     .90883        .17506        .22590E-03   -.95833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.36463e-09
Minuit parameter uncertainties:
  1  0.247673
  2  8.37754
  3  5.80336e-06
  4  16.0031
  5  2.711e-05
  6  14.0898
  7  6.26848
  8  13.9845
  9  1.18194
  10  2.87734e-05
  11  10.7527
  12  4.28503
  13  2.54534
  14  1.24038e-05
  15  11.9828
  16  0.863915
  17  42.4203
  18  6.85887e-07
  19  6.46134e-06
  20  5.96897
  21  2.17502e-05
  22  16.3471
  23  2.17366
  24  0.177794
  25  0.175165
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.702e+01  1.075e+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:  9.088e-01  1.752e-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:  6.843e-01  1.778e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.17
Ra Dec: 342.193 -32.593
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 6.03e-08 +/- 3.81e-08
Energy Flux (Fixed Index): 1.39e-05 +/- 8.76e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7396.97410873
delta logL = 0.00290487024267

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7396.97367906
delta logL = 0.00333454133397

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.228       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7115       1.0000          .0000       10.000    
     3 'Normalizat'    .68723       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90676       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=   7396.974     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      231 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.232        254.39        .24124E-02    .39662E-04
   2  Index         2.7115        6.3073        .22856        .46643E-04
   3  Normalizat    .68705        .64814E-01    .42120E-01    .13853E-03
   4  Prefactor     .90696        .65351E-01    .45091E-01    .14341E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.2324
  Index      = 2.71149
  Normalizat = 0.687051
  Prefactor  = 0.906962
 **********
 **   18 **HESSE 
 **********

 FCN=   7396.974     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.232        11.275        .96494E-04   -1.4877    
   2  Index         2.7115        .61041        .85567E-02   -.47541    
   3  Normalizat    .68705        .17205        .25084E-03   -1.0441    
   4  Prefactor     .90696        .17266        .22611E-03   -.95898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49872e-11
Minuit parameter uncertainties:
  1  11.2768
  2  0.612348
  3  0.172185
  4  0.172764
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/476220': 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) = 7396.97367834
delta logL = 0.00333525845599

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.723e+01  1.128e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  2.711e+00  6.123e-01  0.000e+00  1.000e+01 (-1.000e+00)
313        Scale:  4.468e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  9.070e-01  1.728e-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:  6.871e-01  1.722e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.18
Ra Dec: 342.193 -32.593
Photon Index (Free Index): 2.71 +/- 0.61
Photon Flux (Free Index): 5.84e-08 +/- 4.39e-08
Energy Flux (Free Index): 1.39e-05 +/- 8.90e-06

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/476220/cmap_HighResolution_626054401_626313601_4FGL_J2248.7-3235_daily_bin1492.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.03e-08', energy_flux2='1.39e-05', photon_flux_error='3.81e-08', dlogl='3.34e-03', energy_flux='1.39e-05', photon_flux2='5.84e-08', job_status='DONE', time_completed='2021-09-28 20:57:05.237713', photon_index_error2='0.61', photon_index2='2.71', ts='5.17', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='8.90e-06', EG='0.68', time_epoch_completed='1632887825.24', return_code='0', job_id='476220', GAL2='0.91', EG2='0.69', return_code2='0', energy_flux_error='8.76e-06', photon_flux_error2='4.39e-08', ts2='5.18', photon_index='2.76' WHERE bin_id='1492' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:57:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 476220: <4FGL_J2248.7-3235_daily_bin1492> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1492 342.193 -32.5926 626054401 626313601 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 :                                   650.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   689 sec.
    Turnaround time :                            691 sec.

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

