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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1444
RA = 342.193, Dec = -32.5926
tmin = 613612801, tmax = 613872001
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='476151', job_status='RUN', time_executed='2021-09-28 20:47:16.840425', time_epoch_executed='1632887236.84' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1444'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/476151

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/476151/ft1_4FGL_J2248.7-3235_daily_bin1444.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/476151/ft2_4FGL_J2248.7-3235_daily_bin1444.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/476151/ft1_4FGL_J2248.7-3235_daily_bin1444.fits outfile=/scratch/kocevski/476151/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1444.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=613612801.0 tmax=613872001.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 2.55
user 2.34
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/476151/ft1_filtered_4FGL_J2248.7-3235_daily_bin1444.fits" evtable="EVENTS" scfile=/scratch/kocevski/476151/ft2_4FGL_J2248.7-3235_daily_bin1444.fits sctable="SC_DATA" outfile=/scratch/kocevski/476151/ltcube_613612801_613872001_4FGL_J2248.7-3235_daily_bin1444.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/476151/ft2_4FGL_J2248.7-3235_daily_bin1444.fits
.....................!
real 12.30
user 11.95
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/476151/ft1_filtered_4FGL_J2248.7-3235_daily_bin1444.fits evtable="EVENTS" scfile=/scratch/kocevski/476151/ft2_4FGL_J2248.7-3235_daily_bin1444.fits sctable="SC_DATA" expcube=/scratch/kocevski/476151/ltcube_613612801_613872001_4FGL_J2248.7-3235_daily_bin1444.fits outfile=/scratch/kocevski/476151/expmap_613612801_613872001_4FGL_J2248.7-3235_daily_bin1444.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/476151/ltcube_613612801_613872001_4FGL_J2248.7-3235_daily_bin1444.fits
.....................!
real 191.37
user 186.52
sys 4.45

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/476151/ft1_filtered_4FGL_J2248.7-3235_daily_bin1444.fits scfile=/scratch/kocevski/476151/ft2_4FGL_J2248.7-3235_daily_bin1444.fits outfile=/scratch/kocevski/476151/cmap_613612801_613872001_4FGL_J2248.7-3235_daily_bin1444.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/476151/ft1_filtered_4FGL_J2248.7-3235_daily_bin1444.fits scfile=/scratch/kocevski/476151/ft2_4FGL_J2248.7-3235_daily_bin1444.fits outfile=/scratch/kocevski/476151/cmap_HighResolution_613612801_613872001_4FGL_J2248.7-3235_daily_bin1444.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/476151/ft1_filtered_4FGL_J2248.7-3235_daily_bin1444.fits evtable="EVENTS" scfile=/scratch/kocevski/476151/ft2_4FGL_J2248.7-3235_daily_bin1444.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/476151/Model_4FGL_J2248.7-3235_daily_bin1444.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/476151/ft1_filtered_4FGL_J2248.7-3235_daily_bin1444.fits.....................!
real 40.00
user 38.66
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .81702       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13354       1.0000         .10000E-03   10000.    
     4 'norm      '    10.432       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .23822E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.9600       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.678       1.0000         .10000E-03   10000.    
     9 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.974       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .30702E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8248       1.0000         .10000E-03   10000.    
    13 'norm      '    2.5393       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .68556       1.0000         .10000E-03   10000.    
    16 'norm      '    .71376       1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.242       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5025       1.0000         .10000E-03   10000.    
    19 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    28.846       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11550E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    9.8216       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0840       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96626       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=   4786.959     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     2494 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .81703        .41837       -.36468E-07   -.17461E-03
   2  Prefactor     .10000E-03    5.1175       -.17133E-07** at limit **
   3  Prefactor     .12767E-02    7671.3       -.76791E-04** at limit **
   4  norm          10.427        2.2154       -.17108E-06   -.89857E-03
   5  Prefactor     .10140E-03    62.219        .61724E-05** at limit **
   6  Prefactor     .10025E-03    61.073       -.27961E-05** at limit **
   7  Prefactor     7.9585        6.6334       -.46552E-06    .35855E-02
   8  Prefactor     16.649        4.7110        .28273E-07   -.36844E-02
   9  norm          .10000E-03    1.2302       -.16603E-07** at limit **
  10  Prefactor     18.885        25.269       -.28989E-05   -.23537E-02
  11  Prefactor     .10103E-03    20.418       -.47017E-05** at limit **
  12  Prefactor     3.8182        8.3446        .39921E-06   -.10116E-02
  13  norm          2.5357        4.2300        .30345E-06    .11370E-03
  14  Prefactor     .10000E-03    8.3312       -.15712E-06** at limit **
  15  Prefactor     .74909        45.366        .22825E-05   -.62582E-04
  16  norm          .71242        .70093       -.24535E-07    .30714E-03
  17  Prefactor     28.164        22.792       -.20856E-05    .27209E-02
  18  Prefactor     2.4990        7.4886        .19673E-06   -.50010E-05
  19  norm          .10000E-03    3.7076        .36223E-06** at limit **
  20  norm          28.831        9.0515        .37199E-06   -.45287E-02
  21  Prefactor     .10357E-03    35.520        .64399E-05** at limit **
  22  Prefactor     .10000E-03    16.228        .20678E-05** at limit **
  23  norm          9.8164        5.6526        .63941E-06    .32402E-03
  24  Normalizat    1.0849        .26148       -.36006E-06    .94250E-04
  25  Prefactor     .96584        .24529        .94218E-06    .86844E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.817026
  Prefactor  = 0.0001
  Prefactor  = 0.00127669
  norm       = 10.4274
  Prefactor  = 0.000101399
  Prefactor  = 0.000100248
  Prefactor  = 7.95853
  Prefactor  = 16.6487
  norm       = 0.0001
  Prefactor  = 18.8848
  Prefactor  = 0.000101031
  Prefactor  = 3.8182
  norm       = 2.53573
  Prefactor  = 0.0001
  Prefactor  = 0.749086
  norm       = 0.712417
  Prefactor  = 28.1635
  Prefactor  = 2.49899
  norm       = 0.0001
  norm       = 28.8311
  Prefactor  = 0.000103569
  Prefactor  = 0.0001
  norm       = 9.81636
  Normalizat = 1.08492
  Prefactor  = 0.965843
 **********
 **   18 **HESSE 
 **********

 FCN=   4786.959     FROM HESSE     STATUS=OK           491 CALLS     2985 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .81703        .41609        .70384E-02   -1.5527    
   2  Prefactor     .10000E-03    5.1142        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .12767E-02    8.9663        .96699E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.427        21.806        .31013E-02   -1.5062    
   5  Prefactor     .10140E-03    92.684        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10025E-03    67.315        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.9585        13.092        .35529E-02   -1.5144    
   8  Prefactor     16.649        26.604        .24518E-02   -1.4892    
   9  norm          .10000E-03    1.2263        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.885        48.871        .22987E-02   -1.4839    
  11  Prefactor     .10103E-03    9.1073        .10690       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.8182        8.4687        .51594E-02   -1.5317    
  13  norm          2.5357        4.2677        .64071E-02   -1.5389    
  14  Prefactor     .10000E-03    8.3226        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .74909        9.0831        .87513E-01   -1.5535    
  16  norm          .71242        .69320        .99268E-02   -1.5539    
  17  Prefactor     28.164        67.568        .18847E-02   -1.4646    
  18  Prefactor     2.4990        7.6523        .64582E-02   -1.5392    
  19  norm          .10000E-03    3.6925        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          28.831        13.777        .18649E-02   -1.4634    
  21  Prefactor     .10357E-03    83.905        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.326        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          9.8164        5.7100        .31966E-02   -1.5081    
  24  Normalizat    1.0849        .22968        .38690E-01   -.90237    
  25  Prefactor     .96584        .20884        .45844E-01   -.93877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.57686e-07
Minuit parameter uncertainties:
  1  0.416092
  2  1.53953e-06
  3  0.205462
  4  21.8225
  5  0.0228074
  6  0.00817328
  7  13.0969
  8  26.6233
  9  1.11026e-06
  10  48.9752
  11  0.00612828
  12  8.47135
  13  4.26822
  14  1.03336e-07
  15  5.21755
  16  0.693211
  17  67.7524
  18  7.65531
  19  9.17393e-06
  20  13.7785
  21  0.0346575
  22  0.000135801
  23  5.71029
  24  0.229888
  25  0.209014
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.010e-04  6.128e-03  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.658e-01  2.090e-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.085e+00  2.299e-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: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/476151/likelihoodResults_613612801_613872001_4FGL_J2248.7-3235_daily_bin1444.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) = 4786.9592008
delta logL = -6.78384612911e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4785.79038537
delta logL = 1.16874759053

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38752E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    7.9846       1.0000          .0000       10.000    
     3 'Normalizat'    .96514       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0470       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=   4785.790     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      341 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37523E-01    .52337        .22345E-02    .26573E-02
   2  Index         8.0077        7.8799        .20697        .63646E-04
   3  Normalizat    .96507        .54908E-01    .45729E-01    .15735E-04
   4  Prefactor     1.0470        .54844E-01    .40089E-01    .29453E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0375234
  Index      = 8.00772
  Normalizat = 0.965074
  Prefactor  = 1.04704
 **********
 **   18 **HESSE 
 **********

 FCN=   4785.790     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      376 TOTAL
                     EDM=   .76E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37523E-01    1.1186        .10110E-03   -1.5669    
   2  Index         8.0077        8.9262        .85816E-02    .64543    
   3  Normalizat    .96507        .18875        .25672E-03   -.94210    
   4  Prefactor     1.0470        .18478        .24637E-03   -.91177    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.61176e-08
Minuit parameter uncertainties:
  1  0.409203
  2  7.85361
  3  0.188881
  4  0.184889
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/476151': 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) = 4785.79037906
delta logL = 1.16875389781

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  3.752e-02  4.092e-01  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  8.008e+00  7.854e+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:  1.047e+00  1.849e-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.651e-01  1.889e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.53
Ra Dec: 342.193 -32.593
Photon Index (Free Index): 8.01 +/- 7.85
Photon Flux (Free Index): 8.77e-08 +/- 6.71e-08
Energy Flux (Free Index): 1.02e-05 +/- 8.60e-06

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/476151/cmap_HighResolution_613612801_613872001_4FGL_J2248.7-3235_daily_bin1444.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.22e-03', comment='SUCCESS', energy_flux2='1.02e-05', dlogl='1.17e+00', photon_flux2='8.77e-08', job_status='DONE', time_completed='2021-09-28 20:57:07.249286', photon_index_error2='7.85', photon_index2='8.01', ts='-0.00', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='8.60e-06', EG='1.08', time_epoch_completed='1632887827.25', return_code='0', job_id='476151', GAL2='1.05', EG2='0.97', return_code2='102', photon_flux_error2='6.71e-08', ts2='2.53', photon_index='2.76' WHERE bin_id='1444' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:57:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 476151: <4FGL_J2248.7-3235_daily_bin1444> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1444 342.193 -32.5926 613612801 613872001 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 :                                   585.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             320.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   696 sec.
    Turnaround time :                            697 sec.

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

