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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1282
RA = 342.193, Dec = -32.5926
tmin = 571622401, tmax = 571881601
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='474877', job_status='RUN', time_executed='2021-09-28 20:45:24.247969', time_epoch_executed='1632887124.25' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/474877

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/474877/ft1_4FGL_J2248.7-3235_daily_bin1282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/474877/ft2_4FGL_J2248.7-3235_daily_bin1282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/474877/ft1_4FGL_J2248.7-3235_daily_bin1282.fits outfile=/scratch/kocevski/474877/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1282.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=571622401.0 tmax=571881601.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.70
user 2.48
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/474877/ft1_filtered_4FGL_J2248.7-3235_daily_bin1282.fits" evtable="EVENTS" scfile=/scratch/kocevski/474877/ft2_4FGL_J2248.7-3235_daily_bin1282.fits sctable="SC_DATA" outfile=/scratch/kocevski/474877/ltcube_571622401_571881601_4FGL_J2248.7-3235_daily_bin1282.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/474877/ft2_4FGL_J2248.7-3235_daily_bin1282.fits
.....................!
real 12.53
user 12.17
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/474877/ft1_filtered_4FGL_J2248.7-3235_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/474877/ft2_4FGL_J2248.7-3235_daily_bin1282.fits sctable="SC_DATA" expcube=/scratch/kocevski/474877/ltcube_571622401_571881601_4FGL_J2248.7-3235_daily_bin1282.fits outfile=/scratch/kocevski/474877/expmap_571622401_571881601_4FGL_J2248.7-3235_daily_bin1282.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/474877/ltcube_571622401_571881601_4FGL_J2248.7-3235_daily_bin1282.fits
.....................!
real 190.77
user 186.19
sys 4.26

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/474877/ft1_filtered_4FGL_J2248.7-3235_daily_bin1282.fits scfile=/scratch/kocevski/474877/ft2_4FGL_J2248.7-3235_daily_bin1282.fits outfile=/scratch/kocevski/474877/cmap_571622401_571881601_4FGL_J2248.7-3235_daily_bin1282.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/474877/ft1_filtered_4FGL_J2248.7-3235_daily_bin1282.fits scfile=/scratch/kocevski/474877/ft2_4FGL_J2248.7-3235_daily_bin1282.fits outfile=/scratch/kocevski/474877/cmap_HighResolution_571622401_571881601_4FGL_J2248.7-3235_daily_bin1282.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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/474877/ft1_filtered_4FGL_J2248.7-3235_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/474877/ft2_4FGL_J2248.7-3235_daily_bin1282.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/474877/Model_4FGL_J2248.7-3235_daily_bin1282.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/474877/ft1_filtered_4FGL_J2248.7-3235_daily_bin1282.fits........................!
real 21.33
user 20.13
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .72894E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    218.31       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.346       1.0000         .10000E-03   10000.    
     4 'norm      '    .10346E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10323E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    177.80       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18986E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.5950       1.0000         .10000E-03   10000.    
    10 'Prefactor '    81.288       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.497       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10274E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.022       1.0000         .10000E-03   10000.    
    16 'norm      '    1.8611       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10961E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    34.964       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10424E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11194E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.8461       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0585       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .53976       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=   1352.466     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     3423 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .48258E-01    5.1883       -.73317E-06    .93367E-03
   2  Prefactor     218.71        281.17       -.10935E-04    .29934E-04
   3  Prefactor     14.538        48.607       -.61771E-05    .37035E-04
   4  norm          .10000E-03    58.954        .17293E-05** at limit **
   5  Prefactor     .10000E-03    36.843        .23129E-07** at limit **
   6  Prefactor     177.64        107.58       -.25170E-06   -.36671E-04
   7  Prefactor     .10000E-03    439.60        .27094E-04** at limit **
   8  Prefactor     .10000E-03    29.698       -.12545E-05** at limit **
   9  norm          3.5926        6.7080        .12277E-05   -.82949E-04
  10  Prefactor     81.313        174.43       -.29615E-05   -.38853E-04
  11  Prefactor     14.508        34.599       -.54839E-07    .32735E-05
  12  Prefactor     .10000E-03    22.719       -.93181E-06** at limit **
  13  norm          .10000E-03    8.3505        .69513E-07** at limit **
  14  Prefactor     .10000E-03    58.338       -.19671E-07** at limit **
  15  Prefactor     17.023        32.173        .87097E-06   -.31451E-04
  16  norm          1.8620        1.8790       -.49028E-07   -.62219E-05
  17  Prefactor     .10000E-03    945.53       -.43687E-04** at limit **
  18  Prefactor     .10000E-03    13.334        .81140E-07** at limit **
  19  norm          .10000E-03    13.389        .61335E-06** at limit **
  20  norm          34.969        21.527        .12512E-05   -.11364E-04
  21  Prefactor     .10001E-03    422.98        .17880E-05** at limit **
  22  Prefactor     .10000E-03    267.10        .33849E-05** at limit **
  23  norm          6.8511        7.2865       -.10419E-05   -.40756E-04
  24  Normalizat    1.0574        .43801       -.68215E-05    .46193E-04
  25  Prefactor     .54064        .38178        .42590E-05   -.32859E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0482583
  Prefactor  = 218.705
  Prefactor  = 14.5378
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 177.637
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 3.59259
  Prefactor  = 81.3127
  Prefactor  = 14.5076
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.0235
  norm       = 1.86201
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 34.9692
  Prefactor  = 0.000100008
  Prefactor  = 0.000100004
  norm       = 6.85111
  Normalizat = 1.05745
  Prefactor  = 0.540645
 **********
 **   18 **HESSE 
 **********

 FCN=   1352.466     FROM HESSE     STATUS=OK           423 CALLS     3846 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .48258E-01    98.240        .15656E-02   -1.5664    
   2  Prefactor     218.71        288.28        .13686E-03   -1.2739    
   3  Prefactor     14.538        49.575        .10575E-03   -1.4945    
   4  norm          .10000E-03    58.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    36.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     177.64        107.57        .15134E-03   -1.3034    
   7  Prefactor     .10000E-03    453.78        .40550E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.5926        6.7813        .55705E-03   -1.5329    
  10  Prefactor     81.313        176.30        .22274E-03   -1.3902    
  11  Prefactor     14.508        34.641        .10519E-03   -1.4946    
  12  Prefactor     .10000E-03    22.960        .17103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.3770        .10364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    58.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.023        33.273        .97076E-04   -1.4883    
  16  norm          1.8620        1.9333        .39139E-04   -1.5435    
  17  Prefactor     .10000E-03    948.57        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.340        .13114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    13.538        .13097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          34.969        21.602        .67772E-04   -1.4525    
  21  Prefactor     .10001E-03    424.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    269.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.8511        7.2606        .97384E-04   -1.5184    
  24  Normalizat    1.0574        .52675        .23958E-03   -.91130    
  25  Prefactor     .54064        .45453        .30913E-03   -1.1015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45563e-08
Minuit parameter uncertainties:
  1  4.35737
  2  290.183
  3  49.716
  4  1.01733e-05
  5  0.000103889
  6  107.69
  7  0.00279483
  8  2.35757e-06
  9  6.78278
  10  177.45
  11  34.6886
  12  0.000111073
  13  1.42922e-06
  14  7.91972e-05
  15  33.3091
  16  1.93341
  17  0.00168681
  18  2.06098e-05
  19  0.00011403
  20  21.6068
  21  0.00361934
  22  0.00218355
  23  7.26149
  24  0.529382
  25  0.45765
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.451e+01  3.469e+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:  5.406e-01  4.577e-01  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  1.057e+00  5.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/474877/likelihoodResults_571622401_571881601_4FGL_J2248.7-3235_daily_bin1282.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) = 1352.44036719
delta logL = 0.025529160248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1352.43885387
delta logL = 0.0270424828466

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.789       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1743       1.0000          .0000       10.000    
     3 'Normalizat'    1.0374       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55358       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=   1352.439     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      269 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.781        32.334        .10787E-03   -.16863E-05
   2  Index         3.1746        1.8247        .10303E-01   -.93215E-05
   3  Normalizat    1.0384        .47919        .24138E-03   -.11493E-03
   4  Prefactor     .55268        .44427        .30589E-03    .47666E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.7809
  Index      = 3.17457
  Normalizat = 1.03844
  Prefactor  = 0.552678
 **********
 **   18 **HESSE 
 **********

 FCN=   1352.439     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.781        31.431        .43147E-05   -1.4965    
   2  Index         3.1746        1.7745        .41214E-03   -.37373    
   3  Normalizat    1.0384        .47996        .48276E-04   -.91753    
   4  Prefactor     .55268        .44474        .12236E-04   -1.0962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.14787e-10
Minuit parameter uncertainties:
  1  31.4684
  2  1.82059
  3  0.481978
  4  0.447602
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/474877': 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) = 1352.43885139
delta logL = 0.0270449630445

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.378e+01  3.147e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  3.175e+00  1.821e+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:  5.527e-01  4.476e-01  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  1.038e+00  4.820e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.22
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/474877/cmap_HighResolution_571622401_571881601_4FGL_J2248.7-3235_daily_bin1282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.89e-02', job_status='DONE', photon_flux_upper_limit='3.66e-07', time_completed='2021-09-28 20:52:10.158120', job_id='474877', GAL2='0.55', fit_tolerance='1e-08', EG2='1.04', EG='1.06', time_epoch_completed='1632887530.16', return_code2='0', ts='0.22', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='2.70e-02', ts2='0.28', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1282' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:52:10 PDT 2021


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

Job <4FGL_J2248.7-3235_daily_bin1282> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 20:41:27 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:41:29 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:41:29 2021
Terminated at Tue Sep 28 20:52:10 2021
Results reported at Tue Sep 28 20:52:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1282 342.193 -32.5926 571622401 571881601 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 :                                   405.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             177.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   641 sec.
    Turnaround time :                            643 sec.

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

