/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 = 7567
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2253.2-1232_daily_bin179
RA = 343.308, Dec = -12.5416
tmin = 285724801, tmax = 285984001
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='565234', job_status='RUN', time_executed='2021-09-29 01:24:02.252673', time_epoch_executed='1632903842.25' WHERE source_name='4FGL J2253.2-1232' and cadence='daily' and bin_id='179'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/565234

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/565234/ft1_4FGL_J2253.2-1232_daily_bin179.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/565234/ft2_4FGL_J2253.2-1232_daily_bin179.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/565234/ft1_4FGL_J2253.2-1232_daily_bin179.fits outfile=/scratch/kocevski/565234/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin179.fits ra=343.308 dec=-12.5416 rad=12.0 tmin=285724801.0 tmax=285984001.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 4.16
user 3.94
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/565234/ft1_filtered_4FGL_J2253.2-1232_daily_bin179.fits" evtable="EVENTS" scfile=/scratch/kocevski/565234/ft2_4FGL_J2253.2-1232_daily_bin179.fits sctable="SC_DATA" outfile=/scratch/kocevski/565234/ltcube_285724801_285984001_4FGL_J2253.2-1232_daily_bin179.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/565234/ft2_4FGL_J2253.2-1232_daily_bin179.fits
.....................!
real 11.92
user 11.53
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/565234/ft1_filtered_4FGL_J2253.2-1232_daily_bin179.fits evtable="EVENTS" scfile=/scratch/kocevski/565234/ft2_4FGL_J2253.2-1232_daily_bin179.fits sctable="SC_DATA" expcube=/scratch/kocevski/565234/ltcube_285724801_285984001_4FGL_J2253.2-1232_daily_bin179.fits outfile=/scratch/kocevski/565234/expmap_285724801_285984001_4FGL_J2253.2-1232_daily_bin179.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/565234/ltcube_285724801_285984001_4FGL_J2253.2-1232_daily_bin179.fits
.....................!
real 191.58
user 185.39
sys 5.82

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/565234/ft1_filtered_4FGL_J2253.2-1232_daily_bin179.fits scfile=/scratch/kocevski/565234/ft2_4FGL_J2253.2-1232_daily_bin179.fits outfile=/scratch/kocevski/565234/cmap_285724801_285984001_4FGL_J2253.2-1232_daily_bin179.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/565234/ft1_filtered_4FGL_J2253.2-1232_daily_bin179.fits scfile=/scratch/kocevski/565234/ft2_4FGL_J2253.2-1232_daily_bin179.fits outfile=/scratch/kocevski/565234/cmap_HighResolution_285724801_285984001_4FGL_J2253.2-1232_daily_bin179.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.047       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.7015       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11645E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .44745       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .30383E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .53334       1.0000         .10000E-03   10000.    
    19 'norm      '    .93989       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2718       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .76159       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=   6158.906     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2359 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.641        .14335E-05** at limit **
   2  Prefactor     .10000E-03    21.837        .99366E-05** at limit **
   3  Prefactor     10.047        5.3763       -.12106E-06   -.62788E-04
   4  Prefactor     .10000E-03    66.189        .55545E-04** at limit **
   5  norm          2.7013        3.1299       -.19597E-06   -.39153E-03
   6  Prefactor     .10000E-03    49.382       -.23321E-04** at limit **
   7  Prefactor     .10000E-03    5.3525        .53327E-06** at limit **
   8  norm          .10000E-03    .47624       -.45011E-07** at limit **
   9  Prefactor     .10000E-03    16.054       -.10598E-04** at limit **
  10  norm          .44782        .69225        .50394E-07    .11713E-02
  11  Prefactor     .10000E-03    6.8427       -.20663E-06** at limit **
  12  Prefactor     .10000E-03    4.0734       -.22734E-06** at limit **
  13  Prefactor     .10000E-03    3.3582       -.25357E-07** at limit **
  14  norm          .10007E-03    7.5479       -.13016E-05** at limit **
  15  Prefactor     .10000E-03    25.026       -.19644E-04** at limit **
  16  Prefactor     .10000E-03    21.095        .13870E-04** at limit **
  17  Prefactor     .10000E-03    4.6289       -.23111E-05** at limit **
  18  norm          .53373        1.2053       -.11099E-06   -.94951E-03
  19  norm          .93952        5.5130       -.21766E-05   -.10338E-02
  20  Prefactor     .10000E-03    17.420        .44263E-05** at limit **
  21  Prefactor     .10000E-03    4.5493        .20795E-05** at limit **
  22  Prefactor     .10000E-03    122.16       -.50922E-04** at limit **
  23  Normalizat    1.2718        .17499        .24642E-06    .31088E-03
  24  Prefactor     .76158        .13856        .39746E-06    .29223E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0471
  Prefactor  = 0.0001
  norm       = 2.70131
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.447819
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100066
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.533732
  norm       = 0.939522
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.27179
  Prefactor  = 0.761583
 **********
 **   18 **HESSE 
 **********

 FCN=   6158.906     FROM HESSE     STATUS=OK           389 CALLS     2748 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    21.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.047        5.3657        .12634E-03   -1.5074    
   4  Prefactor     .10000E-03    65.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.7013        3.1161        .14194E-03   -1.5379    
   6  Prefactor     .10000E-03    49.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.3823        .17731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.2091        .10431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.302        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .44782        .58843        .76971E-03   -1.5574    
  11  Prefactor     .10000E-03    6.8596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.0946        .15468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.3703        .14044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10007E-03    37.367        .41586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    21.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.6465        .16449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .53373        1.1621        .12101E-03   -1.5562    
  19  norm          .93952        5.5511        .34708E-03   -1.5514    
  20  Prefactor     .10000E-03    17.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.5548        .16345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    122.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2718        .20734        .22942E-03   -.84412    
  24  Prefactor     .76158        .16350        .22550E-03   -1.0116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59076e-09
Minuit parameter uncertainties:
  1  2.17372e-05
  2  2.22674e-06
  3  5.36596
  4  0.000204465
  5  3.11624
  6  2.28266e-05
  7  3.78858e-06
  8  6.27643e-06
  9  0.000120106
  10  0.588439
  11  6.33271e-06
  12  8.45226e-08
  13  9.23172e-07
  14  0.00314145
  15  7.32285e-05
  16  4.52107e-05
  17  3.59017e-05
  18  1.16215
  19  4.56785
  20  1.17878e-05
  21  3.38385e-06
  22  0.000359727
  23  0.207478
  24  0.163599
Done.

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

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  6.333e-06  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.616e-01  1.636e-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.272e+00  2.075e-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: 5.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/565234/likelihoodResults_285724801_285984001_4FGL_J2253.2-1232_daily_bin179.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) = 6158.90687821
delta logL = -0.00069394572165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6158.9061848
delta logL = -5.34747414349e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11167E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6153       1.0000          .0000       10.000    
     3 'Normalizat'    1.2718       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76157       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=   6158.906     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      246 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10400E-03    6.4362        .18142E-01** at limit **
   2  Index         2.5173        6.1077        .50000        .32510E-04
   3  Normalizat    1.2718        .39903E-02    .22942E-03    .40139E-05
   4  Prefactor     .76158        .31346E-02    .22550E-03    .36299E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104004
  Index      = 2.51728
  Normalizat = 1.27179
  Prefactor  = 0.761583
 **********
 **   18 **HESSE 
 **********

 FCN=   6158.906     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10400E-03    58.464        .21636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5173        5.0129        .50000       -.51961    
   3  Normalizat    1.2718        .12050E-01    .91767E-05   -.84412    
   4  Prefactor     .76158        .94664E-02    .90200E-05   -1.0116    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.38628e-09
Minuit parameter uncertainties:
  1  0.030631
  2  254.575
  3  0.0120504
  4  0.0094664
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/565234': 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) = 6158.90618343
delta logL = 8.32807018014e-07

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  1.040e-04  3.063e-02  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.517e+00  2.546e+02  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.616e-01  9.466e-03  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.272e+00  1.205e-02  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/565234/cmap_HighResolution_285724801_285984001_4FGL_J2253.2-1232_daily_bin179.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.47e-03', job_status='DONE', photon_flux_upper_limit='5.69e-08', time_completed='2021-09-29 01:34:03.498917', job_id='565234', GAL2='0.76', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1632904443.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='8.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='179' AND source_name='4FGL J2253.2-1232' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:34:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 565234: <4FGL_J2253.2-1232_daily_bin179> in cluster <slac> Done

Job <4FGL_J2253.2-1232_daily_bin179> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 01:20:36 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:20:37 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:20:37 2021
Terminated at Wed Sep 29 01:34:04 2021
Results reported at Wed Sep 29 01:34:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.2-1232_daily_bin179 343.308 -12.5416 285724801 285984001 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 :                                   599.50 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            808 sec.

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

