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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1015
RA = 342.193, Dec = -32.5926
tmin = 502416001, tmax = 502675201
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='474457', job_status='RUN', time_executed='2021-09-28 20:41:08.736834', time_epoch_executed='1632886868.74' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1015'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/474457

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/474457/ft1_4FGL_J2248.7-3235_daily_bin1015.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/474457/ft2_4FGL_J2248.7-3235_daily_bin1015.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/474457/ft1_4FGL_J2248.7-3235_daily_bin1015.fits outfile=/scratch/kocevski/474457/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1015.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=502416001.0 tmax=502675201.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 3.54
user 3.30
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/474457/ft1_filtered_4FGL_J2248.7-3235_daily_bin1015.fits" evtable="EVENTS" scfile=/scratch/kocevski/474457/ft2_4FGL_J2248.7-3235_daily_bin1015.fits sctable="SC_DATA" outfile=/scratch/kocevski/474457/ltcube_502416001_502675201_4FGL_J2248.7-3235_daily_bin1015.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/474457/ft2_4FGL_J2248.7-3235_daily_bin1015.fits
.....................!
real 12.52
user 12.14
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/474457/ft1_filtered_4FGL_J2248.7-3235_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/474457/ft2_4FGL_J2248.7-3235_daily_bin1015.fits sctable="SC_DATA" expcube=/scratch/kocevski/474457/ltcube_502416001_502675201_4FGL_J2248.7-3235_daily_bin1015.fits outfile=/scratch/kocevski/474457/expmap_502416001_502675201_4FGL_J2248.7-3235_daily_bin1015.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/474457/ltcube_502416001_502675201_4FGL_J2248.7-3235_daily_bin1015.fits
.....................!
real 191.20
user 185.86
sys 4.87

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/474457/ft1_filtered_4FGL_J2248.7-3235_daily_bin1015.fits scfile=/scratch/kocevski/474457/ft2_4FGL_J2248.7-3235_daily_bin1015.fits outfile=/scratch/kocevski/474457/cmap_502416001_502675201_4FGL_J2248.7-3235_daily_bin1015.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/474457/ft1_filtered_4FGL_J2248.7-3235_daily_bin1015.fits scfile=/scratch/kocevski/474457/ft2_4FGL_J2248.7-3235_daily_bin1015.fits outfile=/scratch/kocevski/474457/cmap_HighResolution_502416001_502675201_4FGL_J2248.7-3235_daily_bin1015.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/474457/ft1_filtered_4FGL_J2248.7-3235_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/474457/ft2_4FGL_J2248.7-3235_daily_bin1015.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/474457/Model_4FGL_J2248.7-3235_daily_bin1015.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/474457/ft1_filtered_4FGL_J2248.7-3235_daily_bin1015.fits.....................!
real 54.36
user 53.08
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1754       1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.258       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    65.690       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5997       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.3056       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4787       1.0000         .10000E-03   10000.    
     9 'norm      '    1.5457       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7128       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .90116       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.047       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11367E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.183       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.178       1.0000         .10000E-03   10000.    
    19 'norm      '    .10105E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.4924       1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.936       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.2106       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0412       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .58666       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=   7405.027     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2964 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1754        .42310        .72908E-08    .12222E-03
   2  Prefactor     39.256        17.445        .11695E-06   -.75345E-05
   3  Prefactor     .10000E-03    3.4358       -.43601E-06** at limit **
   4  norm          65.690        21.822        .23703E-07    .11343E-04
   5  Prefactor     .10000E-03    11.740       -.41032E-07** at limit **
   6  Prefactor     3.5961        23.116        .47601E-06    .24064E-04
   7  Prefactor     8.3045        9.1950        .64302E-06    .26525E-04
   8  Prefactor     2.4766        11.904        .44494E-05    .37637E-04
   9  norm          1.5458        1.3841        .20976E-08   -.80656E-06
  10  Prefactor     .10000E-03    16.625        .25991E-06** at limit **
  11  Prefactor     3.7125        5.4274        .20397E-08    .51523E-04
  12  Prefactor     .10000E-03    .84738        .96040E-08** at limit **
  13  norm          .89859        2.8418        .18501E-06    .25205E-04
  14  Prefactor     27.062        14.622        .10141E-06    .15469E-03
  15  Prefactor     .10000E-03    5.8754       -.18670E-08** at limit **
  16  norm          .10000E-03    .16661       -.12370E-07** at limit **
  17  Prefactor     12.181        21.337        .20321E-06   -.84488E-05
  18  Prefactor     14.180        9.0906        .18603E-06    .13652E-03
  19  norm          .10000E-03    3.9628        .19955E-05** at limit **
  20  norm          5.4928        5.5656        .19073E-06   -.11230E-03
  21  Prefactor     26.974        27.135       -.45684E-05   -.20711E-03
  22  Prefactor     .10000E-03    35.539       -.63463E-06** at limit **
  23  norm          1.2067        3.9575        .17140E-05   -.21726E-03
  24  Normalizat    1.0413        .14621       -.55971E-06   -.86106E-04
  25  Prefactor     .58660        .14262        .11338E-06   -.11512E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.17537
  Prefactor  = 39.2556
  Prefactor  = 0.0001
  norm       = 65.6903
  Prefactor  = 0.0001
  Prefactor  = 3.59612
  Prefactor  = 8.30449
  Prefactor  = 2.4766
  norm       = 1.54582
  Prefactor  = 0.0001
  Prefactor  = 3.71252
  Prefactor  = 0.0001
  norm       = 0.89859
  Prefactor  = 27.0615
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 12.1808
  Prefactor  = 14.18
  norm       = 0.000100004
  norm       = 5.4928
  Prefactor  = 26.9737
  Prefactor  = 0.0001
  norm       = 1.20669
  Normalizat = 1.04132
  Prefactor  = 0.586599
 **********
 **   18 **HESSE 
 **********

 FCN=   7405.027     FROM HESSE     STATUS=OK           439 CALLS     3403 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1754        .42355        .23897E-04   -1.5413    
   2  Prefactor     39.256        17.440        .63971E-04   -1.4454    
   3  Prefactor     .10000E-03    7.8444        .30171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          65.690        21.814        .49517E-04   -1.4085    
   5  Prefactor     .10000E-03    11.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.5961        22.774        .21298E-03   -1.5329    
   7  Prefactor     8.3045        9.1952        .69553E-03   -1.5132    
   8  Prefactor     2.4766        12.250        .12984E-02   -1.5393    
   9  norm          1.5458        1.3625        .92321E-04   -1.5459    
  10  Prefactor     .10000E-03    16.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.7125        5.4149        .20958E-03   -1.5323    
  12  Prefactor     .10000E-03    .84773        .77360E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .89859        2.7122        .22067E-03   -1.5518    
  14  Prefactor     27.062        13.395        .77030E-04   -1.4667    
  15  Prefactor     .10000E-03    17.043        .33104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .19364        .64656E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.181        21.335        .11477E-03   -1.5010    
  18  Prefactor     14.180        8.5946        .10637E-03   -1.4955    
  19  norm          .10000E-03    8.1001        .29334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.4928        5.5575        .17144E-03   -1.5239    
  21  Prefactor     26.974        27.582        .77189E-04   -1.4669    
  22  Prefactor     .10000E-03    35.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.2067        3.7536        .25797E-03   -1.5488    
  24  Normalizat    1.0413        .17263        .20781E-03   -.91659    
  25  Prefactor     .58660        .16915        .27139E-03   -1.0815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.5074e-10
Minuit parameter uncertainties:
  1  0.423547
  2  17.4418
  3  7.82289e-05
  4  21.8165
  5  5.32942e-06
  6  18.1095
  7  9.19676
  8  11.0193
  9  1.36257
  10  2.54169e-05
  11  5.41564
  12  8.07374e-08
  13  2.71256
  14  13.3963
  15  0.000244584
  16  1.03991e-06
  17  21.3482
  18  8.59536
  19  0.00036966
  20  5.55801
  21  27.5946
  22  3.94308e-05
  23  3.75432
  24  0.172718
  25  0.169295
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  3.713e+00  5.416e+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:  5.866e-01  1.693e-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.041e+00  1.727e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.79
Ra Dec: 342.193 -32.593
Photon Flux Upper Limit: 6.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/474457/likelihoodResults_502416001_502675201_4FGL_J2248.7-3235_daily_bin1015.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) = 7404.21117676
delta logL = 0.816218332959

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7404.20898557
delta logL = 0.818409522878

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4452       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6343       1.0000          .0000       10.000    
     3 'Normalizat'    1.0560       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57476       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=   7404.209     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      222 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4472        3.8995        .54475E-02   -.10510E-03
   2  Index         1.6354        .46459        .20877       -.85950E-04
   3  Normalizat    1.0559        .13949        .40170E-01   -.81055E-06
   4  Prefactor     .57488        .14070        .61866E-01    .38245E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.44716
  Index      = 1.63539
  Normalizat = 1.05586
  Prefactor  = 0.574883
 **********
 **   18 **HESSE 
 **********

 FCN=   7404.209     FROM HESSE     STATUS=OK            33 CALLS      255 TOTAL
                     EDM=   .91E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4472        4.8223        .17474E-03   -1.5337    
   2  Index         1.6354        .68290        .10488E-01   -.73815    
   3  Normalizat    1.0559        .16607        .20646E-03   -.91182    
   4  Prefactor     .57488        .16720        .27372E-03   -1.0865    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.07963e-12
Minuit parameter uncertainties:
  1  4.82289
  2  0.686838
  3  0.166153
  4  0.167349
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/474457': 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) = 7404.20898364
delta logL = 0.81841145647

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  3.447e+00  4.823e+00  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  1.635e+00  6.868e-01  0.000e+00  1.000e+01 (-1.000e+00)
313        Scale:  4.468e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  5.749e-01  1.673e-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.056e+00  1.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.43
Ra Dec: 342.193 -32.593
Photon Index (Free Index): 1.64 +/- 0.69
Photon Flux (Free Index): 6.20e-09 +/- 8.69e-09
Energy Flux (Free Index): 1.25e-05 +/- 2.25e-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/474457/cmap_HighResolution_502416001_502675201_4FGL_J2248.7-3235_daily_bin1015.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.29e-03', comment='SUCCESS', energy_flux2='1.25e-05', dlogl='8.18e-01', photon_flux2='6.20e-09', job_status='DONE', time_completed='2021-09-28 20:54:21.573895', photon_index_error2='0.69', photon_index2='1.64', ts='0.79', fit_tolerance='1e-08', GAL='0.59', photon_index_error='0.00', photon_flux_upper_limit='6.70e-08', energy_flux_error2='2.25e-05', EG='1.04', time_epoch_completed='1632887661.57', return_code='0', job_id='474457', GAL2='0.57', EG2='1.06', return_code2='0', photon_flux_error2='8.69e-09', ts2='2.43', photon_index='2.76' WHERE bin_id='1015' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:54:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 474457: <4FGL_J2248.7-3235_daily_bin1015> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin1015> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 20:40:49 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:40:51 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:51 2021
Terminated at Tue Sep 28 20:54:22 2021
Results reported at Tue Sep 28 20:54:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1015 342.193 -32.5926 502416001 502675201 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 :                                   788.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            813 sec.

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

