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


Performing analysis on: 4FGL_J2253.2-1232_daily_bin1363
RA = 343.308, Dec = -12.5416
tmin = 592617601, tmax = 592876801
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='571296', job_status='RUN', time_executed='2021-09-29 01:43:36.365893', time_epoch_executed='1632905016.37' WHERE source_name='4FGL J2253.2-1232' and cadence='daily' and bin_id='1363'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571296

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571296/ft1_4FGL_J2253.2-1232_daily_bin1363.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571296/ft2_4FGL_J2253.2-1232_daily_bin1363.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571296/ft1_4FGL_J2253.2-1232_daily_bin1363.fits outfile=/scratch/kocevski/571296/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1363.fits ra=343.308 dec=-12.5416 rad=12.0 tmin=592617601.0 tmax=592876801.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.48
user 3.24
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/571296/ft2_4FGL_J2253.2-1232_daily_bin1363.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/571296/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1363.fits evtable="EVENTS" outfile="/scratch/kocevski/571296/ft1_filtered_4FGL_J2253.2-1232_daily_bin1363.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.51
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/571296/ft1_filtered_4FGL_J2253.2-1232_daily_bin1363.fits" evtable="EVENTS" scfile=/scratch/kocevski/571296/ft2_4FGL_J2253.2-1232_daily_bin1363.fits sctable="SC_DATA" outfile=/scratch/kocevski/571296/ltcube_592617601_592876801_4FGL_J2253.2-1232_daily_bin1363.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/571296/ft2_4FGL_J2253.2-1232_daily_bin1363.fits
.....................!
real 11.78
user 11.39
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571296/ft1_filtered_4FGL_J2253.2-1232_daily_bin1363.fits evtable="EVENTS" scfile=/scratch/kocevski/571296/ft2_4FGL_J2253.2-1232_daily_bin1363.fits sctable="SC_DATA" expcube=/scratch/kocevski/571296/ltcube_592617601_592876801_4FGL_J2253.2-1232_daily_bin1363.fits outfile=/scratch/kocevski/571296/expmap_592617601_592876801_4FGL_J2253.2-1232_daily_bin1363.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/571296/ltcube_592617601_592876801_4FGL_J2253.2-1232_daily_bin1363.fits
.....................!
real 190.59
user 185.08
sys 5.11

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/571296/ft1_filtered_4FGL_J2253.2-1232_daily_bin1363.fits scfile=/scratch/kocevski/571296/ft2_4FGL_J2253.2-1232_daily_bin1363.fits outfile=/scratch/kocevski/571296/cmap_592617601_592876801_4FGL_J2253.2-1232_daily_bin1363.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/571296/ft1_filtered_4FGL_J2253.2-1232_daily_bin1363.fits scfile=/scratch/kocevski/571296/ft2_4FGL_J2253.2-1232_daily_bin1363.fits outfile=/scratch/kocevski/571296/cmap_HighResolution_592617601_592876801_4FGL_J2253.2-1232_daily_bin1363.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/571296/ft1_filtered_4FGL_J2253.2-1232_daily_bin1363.fits evtable="EVENTS" scfile=/scratch/kocevski/571296/ft2_4FGL_J2253.2-1232_daily_bin1363.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/571296/Model_4FGL_J2253.2-1232_daily_bin1363.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/571296/ft1_filtered_4FGL_J2253.2-1232_daily_bin1363.fits.....................!
real 53.52
user 51.97
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.709       1.0000         .10000E-03   10000.    
     2 'Prefactor '    103.76       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.6255       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0742       1.0000         .10000E-03   10000.    
     8 'norm      '    .72955       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11751E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    12.699       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3471       1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.594       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2672       1.0000         .10000E-03   10000.    
    14 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.663       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.1437       1.0000         .10000E-03   10000.    
    18 'norm      '    5.3160       1.0000         .10000E-03   10000.    
    19 'norm      '    .76404E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .20759E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .97515       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87469       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=   5915.684     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2721 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.705        14.147        .18583E-05   -.13112E-03
   2  Prefactor     103.75        91.853       -.82768E-06   -.12784E-04
   3  Prefactor     .10000E-03    1.4572       -.76001E-08** at limit **
   4  Prefactor     .10000E-03    24.670        .10676E-06** at limit **
   5  norm          2.6242        4.1172        .31391E-06   -.50160E-04
   6  Prefactor     .10000E-03    29.980       -.12155E-05** at limit **
   7  Prefactor     3.0702        12.063        .93044E-06   -.17234E-04
   8  norm          .72926        .66595       -.27258E-08    .37846E-04
   9  Prefactor     .10000E-03    42.319       -.66927E-06** at limit **
  10  norm          12.709        2.8326       -.26115E-06   -.49861E-03
  11  Prefactor     1.1020        583.69        .15859E-04    .12678E-04
  12  Prefactor     23.607        14.523       -.20002E-06   -.47446E-04
  13  Prefactor     3.2682        7.8513       -.25133E-07   -.70554E-04
  14  norm          .10000E-03    9.3070        .37243E-07** at limit **
  15  Prefactor     13.721        138.64        .30234E-05    .40047E-04
  16  Prefactor     .10000E-03    9.1360        .98507E-09** at limit **
  17  Prefactor     7.1310        16.363       -.48132E-06    .89423E-04
  18  norm          5.3157        2.2327       -.61888E-07    .27958E-03
  19  norm          .10005E-03    5.0951       -.18555E-06** at limit **
  20  Prefactor     .10000E-03    97.521        .45658E-06** at limit **
  21  Prefactor     .10000E-03    7.8672        .31318E-07** at limit **
  22  Prefactor     .10000E-03    32.828        .17595E-05** at limit **
  23  Normalizat    .97545        .21462       -.20078E-05    .37986E-04
  24  Prefactor     .87465        .15582        .68022E-06   -.86959E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.705
  Prefactor  = 103.753
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.62416
  Prefactor  = 0.0001
  Prefactor  = 3.07015
  norm       = 0.729261
  Prefactor  = 0.0001
  norm       = 12.7086
  Prefactor  = 1.10204
  Prefactor  = 23.6074
  Prefactor  = 3.2682
  norm       = 0.0001
  Prefactor  = 13.7208
  Prefactor  = 0.0001
  Prefactor  = 7.13101
  norm       = 5.31575
  norm       = 0.000100049
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.975453
  Prefactor  = 0.87465
 **********
 **   18 **HESSE 
 **********

 FCN=   5915.684     FROM HESSE     STATUS=OK           401 CALLS     3122 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.705        13.839        .61216E-03   -1.5053    
   2  Prefactor     103.75        91.489        .39474E-04   -1.3667    
   3  Prefactor     .10000E-03    1.4661        .90652E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.6242        4.0880        .18080E-03   -1.5384    
   6  Prefactor     .10000E-03    30.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0702        12.069        .23134E-03   -1.5358    
   8  norm          .72926        .68823        .57802E-03   -1.5537    
   9  Prefactor     .10000E-03    42.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          12.709        2.6972        .42943E-04   -1.4995    
  11  Prefactor     1.1020        540.51        .37720E-03   -1.5498    
  12  Prefactor     23.607        14.472        .82464E-04   -1.4736    
  13  Prefactor     3.2682        7.8617        .22404E-03   -1.5346    
  14  norm          .10000E-03    9.3585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.721        138.69        .10836E-03   -1.4967    
  16  Prefactor     .10000E-03    9.1426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.1310        15.721        .15008E-03   -1.5174    
  18  norm          5.3157        2.1705        .68394E-04   -1.5247    
  19  norm          .10005E-03    39.193        .29898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    98.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.8880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    33.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .97545        .24043        .28638E-03   -.93857    
  24  Prefactor     .87465        .17728        .23155E-03   -.97033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42419e-09
Minuit parameter uncertainties:
  1  13.8427
  2  91.6135
  3  5.72776e-07
  4  1.37277e-05
  5  4.08845
  6  9.13764e-05
  7  12.0781
  8  0.688241
  9  8.45129e-05
  10  2.6972
  11  49.2638
  12  14.4738
  13  7.86423
  14  9.86881e-06
  15  87.5079
  16  3.36864e-06
  17  15.7304
  18  2.17057
  19  0.00277303
  20  0.000225781
  21  8.28884e-06
  22  0.000146214
  23  0.240697
  24  0.177393
Done.

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

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  1.102e+00  4.926e+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:  8.746e-01  1.774e-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:  9.755e-01  2.407e-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.70e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.33e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/571296/likelihoodResults_592617601_592876801_4FGL_J2253.2-1232_daily_bin1363.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) = 5915.65249515
delta logL = 0.0318960200675

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5915.65036488
delta logL = 0.0340262828549

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.456       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9787       1.0000          .0000       10.000    
     3 'Normalizat'    .97437       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87278       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=   5915.650     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      284 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.624        1458.6        .28375E-02    .95291E-04
   2  Index         1.9931        2.6966        .50000       -.71054E-05
   3  Normalizat    .97441        .29757E-01    .45845E-01    .11884E-04
   4  Prefactor     .87302        .22530E-01    .44657E-01    .84835E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.6238
  Index      = 1.99308
  Normalizat = 0.974413
  Prefactor  = 0.873016
 **********
 **   18 **HESSE 
 **********

 FCN=   5915.650     FROM HESSE     STATUS=OK            33 CALLS      317 TOTAL
                     EDM=   .76E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.624        50.112        .56749E-03   -1.4997    
   2  Index         1.9931        1.4699        .99539E-02   -.64523    
   3  Normalizat    .97441        .22459        .28643E-03   -.93893    
   4  Prefactor     .87302        .17351        .23162E-03   -.97090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.56104e-13
Minuit parameter uncertainties:
  1  50.2799
  2  1.50531
  3  0.224805
  4  0.173616
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571296': 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) = 5915.65030825
delta logL = 0.0340829182878

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  1.262e+01  5.028e+01  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  1.993e+00  1.505e+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:  8.730e-01  1.736e-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:  9.744e-01  2.248e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/571296/cmap_HighResolution_592617601_592876801_4FGL_J2253.2-1232_daily_bin1363.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', job_status='DONE', photon_flux_upper_limit='1.70e-07', time_completed='2021-09-29 01:55:26.154660', job_id='571296', GAL2='0.87', fit_tolerance='1e-08', EG2='0.97', EG='0.98', time_epoch_completed='1632905726.15', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='3.41e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='1363' AND source_name='4FGL J2253.2-1232' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:55:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 571296: <4FGL_J2253.2-1232_daily_bin1363> in cluster <slac> Done

Job <4FGL_J2253.2-1232_daily_bin1363> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 01:40:38 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:40:39 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:39 2021
Terminated at Wed Sep 29 01:55:26 2021
Results reported at Wed Sep 29 01:55:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.2-1232_daily_bin1363 343.308 -12.5416 592617601 592876801 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 :                                   615.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            888 sec.

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

