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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1029
RA = 342.193, Dec = -32.5926
tmin = 506044801, tmax = 506304001
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='474478', job_status='RUN', time_executed='2021-09-28 20:44:30.726589', time_epoch_executed='1632887070.73' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1029'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/474478

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/474478/ft1_4FGL_J2248.7-3235_daily_bin1029.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/474478/ft2_4FGL_J2248.7-3235_daily_bin1029.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/474478/ft1_4FGL_J2248.7-3235_daily_bin1029.fits outfile=/scratch/kocevski/474478/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1029.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=506044801.0 tmax=506304001.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.32
user 4.07
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/474478/ft1_filtered_4FGL_J2248.7-3235_daily_bin1029.fits" evtable="EVENTS" scfile=/scratch/kocevski/474478/ft2_4FGL_J2248.7-3235_daily_bin1029.fits sctable="SC_DATA" outfile=/scratch/kocevski/474478/ltcube_506044801_506304001_4FGL_J2248.7-3235_daily_bin1029.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/474478/ft2_4FGL_J2248.7-3235_daily_bin1029.fits
.....................!
real 13.81
user 13.42
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/474478/ft1_filtered_4FGL_J2248.7-3235_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/474478/ft2_4FGL_J2248.7-3235_daily_bin1029.fits sctable="SC_DATA" expcube=/scratch/kocevski/474478/ltcube_506044801_506304001_4FGL_J2248.7-3235_daily_bin1029.fits outfile=/scratch/kocevski/474478/expmap_506044801_506304001_4FGL_J2248.7-3235_daily_bin1029.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/474478/ltcube_506044801_506304001_4FGL_J2248.7-3235_daily_bin1029.fits
.....................!
real 192.66
user 186.94
sys 5.09

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/474478/ft1_filtered_4FGL_J2248.7-3235_daily_bin1029.fits scfile=/scratch/kocevski/474478/ft2_4FGL_J2248.7-3235_daily_bin1029.fits outfile=/scratch/kocevski/474478/cmap_506044801_506304001_4FGL_J2248.7-3235_daily_bin1029.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/474478/ft1_filtered_4FGL_J2248.7-3235_daily_bin1029.fits scfile=/scratch/kocevski/474478/ft2_4FGL_J2248.7-3235_daily_bin1029.fits outfile=/scratch/kocevski/474478/cmap_HighResolution_506044801_506304001_4FGL_J2248.7-3235_daily_bin1029.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/474478/ft1_filtered_4FGL_J2248.7-3235_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/474478/ft2_4FGL_J2248.7-3235_daily_bin1029.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/474478/Model_4FGL_J2248.7-3235_daily_bin1029.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/474478/ft1_filtered_4FGL_J2248.7-3235_daily_bin1029.fits.....................!
real 47.18
user 45.75
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8791       1.0000         .10000E-03   10000.    
     2 'Prefactor '    55.092       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10387E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.869       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.363       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    85.166       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.662       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.192       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.3849       1.0000         .10000E-03   10000.    
    16 'norm      '    .93101       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.5554       1.0000         .10000E-03   10000.    
    19 'norm      '    .73122       1.0000         .10000E-03   10000.    
    20 'norm      '    13.029       1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.508       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.2881       1.0000         .10000E-03   10000.    
    23 'norm      '    4.7393       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2054       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .49586       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=   5936.172     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2920 TOTAL
                     EDM=   .90E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8791        .46900        .22754E-08   -.40776E-04
   2  Prefactor     55.088        23.202        .62818E-07   -.24314E-04
   3  Prefactor     .10000E-03    8.0019       -.12673E-06** at limit **
   4  norm          .10000E-03    56.212       -.41668E-06** at limit **
   5  Prefactor     29.869        39.939        .11868E-06   -.61457E-05
   6  Prefactor     23.364        16.447       -.32012E-07   -.14584E-04
   7  Prefactor     .10000E-03    12.044       -.37176E-06** at limit **
   8  Prefactor     .10000E-03    23.553       -.13116E-06** at limit **
   9  norm          .10000E-03    1.1125       -.21913E-06** at limit **
  10  Prefactor     85.154        56.957       -.15011E-06   -.53606E-04
  11  Prefactor     12.664        12.353        .15159E-05   -.25118E-04
  12  Prefactor     .10000E-03    2.3446        .96642E-08** at limit **
  13  norm          .10000E-03    1.0540        .20373E-07** at limit **
  14  Prefactor     15.188        14.751       -.29085E-06    .55572E-05
  15  Prefactor     2.3895        17.038        .24103E-05    .77488E-04
  16  norm          .93097        .59847       -.10031E-06   -.21834E-03
  17  Prefactor     .10000E-03    80.138       -.41345E-06** at limit **
  18  Prefactor     5.5567        8.1532        .67306E-07    .14576E-03
  19  norm          .72788        7.0745        .72165E-06   -.12089E-03
  20  norm          13.028        7.3311        .50585E-07    .39582E-04
  21  Prefactor     23.526        65.846       -.55644E-06   -.10896E-04
  22  Prefactor     8.2962        32.406        .74285E-06    .16006E-04
  23  norm          4.7419        7.0953       -.41876E-06   -.19076E-03
  24  Normalizat    1.2051        .19861       -.16828E-05    .34068E-04
  25  Prefactor     .49606        .18096        .16678E-05   -.84872E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.87913
  Prefactor  = 55.0881
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 29.8689
  Prefactor  = 23.3635
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 85.1545
  Prefactor  = 12.6636
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.1882
  Prefactor  = 2.38945
  norm       = 0.930969
  Prefactor  = 0.0001
  Prefactor  = 5.55667
  norm       = 0.72788
  norm       = 13.0282
  Prefactor  = 23.5261
  Prefactor  = 8.29624
  norm       = 4.74189
  Normalizat = 1.20514
  Prefactor  = 0.49606
 **********
 **   18 **HESSE 
 **********

 FCN=   5936.172     FROM HESSE     STATUS=OK           431 CALLS     3351 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8791        .46991        .25599E-04   -1.5434    
   2  Prefactor     55.088        23.197        .54042E-04   -1.4222    
   3  Prefactor     .10000E-03    8.2930        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    57.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     29.869        39.934        .73310E-04   -1.4614    
   6  Prefactor     23.364        16.448        .82871E-04   -1.4741    
   7  Prefactor     .10000E-03    12.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    23.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.1189        .79064E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     85.154        56.266        .43530E-04   -1.3860    
  11  Prefactor     12.664        12.175        .56285E-03   -1.4996    
  12  Prefactor     .10000E-03    2.3519        .11520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.0548        .77177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.188        14.306        .10276E-03   -1.4928    
  15  Prefactor     2.3895        15.041        .26524E-03   -1.5399    
  16  norm          .93097        .58991        .39181E-04   -1.5515    
  17  Prefactor     .10000E-03    80.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.5567        7.9534        .17045E-03   -1.5236    
  19  norm          .72788        16.411        .30155E-02   -1.5537    
  20  norm          13.028        7.3291        .11097E-03   -1.4986    
  21  Prefactor     23.526        66.933        .82615E-04   -1.4738    
  22  Prefactor     8.2962        32.412        .13925E-03   -1.5132    
  23  norm          4.7419        7.7269        .14089E-03   -1.5272    
  24  Normalizat    1.2051        .22257        .20955E-03   -.86444    
  25  Prefactor     .49606        .20275        .30751E-03   -1.1216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.62452e-08
Minuit parameter uncertainties:
  1  0.469907
  2  23.201
  3  8.70897e-06
  4  0.000138255
  5  39.9697
  6  16.4508
  7  5.97652e-06
  8  7.764e-07
  9  1.26313e-06
  10  56.3015
  11  12.1769
  12  1.77986e-06
  13  2.11671e-06
  14  14.309
  15  11.9942
  16  0.58991
  17  0.000228624
  18  7.95492
  19  6.91408
  20  7.32961
  21  67.148
  22  32.4813
  23  7.7285
  24  0.222748
  25  0.203041
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.266e+01  1.218e+01  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:  4.961e-01  2.030e-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.205e+00  2.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.46
Ra Dec: 342.193 -32.593
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 4.49e-08 +/- 4.31e-08
Energy Flux (Fixed Index): 1.03e-05 +/- 9.92e-06

TS (Fixed Index): 1.46
Ra Dec: 342.193 -32.593
Photon Flux Upper Limit: 1.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/474478/likelihoodResults_506044801_506304001_4FGL_J2248.7-3235_daily_bin1029.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): 0
logL (Free Index) = 5934.6856214
delta logL = 1.48657905523

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5934.67144161
delta logL = 1.50075884451

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1905       1.0000         .10000E-03   10000.    
     2 'Index     '    4.5122       1.0000          .0000       10.000    
     3 'Normalizat'    1.1221       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55393       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.

 FCN=   5934.671     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      246 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1806        40.773        .49218E-02    .95792E-03
   2  Index         4.5138        3.8836        .14546        .45907E-04
   3  Normalizat    1.1221        .60294E-01    .37164E-01   -.78780E-04
   4  Prefactor     .55396        .58981E-01    .65987E-01    .87000E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.1806
  Index      = 4.51379
  Normalizat = 1.12205
  Prefactor  = 0.553962
 **********
 **   18 **HESSE 
 **********

 FCN=   5934.671     FROM HESSE     STATUS=OK            31 CALLS      277 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1806        12.492        .82526E-04   -1.5299    
   2  Index         4.5138        2.2743        .57771E-02   -.97396E-01
   3  Normalizat    1.1221        .21060        .21572E-03   -.89047    
   4  Prefactor     .55396        .20104        .29203E-03   -1.0956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53271e-09
Minuit parameter uncertainties:
  1  12.4998
  2  2.36197
  3  0.210762
  4  0.201303
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/474478': 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) = 5934.67144024
delta logL = 1.50076020742

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  4.181e+00  1.250e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  4.514e+00  2.362e+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:  5.540e-01  2.013e-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.122e+00  2.108e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.73
Ra Dec: 342.193 -32.593
Photon Index (Free Index): 4.51 +/- 2.36
Photon Flux (Free Index): 1.03e-07 +/- 5.91e-08
Energy Flux (Free Index): 1.43e-05 +/- 9.52e-06

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/474478/cmap_HighResolution_506044801_506304001_4FGL_J2248.7-3235_daily_bin1029.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', photon_flux='4.49e-08', energy_flux2='1.43e-05', photon_flux_error='4.31e-08', dlogl='1.50e+00', energy_flux='1.03e-05', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-09-28 20:56:10.021545', photon_index_error2='2.36', photon_index2='4.51', ts='1.46', fit_tolerance='1e-08', GAL='0.50', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='9.52e-06', EG='1.21', time_epoch_completed='1632887770.02', return_code='0', job_id='474478', GAL2='0.55', EG2='1.12', return_code2='0', energy_flux_error='9.92e-06', photon_flux_error2='5.91e-08', ts2='4.73', photon_index='2.76' WHERE bin_id='1029' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:56:10 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1029 342.193 -32.5926 506044801 506304001 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 :                                   696.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             250.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            919 sec.

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

