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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1484
RA = 342.193, Dec = -32.5926
tmin = 623980801, tmax = 624240001
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='476209', job_status='RUN', time_executed='2021-09-28 20:48:37.002090', time_epoch_executed='1632887317.0' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1484'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/476209

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/476209/ft1_4FGL_J2248.7-3235_daily_bin1484.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/476209/ft2_4FGL_J2248.7-3235_daily_bin1484.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/476209/ft1_4FGL_J2248.7-3235_daily_bin1484.fits outfile=/scratch/kocevski/476209/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1484.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=623980801.0 tmax=624240001.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.01
user 3.81
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/476209/ft1_filtered_4FGL_J2248.7-3235_daily_bin1484.fits" evtable="EVENTS" scfile=/scratch/kocevski/476209/ft2_4FGL_J2248.7-3235_daily_bin1484.fits sctable="SC_DATA" outfile=/scratch/kocevski/476209/ltcube_623980801_624240001_4FGL_J2248.7-3235_daily_bin1484.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/476209/ft2_4FGL_J2248.7-3235_daily_bin1484.fits
.....................!
real 11.83
user 11.44
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/476209/ft1_filtered_4FGL_J2248.7-3235_daily_bin1484.fits evtable="EVENTS" scfile=/scratch/kocevski/476209/ft2_4FGL_J2248.7-3235_daily_bin1484.fits sctable="SC_DATA" expcube=/scratch/kocevski/476209/ltcube_623980801_624240001_4FGL_J2248.7-3235_daily_bin1484.fits outfile=/scratch/kocevski/476209/expmap_623980801_624240001_4FGL_J2248.7-3235_daily_bin1484.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/476209/ltcube_623980801_624240001_4FGL_J2248.7-3235_daily_bin1484.fits
.....................!
real 189.70
user 184.76
sys 4.61

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/476209/ft1_filtered_4FGL_J2248.7-3235_daily_bin1484.fits scfile=/scratch/kocevski/476209/ft2_4FGL_J2248.7-3235_daily_bin1484.fits outfile=/scratch/kocevski/476209/cmap_623980801_624240001_4FGL_J2248.7-3235_daily_bin1484.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.39
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/476209/ft1_filtered_4FGL_J2248.7-3235_daily_bin1484.fits evtable="EVENTS" scfile=/scratch/kocevski/476209/ft2_4FGL_J2248.7-3235_daily_bin1484.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/476209/Model_4FGL_J2248.7-3235_daily_bin1484.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/476209/ft1_filtered_4FGL_J2248.7-3235_daily_bin1484.fits.....................!
real 34.19
user 32.84
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .33910       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.7226       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.473       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.569       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.3135       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.3391       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.8542       1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    54.148       1.0000         .10000E-03   10000.    
    23 'norm      '    2.3947       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .85978       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92042       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=   3780.573     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2831 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33908        .27419       -.65696E-07    .13757E-04
   2  Prefactor     .10000E-03    20.532       -.84079E-06** at limit **
   3  Prefactor     .10000E-03    4.7819        .33826E-05** at limit **
   4  norm          5.7216        26.421       -.30663E-05    .25720E-05
   5  Prefactor     19.382        68.496       -.18836E-03    .15444E-05
   6  Prefactor     .10000E-03    30.857        .20112E-04** at limit **
   7  Prefactor     .10000E-03    6.3265        .94036E-08** at limit **
   8  Prefactor     17.583        32.414        .31811E-04    .63392E-04
   9  norm          .10000E-03    .94846       -.11073E-06** at limit **
  10  Prefactor     .10000E-03    18.730       -.15306E-04** at limit **
  11  Prefactor     7.3127        14.433       -.27973E-05   -.42989E-04
  12  Prefactor     .10000E-03    2.3618        .24483E-06** at limit **
  13  norm          .10000E-03    4.7856       -.35355E-05** at limit **
  14  Prefactor     .10000E-03    12.245        .24607E-05** at limit **
  15  Prefactor     .10000E-03    34.621       -.23612E-05** at limit **
  16  norm          6.3387        1.4995        .10998E-06    .14926E-02
  17  Prefactor     .10000E-03    37.256       -.20061E-04** at limit **
  18  Prefactor     4.8473        18.507       -.65621E-05   -.88059E-05
  19  norm          .10000E-03    3.2722       -.47256E-07** at limit **
  20  norm          .10000E-03    4.1244       -.49328E-06** at limit **
  21  Prefactor     .10000E-03    22.789        .12848E-04** at limit **
  22  Prefactor     54.144        53.956       -.54543E-05    .17980E-04
  23  norm          2.3942        4.3380       -.11046E-05   -.48764E-03
  24  Normalizat    .85957        .23148        .40002E-05    .94432E-04
  25  Prefactor     .92065        .22186        .55806E-05    .13891E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.339082
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.72163
  Prefactor  = 19.3818
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 17.5834
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.31271
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.33872
  Prefactor  = 0.0001
  Prefactor  = 4.84728
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.1436
  norm       = 2.3942
  Normalizat = 0.85957
  Prefactor  = 0.920646
 **********
 **   18 **HESSE 
 **********

 FCN=   3780.573     FROM HESSE     STATUS=OK           419 CALLS     3250 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33908        .27341        .28198E-04   -1.5592    
   2  Prefactor     .10000E-03    20.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.7941        .13126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.7216        26.441        .16791E-03   -1.5230    
   5  Prefactor     19.382        68.612        .90764E-04   -1.4827    
   6  Prefactor     .10000E-03    30.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.3389        .15104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.583        32.469        .95553E-04   -1.4869    
   9  norm          .10000E-03    .95176        .58437E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.3127        14.447        .14831E-03   -1.5167    
  12  Prefactor     .10000E-03    2.3643        .92285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.9325        .26227E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    35.159        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.3387        1.5012        .30722E-04   -1.5204    
  17  Prefactor     .10000E-03    37.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.8473        18.549        .18258E-03   -1.5268    
  19  norm          .10000E-03    3.2966        .10857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.1471        .12194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    22.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     54.144        54.115        .54509E-04   -1.4235    
  23  norm          2.3942        4.3210        .16646E-03   -1.5398    
  24  Normalizat    .85957        .28109        .25385E-03   -.97896    
  25  Prefactor     .92065        .26923        .24174E-03   -.95423    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.14594e-10
Minuit parameter uncertainties:
  1  0.273413
  2  0.000130724
  3  4.31638e-05
  4  24.6176
  5  68.893
  6  0.000443568
  7  2.28358e-05
  8  32.5018
  9  1.92769e-06
  10  1.72965e-05
  11  14.4544
  12  3.32831e-05
  13  7.83252e-07
  14  1.08905e-05
  15  0.000118609
  16  1.50117
  17  0.000104129
  18  18.5706
  19  5.84861e-06
  20  1.37011e-05
  21  4.7639e-06
  22  54.164
  23  4.3216
  24  0.281573
  25  0.269618
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  7.313e+00  1.445e+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:  9.206e-01  2.696e-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.596e-01  2.816e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/476209/likelihoodResults_623980801_624240001_4FGL_J2248.7-3235_daily_bin1484.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) = 3780.56058461
delta logL = 0.0122920084455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3780.55839462
delta logL = 0.0144820014707

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3019       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5435       1.0000          .0000       10.000    
     3 'Normalizat'    .86303       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91729       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=   3780.558     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      232 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3025        16.321        .13914E-03   -.37676E-03
   2  Index         2.5437        1.2031        .13618E-01   -.84580E-04
   3  Normalizat    .86304        .27115        .25338E-03    .63826E-04
   4  Prefactor     .91727        .26605        .24212E-03    .69633E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.30248
  Index      = 2.54367
  Normalizat = 0.863037
  Prefactor  = 0.917268
 **********
 **   18 **HESSE 
 **********

 FCN=   3780.558     FROM HESSE     STATUS=OK            23 CALLS      255 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3025        16.105        .55655E-05   -1.5132    
   2  Index         2.5437        1.1877        .54471E-03   -.51354    
   3  Normalizat    .86304        .27156        .10135E-04   -.97771    
   4  Prefactor     .91727        .26635        .96849E-05   -.95540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.48079e-10
Minuit parameter uncertainties:
  1  16.1132
  2  1.20298
  3  0.27199
  4  0.266733
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/476209': 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) = 3780.55839459
delta logL = 0.0144820334631

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  8.302e+00  1.611e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  2.544e+00  1.203e+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.173e-01  2.667e-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.630e-01  2.720e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.31
Ra Dec: 342.193 -32.593

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/476209/cmap_HighResolution_623980801_624240001_4FGL_J2248.7-3235_daily_bin1484.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', job_status='DONE', photon_flux_upper_limit='1.50e-07', time_completed='2021-09-28 20:57:40.375641', job_id='476209', GAL2='0.92', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1632887860.38', return_code2='0', ts='0.31', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.45e-02', ts2='0.34', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1484' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:57:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 476209: <4FGL_J2248.7-3235_daily_bin1484> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1484 342.193 -32.5926 623980801 624240001 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 :                                   534.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             270.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            727 sec.

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

