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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1577
RA = 342.193, Dec = -32.5926
tmin = 648086401, tmax = 648345601
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='476345', job_status='RUN', time_executed='2021-09-28 20:49:27.162953', time_epoch_executed='1632887367.16' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1577'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/476345

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/476345/ft1_4FGL_J2248.7-3235_daily_bin1577.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/476345/ft2_4FGL_J2248.7-3235_daily_bin1577.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/476345/ft1_4FGL_J2248.7-3235_daily_bin1577.fits outfile=/scratch/kocevski/476345/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1577.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=648086401.0 tmax=648345601.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.25
user 4.00
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/476345/ft2_4FGL_J2248.7-3235_daily_bin1577.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/476345/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1577.fits evtable="EVENTS" outfile="/scratch/kocevski/476345/ft1_filtered_4FGL_J2248.7-3235_daily_bin1577.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.51
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/476345/ft1_filtered_4FGL_J2248.7-3235_daily_bin1577.fits" evtable="EVENTS" scfile=/scratch/kocevski/476345/ft2_4FGL_J2248.7-3235_daily_bin1577.fits sctable="SC_DATA" outfile=/scratch/kocevski/476345/ltcube_648086401_648345601_4FGL_J2248.7-3235_daily_bin1577.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/476345/ft2_4FGL_J2248.7-3235_daily_bin1577.fits
.....................!
real 11.96
user 11.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/476345/ft1_filtered_4FGL_J2248.7-3235_daily_bin1577.fits evtable="EVENTS" scfile=/scratch/kocevski/476345/ft2_4FGL_J2248.7-3235_daily_bin1577.fits sctable="SC_DATA" expcube=/scratch/kocevski/476345/ltcube_648086401_648345601_4FGL_J2248.7-3235_daily_bin1577.fits outfile=/scratch/kocevski/476345/expmap_648086401_648345601_4FGL_J2248.7-3235_daily_bin1577.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/476345/ltcube_648086401_648345601_4FGL_J2248.7-3235_daily_bin1577.fits
.....................!
real 191.24
user 185.10
sys 5.47

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/476345/ft1_filtered_4FGL_J2248.7-3235_daily_bin1577.fits scfile=/scratch/kocevski/476345/ft2_4FGL_J2248.7-3235_daily_bin1577.fits outfile=/scratch/kocevski/476345/cmap_HighResolution_648086401_648345601_4FGL_J2248.7-3235_daily_bin1577.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.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/476345/ft1_filtered_4FGL_J2248.7-3235_daily_bin1577.fits evtable="EVENTS" scfile=/scratch/kocevski/476345/ft2_4FGL_J2248.7-3235_daily_bin1577.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/476345/Model_4FGL_J2248.7-3235_daily_bin1577.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/476345/ft1_filtered_4FGL_J2248.7-3235_daily_bin1577.fits.....................!
real 37.12
user 35.70
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .40027       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.630       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    15.818       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.248       1.0000         .10000E-03   10000.    
     9 'norm      '    2.7373       1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.972       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8226       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5931       1.0000         .10000E-03   10000.    
    13 'norm      '    .17882E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.8213       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0927       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .86631       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .72132       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=   4307.299     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2851 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .40025        .30395        .84463E-08   -.42810E-06
   2  Prefactor     23.629        20.890        .26360E-06   -.94090E-05
   3  Prefactor     .10000E-03    4.2249        .24224E-06** at limit **
   4  norm          15.819        15.351       -.16104E-06   -.11131E-04
   5  Prefactor     .10000E-03    10.927        .19775E-06** at limit **
   6  Prefactor     .10000E-03    10.769        .26986E-06** at limit **
   7  Prefactor     .10000E-03    3.9392       -.48048E-06** at limit **
   8  Prefactor     15.247        17.380        .23574E-06   -.20440E-04
   9  norm          2.7366        2.7292       -.13149E-06    .70452E-04
  10  Prefactor     26.959        44.957        .15522E-05   -.63498E-04
  11  Prefactor     1.8200        18.202        .87421E-06   -.62205E-06
  12  Prefactor     3.5932        4.3695        .54469E-07   -.70000E-07
  13  norm          .10000E-03    2.8502        .98488E-06** at limit **
  14  Prefactor     .10000E-03    4.6101        .39126E-06** at limit **
  15  Prefactor     5.8283        9.2174        .32443E-05   -.69462E-04
  16  norm          1.0930        .73190       -.44025E-06   -.13773E-02
  17  Prefactor     .10000E-03    14.692       -.12454E-05** at limit **
  18  Prefactor     .10000E-03    9.0059        .99323E-06** at limit **
  19  norm          .10000E-03    1.4751        .13711E-07** at limit **
  20  norm          .10000E-03    3.1870        .70366E-07** at limit **
  21  Prefactor     .10000E-03    18.288        .13322E-05** at limit **
  22  Prefactor     .10000E-03    12.742       -.82016E-06** at limit **
  23  norm          .10000E-03    2.2923        .23920E-07** at limit **
  24  Normalizat    .86621        .17292       -.10843E-05   -.95505E-04
  25  Prefactor     .72144        .16827        .28565E-06   -.17212E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.400255
  Prefactor  = 23.6293
  Prefactor  = 0.0001
  norm       = 15.8189
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.247
  norm       = 2.7366
  Prefactor  = 26.9589
  Prefactor  = 1.82002
  Prefactor  = 3.59321
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.8283
  norm       = 1.09296
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.866211
  Prefactor  = 0.721437
 **********
 **   18 **HESSE 
 **********

 FCN=   4307.299     FROM HESSE     STATUS=OK           427 CALLS     3278 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .40025        .29706        .30636E-04   -1.5581    
   2  Prefactor     23.629        20.897        .82402E-04   -1.4735    
   3  Prefactor     .10000E-03    4.2556        .13173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          15.819        15.352        .10070E-03   -1.4912    
   5  Prefactor     .10000E-03    10.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.9603        .12743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.247        17.391        .10257E-03   -1.4927    
   9  norm          2.7366        2.7414        .86874E-04   -1.5377    
  10  Prefactor     26.959        45.181        .77137E-04   -1.4669    
  11  Prefactor     1.8200        18.270        .30927E-03   -1.5438    
  12  Prefactor     3.5932        4.3620        .14719E-03   -1.5329    
  13  norm          .10000E-03    6.1349        .20032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.6172        .13764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.8283        9.3403        .83228E-03   -1.5225    
  16  norm          1.0930        .73930        .34799E-04   -1.5499    
  17  Prefactor     .10000E-03    14.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.1641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.4757        .77849E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.2017        .11442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.3374        .97015E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .86621        .20698        .20694E-03   -.97658    
  25  Prefactor     .72144        .20232        .22795E-03   -1.0269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34045e-10
Minuit parameter uncertainties:
  1  0.297058
  2  20.9035
  3  8.83226e-07
  4  15.3557
  5  3.50476e-06
  6  6.35303e-06
  7  1.09994e-05
  8  17.3964
  9  2.74151
  10  45.2384
  11  11.537
  12  4.36241
  13  0.000157092
  14  8.16724e-06
  15  9.34262
  16  0.739303
  17  3.00107e-05
  18  4.07651e-05
  19  2.2801e-07
  20  3.24294e-06
  21  2.52021e-05
  22  2.50869e-05
  23  2.84284e-06
  24  0.207166
  25  0.202531
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.820e+00  1.154e+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:  7.214e-01  2.025e-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.662e-01  2.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
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/476345/likelihoodResults_648086401_648345601_4FGL_J2248.7-3235_daily_bin1577.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) = 4306.48958657
delta logL = 0.809006443247

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4306.3600379
delta logL = 0.938555111607

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15171E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    9.9999       1.0000          .0000       10.000    
     3 'Normalizat'    .79381       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77434       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=   4306.360     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      358 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15165E-02    .55977E-01    .54904E-03** at limit **
   2  Index        10.0000        9.2304        .50000    ** at limit **
   3  Normalizat    .79355        .83651E-01    .43529E-01    .84291E-05
   4  Prefactor     .77467        .84719E-01    .43382E-01    .92255E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00151653
  Index      = 10
  Normalizat = 0.793549
  Prefactor  = 0.774673
 **********
 **   18 **HESSE 
 **********

 FCN=   4306.360     FROM HESSE     STATUS=OK            37 CALLS      395 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15165E-02    .16856E-02    .22423E-04   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        2.0323        .40877        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .79355        .20472        .21499E-03   -1.0031    
   4  Prefactor     .77467        .20494        .22073E-03   -1.0067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.93214e-10
Minuit parameter uncertainties:
  1  0.00168558
  2  7.84487e-05
  3  0.204916
  4  0.205146
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/476345': 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) = 4306.36003512
delta logL = 0.938557892078

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.517e-03  1.686e-03  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  1.000e+01  7.845e-05  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.747e-01  2.051e-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:  7.935e-01  2.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.03
Ra Dec: 342.193 -32.593
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 5.51e-08 +/- 5.93e-08
Energy Flux (Free Index): 6.16e-06 +/- 6.68e-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/476345/cmap_HighResolution_648086401_648345601_4FGL_J2248.7-3235_daily_bin1577.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.28e-03', comment='SUCCESS', energy_flux2='6.16e-06', dlogl='9.39e-01', photon_flux2='5.51e-08', job_status='DONE', time_completed='2021-09-28 20:59:10.924351', photon_index_error2='0.00', photon_index2='10.00', ts='0.03', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='6.68e-06', EG='0.87', time_epoch_completed='1632887950.92', return_code='0', job_id='476345', GAL2='0.77', EG2='0.79', return_code2='0', photon_flux_error2='5.93e-08', ts2='2.03', photon_index='2.76' WHERE bin_id='1577' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:59:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 476345: <4FGL_J2248.7-3235_daily_bin1577> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1577 342.193 -32.5926 648086401 648345601 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 :                                   581.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             245.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            807 sec.

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

