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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin781
RA = 342.193, Dec = -32.5926
tmin = 441763201, tmax = 442022401
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='473071', job_status='RUN', time_executed='2021-09-28 20:38:17.783150', time_epoch_executed='1632886697.78' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='781'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/473071

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/473071/ft1_4FGL_J2248.7-3235_daily_bin781.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/473071/ft2_4FGL_J2248.7-3235_daily_bin781.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/473071/ft1_4FGL_J2248.7-3235_daily_bin781.fits outfile=/scratch/kocevski/473071/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin781.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=441763201.0 tmax=442022401.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.44
user 3.24
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/473071/ft2_4FGL_J2248.7-3235_daily_bin781.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/473071/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin781.fits evtable="EVENTS" outfile="/scratch/kocevski/473071/ft1_filtered_4FGL_J2248.7-3235_daily_bin781.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/473071/ft1_filtered_4FGL_J2248.7-3235_daily_bin781.fits" evtable="EVENTS" scfile=/scratch/kocevski/473071/ft2_4FGL_J2248.7-3235_daily_bin781.fits sctable="SC_DATA" outfile=/scratch/kocevski/473071/ltcube_441763201_442022401_4FGL_J2248.7-3235_daily_bin781.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/473071/ft2_4FGL_J2248.7-3235_daily_bin781.fits
.....................!
real 11.74
user 11.37
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/473071/ft1_filtered_4FGL_J2248.7-3235_daily_bin781.fits evtable="EVENTS" scfile=/scratch/kocevski/473071/ft2_4FGL_J2248.7-3235_daily_bin781.fits sctable="SC_DATA" expcube=/scratch/kocevski/473071/ltcube_441763201_442022401_4FGL_J2248.7-3235_daily_bin781.fits outfile=/scratch/kocevski/473071/expmap_441763201_442022401_4FGL_J2248.7-3235_daily_bin781.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/473071/ltcube_441763201_442022401_4FGL_J2248.7-3235_daily_bin781.fits
.....................!
real 190.24
user 185.20
sys 4.72

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/473071/ft1_filtered_4FGL_J2248.7-3235_daily_bin781.fits scfile=/scratch/kocevski/473071/ft2_4FGL_J2248.7-3235_daily_bin781.fits outfile=/scratch/kocevski/473071/cmap_441763201_442022401_4FGL_J2248.7-3235_daily_bin781.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.54
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/473071/ft1_filtered_4FGL_J2248.7-3235_daily_bin781.fits scfile=/scratch/kocevski/473071/ft2_4FGL_J2248.7-3235_daily_bin781.fits outfile=/scratch/kocevski/473071/cmap_HighResolution_441763201_442022401_4FGL_J2248.7-3235_daily_bin781.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/473071/ft1_filtered_4FGL_J2248.7-3235_daily_bin781.fits evtable="EVENTS" scfile=/scratch/kocevski/473071/ft2_4FGL_J2248.7-3235_daily_bin781.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/473071/Model_4FGL_J2248.7-3235_daily_bin781.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/473071/ft1_filtered_4FGL_J2248.7-3235_daily_bin781.fits.....................!
real 42.28
user 40.91
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0387       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.5094       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.6925       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.387       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12460E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.303       1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.8795       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.7664       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    9.1494       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .60934       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3566       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=   5631.417     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2508 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0387        .50121        .21836E-08   -.58932E-05
   2  Prefactor     6.5097        13.954        .24299E-06   -.21371E-05
   3  Prefactor     .10000E-03    2.4018       -.70864E-09** at limit **
   4  norm          .10001E-03    18.389        .27046E-05** at limit **
   5  Prefactor     .10000E-03    47.829       -.75480E-06** at limit **
   6  Prefactor     .10000E-03    10.403        .81690E-06** at limit **
   7  Prefactor     .10000E-03    5.7523        .96631E-06** at limit **
   8  Prefactor     .10000E-03    5.5904       -.52861E-06** at limit **
   9  norm          1.6926        2.6772        .28500E-06    .10788E-03
  10  Prefactor     16.384        49.793       -.93893E-06    .14743E-04
  11  Prefactor     .10000E-03    7.0426       -.86698E-06** at limit **
  12  Prefactor     .10000E-03    2.9412       -.49258E-08** at limit **
  13  norm          .10000E-03    1.0485        .24555E-07** at limit **
  14  Prefactor     .10000E-03    9.0876        .51802E-06** at limit **
  15  Prefactor     .10003E-03    6.1195       -.16932E-05** at limit **
  16  norm          .10000E-03    .15153       -.20047E-08** at limit **
  17  Prefactor     .10000E-03    14.689       -.15222E-05** at limit **
  18  Prefactor     10.297        9.9698        .29287E-07    .43931E-03
  19  norm          .10000E-03    1.7373       -.20102E-07** at limit **
  20  norm          4.8795        5.5092        .21708E-05   -.18570E-03
  21  Prefactor     5.7656        42.528       -.11219E-06   -.34536E-05
  22  Prefactor     .10000E-03    11.983       -.16397E-06** at limit **
  23  norm          9.1497        5.4951        .43031E-07    .10172E-03
  24  Normalizat    .60936        .17305       -.43795E-07    .15332E-03
  25  Prefactor     1.3566        .18260       -.34008E-06    .16414E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.0387
  Prefactor  = 6.50972
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.6926
  Prefactor  = 16.3838
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100034
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 10.2973
  norm       = 0.0001
  norm       = 4.87949
  Prefactor  = 5.76561
  Prefactor  = 0.0001
  norm       = 9.14968
  Normalizat = 0.609363
  Prefactor  = 1.35659
 **********
 **   18 **HESSE 
 **********

 FCN=   5631.417     FROM HESSE     STATUS=OK           421 CALLS     2929 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0387        .50257        .25612E-04   -1.5422    
   2  Prefactor     6.5097        13.953        .15730E-03   -1.5198    
   3  Prefactor     .10000E-03    2.4077        .11357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10001E-03    19.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    48.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.9380        .17822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.6403        .17401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.6926        2.6844        .11798E-03   -1.5448    
  10  Prefactor     16.384        50.350        .98940E-04   -1.4898    
  11  Prefactor     .10000E-03    7.1978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.9555        .12567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.0531        .74998E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.2266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10003E-03    16.072        .31158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .15511        .56539E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.297        9.3761        .12483E-03   -1.5066    
  19  norm          .10000E-03    1.7382        .96559E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.8795        5.6942        .91048E-03   -1.5266    
  21  Prefactor     5.7656        42.216        .16726E-03   -1.5228    
  22  Prefactor     .10000E-03    11.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          9.1497        5.4760        .11895E-03   -1.5103    
  24  Normalizat    .60936        .20745        .28625E-03   -1.0759    
  25  Prefactor     1.3566        .22081        .21235E-03   -.81639    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06367e-09
Minuit parameter uncertainties:
  1  0.502572
  2  13.9596
  3  2.04012e-07
  4  0.000670514
  5  0.000310653
  6  0.000156956
  7  0.000146162
  8  7.52871e-05
  9  2.68464
  10  50.4805
  11  0.000128165
  12  8.29376e-07
  13  4.74956e-06
  14  0.000135451
  15  0.00147845
  16  1.40452e-06
  17  0.000353117
  18  9.37739
  19  2.31959e-06
  20  5.69484
  21  31.2333
  22  3.33326e-05
  23  5.47635
  24  0.207715
  25  0.220964
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.000e-04  1.282e-04  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.357e+00  2.210e-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.094e-01  2.077e-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: 7.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/473071/likelihoodResults_441763201_442022401_4FGL_J2248.7-3235_daily_bin781.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) = 5631.41788988
delta logL = -0.000661881495944

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5631.41722927
delta logL = -1.27244675241e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11098E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7410       1.0000          .0000       10.000    
     3 'Normalizat'    .60915       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3568       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5631.417     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      260 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.754        .18142E-01** at limit **
   2  Index         2.2705        6.1313        .50000        .22364E-06
   3  Normalizat    .60936        .91438E-02    .28625E-03   -.48502E-03
   4  Prefactor     1.3566        .98069E-02    .21235E-03   -.65304E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.27051
  Normalizat = 0.609361
  Prefactor  = 1.35659
 **********
 **   18 **HESSE 
 **********

 FCN=   5631.417     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      289 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    367.80        .21778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2705        8.7521        .50000       -.57746    
   3  Normalizat    .60936        .27801E-01    .11450E-04   -1.0759    
   4  Prefactor     1.3566        .29818E-01    .42470E-04   -.81639    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.69515e-10
Minuit parameter uncertainties:
  1  0.000489403
  2  779.395
  3  0.0278017
  4  0.0298181
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/473071': 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) = 5631.4172266
delta logL = 1.40363681567e-06

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.000e-04  4.894e-04  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  2.271e+00  7.794e+02  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.357e+00  2.982e-02  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.094e-01  2.780e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/473071/cmap_HighResolution_441763201_442022401_4FGL_J2248.7-3235_daily_bin781.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.28e-03', job_status='DONE', photon_flux_upper_limit='7.95e-08', time_completed='2021-09-28 20:48:42.438070', job_id='473071', GAL2='1.36', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1632887322.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.36', dlogl='1.40e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='781' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:48:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 473071: <4FGL_J2248.7-3235_daily_bin781> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin781> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 20:35:48 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:35:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 20:35:49 2021
Terminated at Tue Sep 28 20:48:43 2021
Results reported at Tue Sep 28 20:48:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin781 342.193 -32.5926 441763201 442022401 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 :                                   624.03 sec.
    Max Memory :                                 1150 MB
    Average Memory :                             288.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            775 sec.

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

