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


Performing analysis on: 4FGL_J2253.2-1232_daily_bin1631
RA = 343.308, Dec = -12.5416
tmin = 662083201, tmax = 662342401
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='561448', job_status='RUN', time_executed='2021-12-28 00:35:53.464422', time_epoch_executed='1640680553.46' WHERE source_name='4FGL J2253.2-1232' and cadence='daily' and bin_id='1631'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/561448

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/561448/ft1_4FGL_J2253.2-1232_daily_bin1631.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/561448/ft2_4FGL_J2253.2-1232_daily_bin1631.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/561448/ft1_4FGL_J2253.2-1232_daily_bin1631.fits outfile=/scratch/kocevski/561448/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1631.fits ra=343.308 dec=-12.5416 rad=12.0 tmin=662083201.0 tmax=662342401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.87
user 3.65
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/561448/ft1_filtered_4FGL_J2253.2-1232_daily_bin1631.fits" evtable="EVENTS" scfile=/scratch/kocevski/561448/ft2_4FGL_J2253.2-1232_daily_bin1631.fits sctable="SC_DATA" outfile=/scratch/kocevski/561448/ltcube_662083201_662342401_4FGL_J2253.2-1232_daily_bin1631.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/561448/ft2_4FGL_J2253.2-1232_daily_bin1631.fits
.....................!
real 12.13
user 11.76
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/561448/ft1_filtered_4FGL_J2253.2-1232_daily_bin1631.fits evtable="EVENTS" scfile=/scratch/kocevski/561448/ft2_4FGL_J2253.2-1232_daily_bin1631.fits sctable="SC_DATA" expcube=/scratch/kocevski/561448/ltcube_662083201_662342401_4FGL_J2253.2-1232_daily_bin1631.fits outfile=/scratch/kocevski/561448/expmap_662083201_662342401_4FGL_J2253.2-1232_daily_bin1631.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/561448/ltcube_662083201_662342401_4FGL_J2253.2-1232_daily_bin1631.fits
.....................!
real 190.42
user 186.15
sys 3.96

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/561448/ft1_filtered_4FGL_J2253.2-1232_daily_bin1631.fits scfile=/scratch/kocevski/561448/ft2_4FGL_J2253.2-1232_daily_bin1631.fits outfile=/scratch/kocevski/561448/cmap_662083201_662342401_4FGL_J2253.2-1232_daily_bin1631.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/561448/ft1_filtered_4FGL_J2253.2-1232_daily_bin1631.fits scfile=/scratch/kocevski/561448/ft2_4FGL_J2253.2-1232_daily_bin1631.fits outfile=/scratch/kocevski/561448/cmap_HighResolution_662083201_662342401_4FGL_J2253.2-1232_daily_bin1631.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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/561448/ft1_filtered_4FGL_J2253.2-1232_daily_bin1631.fits evtable="EVENTS" scfile=/scratch/kocevski/561448/ft2_4FGL_J2253.2-1232_daily_bin1631.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/561448/Model_4FGL_J2253.2-1232_daily_bin1631.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/561448/ft1_filtered_4FGL_J2253.2-1232_daily_bin1631.fits.....................!
real 62.88
user 61.58
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.607       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.4489       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5570       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    41.531       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.312       1.0000         .10000E-03   10000.    
     8 'norm      '    .44980       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13722E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    2.7772       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.721       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18736E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.9574       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .27222E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.0521       1.0000         .10000E-03   10000.    
    19 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.2247       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.1363       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0896       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83922       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=   7596.516     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2726 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.606        12.127       -.64355E-07    .56119E-04
   2  Prefactor     4.4290        211.79       -.89959E-05    .31123E-05
   3  Prefactor     1.5560        3.0684        .21146E-06   -.25514E-03
   4  Prefactor     .10000E-03    30.358        .88692E-06** at limit **
   5  norm          .10000E-03    1.2977       -.14217E-06** at limit **
   6  Prefactor     41.512        70.528       -.33734E-05    .11307E-04
   7  Prefactor     11.312        9.7329       -.85138E-07    .13894E-04
   8  norm          .44969        .41532        .19612E-07    .48009E-03
   9  Prefactor     .10001E-03    8.0657       -.54279E-05** at limit **
  10  norm          2.7737        1.2129        .10348E-05    .22747E-02
  11  Prefactor     12.690        28.026       -.19623E-05    .42029E-03
  12  Prefactor     .10000E-03    1.9311       -.90223E-07** at limit **
  13  Prefactor     .10014E-03    4.7496       -.12781E-05** at limit **
  14  norm          4.9572        5.4829       -.47086E-07    .22162E-04
  15  Prefactor     .10000E-03    11.751        .48380E-07** at limit **
  16  Prefactor     .10000E-03    8.6052        .60083E-08** at limit **
  17  Prefactor     .10000E-03    2.9408       -.81213E-07** at limit **
  18  norm          1.0525        .90592       -.31809E-07   -.19880E-03
  19  norm          .10000E-03    1.4037       -.26476E-08** at limit **
  20  Prefactor     3.2495        226.51        .33167E-06    .50753E-04
  21  Prefactor     7.1258        18.507        .43146E-06   -.27348E-03
  22  Prefactor     .10000E-03    33.241        .32489E-06** at limit **
  23  Normalizat    1.0896        .16188        .14205E-05    .34780E-03
  24  Prefactor     .83930        .12245       -.16891E-06    .49759E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.6055
  Prefactor  = 4.42898
  Prefactor  = 1.55598
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 41.5123
  Prefactor  = 11.3117
  norm       = 0.449692
  Prefactor  = 0.000100012
  norm       = 2.77369
  Prefactor  = 12.6901
  Prefactor  = 0.0001
  Prefactor  = 0.000100139
  norm       = 4.95722
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.05248
  norm       = 0.0001
  Prefactor  = 3.24946
  Prefactor  = 7.12583
  Prefactor  = 0.0001
  Normalizat = 1.08957
  Prefactor  = 0.8393
 **********
 **   18 **HESSE 
 **********

 FCN=   7596.516     FROM HESSE     STATUS=OK           401 CALLS     3127 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.606        12.128        .10138E-03   -1.4918    
   2  Prefactor     4.4290        212.55        .19091E-03   -1.5287    
   3  Prefactor     1.5560        3.0323        .20412E-03   -1.5458    
   4  Prefactor     .10000E-03    30.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.3222        .96832E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     41.512        70.305        .62203E-04   -1.4418    
   7  Prefactor     11.312        9.7381        .11911E-03   -1.5035    
   8  norm          .44969        .42787        .52265E-03   -1.5574    
   9  Prefactor     .10001E-03    39.212        .41133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.7737        1.2266        .49700E-04   -1.5375    
  11  Prefactor     12.690        27.878        .11231E-03   -1.4995    
  12  Prefactor     .10000E-03    1.9316        .11828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10014E-03    24.993        .35942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.9572        5.4825        .18063E-03   -1.5263    
  15  Prefactor     .10000E-03    11.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.6184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.3681        .28940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.0525        .88561        .74248E-04   -1.5503    
  19  norm          .10000E-03    1.4142        .10076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.2495        205.90        .22558E-03   -1.5347    
  21  Prefactor     7.1258        17.562        .15016E-03   -1.5174    
  22  Prefactor     .10000E-03    33.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0896        .18916        .24487E-03   -.90087    
  24  Prefactor     .83930        .14452        .21683E-03   -.98296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.43669e-09
Minuit parameter uncertainties:
  1  12.1295
  2  61.5971
  3  3.03264
  4  2.8753e-05
  5  1.33289e-05
  6  70.446
  7  9.73942
  8  0.427869
  9  0.00137106
  10  1.2266
  11  27.9066
  12  5.83713e-06
  13  0.00373381
  14  5.48307
  15  1.03994e-05
  16  1.53024e-05
  17  7.95086e-05
  18  0.885617
  19  2.72537e-06
  20  51.9191
  21  17.5746
  22  3.33334e-05
  23  0.18928
  24  0.14459
Done.

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

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  1.269e+01  2.791e+01  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  2.646e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  8.906e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  8.393e-01  1.446e-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.090e+00  1.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.34
Ra Dec: 343.308 -12.542
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/561448/likelihoodResults_662083201_662342401_4FGL_J2253.2-1232_daily_bin1631.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) = 7596.12815638
delta logL = 0.388036474115

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7596.10215465
delta logL = 0.414038207949

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4888       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8630       1.0000          .0000       10.000    
     3 'Normalizat'    1.0529       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85702       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=   7596.102     FROM MIGRAD    STATUS=FAILED        87 CALLS      295 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4888        154.06        .74598E-03   -.50714E-03
   2  Index         3.8631        6.9129        .70303E-02    .70755E-03
   3  Normalizat    1.0529        .15277        .24829E-03   -.24135E-03
   4  Prefactor     .85702        .11973        .21476E-03   -.17586E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7596.102     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      383 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4888        154.06        .18660E-03   -.50714E-03
   2  Index         3.8631        6.9129        .80399E-03    .70755E-03
   3  Normalizat    1.0529        .15277        .10661E-03   -.24135E-03
   4  Prefactor     .85702        .11973        .10657E-03   -.17586E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7596.102     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      414 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4890        12.054        .29839E-04   -.30747E-03
   2  Index         3.8630        1.8056        .14061E-02   -.58369E-04
   3  Normalizat    1.0529        .18554        .49658E-04   -.22006E-03
   4  Prefactor     .85702        .14276        .85902E-05   -.15246E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.489
  Index      = 3.86304
  Normalizat = 1.05291
  Prefactor  = 0.857017
 **********
 **   18 **HESSE 
 **********

 FCN=   7596.102     FROM HESSE     STATUS=OK            23 CALLS      437 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4890        10.100        .11936E-05   -1.5334    
   2  Index         3.8630        1.5223        .56243E-04   -.22940    
   3  Normalizat    1.0529        .18560        .99316E-05   -.91278    
   4  Prefactor     .85702        .14276        .17180E-05   -.97660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.04197e-11
Minuit parameter uncertainties:
  1  10.1048
  2  1.54828
  3  0.185718
  4  0.142826
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/561448': 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) = 7596.10215464
delta logL = 0.414038212827

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  3.489e+00  1.010e+01  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  3.863e+00  1.548e+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.570e-01  1.428e-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.053e+00  1.857e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.25
Ra Dec: 343.308 -12.542
Photon Index (Free Index): 3.86 +/- 1.55
Photon Flux (Free Index): 5.70e-08 +/- 5.71e-08
Energy Flux (Free Index): 8.74e-06 +/- 8.82e-06

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/561448/cmap_HighResolution_662083201_662342401_4FGL_J2253.2-1232_daily_bin1631.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.17e-03', comment='SUCCESS', energy_flux2='8.74e-06', dlogl='4.14e-01', photon_flux2='5.70e-08', job_status='DONE', time_completed='2021-12-28 00:47:49.256603', photon_index_error2='1.55', photon_index2='3.86', ts='0.34', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='8.82e-06', EG='1.09', time_epoch_completed='1640681269.26', return_code='0', job_id='561448', GAL2='0.86', EG2='1.05', return_code2='0', photon_flux_error2='5.71e-08', ts2='1.25', photon_index='2.65' WHERE bin_id='1631' AND source_name='4FGL J2253.2-1232' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 28 00:47:49 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 561448: <4FGL_J2253.2-1232_daily_bin1631> in cluster <slac> Done

Job <4FGL_J2253.2-1232_daily_bin1631> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Dec 28 00:35:29 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 28 00:35:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 28 00:35:32 2021
Terminated at Tue Dec 28 00:47:50 2021
Results reported at Tue Dec 28 00:47:50 2021

Your job looked like:

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

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

