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


Performing analysis on: 4FGL_J2253.2-1232_daily_bin1148
RA = 343.308, Dec = -12.5416
tmin = 536889601, tmax = 537148801
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='570964', job_status='RUN', time_executed='2021-09-29 01:42:51.674698', time_epoch_executed='1632904971.67' WHERE source_name='4FGL J2253.2-1232' and cadence='daily' and bin_id='1148'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/570964

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/570964/ft1_4FGL_J2253.2-1232_daily_bin1148.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/570964/ft2_4FGL_J2253.2-1232_daily_bin1148.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/570964/ft1_4FGL_J2253.2-1232_daily_bin1148.fits outfile=/scratch/kocevski/570964/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1148.fits ra=343.308 dec=-12.5416 rad=12.0 tmin=536889601.0 tmax=537148801.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.67
user 3.43
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/570964/ft1_filtered_4FGL_J2253.2-1232_daily_bin1148.fits" evtable="EVENTS" scfile=/scratch/kocevski/570964/ft2_4FGL_J2253.2-1232_daily_bin1148.fits sctable="SC_DATA" outfile=/scratch/kocevski/570964/ltcube_536889601_537148801_4FGL_J2253.2-1232_daily_bin1148.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/570964/ft2_4FGL_J2253.2-1232_daily_bin1148.fits
.....................!
real 12.37
user 12.01
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/570964/ft1_filtered_4FGL_J2253.2-1232_daily_bin1148.fits evtable="EVENTS" scfile=/scratch/kocevski/570964/ft2_4FGL_J2253.2-1232_daily_bin1148.fits sctable="SC_DATA" expcube=/scratch/kocevski/570964/ltcube_536889601_537148801_4FGL_J2253.2-1232_daily_bin1148.fits outfile=/scratch/kocevski/570964/expmap_536889601_537148801_4FGL_J2253.2-1232_daily_bin1148.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/570964/ltcube_536889601_537148801_4FGL_J2253.2-1232_daily_bin1148.fits
.....................!
real 190.71
user 185.63
sys 4.76

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/570964/ft1_filtered_4FGL_J2253.2-1232_daily_bin1148.fits scfile=/scratch/kocevski/570964/ft2_4FGL_J2253.2-1232_daily_bin1148.fits outfile=/scratch/kocevski/570964/cmap_536889601_537148801_4FGL_J2253.2-1232_daily_bin1148.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/570964/ft1_filtered_4FGL_J2253.2-1232_daily_bin1148.fits scfile=/scratch/kocevski/570964/ft2_4FGL_J2253.2-1232_daily_bin1148.fits outfile=/scratch/kocevski/570964/cmap_HighResolution_536889601_537148801_4FGL_J2253.2-1232_daily_bin1148.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/570964/ft1_filtered_4FGL_J2253.2-1232_daily_bin1148.fits evtable="EVENTS" scfile=/scratch/kocevski/570964/ft2_4FGL_J2253.2-1232_daily_bin1148.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/570964/Model_4FGL_J2253.2-1232_daily_bin1148.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/570964/ft1_filtered_4FGL_J2253.2-1232_daily_bin1148.fits.....................!
real 55.78
user 54.50
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10383E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17283E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    82.218       1.0000         .10000E-03   10000.    
     5 'norm      '    9.7192       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19661E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.5629       1.0000         .10000E-03   10000.    
     8 'norm      '    2.2200       1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.401       1.0000         .10000E-03   10000.    
    10 'norm      '    37.651       1.0000         .10000E-03   10000.    
    11 'Prefactor '    114.39       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .43531E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    69.320       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12668E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.4484       1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10469E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10473E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    71.910       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1460       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .71400       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=   5759.806     FROM MIGRAD    STATUS=CONVERGED    952 CALLS     3176 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.080        .18142E-02** at limit **
   2  Prefactor     .10000E-03    105.65        .18142E-02** at limit **
   3  Prefactor     .10000E-03    2.7344        .12150E-02** at limit **
   4  Prefactor     82.092        68.374        .22149E-03    .25511E-04
   5  norm          9.7163        6.3023        .12854E-03    .32123E-03
   6  Prefactor     .10000E-03    113.35        .18142E-02** at limit **
   7  Prefactor     1.5632        29.860        .34030E-03   -.22183E-04
   8  norm          2.2204        1.2085        .59010E-04   -.18630E-03
   9  Prefactor     24.436        100.44        .81091E-04    .64630E-04
  10  norm          37.647        9.0579        .45738E-04   -.12734E-02
  11  Prefactor     114.45        103.94        .37616E-04    .65946E-04
  12  Prefactor     .10000E-03    14.610        .18142E-02** at limit **
  13  Prefactor     .10000E-03    11.444        .18142E-02** at limit **
  14  norm          .10089E-03    14.154        .67430E-01** at limit **
  15  Prefactor     69.357        137.29        .48212E-04   -.64894E-04
  16  Prefactor     .10000E-03    21.338        .18142E-02** at limit **
  17  Prefactor     1.4401        101.14        .17904E-02   -.15481E-03
  18  norm          .10000E-03    1.0813        .11811E-02** at limit **
  19  norm          .10000E-03    4.9602        .16433E-02** at limit **
  20  Prefactor     .10002E-03    650.18        .36301E-03** at limit **
  21  Prefactor     .10000E-03    14.609        .18142E-02** at limit **
  22  Prefactor     71.922        71.333        .47342E-04   -.30114E-04
  23  Normalizat    1.1453        .30795        .31140E-03   -.47631E-03
  24  Prefactor     .71452        .21504        .28240E-03   -.21409E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 82.0925
  norm       = 9.71629
  Prefactor  = 0.000100001
  Prefactor  = 1.5632
  norm       = 2.22036
  Prefactor  = 24.4355
  norm       = 37.6475
  Prefactor  = 114.45
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100891
  Prefactor  = 69.3568
  Prefactor  = 0.0001
  Prefactor  = 1.44012
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 0.0001
  Prefactor  = 71.922
  Normalizat = 1.14526
  Prefactor  = 0.714521
 **********
 **   18 **HESSE 
 **********

 FCN=   5759.806     FROM HESSE     STATUS=OK           385 CALLS     3561 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.083        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    105.66        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.7352        .24299E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     82.092        68.374        .88594E-05   -1.3893    
   5  norm          9.7163        6.3016        .51415E-05   -1.5084    
   6  Prefactor     .10000E-03    113.35        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.5632        29.851        .13612E-04   -1.5458    
   8  norm          2.2204        1.2085        .23604E-05   -1.5410    
   9  Prefactor     24.436        101.17        .32437E-05   -1.4719    
  10  norm          37.647        9.0783        .91476E-05   -1.4480    
  11  Prefactor     114.45        103.99        .75232E-05   -1.3564    
  12  Prefactor     .10000E-03    14.613        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.446        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10089E-03    11.854        .75839E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     69.357        128.16        .96423E-05   -1.4040    
  16  Prefactor     .10000E-03    21.339        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.4401        87.499        .71615E-04   -1.5468    
  18  norm          .10000E-03    1.0825        .23622E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.9608        .32867E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10002E-03    650.22        .72603E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.611        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     71.922        71.294        .94683E-05   -1.4010    
  23  Normalizat    1.1453        .30823        .62279E-04   -.88312    
  24  Prefactor     .71452        .21526        .11296E-04   -1.0296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09793e-09
Minuit parameter uncertainties:
  1  7.4381e-05
  2  0.000135402
  3  1.16562e-05
  4  68.4399
  5  6.30205
  6  0.000565205
  7  13.6694
  8  1.20854
  9  99.7307
  10  9.07863
  11  104.152
  12  0.000216181
  13  0.00011984
  14  0.00649959
  15  128.675
  16  5.95388e-06
  17  22.4845
  18  2.17725e-05
  19  8.15988e-06
  20  0.00804689
  21  5.34545e-05
  22  71.3793
  23  0.308716
  24  0.215513
Done.

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

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  1.145e+02  1.042e+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:  7.145e-01  2.155e-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.145e+00  3.087e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.12
Ra Dec: 343.308 -12.542
Photon Index (Fixed Index): 2.65 +/- 0.00
Photon Flux (Fixed Index): 2.27e-07 +/- 2.06e-07
Energy Flux (Fixed Index): 5.71e-05 +/- 5.19e-05

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

Saving results to:
/scratch/kocevski/570964/likelihoodResults_536889601_537148801_4FGL_J2253.2-1232_daily_bin1148.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) = 5759.74903896
delta logL = 0.0570572169026

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5759.74564774
delta logL = 0.0604484401492

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    93.529       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8195       1.0000          .0000       10.000    
     3 'Normalizat'    1.1315       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72252       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=   5759.746     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      285 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     93.573        97.110        .41556E-04   -.68219E-03
   2  Index         2.8198        .57566        .45407E-02   -.64963E-03
   3  Normalizat    1.1313        .29414        .31287E-03    .15353E-02
   4  Prefactor     .72247        .21248        .28101E-03    .16526E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 93.5726
  Index      = 2.81978
  Normalizat = 1.1313
  Prefactor  = 0.722473
 **********
 **   18 **HESSE 
 **********

 FCN=   5759.746     FROM HESSE     STATUS=OK            23 CALLS      308 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     93.573        89.034        .83112E-05   -1.3770    
   2  Index         2.8198        .52732        .18163E-03   -.45120    
   3  Normalizat    1.1313        .29442        .62575E-04   -.88753    
   4  Prefactor     .72247        .21257        .56203E-04   -1.0265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.94167e-09
Minuit parameter uncertainties:
  1  89.1613
  2  0.528533
  3  0.294849
  4  0.21281
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/570964': 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) = 5759.7456446
delta logL = 0.0604515787709

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  9.357e+01  8.916e+01  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.820e+00  5.285e-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.225e-01  2.128e-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.131e+00  2.948e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.22
Ra Dec: 343.308 -12.542
Photon Index (Free Index): 2.82 +/- 0.53
Photon Flux (Free Index): 2.45e-07 +/- 1.57e-07
Energy Flux (Free Index): 5.42e-05 +/- 3.54e-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/570964/cmap_HighResolution_536889601_537148801_4FGL_J2253.2-1232_daily_bin1148.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.78e-02', comment='SUCCESS', photon_flux='2.27e-07', energy_flux2='5.42e-05', photon_flux_error='2.06e-07', dlogl='6.05e-02', energy_flux='5.71e-05', photon_flux2='2.45e-07', job_status='DONE', time_completed='2021-09-29 01:54:04.545568', photon_index_error2='0.53', photon_index2='2.82', ts='2.12', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='4.82e-07', energy_flux_error2='3.54e-05', EG='1.15', time_epoch_completed='1632905644.55', return_code='0', job_id='570964', GAL2='0.72', EG2='1.13', return_code2='0', energy_flux_error='5.19e-05', photon_flux_error2='1.57e-07', ts2='3.22', photon_index='2.65' WHERE bin_id='1148' AND source_name='4FGL J2253.2-1232' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:54:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 570964: <4FGL_J2253.2-1232_daily_bin1148> in cluster <slac> Done

Job <4FGL_J2253.2-1232_daily_bin1148> 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) <bullet0037>, 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:54:05 2021
Results reported at Wed Sep 29 01:54:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.2-1232_daily_bin1148 343.308 -12.5416 536889601 537148801 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 :                                   658.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            829 sec.

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

