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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1139
RA = 342.193, Dec = -32.5926
tmin = 534556801, tmax = 534816001
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='474647', job_status='RUN', time_executed='2021-09-28 20:41:24.236096', time_epoch_executed='1632886884.24' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1139'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/474647

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/474647/ft1_4FGL_J2248.7-3235_daily_bin1139.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/474647/ft2_4FGL_J2248.7-3235_daily_bin1139.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/474647/ft1_4FGL_J2248.7-3235_daily_bin1139.fits outfile=/scratch/kocevski/474647/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1139.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=534556801.0 tmax=534816001.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.08
user 3.85
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/474647/ft1_filtered_4FGL_J2248.7-3235_daily_bin1139.fits" evtable="EVENTS" scfile=/scratch/kocevski/474647/ft2_4FGL_J2248.7-3235_daily_bin1139.fits sctable="SC_DATA" outfile=/scratch/kocevski/474647/ltcube_534556801_534816001_4FGL_J2248.7-3235_daily_bin1139.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/474647/ft2_4FGL_J2248.7-3235_daily_bin1139.fits
.....................!
real 11.97
user 11.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/474647/ft1_filtered_4FGL_J2248.7-3235_daily_bin1139.fits evtable="EVENTS" scfile=/scratch/kocevski/474647/ft2_4FGL_J2248.7-3235_daily_bin1139.fits sctable="SC_DATA" expcube=/scratch/kocevski/474647/ltcube_534556801_534816001_4FGL_J2248.7-3235_daily_bin1139.fits outfile=/scratch/kocevski/474647/expmap_534556801_534816001_4FGL_J2248.7-3235_daily_bin1139.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/474647/ltcube_534556801_534816001_4FGL_J2248.7-3235_daily_bin1139.fits
.....................!
real 190.53
user 185.21
sys 4.94

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/474647/ft1_filtered_4FGL_J2248.7-3235_daily_bin1139.fits evtable="EVENTS" scfile=/scratch/kocevski/474647/ft2_4FGL_J2248.7-3235_daily_bin1139.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/474647/Model_4FGL_J2248.7-3235_daily_bin1139.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/474647/ft1_filtered_4FGL_J2248.7-3235_daily_bin1139.fits.....................!
real 57.11
user 55.79
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5133       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.0171       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.8294       1.0000         .10000E-03   10000.    
     5 'Prefactor '    65.427       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.0817       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.0333       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.683       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.5208       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .23142E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.235       1.0000         .10000E-03   10000.    
    16 'norm      '    2.2501       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.6714       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.1012       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.445       1.0000         .10000E-03   10000.    
    23 'norm      '    1.3295       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .90119       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88026       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=   7802.120     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     2469 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5132        .35685       -.10020E-06   -.11831E-02
   2  Prefactor     5.0125        12.917        .30915E-05   -.14284E-02
   3  Prefactor     .10000E-03    1.8663        .13358E-05** at limit **
   4  norm          6.8282        1.6875       -.26921E-07   -.76250E-03
   5  Prefactor     65.433        2.0098       -.59714E-07    .21789E-02
   6  Prefactor     .10000E-03    6.8118        .20913E-05** at limit **
   7  Prefactor     9.0813        2.5629       -.43452E-06   -.27300E-02
   8  Prefactor     .10000E-03    4.1604        .11237E-05** at limit **
   9  norm          2.0330        1.3574        .22753E-06    .25073E-03
  10  Prefactor     .10000E-03    12.560        .15417E-05** at limit **
  11  Prefactor     10.687        3.2447        .47592E-07    .45376E-02
  12  Prefactor     .10000E-03    4.8144       -.17154E-05** at limit **
  13  norm          2.5197        3.3071       -.80909E-06   -.39463E-03
  14  Prefactor     .13458E-03    1378.4        .14864E-05** at limit **
  15  Prefactor     26.232        10.680        .85957E-06    .27451E-02
  16  norm          2.2495        .83298       -.36166E-06   -.14445E-02
  17  Prefactor     8.6684        1.3925        .91846E-07   -.67089E-03
  18  Prefactor     .10000E-03    3.4534       -.10308E-06** at limit **
  19  norm          .10000E-03    1.2558        .11218E-06** at limit **
  20  norm          3.1004        2.1603       -.48936E-07   -.80637E-02
  21  Prefactor     .10000E-03    9.6167       -.66575E-05** at limit **
  22  Prefactor     20.474        8.3984       -.46764E-06    .58016E-02
  23  norm          1.3292        2.0069        .29826E-06    .13226E-03
  24  Normalizat    .90081        .17987       -.11020E-06    .52558E-04
  25  Prefactor     .88061        .18229        .63940E-06    .54453E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.51323
  Prefactor  = 5.01254
  Prefactor  = 0.0001
  norm       = 6.82819
  Prefactor  = 65.4329
  Prefactor  = 0.0001
  Prefactor  = 9.08131
  Prefactor  = 0.0001
  norm       = 2.03304
  Prefactor  = 0.0001
  Prefactor  = 10.6872
  Prefactor  = 0.0001
  norm       = 2.51972
  Prefactor  = 0.000134583
  Prefactor  = 26.2318
  norm       = 2.24949
  Prefactor  = 8.66841
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.10044
  Prefactor  = 0.000100001
  Prefactor  = 20.4743
  norm       = 1.32924
  Normalizat = 0.900808
  Prefactor  = 0.880606
 **********
 **   18 **HESSE 
 **********

 FCN=   7802.120     FROM HESSE     STATUS=OK           481 CALLS     2950 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5132        .35683        .56245E-02   -1.5462    
   2  Prefactor     5.0125        14.865        .44883E-02   -1.5260    
   3  Prefactor     .10000E-03    1.8577        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.8282        10.554        .38383E-02   -1.5185    
   5  Prefactor     65.433        35.408        .12404E-02   -1.4088    
   6  Prefactor     .10000E-03    6.7854        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.0813        9.4971        .33249E-02   -1.5105    
   8  Prefactor     .10000E-03    4.1561        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.0330        1.3577        .72522E-02   -1.5423    
  10  Prefactor     .10000E-03    12.551        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.687        8.9054        .30645E-02   -1.5054    
  12  Prefactor     .10000E-03    4.7078        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.5197        3.4224        .64327E-02   -1.5390    
  14  Prefactor     .13458E-03    15.178        .91382E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     26.232        11.605        .19553E-02   -1.4683    
  16  norm          2.2495        .83339        .68481E-02   -1.5408    
  17  Prefactor     8.6684        31.079        .34031E-02   -1.5119    
  18  Prefactor     .10000E-03    3.4473        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.2543        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.1004        5.4831        .57569E-02   -1.5356    
  21  Prefactor     .10000E-03    9.6133        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     20.474        37.337        .22145E-02   -1.4803    
  23  norm          1.3292        2.0492        .95237E-02   -1.5477    
  24  Normalizat    .90081        .15695        .44917E-01   -.96432    
  25  Prefactor     .88061        .15404        .44753E-01   -.96822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97849e-07
Minuit parameter uncertainties:
  1  0.356833
  2  14.8755
  3  1.91589e-05
  4  10.5569
  5  35.4189
  6  4.87531e-05
  7  9.49864
  8  2.31848e-05
  9  1.3577
  10  5.47237e-05
  11  8.90655
  12  4.40204e-05
  13  3.4227
  14  0.0458323
  15  11.6061
  16  0.83339
  17  31.1375
  18  3.34047e-06
  19  1.34777e-06
  20  5.48403
  21  0.000192375
  22  37.3799
  23  2.04931
  24  0.157034
  25  0.154121
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.069e+01  8.907e+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

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  8.806e-01  1.541e-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:  9.008e-01  1.570e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.25
Ra Dec: 342.193 -32.593
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 3.79e-08 +/- 3.15e-08
Energy Flux (Fixed Index): 8.71e-06 +/- 7.26e-06

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

Saving results to:
/scratch/kocevski/474647/likelihoodResults_534556801_534816001_4FGL_J2248.7-3235_daily_bin1139.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) = 7801.98720073
delta logL = 0.133127771033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7801.96759077
delta logL = 0.152737730705

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4107       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7203       1.0000          .0000       10.000    
     3 'Normalizat'    .87159       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90500       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=   7801.968     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      244 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3899        76.081        .43189E-02    .56466E-03
   2  Index         3.7243        6.8193        .20873        .12725E-03
   3  Normalizat    .87167        .47083E-01    .44537E-01   -.47559E-04
   4  Prefactor     .90498        .46057E-01    .45069E-01    .21630E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.38992
  Index      = 3.72434
  Normalizat = 0.871667
  Prefactor  = 0.90498
 **********
 **   18 **HESSE 
 **********

 FCN=   7801.968     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      277 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3899        137.34        .14175E-03   -1.5244    
   2  Index         3.7243        6.3136        .91319E-02   -.25798    
   3  Normalizat    .87167        .19659        .24421E-03   -.97463    
   4  Prefactor     .90498        .19912        .24462E-03   -.95967    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.27395e-10
Minuit parameter uncertainties:
  1  54.5557
  2  9.61133
  3  0.196748
  4  0.19928
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/474647': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7801.96758891
delta logL = 0.152739588449

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  5.390e+00  5.456e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  3.724e+00  9.611e+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:  9.050e-01  1.993e-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.717e-01  1.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.63
Ra Dec: 342.193 -32.593
Photon Index (Free Index): 3.72 +/- 9.61
Photon Flux (Free Index): 5.23e-08 +/- 5.48e-08
Energy Flux (Free Index): 8.25e-06 +/- 1.21e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/474647/cmap_HighResolution_534556801_534816001_4FGL_J2248.7-3235_daily_bin1139.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.25e-03', comment='SUCCESS', photon_flux='3.79e-08', energy_flux2='8.25e-06', photon_flux_error='3.15e-08', dlogl='1.53e-01', energy_flux='8.71e-06', photon_flux2='5.23e-08', job_status='DONE', time_completed='2021-09-28 20:54:20.458005', photon_index_error2='9.61', photon_index2='3.72', ts='2.25', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='1.21e-05', EG='0.90', time_epoch_completed='1632887660.46', return_code='0', job_id='474647', GAL2='0.90', EG2='0.87', return_code2='102', energy_flux_error='7.26e-06', photon_flux_error2='5.48e-08', ts2='2.63', photon_index='2.76' WHERE bin_id='1139' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:54:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 474647: <4FGL_J2248.7-3235_daily_bin1139> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin1139> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 20:41:07 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:41:08 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:41:08 2021
Terminated at Tue Sep 28 20:54:23 2021
Results reported at Tue Sep 28 20:54:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1139 342.193 -32.5926 534556801 534816001 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 :                                   768.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            796 sec.

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

