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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1568
RA = 342.193, Dec = -32.5926
tmin = 645753601, tmax = 646012801
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='476331', job_status='RUN', time_executed='2021-09-28 20:46:24.084366', time_epoch_executed='1632887184.08' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1568'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/476331

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/476331/ft1_4FGL_J2248.7-3235_daily_bin1568.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/476331/ft2_4FGL_J2248.7-3235_daily_bin1568.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/476331/ft1_4FGL_J2248.7-3235_daily_bin1568.fits outfile=/scratch/kocevski/476331/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1568.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=645753601.0 tmax=646012801.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.33
user 2.14
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/476331/ft1_filtered_4FGL_J2248.7-3235_daily_bin1568.fits" evtable="EVENTS" scfile=/scratch/kocevski/476331/ft2_4FGL_J2248.7-3235_daily_bin1568.fits sctable="SC_DATA" outfile=/scratch/kocevski/476331/ltcube_645753601_646012801_4FGL_J2248.7-3235_daily_bin1568.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/476331/ft2_4FGL_J2248.7-3235_daily_bin1568.fits
.....................!
real 12.16
user 11.84
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/476331/ft1_filtered_4FGL_J2248.7-3235_daily_bin1568.fits evtable="EVENTS" scfile=/scratch/kocevski/476331/ft2_4FGL_J2248.7-3235_daily_bin1568.fits sctable="SC_DATA" expcube=/scratch/kocevski/476331/ltcube_645753601_646012801_4FGL_J2248.7-3235_daily_bin1568.fits outfile=/scratch/kocevski/476331/expmap_645753601_646012801_4FGL_J2248.7-3235_daily_bin1568.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/476331/ltcube_645753601_646012801_4FGL_J2248.7-3235_daily_bin1568.fits
.....................!
real 192.94
user 187.47
sys 5.10

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/476331/ft1_filtered_4FGL_J2248.7-3235_daily_bin1568.fits scfile=/scratch/kocevski/476331/ft2_4FGL_J2248.7-3235_daily_bin1568.fits outfile=/scratch/kocevski/476331/cmap_645753601_646012801_4FGL_J2248.7-3235_daily_bin1568.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.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/476331/ft1_filtered_4FGL_J2248.7-3235_daily_bin1568.fits evtable="EVENTS" scfile=/scratch/kocevski/476331/ft2_4FGL_J2248.7-3235_daily_bin1568.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/476331/Model_4FGL_J2248.7-3235_daily_bin1568.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/476331/ft1_filtered_4FGL_J2248.7-3235_daily_bin1568.fits.....................!
real 38.05
user 36.75
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .99226       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.4876       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.991       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4379       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.9740       1.0000         .10000E-03   10000.    
     9 'norm      '    2.0857       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .38610E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.7439       1.0000         .10000E-03   10000.    
    16 'norm      '    .37826       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9455       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    127.57       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.6062       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .63262       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=   4325.074     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2918 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .99217        .52183        .33478E-07    .11035E-03
   2  Prefactor     8.4749        28.850       -.86433E-05   -.17728E-04
   3  Prefactor     .10000E-03    4.5801        .19666E-07** at limit **
   4  norm          12.984        24.816       -.16866E-05   -.12433E-04
   5  Prefactor     4.4384        104.86        .12776E-05   -.10294E-04
   6  Prefactor     .10000E-03    29.211        .20143E-05** at limit **
   7  Prefactor     .10000E-03    4.1385        .19041E-07** at limit **
   8  Prefactor     7.9748        22.679       -.49052E-06   -.23153E-04
   9  norm          2.0858        2.0510        .10347E-06    .10378E-03
  10  Prefactor     .10000E-03    30.455       -.19785E-05** at limit **
  11  Prefactor     .10000E-03    9.0026       -.17681E-05** at limit **
  12  Prefactor     .10000E-03    2.4581       -.35209E-07** at limit **
  13  norm          .10001E-03    4.0587        .95398E-07** at limit **
  14  Prefactor     .10000E-03    11.731        .18841E-06** at limit **
  15  Prefactor     9.7779        16.624       -.16258E-05   -.18304E-03
  16  norm          .37604        1.2304        .70734E-07   -.14128E-02
  17  Prefactor     .10000E-03    36.852       -.72086E-06** at limit **
  18  Prefactor     2.9585        18.528        .23983E-05   -.15469E-03
  19  norm          .10000E-03    1.9044       -.31185E-07** at limit **
  20  norm          .10000E-03    8.8464        .19031E-05** at limit **
  21  Prefactor     127.59        70.263        .13929E-04   -.47244E-05
  22  Prefactor     .10000E-03    94.110        .33056E-06** at limit **
  23  norm          .10000E-03    2.4669       -.37608E-06** at limit **
  24  Normalizat    1.6058        .24829       -.15739E-05    .46992E-04
  25  Prefactor     .63300        .23570        .19452E-05   -.10454E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.992171
  Prefactor  = 8.47494
  Prefactor  = 0.0001
  norm       = 12.9845
  Prefactor  = 4.43842
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.9748
  norm       = 2.0858
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 9.77787
  norm       = 0.376039
  Prefactor  = 0.0001
  Prefactor  = 2.95854
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 127.593
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.60582
  Prefactor  = 0.633001
 **********
 **   18 **HESSE 
 **********

 FCN=   4325.074     FROM HESSE     STATUS=OK           427 CALLS     3345 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .99217        .51918        .33378E-04   -1.5509    
   2  Prefactor     8.4749        28.864        .13760E-03   -1.5126    
   3  Prefactor     .10000E-03    4.5883        .13745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.984        24.838        .11113E-03   -1.4987    
   5  Prefactor     4.4384        104.78        .19115E-03   -1.5287    
   6  Prefactor     .10000E-03    29.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.1438        .13066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.9748        22.667        .14199E-03   -1.5143    
   9  norm          2.0858        2.0566        .90164E-04   -1.5419    
  10  Prefactor     .10000E-03    30.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.0407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.4588        .10070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    11.245        .22715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.7779        15.440        .12838E-03   -1.5082    
  16  norm          .37604        .99654        .70331E-03   -1.5585    
  17  Prefactor     .10000E-03    36.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.9585        15.374        .23664E-03   -1.5364    
  19  norm          .10000E-03    1.9048        .88638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    8.8892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     127.59        70.115        .17821E-03   -1.3444    
  22  Prefactor     .10000E-03    94.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.4854        .10106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.6058        .30839        .22417E-03   -.74847    
  25  Prefactor     .63300        .28732        .32097E-03   -1.0621    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30058e-09
Minuit parameter uncertainties:
  1  0.519181
  2  28.9112
  3  2.19806e-06
  4  24.8574
  5  43.216
  6  1.49641e-05
  7  3.40326e-06
  8  22.6917
  9  2.05672
  10  3.33317e-05
  11  1.29692e-05
  12  2.09016e-06
  13  0.000597628
  14  2.97987e-05
  15  15.4466
  16  0.996586
  17  1.30311e-05
  18  13.4935
  19  7.85652e-06
  20  2.81527e-05
  21  70.1609
  22  4.74163e-05
  23  5.58372e-05
  24  0.308761
  25  0.287992
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.000e-04  1.297e-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:  6.330e-01  2.880e-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.606e+00  3.088e-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.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/476331/likelihoodResults_645753601_646012801_4FGL_J2248.7-3235_daily_bin1568.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) = 4325.07418647
delta logL = -0.000526121028088

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4325.07366035
delta logL = -1.87537807506e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7660       1.0000          .0000       10.000    
     3 'Normalizat'    1.6058       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63300       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=   4325.074     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      248 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10036E-03    481.43        .18142E-02** at limit **
   2  Index         2.8172        5.2462        .50000       -.39056E-05
   3  Normalizat    1.6058        .44449E-01    .22417E-03   -.26625E-04
   4  Prefactor     .63301        .42258E-01    .32097E-03    .69778E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100357
  Index      = 2.81719
  Normalizat = 1.60582
  Prefactor  = 0.633006
 **********
 **   18 **HESSE 
 **********

 FCN=   4325.074     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10036E-03    1682.6        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8172        5.8978        .50000       -.45177    
   3  Normalizat    1.6058        .12481        .89668E-05   -.74847    
   4  Prefactor     .63301        .11863        .12839E-04   -1.0621    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.62025e-08
Minuit parameter uncertainties:
  1  0.0505276
  2  3346.91
  3  0.124832
  4  0.118675
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/476331': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4325.07366031
delta logL = 3.61869751941e-08

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.004e-04  5.053e-02  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  2.817e+00  3.347e+03  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:  6.330e-01  1.187e-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.606e+00  1.248e-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/476331/cmap_HighResolution_645753601_646012801_4FGL_J2248.7-3235_daily_bin1568.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.28e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-28 20:55:58.944858', job_id='476331', GAL2='0.63', fit_tolerance='1e-08', EG2='1.61', EG='1.61', time_epoch_completed='1632887758.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='3.62e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1568' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:55:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 476331: <4FGL_J2248.7-3235_daily_bin1568> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1568 342.193 -32.5926 645753601 646012801 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.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   615 sec.
    Turnaround time :                            616 sec.

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

