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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1071
RA = 342.193, Dec = -32.5926
tmin = 516931201, tmax = 517190401
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='474543', job_status='RUN', time_executed='2021-09-28 20:43:18.544834', time_epoch_executed='1632886998.54' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1071'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/474543

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/474543/ft1_4FGL_J2248.7-3235_daily_bin1071.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/474543/ft2_4FGL_J2248.7-3235_daily_bin1071.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/474543/ft1_4FGL_J2248.7-3235_daily_bin1071.fits outfile=/scratch/kocevski/474543/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1071.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=516931201.0 tmax=517190401.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.95
user 3.74
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/474543/ft1_filtered_4FGL_J2248.7-3235_daily_bin1071.fits" evtable="EVENTS" scfile=/scratch/kocevski/474543/ft2_4FGL_J2248.7-3235_daily_bin1071.fits sctable="SC_DATA" outfile=/scratch/kocevski/474543/ltcube_516931201_517190401_4FGL_J2248.7-3235_daily_bin1071.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/474543/ft2_4FGL_J2248.7-3235_daily_bin1071.fits
.....................!
real 11.61
user 11.25
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/474543/ft1_filtered_4FGL_J2248.7-3235_daily_bin1071.fits evtable="EVENTS" scfile=/scratch/kocevski/474543/ft2_4FGL_J2248.7-3235_daily_bin1071.fits sctable="SC_DATA" expcube=/scratch/kocevski/474543/ltcube_516931201_517190401_4FGL_J2248.7-3235_daily_bin1071.fits outfile=/scratch/kocevski/474543/expmap_516931201_517190401_4FGL_J2248.7-3235_daily_bin1071.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/474543/ltcube_516931201_517190401_4FGL_J2248.7-3235_daily_bin1071.fits
.....................!
real 190.51
user 185.47
sys 4.73

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/474543/ft1_filtered_4FGL_J2248.7-3235_daily_bin1071.fits scfile=/scratch/kocevski/474543/ft2_4FGL_J2248.7-3235_daily_bin1071.fits outfile=/scratch/kocevski/474543/cmap_516931201_517190401_4FGL_J2248.7-3235_daily_bin1071.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/474543/ft1_filtered_4FGL_J2248.7-3235_daily_bin1071.fits scfile=/scratch/kocevski/474543/ft2_4FGL_J2248.7-3235_daily_bin1071.fits outfile=/scratch/kocevski/474543/cmap_HighResolution_516931201_517190401_4FGL_J2248.7-3235_daily_bin1071.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/474543/ft1_filtered_4FGL_J2248.7-3235_daily_bin1071.fits evtable="EVENTS" scfile=/scratch/kocevski/474543/ft2_4FGL_J2248.7-3235_daily_bin1071.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/474543/Model_4FGL_J2248.7-3235_daily_bin1071.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/474543/ft1_filtered_4FGL_J2248.7-3235_daily_bin1071.fits.....................!
real 48.13
user 46.84
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3501       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.552       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .28860       1.0000         .10000E-03   10000.    
     4 'norm      '    8.4572       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.494       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.464       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.8761       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.8216       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.3402       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.381       1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.156       1.0000         .10000E-03   10000.    
    16 'norm      '    1.4232       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.3691       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.6395       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10444E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.6756       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .71261       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0148       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=   6088.392     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     2928 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3501        .46625        .63880E-09    .20085E-03
   2  Prefactor     19.551        13.250        .19564E-07    .74480E-05
   3  Prefactor     .29850        3.9007       -.50859E-06    .22151E-03
   4  norm          8.4565        15.945        .31611E-06    .11834E-04
   5  Prefactor     10.492        17.776        .10143E-05    .49246E-04
   6  Prefactor     18.462        15.051        .97863E-06    .17731E-03
   7  Prefactor     9.8759        10.261        .53590E-07    .83093E-05
   8  Prefactor     .10000E-03    5.1778        .99274E-08** at limit **
   9  norm          .10000E-03    .57706        .21017E-09** at limit **
  10  Prefactor     .10000E-03    36.126       -.26539E-06** at limit **
  11  Prefactor     8.8222        8.9049        .14800E-06    .45641E-04
  12  Prefactor     .10000E-03    4.0369        .27368E-07** at limit **
  13  norm          7.3403        3.7421       -.58406E-07    .39929E-03
  14  Prefactor     17.387        18.524       -.25875E-05   -.14329E-03
  15  Prefactor     28.158        13.757        .13813E-05    .23721E-03
  16  norm          1.4230        .95904       -.95258E-07   -.67094E-04
  17  Prefactor     3.3804        50.212       -.18663E-04   -.13410E-03
  18  Prefactor     .10000E-03    18.058       -.17041E-06** at limit **
  19  norm          .10000E-03    5.1218        .63459E-08** at limit **
  20  norm          3.6388        4.8614        .20110E-05   -.21574E-02
  21  Prefactor     .10000E-03    294.77       -.60956E-05** at limit **
  22  Prefactor     .10000E-03    23.311        .94358E-07** at limit **
  23  norm          3.6742        3.8172        .72087E-08    .93636E-04
  24  Normalizat    .71255        .17778       -.10701E-05    .18262E-03
  25  Prefactor     1.0148        .17454        .67857E-06    .84446E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.35006
  Prefactor  = 19.5508
  Prefactor  = 0.298501
  norm       = 8.45646
  Prefactor  = 10.4921
  Prefactor  = 18.4624
  Prefactor  = 9.87591
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.8222
  Prefactor  = 0.0001
  norm       = 7.34031
  Prefactor  = 17.3867
  Prefactor  = 28.1583
  norm       = 1.42303
  Prefactor  = 3.38038
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.63878
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.67421
  Normalizat = 0.712546
  Prefactor  = 1.01483
 **********
 **   18 **HESSE 
 **********

 FCN=   6088.392     FROM HESSE     STATUS=OK           435 CALLS     3363 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3501        .46700        .23022E-04   -1.5401    
   2  Prefactor     19.551        13.252        .90581E-04   -1.4823    
   3  Prefactor     .29850        28.882        .28600E-02   -1.5599    
   4  norm          8.4565        15.956        .13785E-03   -1.5126    
   5  Prefactor     10.492        17.777        .12369E-03   -1.5060    
   6  Prefactor     18.462        15.054        .93209E-04   -1.4848    
   7  Prefactor     9.8759        10.263        .12751E-03   -1.5079    
   8  Prefactor     .10000E-03    5.1834        .17340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .58069        .57871E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    36.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.8222        8.9132        .13495E-03   -1.5114    
  12  Prefactor     .10000E-03    4.0689        .15306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.3403        3.7428        .51247E-03   -1.5166    
  14  Prefactor     17.387        18.603        .96068E-04   -1.4874    
  15  Prefactor     28.158        13.856        .75501E-04   -1.4646    
  16  norm          1.4230        .94682        .47243E-04   -1.5469    
  17  Prefactor     3.3804        53.194        .22046E-03   -1.5340    
  18  Prefactor     .10000E-03    18.557        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.1634        .17129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.6388        7.6326        .10588E-02   -1.5326    
  21  Prefactor     .10000E-03    301.30        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    23.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.6742        3.7441        .14765E-03   -1.5325    
  24  Normalizat    .71255        .20939        .26751E-03   -1.0340    
  25  Prefactor     1.0148        .20717        .23132E-03   -.92237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.72086e-09
Minuit parameter uncertainties:
  1  0.467002
  2  13.2542
  3  5.87439
  4  15.9645
  5  17.7856
  6  15.0569
  7  10.2645
  8  5.79536e-07
  9  4.55462e-07
  10  6.32323e-05
  11  8.91459
  12  1.90058e-06
  13  3.74288
  14  18.6093
  15  13.8579
  16  0.946829
  17  26.847
  18  7.7587e-05
  19  8.24779e-07
  20  7.6346
  21  0.000844251
  22  5.26773e-06
  23  3.74431
  24  0.209626
  25  0.207328
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  8.822e+00  8.915e+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:  1.015e+00  2.073e-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.125e-01  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.52
Ra Dec: 342.193 -32.593
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 3.13e-08 +/- 3.16e-08
Energy Flux (Fixed Index): 7.19e-06 +/- 7.27e-06

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

Saving results to:
/scratch/kocevski/474543/likelihoodResults_516931201_517190401_4FGL_J2248.7-3235_daily_bin1071.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) = 6088.25231298
delta logL = 0.13951909454

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6088.24144804
delta logL = 0.150384040013

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4699       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6959       1.0000          .0000       10.000    
     3 'Normalizat'    .68124       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0383       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=   6088.241     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      244 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4663        108.63        .42951E-02    .30007E-03
   2  Index         3.6967        6.8202        .20903        .82655E-04
   3  Normalizat    .68130        .57997E-01    .61765E-01    .48191E-04
   4  Prefactor     1.0382        .52704E-01    .40652E-01   -.32939E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.46632
  Index      = 3.69667
  Normalizat = 0.681296
  Prefactor  = 1.03816
 **********
 **   18 **HESSE 
 **********

 FCN=   6088.241     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4663        21.346        .14856E-03   -1.5240    
   2  Index         3.6967        3.7031        .10334E-01   -.26371    
   3  Normalizat    .68130        .22604        .27324E-03   -1.0464    
   4  Prefactor     1.0382        .22105        .22901E-03   -.91468    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61429e-10
Minuit parameter uncertainties:
  1  21.3754
  2  4.22064
  3  0.22635
  4  0.221248
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/474543': 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) = 6088.24144774
delta logL = 0.150384333961

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  5.466e+00  2.138e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  3.697e+00  4.221e+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.038e+00  2.212e-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.813e-01  2.263e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.87
Ra Dec: 342.193 -32.593
Photon Index (Free Index): 3.70 +/- 4.22
Photon Flux (Free Index): 5.14e-08 +/- 6.56e-08
Energy Flux (Free Index): 8.16e-06 +/- 7.08e-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/474543/cmap_HighResolution_516931201_517190401_4FGL_J2248.7-3235_daily_bin1071.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.27e-03', comment='SUCCESS', photon_flux='3.13e-08', energy_flux2='8.16e-06', photon_flux_error='3.16e-08', dlogl='1.50e-01', energy_flux='7.19e-06', photon_flux2='5.14e-08', job_status='DONE', time_completed='2021-09-28 20:55:01.894944', photon_index_error2='4.22', photon_index2='3.70', ts='1.52', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='7.08e-06', EG='0.71', time_epoch_completed='1632887701.9', return_code='0', job_id='474543', GAL2='1.04', EG2='0.68', return_code2='0', energy_flux_error='7.27e-06', photon_flux_error2='6.56e-08', ts2='1.87', photon_index='2.76' WHERE bin_id='1071' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:55:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 474543: <4FGL_J2248.7-3235_daily_bin1071> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin1071> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 20:40:57 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:40:59 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:40:59 2021
Terminated at Tue Sep 28 20:55:02 2021
Results reported at Tue Sep 28 20:55:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1071 342.193 -32.5926 516931201 517190401 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 :                                   698.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            845 sec.

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

