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


Performing analysis on: 4FGL_J2253.2-1232_daily_bin589
RA = 343.308, Dec = -12.5416
tmin = 391996801, tmax = 392256001
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='567921', job_status='RUN', time_executed='2021-09-29 01:32:38.865330', time_epoch_executed='1632904358.87' WHERE source_name='4FGL J2253.2-1232' and cadence='daily' and bin_id='589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/567921

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/567921/ft1_4FGL_J2253.2-1232_daily_bin589.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/567921/ft2_4FGL_J2253.2-1232_daily_bin589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/567921/ft1_4FGL_J2253.2-1232_daily_bin589.fits outfile=/scratch/kocevski/567921/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin589.fits ra=343.308 dec=-12.5416 rad=12.0 tmin=391996801.0 tmax=392256001.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 5.36
user 5.10
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/567921/ft1_filtered_4FGL_J2253.2-1232_daily_bin589.fits" evtable="EVENTS" scfile=/scratch/kocevski/567921/ft2_4FGL_J2253.2-1232_daily_bin589.fits sctable="SC_DATA" outfile=/scratch/kocevski/567921/ltcube_391996801_392256001_4FGL_J2253.2-1232_daily_bin589.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/567921/ft2_4FGL_J2253.2-1232_daily_bin589.fits
.....................!
real 11.61
user 11.26
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/567921/ft1_filtered_4FGL_J2253.2-1232_daily_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/567921/ft2_4FGL_J2253.2-1232_daily_bin589.fits sctable="SC_DATA" expcube=/scratch/kocevski/567921/ltcube_391996801_392256001_4FGL_J2253.2-1232_daily_bin589.fits outfile=/scratch/kocevski/567921/expmap_391996801_392256001_4FGL_J2253.2-1232_daily_bin589.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/567921/ltcube_391996801_392256001_4FGL_J2253.2-1232_daily_bin589.fits
.....................!
real 192.47
user 187.24
sys 4.86

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/567921/ft1_filtered_4FGL_J2253.2-1232_daily_bin589.fits scfile=/scratch/kocevski/567921/ft2_4FGL_J2253.2-1232_daily_bin589.fits outfile=/scratch/kocevski/567921/cmap_391996801_392256001_4FGL_J2253.2-1232_daily_bin589.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/567921/ft1_filtered_4FGL_J2253.2-1232_daily_bin589.fits scfile=/scratch/kocevski/567921/ft2_4FGL_J2253.2-1232_daily_bin589.fits outfile=/scratch/kocevski/567921/cmap_HighResolution_391996801_392256001_4FGL_J2253.2-1232_daily_bin589.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/567921/ft1_filtered_4FGL_J2253.2-1232_daily_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/567921/ft2_4FGL_J2253.2-1232_daily_bin589.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/567921/Model_4FGL_J2253.2-1232_daily_bin589.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/567921/ft1_filtered_4FGL_J2253.2-1232_daily_bin589.fits.....................!
real 57.40
user 56.10
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.253       1.0000         .10000E-03   10000.    
     5 'norm      '    .25876E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8471       1.0000         .10000E-03   10000.    
     8 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.215       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    16.078       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.3934       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .86917       1.0000         .10000E-03   10000.    
    18 'norm      '    5.5690       1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.048       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.313       1.0000         .10000E-03   10000.    
    22 'Prefactor '    68.042       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0157       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .82666       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=   6659.371     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2717 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.398        .13559E-06** at limit **
   2  Prefactor     .10000E-03    28.540        .16103E-05** at limit **
   3  Prefactor     .10000E-03    1.3472        .35538E-07** at limit **
   4  Prefactor     13.203        42.622        .65370E-05    .79435E-04
   5  norm          .10000E-03    1.3159        .63805E-06** at limit **
   6  Prefactor     .10000E-03    33.259       -.17993E-05** at limit **
   7  Prefactor     3.8474        8.6438        .21627E-06    .75754E-04
   8  norm          .10000E-03    .24965       -.14192E-06** at limit **
   9  Prefactor     .10000E-03    3.3109        .89993E-07** at limit **
  10  norm          .10000E-03    .20995        .47870E-08** at limit **
  11  Prefactor     .10000E-03    9.0244        .24679E-06** at limit **
  12  Prefactor     13.215        8.4667        .11882E-06   -.67553E-04
  13  Prefactor     .10000E-03    3.2176        .86120E-07** at limit **
  14  norm          16.077        11.312        .16781E-06   -.35822E-04
  15  Prefactor     5.3424        102.58       -.35525E-04    .21896E-04
  16  Prefactor     .10000E-03    5.8426        .38619E-07** at limit **
  17  Prefactor     .89368        25.151        .22778E-04   -.84062E-04
  18  norm          5.5690        1.6921       -.21578E-06   -.53070E-03
  19  norm          .10000E-03    2.1920        .47145E-06** at limit **
  20  Prefactor     28.039        27.261        .49277E-06    .19116E-04
  21  Prefactor     17.314        11.621        .35037E-08   -.38360E-04
  22  Prefactor     68.012        64.453       -.29562E-06    .38183E-04
  23  Normalizat    1.0156        .16742        .52117E-06   -.45507E-03
  24  Prefactor     .82681        .13096       -.22845E-05   -.85752E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 13.2031
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.84735
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.2151
  Prefactor  = 0.0001
  norm       = 16.0773
  Prefactor  = 5.3424
  Prefactor  = 0.0001
  Prefactor  = 0.893676
  norm       = 5.569
  norm       = 0.0001
  Prefactor  = 28.0386
  Prefactor  = 17.3142
  Prefactor  = 68.0124
  Normalizat = 1.01562
  Prefactor  = 0.826814
 **********
 **   18 **HESSE 
 **********

 FCN=   6659.371     FROM HESSE     STATUS=OK           397 CALLS     3114 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    28.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.3606        .92471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.203        42.405        .11003E-03   -1.4981    
   5  norm          .10000E-03    5.9140        .17920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    33.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.8474        8.6380        .20575E-03   -1.5316    
   8  norm          .10000E-03    .36479        .78736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.3263        .14499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .21001        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.0651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.215        8.4685        .11019E-03   -1.4981    
  13  Prefactor     .10000E-03    3.2321        .14295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          16.077        11.310        .99887E-04   -1.4906    
  15  Prefactor     5.3424        112.74        .17304E-03   -1.5246    
  16  Prefactor     .10000E-03    5.8441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .89368        28.176        .31823E-02   -1.5519    
  18  norm          5.5690        1.6919        .56307E-04   -1.5236    
  19  norm          .10000E-03    2.2028        .11773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     28.039        27.272        .75647E-04   -1.4648    
  21  Prefactor     17.314        11.626        .96257E-04   -1.4876    
  22  Prefactor     68.012        64.384        .48659E-04   -1.4057    
  23  Normalizat    1.0156        .19722        .23839E-03   -.92509    
  24  Prefactor     .82681        .15543        .20906E-03   -.98747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04884e-08
Minuit parameter uncertainties:
  1  0.000104474
  2  0.000250341
  3  1.24504e-05
  4  42.5021
  5  8.91187e-06
  6  0.000179775
  7  8.64082
  8  1.30647e-05
  9  2.16797e-05
  10  3.16821e-07
  11  6.51255e-05
  12  8.46929
  13  2.18235e-05
  14  11.3116
  15  49.1896
  16  1.10716e-05
  17  10.0406
  18  1.69194
  19  2.92642e-07
  20  27.2845
  21  11.6278
  22  64.45
  23  0.197365
  24  0.155509
Done.

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

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  6.513e-05  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.268e-01  1.555e-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.016e+00  1.974e-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: 6.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/567921/likelihoodResults_391996801_392256001_4FGL_J2253.2-1232_daily_bin589.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) = 6659.37151405
delta logL = -0.000525844022377

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6659.37098823
delta logL = -1.59961928148e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6449       1.0000          .0000       10.000    
     3 'Normalizat'    1.0156       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82681       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=   6659.371     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1017.4        .90712E-02** at limit **
   2  Index         2.6435        8.5517        .50000        .13699E-05
   3  Normalizat    1.0156        .51549E-01    .44091E-01    .16177E-05
   4  Prefactor     .82682        .41315E-01    .44065E-01    .38066E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.64347
  Normalizat = 1.01562
  Prefactor  = 0.826817
 **********
 **   18 **HESSE 
 **********

 FCN=   6659.371     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.1165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6435        6.3146        .50000       -.49077    
   3  Normalizat    1.0156        .19101        .23839E-03   -.92509    
   4  Prefactor     .82682        .15351        .20906E-03   -.98747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97164e-12
Minuit parameter uncertainties:
  1  1.64381e-06
  2  4.43001
  3  0.191143
  4  0.153593
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/567921': 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) = 6659.37098821
delta logL = 1.25237420434e-09

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  1.000e-04  1.644e-06  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.643e+00  4.430e+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.268e-01  1.536e-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.016e+00  1.911e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/567921/cmap_HighResolution_391996801_392256001_4FGL_J2253.2-1232_daily_bin589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.76e-03', job_status='DONE', photon_flux_upper_limit='6.06e-08', time_completed='2021-09-29 01:43:41.206079', job_id='567921', GAL2='0.83', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1632905021.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.25e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='589' AND source_name='4FGL J2253.2-1232' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:43:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 567921: <4FGL_J2253.2-1232_daily_bin589> in cluster <slac> Done

Job <4FGL_J2253.2-1232_daily_bin589> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 01:30:34 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 01:30:36 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:30:36 2021
Terminated at Wed Sep 29 01:43:42 2021
Results reported at Wed Sep 29 01:43:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.2-1232_daily_bin589 343.308 -12.5416 391996801 392256001 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 :                                   660.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            788 sec.

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

