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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1423
RA = 342.193, Dec = -32.5926
tmin = 608169601, tmax = 608428801
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='476118', job_status='RUN', time_executed='2021-09-28 20:46:05.708489', time_epoch_executed='1632887165.71' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1423'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/476118

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/476118/ft1_4FGL_J2248.7-3235_daily_bin1423.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/476118/ft2_4FGL_J2248.7-3235_daily_bin1423.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/476118/ft1_4FGL_J2248.7-3235_daily_bin1423.fits outfile=/scratch/kocevski/476118/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1423.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=608169601.0 tmax=608428801.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.44
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/476118/ft1_filtered_4FGL_J2248.7-3235_daily_bin1423.fits" evtable="EVENTS" scfile=/scratch/kocevski/476118/ft2_4FGL_J2248.7-3235_daily_bin1423.fits sctable="SC_DATA" outfile=/scratch/kocevski/476118/ltcube_608169601_608428801_4FGL_J2248.7-3235_daily_bin1423.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/476118/ft2_4FGL_J2248.7-3235_daily_bin1423.fits
.....................!
real 11.75
user 11.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/476118/ft1_filtered_4FGL_J2248.7-3235_daily_bin1423.fits evtable="EVENTS" scfile=/scratch/kocevski/476118/ft2_4FGL_J2248.7-3235_daily_bin1423.fits sctable="SC_DATA" expcube=/scratch/kocevski/476118/ltcube_608169601_608428801_4FGL_J2248.7-3235_daily_bin1423.fits outfile=/scratch/kocevski/476118/expmap_608169601_608428801_4FGL_J2248.7-3235_daily_bin1423.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/476118/ltcube_608169601_608428801_4FGL_J2248.7-3235_daily_bin1423.fits
.....................!
real 190.03
user 185.38
sys 4.28

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/476118/ft1_filtered_4FGL_J2248.7-3235_daily_bin1423.fits scfile=/scratch/kocevski/476118/ft2_4FGL_J2248.7-3235_daily_bin1423.fits outfile=/scratch/kocevski/476118/cmap_608169601_608428801_4FGL_J2248.7-3235_daily_bin1423.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/476118/ft1_filtered_4FGL_J2248.7-3235_daily_bin1423.fits scfile=/scratch/kocevski/476118/ft2_4FGL_J2248.7-3235_daily_bin1423.fits outfile=/scratch/kocevski/476118/cmap_HighResolution_608169601_608428801_4FGL_J2248.7-3235_daily_bin1423.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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/476118/ft1_filtered_4FGL_J2248.7-3235_daily_bin1423.fits evtable="EVENTS" scfile=/scratch/kocevski/476118/ft2_4FGL_J2248.7-3235_daily_bin1423.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/476118/Model_4FGL_J2248.7-3235_daily_bin1423.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/476118/ft1_filtered_4FGL_J2248.7-3235_daily_bin1423.fits.....................!
real 50.71
user 49.39
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1563       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9274       1.0000         .10000E-03   10000.    
     4 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .28132E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .23711E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.784       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.4548       1.0000         .10000E-03   10000.    
     9 'norm      '    2.6646       1.0000         .10000E-03   10000.    
    10 'Prefactor '    58.089       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.3280       1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.821       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .87744       1.0000         .10000E-03   10000.    
    20 'norm      '    7.1838       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.478       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1870       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82536       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=   6722.365     FROM MIGRAD    STATUS=CONVERGED   1055 CALLS     3423 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1563        .34025        .25115E-04   -.40015E-03
   2  Prefactor     .10000E-03    5.0157        .17922E-02** at limit **
   3  Prefactor     1.9279        5.8111        .14961E-02    .37061E-04
   4  norm          .10000E-03    12.706        .18142E-02** at limit **
   5  Prefactor     .10001E-03    19.876        .12389    ** at limit **
   6  Prefactor     .10006E-03    12.995        .87279E-01** at limit **
   7  Prefactor     16.784        13.315        .97762E-04   -.96986E-04
   8  Prefactor     9.4619        18.029        .13033E-03    .13407E-03
   9  norm          2.6662        2.2067        .97501E-04    .80571E-03
  10  Prefactor     58.054        45.906        .52637E-04   -.69417E-04
  11  Prefactor     .10000E-03    9.9012        .36285E-03** at limit **
  12  Prefactor     .10000E-03    2.6810        .13029E-02** at limit **
  13  norm          .10000E-03    1.2202        .88023E-03** at limit **
  14  Prefactor     .10000E-03    3.8407        .15674E-02** at limit **
  15  Prefactor     .10000E-03    3.3608        .14573E-02** at limit **
  16  norm          1.3281        .49703        .34226E-04   -.25336E-02
  17  Prefactor     31.815        40.529        .71031E-04   -.52818E-05
  18  Prefactor     .10000E-03    11.330        .32096E-02** at limit **
  19  norm          .87842        2.4789        .23196E-02    .33767E-03
  20  norm          7.1837        6.8765        .14966E-03   -.83561E-05
  21  Prefactor     .10000E-03    11.001        .18142E-02** at limit **
  22  Prefactor     16.468        29.202        .98666E-04   -.18090E-04
  23  norm          .10000E-03    1.4186        .94902E-03** at limit **
  24  Normalizat    1.1872        .20282        .22356E-03   -.29773E-03
  25  Prefactor     .82521        .19884        .26481E-03   -.13266E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.1563
  Prefactor  = 0.0001
  Prefactor  = 1.92794
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.000100056
  Prefactor  = 16.7835
  Prefactor  = 9.4619
  norm       = 2.66625
  Prefactor  = 58.0541
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.32812
  Prefactor  = 31.8153
  Prefactor  = 0.0001
  norm       = 0.878419
  norm       = 7.18367
  Prefactor  = 0.0001
  Prefactor  = 16.4682
  norm       = 0.0001
  Normalizat = 1.18715
  Prefactor  = 0.825206
 **********
 **   18 **HESSE 
 **********

 FCN=   6722.365     FROM HESSE     STATUS=OK           425 CALLS     3848 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1563        .34025        .10046E-05   -1.5493    
   2  Prefactor     .10000E-03    5.0160        .35843E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.9279        5.8045        .59843E-04   -1.5430    
   4  norm          .10000E-03    12.709        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    19.678        .12512       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10006E-03    12.834        .88120E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.784        13.314        .39105E-05   -1.4888    
   8  Prefactor     9.4619        18.028        .52133E-05   -1.5093    
   9  norm          2.6662        2.2069        .39001E-05   -1.5381    
  10  Prefactor     58.054        45.911        .10527E-04   -1.4183    
  11  Prefactor     .10000E-03    9.9016        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.6816        .26059E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.2203        .17605E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.8409        .31349E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.3616        .29145E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3281        .49689        .68451E-05   -1.5477    
  17  Prefactor     31.815        40.518        .28412E-05   -1.4579    
  18  Prefactor     .10000E-03    11.413        .64193E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .87842        2.4751        .92784E-04   -1.5521    
  20  norm          7.1837        6.8763        .59863E-05   -1.5172    
  21  Prefactor     .10000E-03    11.002        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     16.468        29.208        .39466E-05   -1.4896    
  23  norm          .10000E-03    1.4187        .18980E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1872        .20295        .44711E-04   -.87001    
  25  Prefactor     .82521        .19905        .10592E-04   -.98806    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.30536e-10
Minuit parameter uncertainties:
  1  0.340251
  2  3.40441e-05
  3  5.80616
  4  1.46364e-05
  5  0.000797924
  6  0.00170122
  7  13.3168
  8  18.0387
  9  2.207
  10  45.9392
  11  3.32346e-05
  12  1.53441e-06
  13  5.32654e-06
  14  6.06315e-06
  15  2.14192e-05
  16  0.496892
  17  40.5534
  18  4.37475e-05
  19  2.47536
  20  6.87708
  21  1.28691e-05
  22  29.2333
  23  7.80632e-06
  24  0.203085
  25  0.199221
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.000e-04  3.323e-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:  8.252e-01  1.992e-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.187e+00  2.031e-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: 6.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/476118/likelihoodResults_608169601_608428801_4FGL_J2248.7-3235_daily_bin1423.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) = 6722.3659287
delta logL = -0.000481884470901

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6722.36544682
delta logL = -8.50923242979e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7699       1.0000          .0000       10.000    
     3 'Normalizat'    1.1872       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82522       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=   6722.365     FROM MIGRAD    STATUS=FAILED        90 CALLS      247 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10066E-03    1681.0        .36285E-03** at limit **
   2  Index         2.8287        5.4101        .50000       -.60363E-05
   3  Normalizat    1.1872        .75626E-01    .22355E-03    .47752E-04
   4  Prefactor     .82521        .76513E-01    .26481E-03    .26532E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6722.365     FROM SIMPLEX   STATUS=UNCHANGED    165 CALLS      412 TOTAL
                     EDM=   .74E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10066E-03    1681.0        .45526E-03** at limit **
   2  Index         2.8287        5.4101        .13335E-04   -.60363E-05
   3  Normalizat    1.1872        .75626E-01    .36273E-06    .47752E-04
   4  Prefactor     .82521        .76513E-01    .48204E-06    .26532E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6722.365     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      461 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.630        .72569E-04** at limit **
   2  Index         3.0050        5.7385        .50000        .10914E-07
   3  Normalizat    1.1872        .19550        .89422E-05   -.70942E-04
   4  Prefactor     .82521        .19777        .10592E-04   -.61178E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.00504
  Normalizat = 1.18715
  Prefactor  = 0.825205
 **********
 **   18 **HESSE 
 **********

 FCN=   6722.365     FROM HESSE     STATUS=OK            29 CALLS      490 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.503        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0050        5.8242        .50000       -.41042    
   3  Normalizat    1.1872        .19549        .17884E-05   -.87001    
   4  Prefactor     .82521        .19777        .21185E-05   -.98806    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5398e-12
Minuit parameter uncertainties:
  1  1.42893e-06
  2  213.852
  3  0.195605
  4  0.197938
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/476118': 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) = 6722.36544659
delta logL = 2.24215909839e-07

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.000e-04  1.429e-06  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  3.005e+00  2.139e+02  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:  8.252e-01  1.979e-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.187e+00  1.956e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/476118/cmap_HighResolution_608169601_608428801_4FGL_J2248.7-3235_daily_bin1423.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.17e-03', job_status='DONE', photon_flux_upper_limit='6.55e-08', time_completed='2021-09-28 20:59:24.714442', job_id='476118', GAL2='0.83', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1632887964.71', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='2.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1423' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:59:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 476118: <4FGL_J2248.7-3235_daily_bin1423> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1423 342.193 -32.5926 608169601 608428801 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 :                                   792.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            838 sec.

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

