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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1368
RA = 342.193, Dec = -32.5926
tmin = 593913601, tmax = 594172801
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='476030', job_status='RUN', time_executed='2021-09-28 20:47:27.083352', time_epoch_executed='1632887247.08' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1368'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/476030

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/476030/ft1_4FGL_J2248.7-3235_daily_bin1368.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/476030/ft2_4FGL_J2248.7-3235_daily_bin1368.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/476030/ft1_4FGL_J2248.7-3235_daily_bin1368.fits outfile=/scratch/kocevski/476030/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1368.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=593913601.0 tmax=594172801.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.56
user 3.34
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/476030/ft2_4FGL_J2248.7-3235_daily_bin1368.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/476030/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1368.fits evtable="EVENTS" outfile="/scratch/kocevski/476030/ft1_filtered_4FGL_J2248.7-3235_daily_bin1368.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.50
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/476030/ft1_filtered_4FGL_J2248.7-3235_daily_bin1368.fits" evtable="EVENTS" scfile=/scratch/kocevski/476030/ft2_4FGL_J2248.7-3235_daily_bin1368.fits sctable="SC_DATA" outfile=/scratch/kocevski/476030/ltcube_593913601_594172801_4FGL_J2248.7-3235_daily_bin1368.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/476030/ft2_4FGL_J2248.7-3235_daily_bin1368.fits
.....................!
real 11.87
user 11.50
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/476030/ft1_filtered_4FGL_J2248.7-3235_daily_bin1368.fits evtable="EVENTS" scfile=/scratch/kocevski/476030/ft2_4FGL_J2248.7-3235_daily_bin1368.fits sctable="SC_DATA" expcube=/scratch/kocevski/476030/ltcube_593913601_594172801_4FGL_J2248.7-3235_daily_bin1368.fits outfile=/scratch/kocevski/476030/expmap_593913601_594172801_4FGL_J2248.7-3235_daily_bin1368.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/476030/ltcube_593913601_594172801_4FGL_J2248.7-3235_daily_bin1368.fits
.....................!
real 190.52
user 185.29
sys 4.76

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/476030/ft1_filtered_4FGL_J2248.7-3235_daily_bin1368.fits scfile=/scratch/kocevski/476030/ft2_4FGL_J2248.7-3235_daily_bin1368.fits outfile=/scratch/kocevski/476030/cmap_593913601_594172801_4FGL_J2248.7-3235_daily_bin1368.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/476030/ft1_filtered_4FGL_J2248.7-3235_daily_bin1368.fits scfile=/scratch/kocevski/476030/ft2_4FGL_J2248.7-3235_daily_bin1368.fits outfile=/scratch/kocevski/476030/cmap_HighResolution_593913601_594172801_4FGL_J2248.7-3235_daily_bin1368.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.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/476030/ft1_filtered_4FGL_J2248.7-3235_daily_bin1368.fits evtable="EVENTS" scfile=/scratch/kocevski/476030/ft2_4FGL_J2248.7-3235_daily_bin1368.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/476030/Model_4FGL_J2248.7-3235_daily_bin1368.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/476030/ft1_filtered_4FGL_J2248.7-3235_daily_bin1368.fits....................!
real 53.37
user 51.82
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2367       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.4442       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.515       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.426       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.758       1.0000         .10000E-03   10000.    
     9 'norm      '    2.9606       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.3222       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7780       1.0000         .10000E-03   10000.    
    13 'norm      '    1.6540       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.9495       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .27191       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2561       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .89604E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.2588       1.0000         .10000E-03   10000.    
    21 'Prefactor '    60.127       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.9290       1.0000         .10000E-03   10000.    
    23 'norm      '    .23917       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .82944       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87241       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=   7148.476     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     2990 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2367        .31014       -.48525E-08   -.83836E-04
   2  Prefactor     .10000E-03    2.9948        .21858E-07** at limit **
   3  Prefactor     .10000E-03    2.4700        .76578E-07** at limit **
   4  norm          7.4447        13.659       -.12308E-06    .12876E-04
   5  Prefactor     .10000E-03    9.8068        .23588E-07** at limit **
   6  Prefactor     11.515        12.624       -.80230E-07    .15956E-04
   7  Prefactor     18.423        9.8017       -.71356E-07    .58851E-04
   8  Prefactor     19.751        15.815       -.18008E-06    .16456E-04
   9  norm          2.9615        1.7091       -.12548E-08    .10073E-03
  10  Prefactor     .10000E-03    14.562       -.89704E-07** at limit **
  11  Prefactor     5.3291        8.7739       -.14400E-06    .65663E-04
  12  Prefactor     3.7772        4.9528       -.12563E-06   -.43784E-04
  13  norm          1.6577        2.3473        .76525E-07    .15766E-03
  14  Prefactor     6.0031        9.2393        .72641E-06    .18433E-03
  15  Prefactor     .14834        5.5417       -.44438E-06   -.45562E-04
  16  norm          1.2608        .58308        .11155E-06    .16478E-02
  17  Prefactor     .10000E-03    17.659        .14771E-06** at limit **
  18  Prefactor     .10000E-03    10.165       -.12564E-05** at limit **
  19  norm          .10000E-03    2.4979       -.18579E-06** at limit **
  20  norm          1.2581        4.8490       -.65117E-06    .18545E-03
  21  Prefactor     60.039        47.352       -.12389E-05   -.43961E-04
  22  Prefactor     2.9202        82.152       -.22782E-05   -.24027E-04
  23  norm          .24646        11.548        .16411E-05   -.58682E-04
  24  Normalizat    .83029        .16716        .17958E-05    .23968E-03
  25  Prefactor     .87167        .15578       -.99527E-06    .56502E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.23672
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.44466
  Prefactor  = 0.0001
  Prefactor  = 11.5148
  Prefactor  = 18.4231
  Prefactor  = 19.7511
  norm       = 2.96153
  Prefactor  = 0.0001
  Prefactor  = 5.32909
  Prefactor  = 3.77719
  norm       = 1.65769
  Prefactor  = 6.00309
  Prefactor  = 0.148344
  norm       = 1.26078
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 1.25806
  Prefactor  = 60.0387
  Prefactor  = 2.92016
  norm       = 0.246462
  Normalizat = 0.830289
  Prefactor  = 0.871674
 **********
 **   18 **HESSE 
 **********

 FCN=   7148.476     FROM HESSE     STATUS=OK           443 CALLS     3433 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2367        .31103        .22933E-04   -1.5486    
   2  Prefactor     .10000E-03    2.9965        .14289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.5103        .12962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.4447        13.647        .14699E-03   -1.5162    
   5  Prefactor     .10000E-03    9.8108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.515        12.631        .11806E-03   -1.5029    
   7  Prefactor     18.423        9.8038        .93304E-04   -1.4849    
   8  Prefactor     19.751        15.865        .90106E-04   -1.4819    
   9  norm          2.9615        1.7116        .40435E-03   -1.5364    
  10  Prefactor     .10000E-03    14.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.3291        8.7787        .17421E-03   -1.5246    
  12  Prefactor     3.7772        4.9590        .20768E-03   -1.5319    
  13  norm          1.6577        2.3858        .14326E-03   -1.5450    
  14  Prefactor     6.0031        13.496        .16463E-03   -1.5218    
  15  Prefactor     .14834        561.09        .26816E-02   -1.5631    
  16  norm          1.2608        1.0487        .37740E-04   -1.5483    
  17  Prefactor     .10000E-03    17.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    45.277        .40501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.5510        .13068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.2581        4.9375        .17849E-02   -1.5484    
  21  Prefactor     60.039        50.079        .25871E-03   -1.4157    
  22  Prefactor     2.9202        84.459        .23735E-03   -1.5366    
  23  norm          .24646        13.324        .21583E-02   -1.5609    
  24  Normalizat    .83029        .20478        .22861E-03   -.98955    
  25  Prefactor     .87167        .18538        .22963E-03   -.97138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19246e-07
Minuit parameter uncertainties:
  1  0.311035
  2  1.47694e-06
  3  8.71558e-06
  4  13.6524
  5  3.0586e-06
  6  12.6343
  7  9.80462
  8  15.8683
  9  1.71165
  10  3.10718e-05
  11  8.78078
  12  4.95952
  13  2.38594
  14  13.5024
  15  18.4157
  16  1.04875
  17  1.53041e-05
  18  0.000336378
  19  1.4199e-05
  20  4.93909
  21  50.1142
  22  31.4576
  23  3.62443
  24  0.204975
  25  0.185515
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  5.329e+00  8.781e+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.717e-01  1.855e-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:  8.303e-01  2.050e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/476030/likelihoodResults_593913601_594172801_4FGL_J2248.7-3235_daily_bin1368.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) = 7148.44652365
delta logL = 0.02914755243

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7148.43824271
delta logL = 0.0374284980735

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1971       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1743       1.0000          .0000       10.000    
     3 'Normalizat'    .82371       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87694       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7148.438     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      261 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1948        12.371        .98356E-03    .40137E-03
   2  Index         3.1745        2.2449        .14559E-01    .25877E-03
   3  Normalizat    .82372        .16878        .22943E-03    .66398E-06
   4  Prefactor     .87693        .17146        .22902E-03    .47655E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.19477
  Index      = 3.17445
  Normalizat = 0.823724
  Prefactor  = 0.876929
 **********
 **   18 **HESSE 
 **********

 FCN=   7148.438     FROM HESSE     STATUS=OK            27 CALLS      288 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1948        9.4607        .19671E-03   -1.5298    
   2  Index         3.1745        1.7470        .29117E-02   -.37375    
   3  Normalizat    .82372        .16906        .45887E-04   -.99195    
   4  Prefactor     .87693        .17137        .45804E-04   -.96952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20042e-11
Minuit parameter uncertainties:
  1  9.46403
  2  1.79081
  3  0.169169
  4  0.171475
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/476030': 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) = 7148.43824267
delta logL = 0.0374285358257

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  4.195e+00  9.464e+00  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  3.174e+00  1.791e+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.769e-01  1.715e-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:  8.237e-01  1.692e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/476030/cmap_HighResolution_593913601_594172801_4FGL_J2248.7-3235_daily_bin1368.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.68e-03', job_status='DONE', photon_flux_upper_limit='8.46e-08', time_completed='2021-09-28 21:00:35.014824', job_id='476030', GAL2='0.88', fit_tolerance='1e-08', EG2='0.82', EG='0.83', time_epoch_completed='1632888035.01', return_code2='0', ts='0.45', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='3.74e-02', ts2='0.54', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1368' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:00:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 476030: <4FGL_J2248.7-3235_daily_bin1368> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1368 342.193 -32.5926 593913601 594172801 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 :                                   774.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            915 sec.

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

