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


Performing analysis on: 4FGL_J2253.2-1232_daily_bin1089
RA = 343.308, Dec = -12.5416
tmin = 521596801, tmax = 521856001
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='569788', job_status='RUN', time_executed='2021-09-29 01:37:20.653793', time_epoch_executed='1632904640.65' WHERE source_name='4FGL J2253.2-1232' and cadence='daily' and bin_id='1089'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/569788

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/569788/ft1_4FGL_J2253.2-1232_daily_bin1089.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/569788/ft2_4FGL_J2253.2-1232_daily_bin1089.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/569788/ft1_4FGL_J2253.2-1232_daily_bin1089.fits outfile=/scratch/kocevski/569788/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1089.fits ra=343.308 dec=-12.5416 rad=12.0 tmin=521596801.0 tmax=521856001.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.40
user 4.16
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/569788/ft1_filtered_4FGL_J2253.2-1232_daily_bin1089.fits" evtable="EVENTS" scfile=/scratch/kocevski/569788/ft2_4FGL_J2253.2-1232_daily_bin1089.fits sctable="SC_DATA" outfile=/scratch/kocevski/569788/ltcube_521596801_521856001_4FGL_J2253.2-1232_daily_bin1089.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/569788/ft2_4FGL_J2253.2-1232_daily_bin1089.fits
.....................!
real 11.94
user 11.57
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/569788/ft1_filtered_4FGL_J2253.2-1232_daily_bin1089.fits evtable="EVENTS" scfile=/scratch/kocevski/569788/ft2_4FGL_J2253.2-1232_daily_bin1089.fits sctable="SC_DATA" expcube=/scratch/kocevski/569788/ltcube_521596801_521856001_4FGL_J2253.2-1232_daily_bin1089.fits outfile=/scratch/kocevski/569788/expmap_521596801_521856001_4FGL_J2253.2-1232_daily_bin1089.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/569788/ltcube_521596801_521856001_4FGL_J2253.2-1232_daily_bin1089.fits
.....................!
real 191.70
user 186.18
sys 5.21

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/569788/ft1_filtered_4FGL_J2253.2-1232_daily_bin1089.fits scfile=/scratch/kocevski/569788/ft2_4FGL_J2253.2-1232_daily_bin1089.fits outfile=/scratch/kocevski/569788/cmap_521596801_521856001_4FGL_J2253.2-1232_daily_bin1089.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/569788/ft1_filtered_4FGL_J2253.2-1232_daily_bin1089.fits scfile=/scratch/kocevski/569788/ft2_4FGL_J2253.2-1232_daily_bin1089.fits outfile=/scratch/kocevski/569788/cmap_HighResolution_521596801_521856001_4FGL_J2253.2-1232_daily_bin1089.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.077       1.0000         .10000E-03   10000.    
     2 'Prefactor '    166.27       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.7922       1.0000         .10000E-03   10000.    
     6 'Prefactor '    111.18       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.969       1.0000         .10000E-03   10000.    
     8 'norm      '    .15475       1.0000         .10000E-03   10000.    
     9 'Prefactor '    53.146       1.0000         .10000E-03   10000.    
    10 'norm      '    7.2943       1.0000         .10000E-03   10000.    
    11 'Prefactor '    42.992       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10299E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    23.483       1.0000         .10000E-03   10000.    
    15 'Prefactor '    132.19       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.021       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    9.2453       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .15789E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    52.792       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2957       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78687       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=   7654.018     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2808 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.080        12.535       -.25525E-07   -.36130E-04
   2  Prefactor     166.13        103.34       -.47388E-06   -.28353E-04
   3  Prefactor     .10000E-03    1.3553       -.22438E-06** at limit **
   4  Prefactor     .10000E-03    10.900        .29813E-07** at limit **
   5  norm          9.7991        5.3069       -.17249E-07   -.52525E-04
   6  Prefactor     111.00        88.286       -.14213E-06   -.17379E-04
   7  Prefactor     11.953        13.479        .13151E-06   -.59614E-05
   8  norm          .15424        .53754        .16518E-06   -.35578E-03
   9  Prefactor     52.944        52.053        .48545E-05   -.44540E-04
  10  norm          7.3104        4.0945       -.10364E-05   -.18517E-03
  11  Prefactor     42.984        56.596       -.58032E-06   -.28855E-04
  12  Prefactor     .10000E-03    6.1419        .76091E-06** at limit **
  13  Prefactor     .10000E-03    8.0589        .11278E-05** at limit **
  14  norm          23.509        13.898       -.36354E-08   -.46289E-06
  15  Prefactor     131.96        80.259        .63610E-06   -.19166E-04
  16  Prefactor     .10000E-03    6.7136        .75844E-07** at limit **
  17  Prefactor     15.034        13.823       -.31837E-06   -.36082E-04
  18  norm          .10000E-03    .40406       -.35269E-07** at limit **
  19  norm          9.2475        7.2047        .31868E-07   -.12949E-04
  20  Prefactor     .10000E-03    87.836        .11323E-05** at limit **
  21  Prefactor     .10000E-03    4.3768        .57218E-07** at limit **
  22  Prefactor     52.735        90.253        .25285E-06   -.45689E-05
  23  Normalizat    1.2966        .21641       -.13903E-05   -.27897E-04
  24  Prefactor     .78631        .15564        .80072E-06   -.11509E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.0798
  Prefactor  = 166.128
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.7991
  Prefactor  = 110.997
  Prefactor  = 11.9525
  norm       = 0.154235
  Prefactor  = 52.9437
  norm       = 7.31044
  Prefactor  = 42.9839
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.5092
  Prefactor  = 131.955
  Prefactor  = 0.0001
  Prefactor  = 15.0337
  norm       = 0.0001
  norm       = 9.24748
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.7347
  Normalizat = 1.29655
  Prefactor  = 0.78631
 **********
 **   18 **HESSE 
 **********

 FCN=   7654.018     FROM HESSE     STATUS=OK           405 CALLS     3213 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.080        12.543        .91700E-04   -1.4834    
   2  Prefactor     166.13        103.27        .15641E-03   -1.3123    
   3  Prefactor     .10000E-03    1.3641        .99498E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.7991        5.3051        .12806E-03   -1.5082    
   6  Prefactor     111.00        88.337        .19074E-03   -1.3597    
   7  Prefactor     11.953        13.547        .11579E-03   -1.5016    
   8  norm          .15424        .75427        .11151E-02   -1.5629    
   9  Prefactor     52.944        52.128        .55018E-04   -1.4251    
  10  norm          7.3104        4.1136        .59373E-04   -1.5167    
  11  Prefactor     42.984        56.556        .61141E-04   -1.4396    
  12  Prefactor     .10000E-03    6.1950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.1733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          23.509        13.903        .82660E-04   -1.4738    
  15  Prefactor     131.96        80.474        .17511E-03   -1.3405    
  16  Prefactor     .10000E-03    6.7154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.034        13.806        .10334E-03   -1.4932    
  18  norm          .10000E-03    .40904        .54271E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.2475        7.1933        .13181E-03   -1.5100    
  20  Prefactor     .10000E-03    88.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.3795        .17876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     52.735        90.304        .55201E-04   -1.4254    
  23  Normalizat    1.2966        .25260        .28758E-03   -.83669    
  24  Prefactor     .78631        .18124        .27069E-03   -1.0023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58956e-08
Minuit parameter uncertainties:
  1  12.5447
  2  103.382
  3  3.258e-06
  4  6.1166e-07
  5  5.30533
  6  88.4415
  7  13.5507
  8  0.681953
  9  52.1728
  10  4.1138
  11  56.6264
  12  2.92908e-05
  13  4.16864e-05
  14  13.9054
  15  80.5408
  16  3.37945e-06
  17  13.8092
  18  9.37693e-08
  19  7.19398
  20  0.000200858
  21  2.70885e-06
  22  90.5392
  23  0.252839
  24  0.181375
Done.

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

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  4.298e+01  5.663e+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:  7.863e-01  1.814e-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.297e+00  2.528e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.16
Ra Dec: 343.308 -12.542
Photon Index (Fixed Index): 2.65 +/- 0.00
Photon Flux (Fixed Index): 8.52e-08 +/- 1.12e-07
Energy Flux (Fixed Index): 2.14e-05 +/- 2.82e-05

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

Saving results to:
/scratch/kocevski/569788/likelihoodResults_521596801_521856001_4FGL_J2253.2-1232_daily_bin1089.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) = 7653.6303859
delta logL = 0.38750974188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7653.62129243
delta logL = 0.396603212974

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.101       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5681       1.0000          .0000       10.000    
     3 'Normalizat'    1.2538       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81059       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7653.621     FROM MIGRAD    STATUS=FAILED       104 CALLS      307 TOTAL
                     EDM=   .82E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.040        331.62        .55334E-03   -.11413E-03
   2  Index         3.5710        6.7534        .55665E-02    .76911E-03
   3  Normalizat    1.2537        .22216        .29138E-03   -.20211E-04
   4  Prefactor     .81049        .16932        .26709E-03   -.43034E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7653.621     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      396 TOTAL
                     EDM=   .92E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.040        331.62        .34677E-03   -.11413E-03
   2  Index         3.5710        6.7534        .81113E-03    .76911E-03
   3  Normalizat    1.2537        .22216        .14332E-03   -.20211E-04
   4  Prefactor     .81049        .16932        .10910E-03   -.43034E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7653.621     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      425 TOTAL
                     EDM=   .98E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.040        31.682        .22133E-04   -.96257E-04
   2  Index         3.5710        1.2707        .11133E-02   -.31279E-04
   3  Normalizat    1.2537        .24238        .11655E-04   -.18143E-04
   4  Prefactor     .81049        .17893        .10684E-04   -.40224E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.0398
  Index      = 3.57099
  Normalizat = 1.25372
  Prefactor  = 0.81049
 **********
 **   18 **HESSE 
 **********

 FCN=   7653.621     FROM HESSE     STATUS=OK            23 CALLS      448 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.040        28.053        .44267E-05   -1.4986    
   2  Index         3.5710        1.1274        .44532E-04   -.28984    
   3  Normalizat    1.2537        .24206        .23310E-05   -.84958    
   4  Prefactor     .81049        .17865        .21367E-05   -.99343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02242e-11
Minuit parameter uncertainties:
  1  28.0815
  2  1.13806
  3  0.242273
  4  0.178778
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/569788': 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) = 7653.62128814
delta logL = 0.396607504064

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  1.304e+01  2.808e+01  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  3.571e+00  1.138e+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.105e-01  1.788e-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.254e+00  2.423e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.18
Ra Dec: 343.308 -12.542
Photon Index (Free Index): 3.57 +/- 1.14
Photon Flux (Free Index): 1.25e-07 +/- 9.42e-08
Energy Flux (Free Index): 2.05e-05 +/- 1.62e-05

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/569788/cmap_HighResolution_521596801_521856001_4FGL_J2253.2-1232_daily_bin1089.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.84e-02', comment='SUCCESS', photon_flux='8.52e-08', energy_flux2='2.05e-05', photon_flux_error='1.12e-07', dlogl='3.97e-01', energy_flux='2.14e-05', photon_flux2='1.25e-07', job_status='DONE', time_completed='2021-09-29 01:50:34.762307', photon_index_error2='1.14', photon_index2='3.57', ts='1.16', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='2.34e-07', energy_flux_error2='1.62e-05', EG='1.30', time_epoch_completed='1632905434.76', return_code='0', job_id='569788', GAL2='0.81', EG2='1.25', return_code2='0', energy_flux_error='2.82e-05', photon_flux_error2='9.42e-08', ts2='2.18', photon_index='2.65' WHERE bin_id='1089' AND source_name='4FGL J2253.2-1232' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:50:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 569788: <4FGL_J2253.2-1232_daily_bin1089> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.2-1232_daily_bin1089 343.308 -12.5416 521596801 521856001 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 :                                   747.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            878 sec.

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

