/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 197 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_bin1270
RA = 342.193, Dec = -32.5926
tmin = 568512001, tmax = 568771201
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='474858', job_status='RUN', time_executed='2021-09-28 20:44:53.214022', time_epoch_executed='1632887093.21' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1270'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/474858

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/474858/ft1_4FGL_J2248.7-3235_daily_bin1270.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/474858/ft2_4FGL_J2248.7-3235_daily_bin1270.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/474858/ft1_4FGL_J2248.7-3235_daily_bin1270.fits outfile=/scratch/kocevski/474858/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1270.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=568512001.0 tmax=568771201.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.65
user 3.34
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/474858/ft2_4FGL_J2248.7-3235_daily_bin1270.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/474858/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1270.fits evtable="EVENTS" outfile="/scratch/kocevski/474858/ft1_filtered_4FGL_J2248.7-3235_daily_bin1270.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/474858/ft1_filtered_4FGL_J2248.7-3235_daily_bin1270.fits" evtable="EVENTS" scfile=/scratch/kocevski/474858/ft2_4FGL_J2248.7-3235_daily_bin1270.fits sctable="SC_DATA" outfile=/scratch/kocevski/474858/ltcube_568512001_568771201_4FGL_J2248.7-3235_daily_bin1270.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/474858/ft2_4FGL_J2248.7-3235_daily_bin1270.fits
.....................!
real 11.80
user 11.41
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/474858/ft1_filtered_4FGL_J2248.7-3235_daily_bin1270.fits evtable="EVENTS" scfile=/scratch/kocevski/474858/ft2_4FGL_J2248.7-3235_daily_bin1270.fits sctable="SC_DATA" expcube=/scratch/kocevski/474858/ltcube_568512001_568771201_4FGL_J2248.7-3235_daily_bin1270.fits outfile=/scratch/kocevski/474858/expmap_568512001_568771201_4FGL_J2248.7-3235_daily_bin1270.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/474858/ltcube_568512001_568771201_4FGL_J2248.7-3235_daily_bin1270.fits
.....................!
real 191.19
user 186.81
sys 4.03

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/474858/ft1_filtered_4FGL_J2248.7-3235_daily_bin1270.fits scfile=/scratch/kocevski/474858/ft2_4FGL_J2248.7-3235_daily_bin1270.fits outfile=/scratch/kocevski/474858/cmap_568512001_568771201_4FGL_J2248.7-3235_daily_bin1270.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=342.193 yref=-32.5926 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/474858/ft1_filtered_4FGL_J2248.7-3235_daily_bin1270.fits scfile=/scratch/kocevski/474858/ft2_4FGL_J2248.7-3235_daily_bin1270.fits outfile=/scratch/kocevski/474858/cmap_HighResolution_568512001_568771201_4FGL_J2248.7-3235_daily_bin1270.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/474858/ft1_filtered_4FGL_J2248.7-3235_daily_bin1270.fits evtable="EVENTS" scfile=/scratch/kocevski/474858/ft2_4FGL_J2248.7-3235_daily_bin1270.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/474858/Model_4FGL_J2248.7-3235_daily_bin1270.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/474858/ft1_filtered_4FGL_J2248.7-3235_daily_bin1270.fits.....................!
real 37.40
user 36.01
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5284       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.529       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0441       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    107.13       1.0000         .10000E-03   10000.    
     9 'norm      '    .10244E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20532E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13333       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.7609       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10416E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13588E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    1.5212       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.849       1.0000         .10000E-03   10000.    
    19 'norm      '    11.102       1.0000         .10000E-03   10000.    
    20 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    33.482       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .89942       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2469       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=   4080.629     FROM MIGRAD    STATUS=CONVERGED    618 CALLS     2975 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5285        .58822       -.10262E-07   -.20299E-05
   2  Prefactor     10.523        26.281        .27806E-05   -.71297E-05
   3  Prefactor     .10000E-03    8.1258       -.15612E-06** at limit **
   4  norm          .10000E-03    94.334        .32573E-04** at limit **
   5  Prefactor     .10000E-03    22.533        .20777E-06** at limit **
   6  Prefactor     3.0567        124.60        .13459E-04   -.71781E-07
   7  Prefactor     .10000E-03    21.261        .23773E-07** at limit **
   8  Prefactor     107.12        48.348       -.48281E-05   -.17427E-04
   9  norm          .10000E-03    2.4403       -.16441E-06** at limit **
  10  Prefactor     .10000E-03    159.19        .13818E-04** at limit **
  11  Prefactor     .10069E-03    16.004        .30349E-06** at limit **
  12  Prefactor     .10000E-03    3.0373        .64894E-07** at limit **
  13  norm          4.7645        8.6580        .35312E-06    .13334E-02
  14  Prefactor     .10000E-03    16.819        .16825E-06** at limit **
  15  Prefactor     .10248E-03    14.337       -.56376E-05** at limit **
  16  norm          1.5211        1.1127        .83680E-07    .64154E-02
  17  Prefactor     .10000E-03    94.403        .12287E-05** at limit **
  18  Prefactor     10.848        16.688        .32973E-05    .79944E-03
  19  norm          11.102        8.0903       -.39983E-06   -.17595E-04
  20  norm          .10000E-03    3.4581       -.85519E-09** at limit **
  21  Prefactor     .10000E-03    28.603       -.38235E-06** at limit **
  22  Prefactor     33.505        61.852       -.56295E-05    .28649E-04
  23  norm          .10000E-03    5.7282        .17708E-06** at limit **
  24  Normalizat    .90025        .25608        .14993E-05    .34514E-03
  25  Prefactor     1.2462        .23982       -.93303E-06    .37170E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.52848
  Prefactor  = 10.5227
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.05667
  Prefactor  = 0.0001
  Prefactor  = 107.119
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010069
  Prefactor  = 0.0001
  norm       = 4.76448
  Prefactor  = 0.0001
  Prefactor  = 0.000102484
  norm       = 1.5211
  Prefactor  = 0.0001
  Prefactor  = 10.8475
  norm       = 11.1022
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.5046
  norm       = 0.0001
  Normalizat = 0.900246
  Prefactor  = 1.2462
 **********
 **   18 **HESSE 
 **********

 FCN=   4080.629     FROM HESSE     STATUS=OK           425 CALLS     3400 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5285        .58891        .29380E-04   -1.5461    
   2  Prefactor     10.523        26.267        .12348E-03   -1.5059    
   3  Prefactor     .10000E-03    8.1902        .17777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    92.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.0567        121.89        .23255E-03   -1.5358    
   7  Prefactor     .10000E-03    21.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     107.12        48.128        .38854E-04   -1.3634    
   9  norm          .10000E-03    4.8643        .19206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    159.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10069E-03    25.926        .71152E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.0408        .10873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.7645        7.9275        .18440E-03   -1.5271    
  14  Prefactor     .10000E-03    16.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10248E-03    96.772        .35225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.5211        1.0862        .45275E-04   -1.5461    
  17  Prefactor     .10000E-03    94.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.848        16.563        .12163E-03   -1.5049    
  19  norm          11.102        8.0684        .12024E-03   -1.5041    
  20  norm          .10000E-03    3.4623        .11601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    28.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     33.505        62.165        .69252E-04   -1.4550    
  23  norm          .10000E-03    5.8839        .29770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .90025        .31584        .29043E-03   -.96451    
  25  Prefactor     1.2462        .29620        .24785E-03   -.84921    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64704e-08
Minuit parameter uncertainties:
  1  0.588907
  2  26.2961
  3  1.38207e-05
  4  0.000679817
  5  1.48223e-05
  6  38.6895
  7  2.8871e-05
  8  48.1457
  9  3.09078e-05
  10  7.90497e-05
  11  0.00846234
  12  2.74341e-06
  13  7.92929
  14  1.91904e-05
  15  0.0310595
  16  1.08623
  17  3.03559e-05
  18  16.5697
  19  8.06917
  20  3.04089e-06
  21  1.73621e-05
  22  62.2852
  23  1.55173e-05
  24  0.316495
  25  0.296599
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.007e-04  8.462e-03  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.246e+00  2.966e-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:  9.002e-01  3.165e-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: 1.51e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/474858/likelihoodResults_568512001_568771201_4FGL_J2248.7-3235_daily_bin1270.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) = 4080.62944
delta logL = -5.54803682462e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4080.46059933
delta logL = 0.16883512268

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0398       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3683       1.0000          .0000       10.000    
     3 'Normalizat'    .84666       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2791       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=   4080.461     FROM MIGRAD    STATUS=FAILED        84 CALLS      452 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0385        27.736        .15859E-03   -.26130E-02
   2  Index         4.3684        7.0448        .10651E-01   -.35689E-03
   3  Normalizat    .84673        .30713        .29861E-03   -.89224E-03
   4  Prefactor     1.2790        .29612        .24510E-03   -.70786E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4080.461     FROM SIMPLEX   STATUS=UNCHANGED     80 CALLS      532 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0385        27.736        .19578E-03   -1.5422    
   2  Index         4.3684        7.0448        .20757E-02   -.12667    
   3  Normalizat    .84673        .30713        .59557E-03   -.98358    
   4  Prefactor     1.2790        .29612        .41889E-03   -.83934    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4080.461     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      563 TOTAL
                     EDM=   .68E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0381        7.7969        .63434E-05    .67924E-04
   2  Index         4.3686        2.6937        .42604E-03    .49233E-05
   3  Normalizat    .84673        .30675        .59722E-04    .44544E-04
   4  Prefactor     1.2790        .29651        .49020E-04    .35878E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.03815
  Index      = 4.36859
  Normalizat = 0.846733
  Prefactor  = 1.27899
 **********
 **   18 **HESSE 
 **********

 FCN=   4080.461     FROM HESSE     STATUS=OK            23 CALLS      586 TOTAL
                     EDM=   .69E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0381        7.6939        .12687E-05   -1.5422    
   2  Index         4.3686        2.6616        .17042E-04   -.12662    
   3  Normalizat    .84673        .30680        .11944E-04   -.98358    
   4  Prefactor     1.2790        .29655        .98040E-05   -.83934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.85887e-12
Minuit parameter uncertainties:
  1  7.69759
  2  2.80947
  3  0.307432
  4  0.296945
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/474858': 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) = 4080.46059927
delta logL = 0.168835178315

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  2.038e+00  7.698e+00  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  4.369e+00  2.809e+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.279e+00  2.969e-01  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  8.467e-01  3.074e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/474858/cmap_HighResolution_568512001_568771201_4FGL_J2248.7-3235_daily_bin1270.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', job_status='DONE', photon_flux_upper_limit='1.51e-07', time_completed='2021-09-28 20:54:30.564274', job_id='474858', GAL2='1.28', fit_tolerance='1e-08', EG2='0.85', EG='0.90', time_epoch_completed='1632887670.56', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='1.69e-01', ts2='0.36', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1270' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:54:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 474858: <4FGL_J2248.7-3235_daily_bin1270> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1270 342.193 -32.5926 568512001 568771201 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 :                                   574.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             235.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            786 sec.

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

