/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 = 7484
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2248.7-3235_daily_bin129
RA = 342.193, Dec = -32.5926
tmin = 272764801, tmax = 273024001
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='470234', job_status='RUN', time_executed='2021-09-28 20:25:47.666257', time_epoch_executed='1632885947.67' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='129'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/470234

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/470234/ft1_4FGL_J2248.7-3235_daily_bin129.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/470234/ft2_4FGL_J2248.7-3235_daily_bin129.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/470234/ft1_4FGL_J2248.7-3235_daily_bin129.fits outfile=/scratch/kocevski/470234/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin129.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=272764801.0 tmax=273024001.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 1.75
user 1.57
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/470234/ft1_filtered_4FGL_J2248.7-3235_daily_bin129.fits" evtable="EVENTS" scfile=/scratch/kocevski/470234/ft2_4FGL_J2248.7-3235_daily_bin129.fits sctable="SC_DATA" outfile=/scratch/kocevski/470234/ltcube_272764801_273024001_4FGL_J2248.7-3235_daily_bin129.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/470234/ft2_4FGL_J2248.7-3235_daily_bin129.fits
.....................!
real 12.29
user 11.94
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/470234/ft1_filtered_4FGL_J2248.7-3235_daily_bin129.fits evtable="EVENTS" scfile=/scratch/kocevski/470234/ft2_4FGL_J2248.7-3235_daily_bin129.fits sctable="SC_DATA" expcube=/scratch/kocevski/470234/ltcube_272764801_273024001_4FGL_J2248.7-3235_daily_bin129.fits outfile=/scratch/kocevski/470234/expmap_272764801_273024001_4FGL_J2248.7-3235_daily_bin129.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/470234/ltcube_272764801_273024001_4FGL_J2248.7-3235_daily_bin129.fits
.....................!
real 190.36
user 185.19
sys 4.73

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/470234/ft1_filtered_4FGL_J2248.7-3235_daily_bin129.fits evtable="EVENTS" scfile=/scratch/kocevski/470234/ft2_4FGL_J2248.7-3235_daily_bin129.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/470234/Model_4FGL_J2248.7-3235_daily_bin129.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/470234/ft1_filtered_4FGL_J2248.7-3235_daily_bin129.fits.....................!
real 51.61
user 50.25
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0143       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .54199       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.6441       1.0000         .10000E-03   10000.    
     4 'norm      '    27.664       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .82079       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7347       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.1082       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.1167       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10892E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.0788       1.0000         .10000E-03   10000.    
    16 'norm      '    2.5021       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .29294E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .21365E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.0819       1.0000         .10000E-03   10000.    
    20 'norm      '    12.052       1.0000         .10000E-03   10000.    
    21 'Prefactor '    35.440       1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.598       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0977       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .67262       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=   6797.625     FROM MIGRAD    STATUS=CONVERGED   1102 CALLS     3504 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0143        .43569        .24512E-04   -.56073E-03
   2  Prefactor     .52219        37.008        .38929E-02   -.55967E-03
   3  Prefactor     4.6414        6.2237        .18676E-03   -.25811E-03
   4  norm          27.667        17.914        .76168E-04   -.10747E-03
   5  Prefactor     .84614        209.04        .67766E-02   -.99483E-04
   6  Prefactor     4.7406        15.483        .18492E-03    .64860E-04
   7  Prefactor     3.1061        8.1089        .11500E-02   -.31765E-03
   8  Prefactor     .10000E-03    4.2026        .16503E-02** at limit **
   9  norm          1.1176        1.4134        .12303E-02    .46952E-03
  10  Prefactor     .10003E-03    157.81        .36285E-03** at limit **
  11  Prefactor     .10000E-03    3.4217        .14852E-02** at limit **
  12  Prefactor     .10000E-03    4.4066        .16818E-02** at limit **
  13  norm          .10000E-03    11.503        .18780E-02** at limit **
  14  Prefactor     .10000E-03    26.254        .36285E-03** at limit **
  15  Prefactor     5.0668        8.4150        .17841E-03   -.13592E-03
  16  norm          2.5032        .76955        .31475E-04   -.11394E-02
  17  Prefactor     .10146E-03    26.204        .14058    ** at limit **
  18  Prefactor     .10000E-03    14.362        .33374E-02** at limit **
  19  norm          4.0812        3.7860        .14947E-03   -.99640E-05
  20  norm          12.053        8.8417        .11539E-03   -.72907E-05
  21  Prefactor     35.438        29.999        .67318E-04   -.19252E-04
  22  Prefactor     20.575        42.390        .88252E-04   -.52817E-05
  23  norm          .10000E-03    1.3928        .94725E-03** at limit **
  24  Normalizat    1.0981        .19805        .21714E-03   -.35139E-03
  25  Prefactor     .67220        .18408        .26838E-03   -.37234E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.01433
  Prefactor  = 0.522193
  Prefactor  = 4.6414
  norm       = 27.667
  Prefactor  = 0.846141
  Prefactor  = 4.74063
  Prefactor  = 3.10608
  Prefactor  = 0.0001
  norm       = 1.1176
  Prefactor  = 0.000100025
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.06677
  norm       = 2.50321
  Prefactor  = 0.000101464
  Prefactor  = 0.0001
  norm       = 4.08118
  norm       = 12.0526
  Prefactor  = 35.438
  Prefactor  = 20.5747
  norm       = 0.0001
  Normalizat = 1.09809
  Prefactor  = 0.672199
 **********
 **   18 **HESSE 
 **********

 FCN=   6797.625     FROM HESSE     STATUS=OK           417 CALLS     3921 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0143        .43566        .98049E-06   -1.5424    
   2  Prefactor     .52219        37.208        .15572E-03   -1.5563    
   3  Prefactor     4.6414        6.2221        .74702E-05   -1.5277    
   4  norm          27.667        17.912        .15234E-04   -1.4655    
   5  Prefactor     .84614        212.94        .27106E-03   -1.5524    
   6  Prefactor     4.7406        15.481        .73968E-05   -1.5272    
   7  Prefactor     3.1061        8.1027        .46000E-04   -1.5355    
   8  Prefactor     .10000E-03    4.2027        .33006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.1176        1.4125        .49212E-04   -1.5497    
  10  Prefactor     .10003E-03    157.81        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.4222        .29703E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.4080        .33635E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    11.788        .75119E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    26.255        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.0668        8.4056        .71365E-05   -1.5258    
  16  norm          2.5032        .76925        .62950E-05   -1.5392    
  17  Prefactor     .10146E-03    26.079        .14119       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.489        .66748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.0812        3.7859        .59787E-05   -1.5304    
  20  norm          12.053        8.8403        .46157E-05   -1.5013    
  21  Prefactor     35.438        29.999        .26927E-05   -1.4517    
  22  Prefactor     20.575        42.403        .35301E-05   -1.4800    
  23  norm          .10000E-03    1.3929        .18945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0981        .19790        .43427E-04   -.89813    
  25  Prefactor     .67220        .18400        .10735E-04   -1.0463    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.36185e-09
Minuit parameter uncertainties:
  1  0.435665
  2  8.82065
  3  6.22293
  4  17.9151
  5  26.9416
  6  15.4936
  7  8.10557
  8  2.18852e-05
  9  1.41253
  10  0.00398672
  11  1.26999e-05
  12  1.65055e-05
  13  3.57518e-05
  14  4.31797e-05
  15  8.40757
  16  0.769254
  17  0.0123623
  18  4.42592e-05
  19  3.78614
  20  8.84124
  21  30.0116
  22  42.4655
  23  3.61855e-06
  24  0.198034
  25  0.184168
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.000e-04  1.270e-05  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:  6.722e-01  1.842e-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.098e+00  1.980e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/470234/likelihoodResults_272764801_273024001_4FGL_J2248.7-3235_daily_bin129.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): 102
logL (Free Index) = 6797.62593253
delta logL = -0.00138994605186

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6797.6245426
delta logL = -1.54332155944e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7630       1.0000          .0000       10.000    
     3 'Normalizat'    1.0981       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67220       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=   6797.625     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10011E-03    373.53        .14854E-02** at limit **
   2  Index         2.7993        6.3554        .50000       -.41442E-05
   3  Normalizat    1.0981        .46029E-01    .21714E-03   -.10157E-04
   4  Prefactor     .67220        .45714E-01    .26838E-03    .81332E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100105
  Index      = 2.79927
  Normalizat = 1.09809
  Prefactor  = 0.6722
 **********
 **   18 **HESSE 
 **********

 FCN=   6797.625     FROM HESSE     STATUS=OK            29 CALLS      269 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10011E-03    6.2091        .29707E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7993        7.3061        .50000       -.45576    
   3  Normalizat    1.0981        .18066        .86855E-05   -.89813    
   4  Prefactor     .67220        .17938        .10735E-04   -1.0463    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88029e-08
Minuit parameter uncertainties:
  1  0.00161875
  2  268.2
  3  0.180765
  4  0.179533
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/470234': 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) = 6797.62454256
delta logL = 2.45199771598e-08

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.001e-04  1.619e-03  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  2.799e+00  2.682e+02  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:  6.722e-01  1.795e-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.098e+00  1.808e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/470234/cmap_HighResolution_272764801_273024001_4FGL_J2248.7-3235_daily_bin129.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.94e-03', job_status='DONE', photon_flux_upper_limit='4.99e-08', time_completed='2021-09-28 20:39:04.326294', job_id='470234', GAL2='0.67', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1632886744.33', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='2.45e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='129' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:39:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 470234: <4FGL_J2248.7-3235_daily_bin129> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin129> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 20:25:30 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:25:33 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:25:33 2021
Terminated at Tue Sep 28 20:39:04 2021
Results reported at Tue Sep 28 20:39:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin129 342.193 -32.5926 272764801 273024001 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 :                                   795.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            814 sec.

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

