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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1335
RA = 342.193, Dec = -32.5926
tmin = 585360001, tmax = 585619201
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='475980', job_status='RUN', time_executed='2021-09-28 20:46:19.222769', time_epoch_executed='1632887179.22' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1335'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/475980

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/475980/ft1_4FGL_J2248.7-3235_daily_bin1335.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/475980/ft2_4FGL_J2248.7-3235_daily_bin1335.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/475980/ft1_4FGL_J2248.7-3235_daily_bin1335.fits outfile=/scratch/kocevski/475980/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1335.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=585360001.0 tmax=585619201.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.83
user 2.61
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/475980/ft2_4FGL_J2248.7-3235_daily_bin1335.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/475980/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1335.fits evtable="EVENTS" outfile="/scratch/kocevski/475980/ft1_filtered_4FGL_J2248.7-3235_daily_bin1335.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/475980/ft1_filtered_4FGL_J2248.7-3235_daily_bin1335.fits" evtable="EVENTS" scfile=/scratch/kocevski/475980/ft2_4FGL_J2248.7-3235_daily_bin1335.fits sctable="SC_DATA" outfile=/scratch/kocevski/475980/ltcube_585360001_585619201_4FGL_J2248.7-3235_daily_bin1335.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/475980/ft2_4FGL_J2248.7-3235_daily_bin1335.fits
.....................!
real 12.37
user 11.96
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/475980/ft1_filtered_4FGL_J2248.7-3235_daily_bin1335.fits evtable="EVENTS" scfile=/scratch/kocevski/475980/ft2_4FGL_J2248.7-3235_daily_bin1335.fits sctable="SC_DATA" expcube=/scratch/kocevski/475980/ltcube_585360001_585619201_4FGL_J2248.7-3235_daily_bin1335.fits outfile=/scratch/kocevski/475980/expmap_585360001_585619201_4FGL_J2248.7-3235_daily_bin1335.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/475980/ltcube_585360001_585619201_4FGL_J2248.7-3235_daily_bin1335.fits
.....................!
real 190.51
user 185.51
sys 4.41

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/475980/ft1_filtered_4FGL_J2248.7-3235_daily_bin1335.fits scfile=/scratch/kocevski/475980/ft2_4FGL_J2248.7-3235_daily_bin1335.fits outfile=/scratch/kocevski/475980/cmap_585360001_585619201_4FGL_J2248.7-3235_daily_bin1335.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/475980/ft1_filtered_4FGL_J2248.7-3235_daily_bin1335.fits scfile=/scratch/kocevski/475980/ft2_4FGL_J2248.7-3235_daily_bin1335.fits outfile=/scratch/kocevski/475980/cmap_HighResolution_585360001_585619201_4FGL_J2248.7-3235_daily_bin1335.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4074       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.3890       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9653       1.0000         .10000E-03   10000.    
     4 'norm      '    9.3675       1.0000         .10000E-03   10000.    
     5 'Prefactor '    45.772       1.0000         .10000E-03   10000.    
     6 'Prefactor '    62.711       1.0000         .10000E-03   10000.    
     7 'Prefactor '    51.951       1.0000         .10000E-03   10000.    
     8 'Prefactor '    55.695       1.0000         .10000E-03   10000.    
     9 'norm      '    4.3134       1.0000         .10000E-03   10000.    
    10 'Prefactor '    50.793       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.8445       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.5695       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.5445       1.0000         .10000E-03   10000.    
    17 'Prefactor '    66.407       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .73530       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2945       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=   3012.482     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2942 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4074        1.2399        .23228E-07   -.17023E-03
   2  Prefactor     7.3751        133.93       -.44554E-04   -.27510E-05
   3  Prefactor     2.9929        32.884        .45342E-04    .51807E-05
   4  norm          9.3534        66.495       -.35403E-04   -.37054E-06
   5  Prefactor     45.802        47.680        .35972E-04    .49996E-05
   6  Prefactor     62.682        58.088       -.35003E-04   -.11782E-03
   7  Prefactor     51.957        36.568        .10406E-04   -.44379E-05
   8  Prefactor     55.715        43.627        .21193E-04   -.39783E-04
   9  norm          4.3141        4.2374        .57292E-05    .24034E-03
  10  Prefactor     50.732        111.52       -.81664E-04   -.91967E-05
  11  Prefactor     5.8388        21.895       -.84021E-05   -.66298E-04
  12  Prefactor     .10000E-03    4.4470       -.60481E-06** at limit **
  13  norm          6.5700        8.4977        .22731E-05   -.10401E-03
  14  Prefactor     .10000E-03    11.787        .66777E-05** at limit **
  15  Prefactor     .10000E-03    9.7676       -.15995E-05** at limit **
  16  norm          2.5446        1.2189        .24330E-06    .19594E-03
  17  Prefactor     66.417        113.73        .12384E-04   -.46029E-05
  18  Prefactor     .10000E-03    12.966       -.11048E-05** at limit **
  19  norm          .10000E-03    2.2578        .75214E-08** at limit **
  20  norm          .10000E-03    4.4409        .33236E-06** at limit **
  21  Prefactor     .10000E-03    17.389       -.99553E-05** at limit **
  22  Prefactor     .10000E-03    25.171        .10828E-04** at limit **
  23  norm          .10000E-03    3.3456       -.68347E-07** at limit **
  24  Normalizat    .73466        .30218        .73830E-05   -.19097E-03
  25  Prefactor     1.2951        .29080       -.38703E-05    .49788E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.40736
  Prefactor  = 7.37514
  Prefactor  = 2.99293
  norm       = 9.35338
  Prefactor  = 45.8023
  Prefactor  = 62.6816
  Prefactor  = 51.9572
  Prefactor  = 55.7147
  norm       = 4.31412
  Prefactor  = 50.7324
  Prefactor  = 5.83884
  Prefactor  = 0.0001
  norm       = 6.57004
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.54458
  Prefactor  = 66.4172
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.734664
  Prefactor  = 1.29513
 **********
 **   18 **HESSE 
 **********

 FCN=   3012.482     FROM HESSE     STATUS=OK           423 CALLS     3365 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4074        1.2390        .42278E-04   -1.5398    
   2  Prefactor     7.3751        133.97        .14755E-03   -1.5165    
   3  Prefactor     2.9929        32.400        .23580E-03   -1.5362    
   4  norm          9.3534        66.444        .13094E-03   -1.5096    
   5  Prefactor     45.802        47.680        .29631E-03   -1.4353    
   6  Prefactor     62.682        57.980        .50672E-04   -1.4123    
   7  Prefactor     51.957        36.548        .55643E-04   -1.4265    
   8  Prefactor     55.715        43.661        .53751E-04   -1.4214    
   9  norm          4.3141        4.2356        .10127E-03   -1.5293    
  10  Prefactor     50.732        111.49        .56271E-04   -1.4282    
  11  Prefactor     5.8388        22.066        .16612E-03   -1.5225    
  12  Prefactor     .10000E-03    4.4551        .11304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.5700        8.4997        .15657E-03   -1.5195    
  14  Prefactor     .10000E-03    11.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.7916        .16726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.5446        1.2184        .38165E-04   -1.5389    
  17  Prefactor     66.417        113.90        .49251E-04   -1.4076    
  18  Prefactor     .10000E-03    13.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.2600        .80546E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.4512        .11295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    25.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.4288        .19602E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .73466        .36718        .31339E-03   -1.0254    
  25  Prefactor     1.2951        .35627        .24944E-03   -.83452    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11816e-09
Minuit parameter uncertainties:
  1  1.23906
  2  63.0315
  3  19.708
  4  49.9373
  5  47.7199
  6  58.0325
  7  36.5642
  8  43.6862
  9  4.23586
  10  111.956
  11  22.0964
  12  4.92514e-05
  13  8.50125
  14  4.64932e-05
  15  0.000157669
  16  1.21844
  17  114.276
  18  0.00011757
  19  1.01631e-06
  20  1.11317e-05
  21  2.24675e-05
  22  2.52089e-05
  23  8.886e-06
  24  0.368423
  25  0.356945
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  1.295e+00  3.569e-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.347e-01  3.684e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 342.193 -32.593
Photon Flux Upper Limit: 1.99e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.58e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/475980/likelihoodResults_585360001_585619201_4FGL_J2248.7-3235_daily_bin1335.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) = 3011.89495847
delta logL = 0.587032929895

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3011.88428001
delta logL = 0.597711386266

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2618       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4936       1.0000          .0000       10.000    
     3 'Normalizat'    .62979       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3643       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=   3011.884     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      275 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2627        15.876        .10628E-03    .77153E-03
   2  Index         4.4938        2.6709        .67627E-02    .10484E-03
   3  Normalizat    .62964        .35472        .33601E-03    .27367E-03
   4  Prefactor     1.3645        .35603        .24374E-03    .26306E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.26274
  Index      = 4.49385
  Normalizat = 0.629639
  Prefactor  = 1.36446
 **********
 **   18 **HESSE 
 **********

 FCN=   3011.884     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2627        10.393        .42511E-05   -1.5295    
   2  Index         4.4938        1.8007        .27051E-03   -.10140    
   3  Normalizat    .62964        .35452        .13440E-04   -1.0674    
   4  Prefactor     1.3645        .35640        .48749E-04   -.81410    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.35801e-10
Minuit parameter uncertainties:
  1  10.397
  2  1.84255
  3  0.35581
  4  0.357046
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/475980': 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) = 3011.88427973
delta logL = 0.597711667695

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  4.263e+00  1.040e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  4.494e+00  1.843e+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.364e+00  3.570e-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.296e-01  3.558e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.40
Ra Dec: 342.193 -32.593
Photon Index (Free Index): 4.49 +/- 1.84
Photon Flux (Free Index): 1.02e-07 +/- 1.05e-07
Energy Flux (Free Index): 1.43e-05 +/- 1.49e-05

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/475980/cmap_HighResolution_585360001_585619201_4FGL_J2248.7-3235_daily_bin1335.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.58e-02', comment='SUCCESS', energy_flux2='1.43e-05', dlogl='5.98e-01', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-28 20:54:39.052719', photon_index_error2='1.84', photon_index2='4.49', ts='0.08', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', photon_flux_upper_limit='1.99e-07', energy_flux_error2='1.49e-05', EG='0.73', time_epoch_completed='1632887679.05', return_code='0', job_id='475980', GAL2='1.36', EG2='0.63', return_code2='0', photon_flux_error2='1.05e-07', ts2='1.40', photon_index='2.76' WHERE bin_id='1335' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:54:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 475980: <4FGL_J2248.7-3235_daily_bin1335> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1335 342.193 -32.5926 585360001 585619201 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 :                                   494.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             252.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   561 sec.
    Turnaround time :                            563 sec.

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

