/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 237 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1753
RA = 342.193, Dec = -32.5926
tmin = 693705601, tmax = 693964801
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='469029', job_status='RUN', time_executed='2022-12-29 01:49:35.236377', time_epoch_executed='1672307375.24' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/469029

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/469029/ft1_4FGL_J2248.7-3235_daily_bin1753.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/469029/ft2_4FGL_J2248.7-3235_daily_bin1753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/469029/ft1_4FGL_J2248.7-3235_daily_bin1753.fits outfile=/scratch/kocevski/469029/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1753.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=693705601.0 tmax=693964801.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 4.69
user 4.40
sys 0.23

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

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

Number of photons that the gtmktime cut: 624

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/469029/ft1_filtered_4FGL_J2248.7-3235_daily_bin1753.fits" evtable="EVENTS" scfile=/scratch/kocevski/469029/ft2_4FGL_J2248.7-3235_daily_bin1753.fits sctable="SC_DATA" outfile=/scratch/kocevski/469029/ltcube_693705601_693964801_4FGL_J2248.7-3235_daily_bin1753.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/469029/ft2_4FGL_J2248.7-3235_daily_bin1753.fits
.....................!
real 13.98
user 13.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/469029/ft1_filtered_4FGL_J2248.7-3235_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/469029/ft2_4FGL_J2248.7-3235_daily_bin1753.fits sctable="SC_DATA" expcube=/scratch/kocevski/469029/ltcube_693705601_693964801_4FGL_J2248.7-3235_daily_bin1753.fits outfile=/scratch/kocevski/469029/expmap_693705601_693964801_4FGL_J2248.7-3235_daily_bin1753.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/469029/ltcube_693705601_693964801_4FGL_J2248.7-3235_daily_bin1753.fits
.....................!
real 192.74
user 185.93
sys 5.58

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/469029/ft1_filtered_4FGL_J2248.7-3235_daily_bin1753.fits scfile=/scratch/kocevski/469029/ft2_4FGL_J2248.7-3235_daily_bin1753.fits outfile=/scratch/kocevski/469029/cmap_693705601_693964801_4FGL_J2248.7-3235_daily_bin1753.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/469029/ft1_filtered_4FGL_J2248.7-3235_daily_bin1753.fits scfile=/scratch/kocevski/469029/ft2_4FGL_J2248.7-3235_daily_bin1753.fits outfile=/scratch/kocevski/469029/cmap_HighResolution_693705601_693964801_4FGL_J2248.7-3235_daily_bin1753.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/469029/ft1_filtered_4FGL_J2248.7-3235_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/469029/ft2_4FGL_J2248.7-3235_daily_bin1753.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/469029/Model_4FGL_J2248.7-3235_daily_bin1753.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/469029/ft1_filtered_4FGL_J2248.7-3235_daily_bin1753.fits.....................!
real 50.46
user 48.87
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/469029/ft1_filtered_4FGL_J2248.7-3235_daily_bin1753.fits', '/scratch/kocevski/469029/ft2_4FGL_J2248.7-3235_daily_bin1753.fits', expMap='/scratch/kocevski/469029/expmap_693705601_693964801_4FGL_J2248.7-3235_daily_bin1753.fits', expCube='/scratch/kocevski/469029/ltcube_693705601_693964801_4FGL_J2248.7-3235_daily_bin1753.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/469029/Model_4FGL_J2248.7-3235_daily_bin1753.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  0.000e+00  1.000e+06 ( 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/469029/ft1_filtered_4FGL_J2248.7-3235_daily_bin1753.fits
Spacecraft file(s): /scratch/kocevski/469029/ft2_4FGL_J2248.7-3235_daily_bin1753.fits
Exposure map: /scratch/kocevski/469029/expmap_693705601_693964801_4FGL_J2248.7-3235_daily_bin1753.fits
Exposure cube: /scratch/kocevski/469029/ltcube_693705601_693964801_4FGL_J2248.7-3235_daily_bin1753.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/469029/Model_4FGL_J2248.7-3235_daily_bin1753.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) = 6752.47750865

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32262       1.0000          .0000       .10000E+07
     2 'Prefactor '    .32887E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .13006E-04   1.0000          .0000       .10000E+07
     4 'norm      '    6.4490       1.0000          .0000       .10000E+07
     5 'Prefactor '    .13490E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .11079E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .27750E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    18.827       1.0000          .0000       .10000E+07
     9 'norm      '    4.3932       1.0000          .0000       .10000E+07
    10 'Prefactor '    .91277E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    32.936       1.0000          .0000       .10000E+07
    12 'Prefactor '    .11713E-03   1.0000          .0000       .10000E+07
    13 'norm      '    3.5777       1.0000          .0000       .10000E+07
    14 'Prefactor '    .25069E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    3.1920       1.0000          .0000       .10000E+07
    16 'norm      '    2.1025       1.0000          .0000       .10000E+07
    17 'Prefactor '    .12824E-05   1.0000          .0000       .10000E+07
    18 'norm      '    .12771E-04   1.0000          .0000       .10000E+07
    19 'norm      '    1.4943       1.0000          .0000       .10000E+07
    20 'Prefactor '    20.542       1.0000          .0000       .10000E+07
    21 'Prefactor '    .50625E-02   1.0000          .0000       .10000E+07
    22 'norm      '    .54124E-05   1.0000          .0000       .10000E+07
    23 'Normalizat'    .81982       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .77632       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6752.459     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     1506 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .32276        .21127        .41296E-08   -.76085E-02
   2  Prefactor     .49960E-09    3.1884       -.14002E-05** at limit **
   3  Prefactor     .27200E-08    1.0096       -.57861E-08** at limit **
   4  norm          6.4463        7.4414        .17088E-05    .12170E-01
   5  Prefactor     .55067E-07    7.6912        .19654E-05** at limit **
   6  Prefactor     .12379E-07    2.8122        .96315E-06** at limit **
   7  Prefactor     .79381E-08    1.6018       -.12759E-06** at limit **
   8  Prefactor     18.898        1.2001        .73927E-07    .13401E-02
   9  norm          4.3935        1.8912       -.23737E-06   -.32814E-02
  10  Prefactor     .61062E-09    11.760       -.18831E-05** at limit **
  11  Prefactor     32.963        3.1556        .22669E-06   -.79433E-01
  12  Prefactor     .36748E-07    2.5573        .89083E-06** at limit **
  13  norm          3.5783        3.5069       -.73006E-07    .67099E-02
  14  Prefactor     .96589E-08    1.4609       -.11350E-06** at limit **
  15  Prefactor     3.1901        7.1311       -.22067E-05   -.19323E-01
  16  norm          2.1029        .74609        .64602E-07    .97323E-02
  17  Prefactor     .69389E-08    1.6082       -.17040E-06** at limit **
  18  norm           .0000        1.1167        .54875E-07** at limit **
  19  norm          1.5456        5.2419       -.24075E-06    .73108E-03
  20  Prefactor     21.109        23.950        .23922E-05   -.30243E-02
  21  Prefactor     .17042E-07    6.7152        .18234E-05** at limit **
  22  norm           .0000        1.2069        .28860E-07** at limit **
  23  Normalizat    .81906        .16224        .89276E-05    .36642E-03
  24  Prefactor     .77655        .16467        .51614E-06    .22702E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.322764
  Prefactor  = 4.996e-10
  Prefactor  = 2.72005e-09
  norm       = 6.44633
  Prefactor  = 5.50671e-08
  Prefactor  = 1.2379e-08
  Prefactor  = 7.93809e-09
  Prefactor  = 18.8982
  norm       = 4.39351
  Prefactor  = 6.10623e-10
  Prefactor  = 32.9626
  Prefactor  = 3.67484e-08
  norm       = 3.57835
  Prefactor  = 9.65894e-09
  Prefactor  = 3.19007
  norm       = 2.10292
  Prefactor  = 6.93889e-09
  norm       = 0
  norm       = 1.54559
  Prefactor  = 21.1094
  Prefactor  = 1.70419e-08
  norm       = 0
  Normalizat = 0.819064
  Prefactor  = 0.776554
 **********
 **   18 **HESSE 
 **********

 FCN=   6752.459     FROM HESSE     STATUS=OK           441 CALLS     1947 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .32276        .21217        .67106E-03   -1.5697    
   2  Prefactor     .49960E-09    4.3695        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .27200E-08    4.8779        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.4463        7.5472        .39498E-03   -1.5657    
   5  Prefactor     .55067E-07    14.404        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .12379E-07    4.8125        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .79381E-08    3.5746        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.898        15.694        .23055E-03   -1.5621    
   9  norm          4.3935        1.8921        .48026E-03   -1.5666    
  10  Prefactor     .61062E-09    11.843        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     32.963        10.964        .17427E-03   -1.5593    
  12  Prefactor     .36748E-07    3.9112        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.5783        3.5910        .53404E-03   -1.5670    
  14  Prefactor     .96589E-08    4.6823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.1901        8.7610        .56690E-03   -1.5672    
  16  norm          2.1029        .77543        .71139E-03   -1.5679    
  17  Prefactor     .69389E-08    3.5710        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        1.1145        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.5456        5.2673        .87629E-03   -1.5683    
  20  Prefactor     21.109        24.049        .22070E-03   -1.5616    
  21  Prefactor     .17042E-07    14.128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm           .0000        1.2020        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .81906        .14032        .43868E-01   -.99365    
  24  Prefactor     .77655        .13898        .43408E-01   -1.0060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.68737e-08
Minuit parameter uncertainties:
  1  0.212167
  2  9.16831e-05
  3  0.000231398
  4  7.5472
  5  0.00178163
  6  0.000488171
  7  0.00033635
  8  15.6943
  9  1.8921
  10  0.000170614
  11  10.9642
  12  0.000757983
  13  3.59099
  14  0.00042533
  15  8.761
  16  0.775425
  17  0.000314517
  18  9.57198e-06
  19  5.26731
  20  24.0488
  21  0.000981214
  22  6.43038e-06
  23  0.14038
  24  0.139039
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  3.296e+01  1.096e+01  0.000e+00  1.000e+06 ( 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:  7.766e-01  1.390e-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.191e-01  1.404e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.96
Ra Dec: 342.193 -32.593
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 1.17e-07 +/- 3.88e-08
Energy Flux (Fixed Index): 2.69e-05 +/- 8.94e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6752.44795275
delta logL = 0.010822300731

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6752.44135928
delta logL = 0.017415767782

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.478       1.0000          .0000       .10000E+07
     2 'Index     '    2.8418       1.0000          .0000       10.000    
     3 'Normalizat'    .81349       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78100       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=   6752.441     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      234 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.477        13.784        .71305E-05    .52755E-02
   2  Index         2.8418        .45154        .54101E-02    .10318E-03
   3  Normalizat    .81349        .16359        .21864E-03   -.24907E-04
   4  Prefactor     .78100        .16507        .22783E-03   -.21906E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.4774
  Index      = 2.8418
  Normalizat = 0.813491
  Prefactor  = 0.781002
 **********
 **   18 **HESSE 
 **********

 FCN=   6752.441     FROM HESSE     STATUS=OK            25 CALLS      259 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.477        13.413        .14261E-05   -1.5596    
   2  Index         2.8418        .43918        .21640E-03   -.44631    
   3  Normalizat    .81349        .16374        .87455E-05   -.99570    
   4  Prefactor     .78100        .16520        .91132E-05   -1.0043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00007e-10
Minuit parameter uncertainties:
  1  13.4133
  2  0.439874
  3  0.163841
  4  0.165304
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/469029': 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) = 6752.44135928
delta logL = 0.0174157691608

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  3.148e+01  1.341e+01  0.000e+00  1.000e+06 ( 1.000e-12)
312        Index:  2.842e+00  4.399e-01  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:  7.810e-01  1.653e-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.135e-01  1.638e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.98
Ra Dec: 342.193 -32.593
Photon Index (Free Index): 2.84 +/- 0.44
Photon Flux (Free Index): 1.20e-07 +/- 4.37e-08
Energy Flux (Free Index): 2.62e-05 +/- 9.26e-06

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/469029/cmap_HighResolution_693705601_693964801_4FGL_J2248.7-3235_daily_bin1753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.17e-07', energy_flux2='2.62e-05', photon_flux_error='3.88e-08', dlogl='1.74e-02', energy_flux='2.69e-05', photon_flux2='1.20e-07', job_status='DONE', time_completed='2022-12-29 01:58:48.311093', photon_index_error2='0.44', photon_index2='2.84', ts='17.96', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='9.26e-06', EG='0.82', time_epoch_completed='1672307928.31', return_code='0', job_id='469029', GAL2='0.78', EG2='0.81', return_code2='0', energy_flux_error='8.94e-06', photon_flux_error2='4.37e-08', ts2='17.98', photon_index='2.76' WHERE bin_id='1753' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 29 01:58:48 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0143>
Subject: Job 469029: <4FGL_J2248.7-3235_daily_bin1753> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin1753> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Dec 29 01:45:16 2022
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 29 01:45:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec 29 01:45:30 2022
Terminated at Thu Dec 29 01:58:49 2022
Results reported at Thu Dec 29 01:58:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1753 342.193 -32.5926 693705601 693964801 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 :                                   552.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             255.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            813 sec.

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

