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


Performing analysis on: 4FGL_J2253.2-1232_daily_bin1428
RA = 343.308, Dec = -12.5416
tmin = 609465601, tmax = 609724801
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='571398', job_status='RUN', time_executed='2021-09-29 01:42:15.948474', time_epoch_executed='1632904935.95' WHERE source_name='4FGL J2253.2-1232' and cadence='daily' and bin_id='1428'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571398

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571398/ft1_4FGL_J2253.2-1232_daily_bin1428.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571398/ft2_4FGL_J2253.2-1232_daily_bin1428.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571398/ft1_4FGL_J2253.2-1232_daily_bin1428.fits outfile=/scratch/kocevski/571398/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1428.fits ra=343.308 dec=-12.5416 rad=12.0 tmin=609465601.0 tmax=609724801.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 2.88
user 2.66
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/571398/ft1_filtered_4FGL_J2253.2-1232_daily_bin1428.fits" evtable="EVENTS" scfile=/scratch/kocevski/571398/ft2_4FGL_J2253.2-1232_daily_bin1428.fits sctable="SC_DATA" outfile=/scratch/kocevski/571398/ltcube_609465601_609724801_4FGL_J2253.2-1232_daily_bin1428.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/571398/ft2_4FGL_J2253.2-1232_daily_bin1428.fits
.....................!
real 13.35
user 12.98
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571398/ft1_filtered_4FGL_J2253.2-1232_daily_bin1428.fits evtable="EVENTS" scfile=/scratch/kocevski/571398/ft2_4FGL_J2253.2-1232_daily_bin1428.fits sctable="SC_DATA" expcube=/scratch/kocevski/571398/ltcube_609465601_609724801_4FGL_J2253.2-1232_daily_bin1428.fits outfile=/scratch/kocevski/571398/expmap_609465601_609724801_4FGL_J2253.2-1232_daily_bin1428.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/571398/ltcube_609465601_609724801_4FGL_J2253.2-1232_daily_bin1428.fits
.....................!
real 191.81
user 186.70
sys 4.68

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/571398/ft1_filtered_4FGL_J2253.2-1232_daily_bin1428.fits scfile=/scratch/kocevski/571398/ft2_4FGL_J2253.2-1232_daily_bin1428.fits outfile=/scratch/kocevski/571398/cmap_609465601_609724801_4FGL_J2253.2-1232_daily_bin1428.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=343.308 yref=-12.5416 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/571398/ft1_filtered_4FGL_J2253.2-1232_daily_bin1428.fits scfile=/scratch/kocevski/571398/ft2_4FGL_J2253.2-1232_daily_bin1428.fits outfile=/scratch/kocevski/571398/cmap_HighResolution_609465601_609724801_4FGL_J2253.2-1232_daily_bin1428.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/571398/ft1_filtered_4FGL_J2253.2-1232_daily_bin1428.fits evtable="EVENTS" scfile=/scratch/kocevski/571398/ft2_4FGL_J2253.2-1232_daily_bin1428.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/571398/Model_4FGL_J2253.2-1232_daily_bin1428.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/571398/ft1_filtered_4FGL_J2253.2-1232_daily_bin1428.fits.....................!
real 54.96
user 53.45
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.142       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.4738       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.7272       1.0000         .10000E-03   10000.    
     8 'norm      '    .44557       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20413E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    11.768       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.1331       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2932       1.0000         .10000E-03   10000.    
    14 'norm      '    46.091       1.0000         .10000E-03   10000.    
    15 'Prefactor '    32.367       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    57.719       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10969E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1343       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78137       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=   5960.180     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2729 TOTAL
                     EDM=   .88E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.142        16.673        .58183E-07    .83721E-04
   2  Prefactor     .10000E-03    169.57       -.35926E-05** at limit **
   3  Prefactor     .10000E-03    2.9611        .14524E-07** at limit **
   4  Prefactor     .10000E-03    41.759       -.32759E-05** at limit **
   5  norm          4.4735        4.3410       -.42186E-07    .59590E-04
   6  Prefactor     .10000E-03    68.549        .21341E-05** at limit **
   7  Prefactor     3.7291        11.908       -.20235E-06    .58439E-05
   8  norm          .44551        .47549        .27174E-07    .18874E-03
   9  Prefactor     .10000E-03    109.51        .18170E-04** at limit **
  10  norm          11.763        1.9672        .56875E-07   -.13315E-04
  11  Prefactor     .10000E-03    17.435       -.21688E-06** at limit **
  12  Prefactor     8.1329        9.7969       -.30207E-07    .17360E-05
  13  Prefactor     3.2930        8.3381       -.19365E-05    .89493E-05
  14  norm          46.092        18.457       -.46754E-07   -.43393E-05
  15  Prefactor     32.366        39.001       -.16773E-06   -.67019E-05
  16  Prefactor     .10000E-03    13.294       -.62209E-07** at limit **
  17  Prefactor     .10000E-03    5.8419        .28924E-07** at limit **
  18  norm          .10000E-03    .51757        .72550E-08** at limit **
  19  norm          .10000E-03    3.5295        .18326E-07** at limit **
  20  Prefactor     57.722        61.712       -.13956E-06   -.13179E-04
  21  Prefactor     .10000E-03    15.524        .10715E-06** at limit **
  22  Prefactor     .10000E-03    34.574        .20148E-05** at limit **
  23  Normalizat    1.1340        .21158        .40779E-06    .50639E-04
  24  Prefactor     .78153        .15347       -.13998E-07    .74405E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.1421
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.47346
  Prefactor  = 0.0001
  Prefactor  = 3.72913
  norm       = 0.445507
  Prefactor  = 0.0001
  norm       = 11.7632
  Prefactor  = 0.0001
  Prefactor  = 8.1329
  Prefactor  = 3.29302
  norm       = 46.0919
  Prefactor  = 32.3662
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 57.722
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13399
  Prefactor  = 0.78153
 **********
 **   18 **HESSE 
 **********

 FCN=   5960.180     FROM HESSE     STATUS=OK           397 CALLS     3126 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.142        16.740        .78351E-04   -1.4685    
   2  Prefactor     .10000E-03    170.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.0062        .12959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    41.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.4735        4.3362        .14759E-03   -1.5285    
   6  Prefactor     .10000E-03    68.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.7291        11.928        .20916E-03   -1.5322    
   8  norm          .44551        .47482        .53273E-04   -1.5574    
   9  Prefactor     .10000E-03    109.09        .61789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          11.763        1.9859        .41984E-04   -1.5022    
  11  Prefactor     .10000E-03    17.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.1329        9.7955        .14058E-03   -1.5138    
  13  Prefactor     3.2930        8.3413        .11155E-02   -1.5345    
  14  norm          46.092        18.463        .59058E-04   -1.4349    
  15  Prefactor     32.366        38.971        .70431E-04   -1.4570    
  16  Prefactor     .10000E-03    13.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.8640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .53253        .10845E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.5687        .14159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     57.722        62.193        .52805E-04   -1.4187    
  21  Prefactor     .10000E-03    15.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    34.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1340        .25240        .27052E-03   -.88668    
  24  Prefactor     .78153        .18185        .24233E-03   -1.0041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56618e-11
Minuit parameter uncertainties:
  1  16.743
  2  8.48408e-05
  3  9.52659e-07
  4  6.53601e-06
  5  4.33648
  6  3.59876e-06
  7  11.9354
  8  0.474825
  9  1.52249e-05
  10  1.98595
  11  3.751e-07
  12  9.7974
  13  8.34421
  14  18.4649
  15  39.0015
  16  4.36042e-06
  17  2.51448e-06
  18  1.06858e-08
  19  4.62757e-07
  20  62.2628
  21  2.40719e-05
  22  1.20588e-05
  23  0.252673
  24  0.181989
Done.

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

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  3.751e-07  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.815e-01  1.820e-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.134e+00  2.527e-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.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/571398/likelihoodResults_609465601_609724801_4FGL_J2253.2-1232_daily_bin1428.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) = 5960.17979632
delta logL = -0.000272907993349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5960.17952518
delta logL = -1.76175126398e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2799       1.0000          .0000       10.000    
     3 'Normalizat'    1.1340       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78153       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=   5960.180     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      277 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10626E-03    2.7619        .18142E-01** at limit **
   2  Index         3.1204        6.4986        .50000        .16948E-04
   3  Normalizat    1.1340        .23700E-02    .27052E-03    .50556E-04
   4  Prefactor     .78153        .18060E-02    .24233E-03    .24348E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106264
  Index      = 3.12036
  Normalizat = 1.13399
  Prefactor  = 0.78153
 **********
 **   18 **HESSE 
 **********

 FCN=   5960.180     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10626E-03    476.58        .53468E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1204        6.5252        .50000       -.38540    
   3  Normalizat    1.1340        .32289E-01    .10821E-04   -.88668    
   4  Prefactor     .78153        .24600E-01    .96932E-05   -1.0041    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.49792e-08
Minuit parameter uncertainties:
  1  0.110167
  2  1199.84
  3  0.0322894
  4  0.0246008
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571398': 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) = 5960.17952467
delta logL = -1.25473798107e-06

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  1.063e-04  1.102e-01  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  3.120e+00  1.200e+03  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.815e-01  2.460e-02  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.134e+00  3.229e-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/571398/cmap_HighResolution_609465601_609724801_4FGL_J2253.2-1232_daily_bin1428.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.10e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-09-29 01:53:07.793506', job_id='571398', GAL2='0.78', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1632905587.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='-1.25e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='1428' AND source_name='4FGL J2253.2-1232' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:53:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 571398: <4FGL_J2253.2-1232_daily_bin1428> in cluster <slac> Done

Job <4FGL_J2253.2-1232_daily_bin1428> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 01:40:45 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:40:47 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:47 2021
Terminated at Wed Sep 29 01:53:08 2021
Results reported at Wed Sep 29 01:53:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.2-1232_daily_bin1428 343.308 -12.5416 609465601 609724801 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 :                                   623.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            743 sec.

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

