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


Performing analysis on: 4FGL_J2253.2-1232_daily_bin1063
RA = 343.308, Dec = -12.5416
tmin = 514857601, tmax = 515116801
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='569762', job_status='RUN', time_executed='2021-09-29 01:39:24.822410', time_epoch_executed='1632904764.82' WHERE source_name='4FGL J2253.2-1232' and cadence='daily' and bin_id='1063'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/569762

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/569762/ft1_4FGL_J2253.2-1232_daily_bin1063.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/569762/ft2_4FGL_J2253.2-1232_daily_bin1063.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/569762/ft1_4FGL_J2253.2-1232_daily_bin1063.fits outfile=/scratch/kocevski/569762/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1063.fits ra=343.308 dec=-12.5416 rad=12.0 tmin=514857601.0 tmax=515116801.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.63
user 3.39
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/569762/ft1_filtered_4FGL_J2253.2-1232_daily_bin1063.fits" evtable="EVENTS" scfile=/scratch/kocevski/569762/ft2_4FGL_J2253.2-1232_daily_bin1063.fits sctable="SC_DATA" outfile=/scratch/kocevski/569762/ltcube_514857601_515116801_4FGL_J2253.2-1232_daily_bin1063.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/569762/ft2_4FGL_J2253.2-1232_daily_bin1063.fits
.....................!
real 12.54
user 11.63
sys 0.89

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/569762/ft1_filtered_4FGL_J2253.2-1232_daily_bin1063.fits evtable="EVENTS" scfile=/scratch/kocevski/569762/ft2_4FGL_J2253.2-1232_daily_bin1063.fits sctable="SC_DATA" expcube=/scratch/kocevski/569762/ltcube_514857601_515116801_4FGL_J2253.2-1232_daily_bin1063.fits outfile=/scratch/kocevski/569762/expmap_514857601_515116801_4FGL_J2253.2-1232_daily_bin1063.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/569762/ltcube_514857601_515116801_4FGL_J2253.2-1232_daily_bin1063.fits
.....................!
real 190.42
user 185.31
sys 4.75

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/569762/ft1_filtered_4FGL_J2253.2-1232_daily_bin1063.fits scfile=/scratch/kocevski/569762/ft2_4FGL_J2253.2-1232_daily_bin1063.fits outfile=/scratch/kocevski/569762/cmap_514857601_515116801_4FGL_J2253.2-1232_daily_bin1063.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/569762/ft1_filtered_4FGL_J2253.2-1232_daily_bin1063.fits scfile=/scratch/kocevski/569762/ft2_4FGL_J2253.2-1232_daily_bin1063.fits outfile=/scratch/kocevski/569762/cmap_HighResolution_514857601_515116801_4FGL_J2253.2-1232_daily_bin1063.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/569762/ft1_filtered_4FGL_J2253.2-1232_daily_bin1063.fits evtable="EVENTS" scfile=/scratch/kocevski/569762/ft2_4FGL_J2253.2-1232_daily_bin1063.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/569762/Model_4FGL_J2253.2-1232_daily_bin1063.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/569762/ft1_filtered_4FGL_J2253.2-1232_daily_bin1063.fits.....................!
real 63.60
user 62.30
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .38233       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.6821       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.153       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2555       1.0000         .10000E-03   10000.    
     8 'norm      '    .75449       1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.418       1.0000         .10000E-03   10000.    
    10 'norm      '    22.229       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .40708       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.818       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.6206       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.2480       1.0000         .10000E-03   10000.    
    19 'norm      '    19.937       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11399E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11562E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .84778       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0628       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=   7119.339     FROM MIGRAD    STATUS=CONVERGED    596 CALLS     2818 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.639        .16493E-06** at limit **
   2  Prefactor     .10000E-03    37.064        .29185E-05** at limit **
   3  Prefactor     .37799        2.2176       -.35212E-06   -.15859E-03
   4  Prefactor     .10000E-03    33.091       -.13981E-05** at limit **
   5  norm          4.6817        3.8493        .19792E-05   -.25704E-02
   6  Prefactor     24.144        64.698        .22432E-05    .86345E-04
   7  Prefactor     4.2554        11.749        .17966E-06   -.10687E-03
   8  norm          .75416        .82616        .48022E-07   -.44299E-03
   9  Prefactor     24.510        68.912        .11585E-04   -.24497E-04
  10  norm          22.231        5.9727       -.14236E-05   -.13680E-02
  11  Prefactor     .12786        79.922        .44784E-05    .79775E-05
  12  Prefactor     .10000E-03    5.9745       -.17059E-07** at limit **
  13  Prefactor     15.815        12.143       -.41796E-07   -.64741E-04
  14  norm          .10000E-03    7.5151       -.16724E-07** at limit **
  15  Prefactor     7.6221        54.886       -.19647E-05   -.18448E-04
  16  Prefactor     .10000E-03    7.9398        .54862E-07** at limit **
  17  Prefactor     .10000E-03    11.441        .19444E-07** at limit **
  18  norm          2.2479        1.4276       -.61335E-07   -.13341E-03
  19  norm          19.938        7.4662        .14941E-05    .17301E-02
  20  Prefactor     .10000E-03    42.321       -.17883E-05** at limit **
  21  Prefactor     .10000E-03    6.5378        .34493E-07** at limit **
  22  Prefactor     .10000E-03    75.046        .44378E-06** at limit **
  23  Normalizat    .84775        .20646       -.34745E-05   -.53175E-04
  24  Prefactor     1.0629        .15479        .69383E-06   -.25907E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.377987
  Prefactor  = 0.000100001
  norm       = 4.68171
  Prefactor  = 24.1441
  Prefactor  = 4.25538
  norm       = 0.754156
  Prefactor  = 24.5103
  norm       = 22.2313
  Prefactor  = 0.127856
  Prefactor  = 0.0001
  Prefactor  = 15.8152
  norm       = 0.0001
  Prefactor  = 7.62207
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.24793
  norm       = 19.9377
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.847749
  Prefactor  = 1.06294
 **********
 **   18 **HESSE 
 **********

 FCN=   7119.339     FROM HESSE     STATUS=OK           405 CALLS     3223 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    37.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .37799        7.6298        .23515E-02   -1.5585    
   4  Prefactor     .10000E-03    33.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.6817        4.1906        .76255E-03   -1.5275    
   6  Prefactor     24.144        65.337        .81506E-04   -1.4725    
   7  Prefactor     4.2554        11.795        .19532E-03   -1.5295    
   8  norm          .75416        .79586        .76446E-03   -1.5534    
   9  Prefactor     24.510        70.848        .81063E-04   -1.4717    
  10  norm          22.231        6.3421        .43575E-04   -1.4765    
  11  Prefactor     .12786        85.933        .12956       -1.5636    
  12  Prefactor     .10000E-03    5.9978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.815        12.144        .10070E-03   -1.4912    
  14  norm          .10000E-03    7.5595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.6221        53.673        .14527E-03   -1.5156    
  16  Prefactor     .10000E-03    7.9429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.465        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.2479        1.4258        .76888E-04   -1.5408    
  19  norm          19.938        7.7298        .89701E-04   -1.4815    
  20  Prefactor     .10000E-03    42.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.5516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    75.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .84775        .23802        .32839E-03   -.98321    
  24  Prefactor     1.0629        .18089        .23148E-03   -.90660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74262e-08
Minuit parameter uncertainties:
  1  4.52944e-05
  2  0.000650158
  3  3.39649
  4  0.00028858
  5  4.19084
  6  65.5318
  7  11.8014
  8  0.795875
  9  71.0932
  10  6.34229
  11  6.63631
  12  1.42147e-05
  13  12.1462
  14  2.31393e-06
  15  40.5038
  16  9.02856e-06
  17  2.21492e-05
  18  1.42582
  19  7.73019
  20  0.00036546
  21  1.13801e-05
  22  4.85506e-05
  23  0.238315
  24  0.180995
Done.

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

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  1.279e-01  6.636e+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

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.063e+00  1.810e-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:  8.477e-01  2.383e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/569762/likelihoodResults_514857601_515116801_4FGL_J2253.2-1232_daily_bin1063.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) = 7119.33939245
delta logL = 1.18813659356e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7119.33939233
delta logL = 2.36142113863e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12786       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6460       1.0000          .0000       10.000    
     3 'Normalizat'    .84774       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0629       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7119.331     FROM MIGRAD    STATUS=CONVERGED    142 CALLS      322 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9868        84.250        .19286E-02   -.34961E-04
   2  Index         2.0016        2.7008        .19433E-01    .20441E-04
   3  Normalizat    .84724        .22355        .32843E-03   -.28388E-03
   4  Prefactor     1.0623        .17562        .23149E-03   -.41164E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.98677
  Index      = 2.0016
  Normalizat = 0.847244
  Prefactor  = 1.06231
 **********
 **   18 **HESSE 
 **********

 FCN=   7119.331     FROM HESSE     STATUS=OK            25 CALLS      347 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9868        88.318        .77146E-04   -1.5261    
   2  Index         2.0016        2.7587        .77732E-03   -.64310    
   3  Normalizat    .84724        .22374        .13137E-04   -.98339    
   4  Prefactor     1.0623        .17575        .46297E-04   -.90680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30643e-10
Minuit parameter uncertainties:
  1  42.0445
  2  3.04391
  3  0.223988
  4  0.17585
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/569762': 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) = 7119.33126796
delta logL = 0.00812460895668

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  4.987e+00  4.204e+01  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.002e+00  3.044e+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:  1.062e+00  1.759e-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:  8.472e-01  2.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 343.308 -12.542

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/569762/cmap_HighResolution_514857601_515116801_4FGL_J2253.2-1232_daily_bin1063.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.43e-02', job_status='DONE', photon_flux_upper_limit='1.82e-07', time_completed='2021-09-29 01:51:04.871788', job_id='569762', GAL2='1.06', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1632905464.87', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='8.12e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='1063' AND source_name='4FGL J2253.2-1232' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:51:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 569762: <4FGL_J2253.2-1232_daily_bin1063> in cluster <slac> Done

Job <4FGL_J2253.2-1232_daily_bin1063> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 01:35:53 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:35:55 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:35:55 2021
Terminated at Wed Sep 29 01:51:05 2021
Results reported at Wed Sep 29 01:51:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.2-1232_daily_bin1063 343.308 -12.5416 514857601 515116801 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 :                                   696.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

