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


Performing analysis on: 4FGL_J2253.2-1232_daily_bin1394
RA = 343.308, Dec = -12.5416
tmin = 600652801, tmax = 600912001
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='571346', job_status='RUN', time_executed='2021-09-29 01:41:39.866165', time_epoch_executed='1632904899.87' WHERE source_name='4FGL J2253.2-1232' and cadence='daily' and bin_id='1394'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571346

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571346/ft1_4FGL_J2253.2-1232_daily_bin1394.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571346/ft2_4FGL_J2253.2-1232_daily_bin1394.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571346/ft1_4FGL_J2253.2-1232_daily_bin1394.fits outfile=/scratch/kocevski/571346/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1394.fits ra=343.308 dec=-12.5416 rad=12.0 tmin=600652801.0 tmax=600912001.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.65
user 3.41
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/571346/ft2_4FGL_J2253.2-1232_daily_bin1394.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/571346/ft2_4FGL_J2253.2-1232_daily_bin1394.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/571346/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1394.fits evtable="EVENTS" outfile="/scratch/kocevski/571346/ft1_filtered_4FGL_J2253.2-1232_daily_bin1394.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.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/571346/ft1_filtered_4FGL_J2253.2-1232_daily_bin1394.fits" evtable="EVENTS" scfile=/scratch/kocevski/571346/ft2_4FGL_J2253.2-1232_daily_bin1394.fits sctable="SC_DATA" outfile=/scratch/kocevski/571346/ltcube_600652801_600912001_4FGL_J2253.2-1232_daily_bin1394.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/571346/ft2_4FGL_J2253.2-1232_daily_bin1394.fits
.....................!
real 11.67
user 11.29
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571346/ft1_filtered_4FGL_J2253.2-1232_daily_bin1394.fits evtable="EVENTS" scfile=/scratch/kocevski/571346/ft2_4FGL_J2253.2-1232_daily_bin1394.fits sctable="SC_DATA" expcube=/scratch/kocevski/571346/ltcube_600652801_600912001_4FGL_J2253.2-1232_daily_bin1394.fits outfile=/scratch/kocevski/571346/expmap_600652801_600912001_4FGL_J2253.2-1232_daily_bin1394.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/571346/ltcube_600652801_600912001_4FGL_J2253.2-1232_daily_bin1394.fits
.....................!
real 191.45
user 186.52
sys 4.62

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 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J2253.2-1232 @ 343.308 -12.5416

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/571346/ft1_filtered_4FGL_J2253.2-1232_daily_bin1394.fits scfile=/scratch/kocevski/571346/ft2_4FGL_J2253.2-1232_daily_bin1394.fits outfile=/scratch/kocevski/571346/cmap_600652801_600912001_4FGL_J2253.2-1232_daily_bin1394.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=343.308 yref=-12.5416 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/571346/ft1_filtered_4FGL_J2253.2-1232_daily_bin1394.fits scfile=/scratch/kocevski/571346/ft2_4FGL_J2253.2-1232_daily_bin1394.fits outfile=/scratch/kocevski/571346/cmap_HighResolution_600652801_600912001_4FGL_J2253.2-1232_daily_bin1394.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=343.308 yref=-12.5416 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/571346/ft1_filtered_4FGL_J2253.2-1232_daily_bin1394.fits evtable="EVENTS" scfile=/scratch/kocevski/571346/ft2_4FGL_J2253.2-1232_daily_bin1394.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/571346/Model_4FGL_J2253.2-1232_daily_bin1394.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/571346/ft1_filtered_4FGL_J2253.2-1232_daily_bin1394.fits.....................!
real 51.10
user 49.81
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/571346/ft1_filtered_4FGL_J2253.2-1232_daily_bin1394.fits', '/scratch/kocevski/571346/ft2_4FGL_J2253.2-1232_daily_bin1394.fits', expMap='/scratch/kocevski/571346/expmap_600652801_600912001_4FGL_J2253.2-1232_daily_bin1394.fits', expCube='/scratch/kocevski/571346/ltcube_600652801_600912001_4FGL_J2253.2-1232_daily_bin1394.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/571346/Model_4FGL_J2253.2-1232_daily_bin1394.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2253.2-1232'

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  7.270e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.646e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  8.906e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/571346/ft1_filtered_4FGL_J2253.2-1232_daily_bin1394.fits
Spacecraft file(s): /scratch/kocevski/571346/ft2_4FGL_J2253.2-1232_daily_bin1394.fits
Exposure map: /scratch/kocevski/571346/expmap_600652801_600912001_4FGL_J2253.2-1232_daily_bin1394.fits
Exposure cube: /scratch/kocevski/571346/ltcube_600652801_600912001_4FGL_J2253.2-1232_daily_bin1394.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/571346/Model_4FGL_J2253.2-1232_daily_bin1394.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) = 5427.21448541

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    99.465       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11135E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11362E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.0282       1.0000         .10000E-03   10000.    
     6 'Prefactor '    151.02       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.060       1.0000         .10000E-03   10000.    
     8 'norm      '    1.6308       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .25093E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    29.804       1.0000         .10000E-03   10000.    
    11 'Prefactor '    85.163       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14769E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10320E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    10.914       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    56.916       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1172       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78166       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5427.181     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2793 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1932       -.12087E-06** at limit **
   2  Prefactor     99.388        115.29       -.53533E-07    .44560E-05
   3  Prefactor     .10000E-03    5.2505        .13543E-06** at limit **
   4  Prefactor     .10000E-03    200.62        .18142E-05** at limit **
   5  norm          2.0226        5.5188       -.31338E-06    .17176E-04
   6  Prefactor     151.00        125.07        .55497E-06    .74038E-05
   7  Prefactor     16.065        21.472       -.10184E-05    .17573E-04
   8  norm          1.6307        1.1274       -.31325E-07    .65271E-04
   9  Prefactor     .10002E-03    102.44       -.83287E-05** at limit **
  10  norm          29.806        4.0856        .64844E-06    .25906E-02
  11  Prefactor     84.951        72.559       -.36424E-05    .54206E-04
  12  Prefactor     .10000E-03    14.785       -.25199E-05** at limit **
  13  Prefactor     .10000E-03    6.8195       -.37122E-06** at limit **
  14  norm          .10000E-03    6.8848        .34131E-06** at limit **
  15  Prefactor     .10000E-03    22.800       -.44159E-07** at limit **
  16  Prefactor     .10000E-03    7.7828        .10823E-07** at limit **
  17  Prefactor     .10000E-03    6.8544       -.39101E-07** at limit **
  18  norm          .10000E-03    .78277        .19462E-06** at limit **
  19  norm          10.913        8.2040       -.18775E-06   -.51730E-04
  20  Prefactor     .10000E-03    47.342        .31865E-06** at limit **
  21  Prefactor     .10000E-03    22.833        .53452E-06** at limit **
  22  Prefactor     56.867        99.137       -.16369E-05   -.12300E-04
  23  Normalizat    1.1168        .27265        .81679E-05   -.75860E-04
  24  Prefactor     .78204        .19511       -.66715E-05    .22436E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 99.388
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.02255
  Prefactor  = 150.998
  Prefactor  = 16.0646
  norm       = 1.63069
  Prefactor  = 0.000100018
  norm       = 29.806
  Prefactor  = 84.9514
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.9134
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.8665
  Normalizat = 1.11683
  Prefactor  = 0.782039
 **********
 **   18 **HESSE 
 **********

 FCN=   5427.181     FROM HESSE     STATUS=OK           393 CALLS     3186 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1974        .14734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     99.388        114.35        .20154E-03   -1.3711    
   3  Prefactor     .10000E-03    5.3819        .32877E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    202.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.0226        5.3997        .24445E-03   -1.5424    
   6  Prefactor     151.00        124.13        .16399E-03   -1.3244    
   7  Prefactor     16.065        21.501        .99943E-04   -1.4906    
   8  norm          1.6307        1.1237        .62445E-04   -1.5453    
   9  Prefactor     .10002E-03    108.74        .21464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          29.806        4.2425        .43480E-04   -1.4616    
  11  Prefactor     84.951        72.976        .21766E-03   -1.3862    
  12  Prefactor     .10000E-03    15.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.8492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.9158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.7830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.8730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.4989        .12560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.913        8.1538        .12127E-03   -1.5047    
  20  Prefactor     .10000E-03    47.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    22.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     56.867        99.156        .53174E-04   -1.4198    
  23  Normalizat    1.1168        .28075        .30321E-03   -.89213    
  24  Prefactor     .78204        .20083        .26386E-03   -1.0039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04949e-09
Minuit parameter uncertainties:
  1  7.02884e-06
  2  114.603
  3  8.51747e-08
  4  0.000482422
  5  5.40101
  6  124.349
  7  21.5111
  8  1.12368
  9  0.00278155
  10  4.24254
  11  73.0535
  12  0.000119288
  13  2.1826e-05
  14  1.72111e-05
  15  7.21047e-06
  16  2.38016e-06
  17  7.2553e-06
  18  1.33864e-05
  19  8.15461
  20  5.10795e-05
  21  3.75554e-05
  22  99.4453
  23  0.281123
  24  0.201017
Done.

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

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  8.495e+01  7.305e+01  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.646e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  8.906e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  7.820e-01  2.010e-01  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  1.117e+00  2.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.40
Ra Dec: 343.308 -12.542
Photon Index (Fixed Index): 2.65 +/- 0.00
Photon Flux (Fixed Index): 1.68e-07 +/- 1.45e-07
Energy Flux (Fixed Index): 4.24e-05 +/- 3.64e-05

TS (Fixed Index): 2.40
Ra Dec: 343.308 -12.542
Photon Flux Upper Limit: 3.84e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/571346/likelihoodResults_600652801_600912001_4FGL_J2253.2-1232_daily_bin1394.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) = 5427.140862
delta logL = 0.0405999766172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5427.13341037
delta logL = 0.0480516128946

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    98.205       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4713       1.0000          .0000       10.000    
     3 'Normalizat'    1.1312       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77500       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+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=   5427.133     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      306 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     98.220        78.223        .40564E-04    .30997E-04
   2  Index         2.4715        .56695        .66689E-02    .34088E-03
   3  Normalizat    1.1304        .27277        .30185E-03    .32918E-04
   4  Prefactor     .77550        .19922        .26492E-03   -.10527E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 98.2198
  Index      = 2.47149
  Normalizat = 1.13037
  Prefactor  = 0.775499
 **********
 **   18 **HESSE 
 **********

 FCN=   5427.133     FROM HESSE     STATUS=OK            25 CALLS      331 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     98.220        76.417        .81128E-05   -1.3723    
   2  Index         2.4715        .55340        .13338E-02   -.53020    
   3  Normalizat    1.1304        .27295        .12074E-04   -.88783    
   4  Prefactor     .77550        .19937        .10597E-04   -1.0064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19653e-10
Minuit parameter uncertainties:
  1  76.4936
  2  0.554931
  3  0.273297
  4  0.199555
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571346': 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) = 5427.13340622
delta logL = 0.0480557549845

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  9.822e+01  7.649e+01  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.471e+00  5.549e-01  0.000e+00  1.000e+01 (-1.000e+00)
280        Scale:  8.906e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  7.755e-01  1.996e-01  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  1.130e+00  2.733e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.01
Ra Dec: 343.308 -12.542
Photon Index (Free Index): 2.47 +/- 0.55
Photon Flux (Free Index): 1.49e-07 +/- 1.28e-07
Energy Flux (Free Index): 4.45e-05 +/- 3.20e-05

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/571346/cmap_HighResolution_600652801_600912001_4FGL_J2253.2-1232_daily_bin1394.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.01e-02', comment='SUCCESS', photon_flux='1.68e-07', energy_flux2='4.45e-05', photon_flux_error='1.45e-07', dlogl='4.81e-02', energy_flux='4.24e-05', photon_flux2='1.49e-07', job_status='DONE', time_completed='2021-09-29 01:52:09.237916', photon_index_error2='0.55', photon_index2='2.47', ts='2.40', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='3.84e-07', energy_flux_error2='3.20e-05', EG='1.12', time_epoch_completed='1632905529.24', return_code='0', job_id='571346', GAL2='0.78', EG2='1.13', return_code2='0', energy_flux_error='3.64e-05', photon_flux_error2='1.28e-07', ts2='3.01', photon_index='2.65' WHERE bin_id='1394' AND source_name='4FGL J2253.2-1232' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:52:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 571346: <4FGL_J2253.2-1232_daily_bin1394> in cluster <slac> Done

Job <4FGL_J2253.2-1232_daily_bin1394> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 01:40:41 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:40:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 01:40:42 2021
Terminated at Wed Sep 29 01:52:09 2021
Results reported at Wed Sep 29 01:52:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.2-1232_daily_bin1394 343.308 -12.5416 600652801 600912001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2253.2-1232 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   603.29 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             303.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   687 sec.
    Turnaround time :                            688 sec.

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

