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


Performing analysis on: 4FGL_J2253.2-1232_daily_bin1149
RA = 343.308, Dec = -12.5416
tmin = 537148801, tmax = 537408001
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='570965', job_status='RUN', time_executed='2021-09-29 01:40:36.504141', time_epoch_executed='1632904836.5' WHERE source_name='4FGL J2253.2-1232' and cadence='daily' and bin_id='1149'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/570965

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/570965/ft1_4FGL_J2253.2-1232_daily_bin1149.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/570965/ft2_4FGL_J2253.2-1232_daily_bin1149.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/570965/ft1_4FGL_J2253.2-1232_daily_bin1149.fits outfile=/scratch/kocevski/570965/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1149.fits ra=343.308 dec=-12.5416 rad=12.0 tmin=537148801.0 tmax=537408001.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.56
user 3.32
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/570965/ft2_4FGL_J2253.2-1232_daily_bin1149.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/570965/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1149.fits evtable="EVENTS" outfile="/scratch/kocevski/570965/ft1_filtered_4FGL_J2253.2-1232_daily_bin1149.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/570965/ft1_filtered_4FGL_J2253.2-1232_daily_bin1149.fits" evtable="EVENTS" scfile=/scratch/kocevski/570965/ft2_4FGL_J2253.2-1232_daily_bin1149.fits sctable="SC_DATA" outfile=/scratch/kocevski/570965/ltcube_537148801_537408001_4FGL_J2253.2-1232_daily_bin1149.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/570965/ft2_4FGL_J2253.2-1232_daily_bin1149.fits
.....................!
real 11.56
user 11.19
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/570965/ft1_filtered_4FGL_J2253.2-1232_daily_bin1149.fits evtable="EVENTS" scfile=/scratch/kocevski/570965/ft2_4FGL_J2253.2-1232_daily_bin1149.fits sctable="SC_DATA" expcube=/scratch/kocevski/570965/ltcube_537148801_537408001_4FGL_J2253.2-1232_daily_bin1149.fits outfile=/scratch/kocevski/570965/expmap_537148801_537408001_4FGL_J2253.2-1232_daily_bin1149.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/570965/ltcube_537148801_537408001_4FGL_J2253.2-1232_daily_bin1149.fits
.....................!
real 190.66
user 185.27
sys 5.08

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/570965/ft1_filtered_4FGL_J2253.2-1232_daily_bin1149.fits scfile=/scratch/kocevski/570965/ft2_4FGL_J2253.2-1232_daily_bin1149.fits outfile=/scratch/kocevski/570965/cmap_537148801_537408001_4FGL_J2253.2-1232_daily_bin1149.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/570965/ft1_filtered_4FGL_J2253.2-1232_daily_bin1149.fits scfile=/scratch/kocevski/570965/ft2_4FGL_J2253.2-1232_daily_bin1149.fits outfile=/scratch/kocevski/570965/cmap_HighResolution_537148801_537408001_4FGL_J2253.2-1232_daily_bin1149.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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/570965/ft1_filtered_4FGL_J2253.2-1232_daily_bin1149.fits evtable="EVENTS" scfile=/scratch/kocevski/570965/ft2_4FGL_J2253.2-1232_daily_bin1149.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/570965/Model_4FGL_J2253.2-1232_daily_bin1149.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/570965/ft1_filtered_4FGL_J2253.2-1232_daily_bin1149.fits.....................!
real 54.02
user 52.75
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/570965/ft1_filtered_4FGL_J2253.2-1232_daily_bin1149.fits', '/scratch/kocevski/570965/ft2_4FGL_J2253.2-1232_daily_bin1149.fits', expMap='/scratch/kocevski/570965/expmap_537148801_537408001_4FGL_J2253.2-1232_daily_bin1149.fits', expCube='/scratch/kocevski/570965/ltcube_537148801_537408001_4FGL_J2253.2-1232_daily_bin1149.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/570965/Model_4FGL_J2253.2-1232_daily_bin1149.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/570965/ft1_filtered_4FGL_J2253.2-1232_daily_bin1149.fits
Spacecraft file(s): /scratch/kocevski/570965/ft2_4FGL_J2253.2-1232_daily_bin1149.fits
Exposure map: /scratch/kocevski/570965/expmap_537148801_537408001_4FGL_J2253.2-1232_daily_bin1149.fits
Exposure cube: /scratch/kocevski/570965/ltcube_537148801_537408001_4FGL_J2253.2-1232_daily_bin1149.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/570965/Model_4FGL_J2253.2-1232_daily_bin1149.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) = 5579.56642869

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.5446       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.997       1.0000         .10000E-03   10000.    
     8 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19644E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    38.523       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.687       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.1934       1.0000         .10000E-03   10000.    
    14 'norm      '    7.4396       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .66477       1.0000         .10000E-03   10000.    
    19 'norm      '    2.8756       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.602       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5069       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .57205       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=   5579.557     FROM MIGRAD    STATUS=CONVERGED    983 CALLS     3549 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    57.081        .36285E-03** at limit **
   2  Prefactor     .10000E-03    44.536        .18142E-02** at limit **
   3  Prefactor     .10000E-03    1.3119        .83482E-03** at limit **
   4  Prefactor     .10003E-03    46.193        .17090    ** at limit **
   5  norm          3.5441        5.4971        .20322E-03    .15301E-03
   6  Prefactor     .10000E-03    31.141        .18142E-02** at limit **
   7  Prefactor     16.993        23.091        .97149E-04    .96193E-04
   8  norm          .10000E-03    .77452        .10521E-02** at limit **
   9  Prefactor     .10000E-03    204.60        .11398    ** at limit **
  10  norm          38.515        7.3821        .42992E-04   -.29586E-02
  11  Prefactor     24.637        122.41        .80622E-04   -.28203E-05
  12  Prefactor     .10000E-03    9.2020        .18142E-02** at limit **
  13  Prefactor     2.1929        7.4651        .27787E-03   -.16038E-04
  14  norm          7.4403        17.557        .14704E-03    .70281E-04
  15  Prefactor     .10000E-03    51.706        .18142E-02** at limit **
  16  Prefactor     .10000E-03    10.563        .18142E-02** at limit **
  17  Prefactor     .10000E-03    5.0605        .16384E-02** at limit **
  18  norm          .66388        1.2041        .11942E-02    .11344E-02
  19  norm          2.8760        4.7085        .20067E-03   -.62490E-04
  20  Prefactor     .10000E-03    40.631        .18142E-02** at limit **
  21  Prefactor     27.602        22.650        .76254E-04    .61007E-04
  22  Prefactor     .10000E-03    38.935        .18142E-02** at limit **
  23  Normalizat    1.5069        .29625        .28268E-03    .73193E-03
  24  Prefactor     .57203        .20083        .30979E-03    .74447E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100032
  norm       = 3.54405
  Prefactor  = 0.0001
  Prefactor  = 16.9928
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 38.5149
  Prefactor  = 24.6374
  Prefactor  = 0.0001
  Prefactor  = 2.19289
  norm       = 7.44032
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.663885
  norm       = 2.87603
  Prefactor  = 0.0001
  Prefactor  = 27.602
  Prefactor  = 0.000100002
  Normalizat = 1.50694
  Prefactor  = 0.572028
 **********
 **   18 **HESSE 
 **********

 FCN=   5579.557     FROM HESSE     STATUS=OK           395 CALLS     3944 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    57.084        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    44.537        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.3120        .16696E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10003E-03    46.342        .17038       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.5441        5.4963        .81287E-05   -1.5331    
   6  Prefactor     .10000E-03    31.142        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.993        23.090        .38860E-05   -1.4883    
   8  norm          .10000E-03    .77511        .21042E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    207.03        .11334       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          38.515        7.3896        .85983E-05   -1.4466    
  11  Prefactor     24.637        122.10        .32249E-05   -1.4715    
  12  Prefactor     .10000E-03    9.2033        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.1929        7.4649        .11115E-04   -1.5412    
  14  norm          7.4403        17.555        .58816E-05   -1.5162    
  15  Prefactor     .10000E-03    51.712        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.563        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.0610        .32767E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .66388        1.2029        .47769E-04   -1.5545    
  19  norm          2.8760        4.7076        .80266E-05   -1.5369    
  20  Prefactor     .10000E-03    40.631        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     27.602        22.650        .15251E-04   -1.4657    
  22  Prefactor     .10000E-03    38.936        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5069        .29646        .56537E-04   -.77583    
  24  Prefactor     .57203        .20100        .61958E-04   -1.0878    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86289e-09
Minuit parameter uncertainties:
  1  0.000205482
  2  0.000346638
  3  1.58258e-05
  4  0.00243823
  5  5.49705
  6  0.000211773
  7  23.1023
  8  1.67031e-05
  9  0.00109441
  10  7.38979
  11  110.057
  12  3.1195e-05
  13  7.46803
  14  17.5668
  15  0.000656529
  16  2.87981e-05
  17  3.85376e-05
  18  1.20298
  19  4.70821
  20  0.000241312
  21  22.657
  22  0.000606944
  23  0.296805
  24  0.20125
Done.

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

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  2.464e+01  1.101e+02  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:  5.720e-01  2.013e-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.507e+00  2.968e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/570965/likelihoodResults_537148801_537408001_4FGL_J2253.2-1232_daily_bin1149.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) = 5578.94242509
delta logL = 0.614088261641

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5578.91352187
delta logL = 0.642991482817

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2515       1.0000         .10000E-03   10000.    
     2 'Index     '    4.5133       1.0000          .0000       10.000    
     3 'Normalizat'    1.4252       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60982       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.

 FCN=   5578.914     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      281 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2321        60.932        .56152E-02    .56593E-03
   2  Index         4.5162        3.3175        .10226        .15874E-03
   3  Normalizat    1.4250        .74656E-01    .65122E-01    .29112E-05
   4  Prefactor     .61007        .52902E-01    .67900E-01    .20527E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.23212
  Index      = 4.51623
  Normalizat = 1.42503
  Prefactor  = 0.610075
 **********
 **   18 **HESSE 
 **********

 FCN=   5578.914     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      314 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2321        119.97        .11090E-03   -1.5348    
   2  Index         4.5162        7.1868        .51734E-02   -.96906E-01
   3  Normalizat    1.4250        .23882        .28804E-03   -.79907    
   4  Prefactor     .61007        .16674        .30051E-03   -1.0716    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.97975e-10
Minuit parameter uncertainties:
  1  39.4684
  2  6.14365
  3  0.239004
  4  0.166872
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/570965': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5578.91351956
delta logL = 0.64299380007

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  3.232e+00  3.947e+01  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  4.516e+00  6.144e+00  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:  6.101e-01  1.669e-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.425e+00  2.390e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.52
Ra Dec: 343.308 -12.542
Photon Index (Free Index): 4.52 +/- 6.14
Photon Flux (Free Index): 1.80e-07 +/- 1.77e-07
Energy Flux (Free Index): 2.50e-05 +/- 3.66e-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/570965/cmap_HighResolution_537148801_537408001_4FGL_J2253.2-1232_daily_bin1149.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-02', comment='SUCCESS', energy_flux2='2.50e-05', dlogl='6.43e-01', photon_flux2='1.80e-07', job_status='DONE', time_completed='2021-09-29 01:52:02.242975', photon_index_error2='6.14', photon_index2='4.52', ts='0.09', fit_tolerance='1e-08', GAL='0.57', photon_index_error='0.00', photon_flux_upper_limit='3.26e-07', energy_flux_error2='3.66e-05', EG='1.51', time_epoch_completed='1632905522.24', return_code='0', job_id='570965', GAL2='0.61', EG2='1.43', return_code2='102', photon_flux_error2='1.77e-07', ts2='1.52', photon_index='2.65' WHERE bin_id='1149' AND source_name='4FGL J2253.2-1232' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:52:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 570965: <4FGL_J2253.2-1232_daily_bin1149> in cluster <slac> Done

Job <4FGL_J2253.2-1232_daily_bin1149> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 01:40:16 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:40:18 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:18 2021
Terminated at Wed Sep 29 01:52:03 2021
Results reported at Wed Sep 29 01:52:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.2-1232_daily_bin1149 343.308 -12.5416 537148801 537408001 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 :                                   673.32 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             345.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            707 sec.

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

