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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1019
RA = 342.193, Dec = -32.5926
tmin = 503452801, tmax = 503712001
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='474463', job_status='RUN', time_executed='2021-09-28 20:42:29.777697', time_epoch_executed='1632886949.78' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1019'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/474463

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/474463/ft1_4FGL_J2248.7-3235_daily_bin1019.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/474463/ft2_4FGL_J2248.7-3235_daily_bin1019.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/474463/ft1_4FGL_J2248.7-3235_daily_bin1019.fits outfile=/scratch/kocevski/474463/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1019.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=503452801.0 tmax=503712001.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 7.80
user 7.46
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/474463/ft1_filtered_4FGL_J2248.7-3235_daily_bin1019.fits" evtable="EVENTS" scfile=/scratch/kocevski/474463/ft2_4FGL_J2248.7-3235_daily_bin1019.fits sctable="SC_DATA" outfile=/scratch/kocevski/474463/ltcube_503452801_503712001_4FGL_J2248.7-3235_daily_bin1019.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/474463/ft2_4FGL_J2248.7-3235_daily_bin1019.fits
.....................!
real 12.06
user 11.67
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/474463/ft1_filtered_4FGL_J2248.7-3235_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/474463/ft2_4FGL_J2248.7-3235_daily_bin1019.fits sctable="SC_DATA" expcube=/scratch/kocevski/474463/ltcube_503452801_503712001_4FGL_J2248.7-3235_daily_bin1019.fits outfile=/scratch/kocevski/474463/expmap_503452801_503712001_4FGL_J2248.7-3235_daily_bin1019.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/474463/ltcube_503452801_503712001_4FGL_J2248.7-3235_daily_bin1019.fits
.....................!
real 191.54
user 185.80
sys 5.37

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/474463/ft1_filtered_4FGL_J2248.7-3235_daily_bin1019.fits scfile=/scratch/kocevski/474463/ft2_4FGL_J2248.7-3235_daily_bin1019.fits outfile=/scratch/kocevski/474463/cmap_503452801_503712001_4FGL_J2248.7-3235_daily_bin1019.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/474463/ft1_filtered_4FGL_J2248.7-3235_daily_bin1019.fits scfile=/scratch/kocevski/474463/ft2_4FGL_J2248.7-3235_daily_bin1019.fits outfile=/scratch/kocevski/474463/cmap_HighResolution_503452801_503712001_4FGL_J2248.7-3235_daily_bin1019.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.51
user 0.35
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/474463/ft1_filtered_4FGL_J2248.7-3235_daily_bin1019.fits', '/scratch/kocevski/474463/ft2_4FGL_J2248.7-3235_daily_bin1019.fits', expMap='/scratch/kocevski/474463/expmap_503452801_503712001_4FGL_J2248.7-3235_daily_bin1019.fits', expCube='/scratch/kocevski/474463/ltcube_503452801_503712001_4FGL_J2248.7-3235_daily_bin1019.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/474463/Model_4FGL_J2248.7-3235_daily_bin1019.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/474463/ft1_filtered_4FGL_J2248.7-3235_daily_bin1019.fits
Spacecraft file(s): /scratch/kocevski/474463/ft2_4FGL_J2248.7-3235_daily_bin1019.fits
Exposure map: /scratch/kocevski/474463/expmap_503452801_503712001_4FGL_J2248.7-3235_daily_bin1019.fits
Exposure cube: /scratch/kocevski/474463/ltcube_503452801_503712001_4FGL_J2248.7-3235_daily_bin1019.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/474463/Model_4FGL_J2248.7-3235_daily_bin1019.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8419.55699603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1395       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.956       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    30.301       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1207       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7958       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.106       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.3715       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12989E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.8751       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.2900       1.0000         .10000E-03   10000.    
    16 'norm      '    .17370       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12286E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    1.0607       1.0000         .10000E-03   10000.    
    20 'norm      '    4.1845       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.2553       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1189       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95339       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=   8419.495     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2519 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1395        .30023        .17505E-09    .43130E-04
   2  Prefactor     23.956        12.691       -.39601E-08   -.71457E-05
   3  Prefactor     .10000E-03    5.5165       -.37450E-07** at limit **
   4  norm          30.309        18.183        .29352E-06    .33520E-04
   5  Prefactor     2.1087        79.422       -.36569E-05   -.27520E-04
   6  Prefactor     4.7892        23.046       -.43420E-06   -.31812E-04
   7  Prefactor     11.106        10.543        .33510E-09   -.19461E-04
   8  Prefactor     .10000E-03    20.599       -.75848E-06** at limit **
   9  norm          1.3716        1.4587        .34653E-07   -.15555E-03
  10  Prefactor     .10000E-03    35.780       -.10175E-05** at limit **
  11  Prefactor     .10000E-03    23.633        .18632E-05** at limit **
  12  Prefactor     .10000E-03    1.5586       -.11767E-07** at limit **
  13  norm          1.8753        2.1833       -.18256E-08   -.20068E-03
  14  Prefactor     .10000E-03    5.0528        .17193E-07** at limit **
  15  Prefactor     9.2977        9.1103       -.67498E-06   -.21341E-03
  16  norm          .17358        .39340        .40381E-06    .10228E-02
  17  Prefactor     .10000E-03    16.539       -.12230E-05** at limit **
  18  Prefactor     .10000E-03    5.5362       -.35325E-06** at limit **
  19  norm          1.0625        6.4452        .18238E-05   -.40614E-03
  20  norm          4.1840        4.4236       -.12236E-06   -.12678E-04
  21  Prefactor     .10000E-03    34.240        .83911E-08** at limit **
  22  Prefactor     .10000E-03    14.909        .83849E-06** at limit **
  23  norm          1.2537        4.1339       -.43184E-07   -.43467E-03
  24  Normalizat    1.1189        .16266        .21037E-06   -.15931E-03
  25  Prefactor     .95345        .15514       -.31226E-06   -.67720E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.13953
  Prefactor  = 23.9561
  Prefactor  = 0.0001
  norm       = 30.3091
  Prefactor  = 2.10872
  Prefactor  = 4.78922
  Prefactor  = 11.106
  Prefactor  = 0.0001
  norm       = 1.37156
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.87531
  Prefactor  = 0.0001
  Prefactor  = 9.29773
  norm       = 0.17358
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.06245
  norm       = 4.18402
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.25366
  Normalizat = 1.11887
  Prefactor  = 0.953447
 **********
 **   18 **HESSE 
 **********

 FCN=   8419.495     FROM HESSE     STATUS=OK           435 CALLS     2954 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1395        .30141        .25055E-04   -1.5494    
   2  Prefactor     23.956        12.692        .81840E-04   -1.4729    
   3  Prefactor     .10000E-03    5.6321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          30.309        18.193        .72787E-04   -1.4606    
   5  Prefactor     2.1087        82.574        .28321E-03   -1.5418    
   6  Prefactor     4.7892        23.244        .18371E-03   -1.5270    
   7  Prefactor     11.106        10.566        .12022E-03   -1.5041    
   8  Prefactor     .10000E-03    20.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.3716        1.4333        .10955E-03   -1.5474    
  10  Prefactor     .10000E-03    36.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    24.415        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.5597        .11187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.8753        2.1595        .13624E-03   -1.5434    
  14  Prefactor     .10000E-03    5.0610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.2977        8.2970        .13149E-03   -1.5098    
  16  norm          .17358        .35908        .71543E-03   -1.5625    
  17  Prefactor     .10000E-03    16.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.615        .37862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.0625        5.7375        .37805E-03   -1.5502    
  20  norm          4.1840        4.4231        .19307E-03   -1.5299    
  21  Prefactor     .10000E-03    34.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    14.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.2537        3.8887        .27650E-03   -1.5484    
  24  Normalizat    1.1189        .20017        .24176E-03   -.89148    
  25  Prefactor     .95345        .18961        .25543E-03   -.94298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.04619e-10
Minuit parameter uncertainties:
  1  0.301409
  2  12.6936
  3  6.89283e-06
  4  18.1968
  5  26.4299
  6  21.115
  7  10.5677
  8  1.54628e-05
  9  1.43336
  10  9.85924e-05
  11  4.51457e-05
  12  1.28367e-06
  13  2.15956
  14  2.06443e-06
  15  8.29801
  16  0.359081
  17  8.10879e-05
  18  0.000381062
  19  4.93846
  20  4.42347
  21  2.65408e-05
  22  5.05912e-05
  23  3.88948
  24  0.200307
  25  0.189741
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.000e-04  4.515e-05  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:  9.534e-01  1.897e-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.119e+00  2.003e-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: 8.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/474463/likelihoodResults_503452801_503712001_4FGL_J2248.7-3235_daily_bin1019.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) = 8419.49561069
delta logL = -0.000195476975932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8419.49541496
delta logL = 2.55589839071e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10507E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8362       1.0000          .0000       10.000    
     3 'Normalizat'    1.1190       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95337       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8419.474     FROM MIGRAD    STATUS=FAILED       171 CALLS      337 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .59648        178.36        .40564E-02   -.15627E-01
   2  Index         4.1537        6.4996        .36717        .39093E-04
   3  Normalizat    1.1054        .31056E-01    .24176E-03   -.99316E-04
   4  Prefactor     .96157        .30510E-01    .25543E-03   -.95070E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8419.474     FROM SIMPLEX   STATUS=UNCHANGED     84 CALLS      421 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .59648        178.36        .24457E-03   -.15627E-01
   2  Index         4.1537        6.4996        .42609E-02    .39093E-04
   3  Normalizat    1.1054        .31056E-01    .44662E-04   -.99316E-04
   4  Prefactor     .96157        .30510E-01    .24521E-04   -.95070E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8419.474     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      472 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .59649        18.450         .0000       -.61023E-03
   2  Index         4.1536        7.0711         .0000        .16316E-03
   3  Normalizat    1.1054        .19820         .0000       -.83703E-04
   4  Prefactor     .96157        .18978         .0000       -.85011E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.596488
  Index      = 4.15365
  Normalizat = 1.10545
  Prefactor  = 0.96157
 **********
 **   18 **HESSE 
 **********

 FCN=   8419.474     FROM HESSE     STATUS=OK            27 CALLS      499 TOTAL
                     EDM=   .61E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .59649        9.9479        .16225E-03   -1.5862    
   2  Index         4.1536        6.9449        .49351E-02   -.17009    
   3  Normalizat    1.1054        .19760        .19341E-05   -.89577    
   4  Prefactor     .96157        .18898        .20434E-05   -.94022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.07546e-12
Minuit parameter uncertainties:
  1  4.87243
  2  5.29458
  3  0.197729
  4  0.189111
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/474463': 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) = 8419.47420961
delta logL = 0.0212056010678

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  5.965e-01  4.872e+00  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  4.154e+00  5.295e+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:  9.616e-01  1.891e-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.105e+00  1.977e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/474463/cmap_HighResolution_503452801_503712001_4FGL_J2248.7-3235_daily_bin1019.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.48e-03', job_status='DONE', photon_flux_upper_limit='8.20e-08', time_completed='2021-09-28 20:56:33.769619', job_id='474463', GAL2='0.96', fit_tolerance='1e-08', EG2='1.11', EG='1.12', time_epoch_completed='1632887793.77', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='2.12e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1019' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:56:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 474463: <4FGL_J2248.7-3235_daily_bin1019> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin1019> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 20:40:49 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:40:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 20:40:51 2021
Terminated at Tue Sep 28 20:56:34 2021
Results reported at Tue Sep 28 20:56:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1019 342.193 -32.5926 503452801 503712001 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 :                                   833.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            945 sec.

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

