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


Performing analysis on: 4FGL_J2253.2-1232_daily_bin1447
RA = 343.308, Dec = -12.5416
tmin = 614390401, tmax = 614649601
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='571427', job_status='RUN', time_executed='2021-09-29 01:41:14.530360', time_epoch_executed='1632904874.53' WHERE source_name='4FGL J2253.2-1232' and cadence='daily' and bin_id='1447'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571427

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571427/ft1_4FGL_J2253.2-1232_daily_bin1447.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571427/ft2_4FGL_J2253.2-1232_daily_bin1447.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571427/ft1_4FGL_J2253.2-1232_daily_bin1447.fits outfile=/scratch/kocevski/571427/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1447.fits ra=343.308 dec=-12.5416 rad=12.0 tmin=614390401.0 tmax=614649601.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.95
user 3.72
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/571427/ft2_4FGL_J2253.2-1232_daily_bin1447.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/571427/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1447.fits evtable="EVENTS" outfile="/scratch/kocevski/571427/ft1_filtered_4FGL_J2253.2-1232_daily_bin1447.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/571427/ft1_filtered_4FGL_J2253.2-1232_daily_bin1447.fits" evtable="EVENTS" scfile=/scratch/kocevski/571427/ft2_4FGL_J2253.2-1232_daily_bin1447.fits sctable="SC_DATA" outfile=/scratch/kocevski/571427/ltcube_614390401_614649601_4FGL_J2253.2-1232_daily_bin1447.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/571427/ft2_4FGL_J2253.2-1232_daily_bin1447.fits
.....................!
real 11.77
user 11.42
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571427/ft1_filtered_4FGL_J2253.2-1232_daily_bin1447.fits evtable="EVENTS" scfile=/scratch/kocevski/571427/ft2_4FGL_J2253.2-1232_daily_bin1447.fits sctable="SC_DATA" expcube=/scratch/kocevski/571427/ltcube_614390401_614649601_4FGL_J2253.2-1232_daily_bin1447.fits outfile=/scratch/kocevski/571427/expmap_614390401_614649601_4FGL_J2253.2-1232_daily_bin1447.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/571427/ltcube_614390401_614649601_4FGL_J2253.2-1232_daily_bin1447.fits
.....................!
real 190.71
user 184.80
sys 5.61

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/571427/ft1_filtered_4FGL_J2253.2-1232_daily_bin1447.fits scfile=/scratch/kocevski/571427/ft2_4FGL_J2253.2-1232_daily_bin1447.fits outfile=/scratch/kocevski/571427/cmap_614390401_614649601_4FGL_J2253.2-1232_daily_bin1447.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/571427/ft1_filtered_4FGL_J2253.2-1232_daily_bin1447.fits scfile=/scratch/kocevski/571427/ft2_4FGL_J2253.2-1232_daily_bin1447.fits outfile=/scratch/kocevski/571427/cmap_HighResolution_614390401_614649601_4FGL_J2253.2-1232_daily_bin1447.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/571427/ft1_filtered_4FGL_J2253.2-1232_daily_bin1447.fits evtable="EVENTS" scfile=/scratch/kocevski/571427/ft2_4FGL_J2253.2-1232_daily_bin1447.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/571427/Model_4FGL_J2253.2-1232_daily_bin1447.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/571427/ft1_filtered_4FGL_J2253.2-1232_daily_bin1447.fits.....................!
real 47.58
user 46.26
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .71414E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    43.305       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    152.98       1.0000         .10000E-03   10000.    
     5 'norm      '    .17807E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    87.776       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .84749       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.799       1.0000         .10000E-03   10000.    
    10 'norm      '    .10320E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5176       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.844       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    125.34       1.0000         .10000E-03   10000.    
    15 'Prefactor '    49.074       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1842       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .65101       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=   4830.840     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2696 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    8.3693        .51080E-08** at limit **
   2  Prefactor     43.266        91.713       -.73935E-05    .83282E-04
   3  Prefactor     .10000E-03    1.2761       -.81568E-08** at limit **
   4  Prefactor     152.97        90.708       -.10298E-05    .37329E-04
   5  norm          .10000E-03    3.4039       -.39288E-06** at limit **
   6  Prefactor     87.768        80.166       -.12071E-05    .41630E-04
   7  Prefactor     .10000E-03    6.1228       -.51668E-06** at limit **
   8  norm          .84740        .67556        .41644E-07    .60440E-04
   9  Prefactor     12.799        22.497       -.30147E-05   -.30821E-03
  10  norm          .10000E-03    .45074        .90900E-06** at limit **
  11  Prefactor     4.4392        109.91       -.10973E-06   -.11436E-03
  12  Prefactor     14.847        11.649       -.33211E-06    .10321E-04
  13  Prefactor     .10000E-03    4.0392       -.63661E-07** at limit **
  14  norm          125.35        24.155        .39986E-07   -.30636E-04
  15  Prefactor     49.083        46.591        .12702E-05   -.85294E-04
  16  Prefactor     .10000E-03    8.2990        .80987E-06** at limit **
  17  Prefactor     .10000E-03    5.6498        .69485E-06** at limit **
  18  norm          .10000E-03    .31093        .13000E-07** at limit **
  19  norm          .10000E-03    2.2957        .85775E-07** at limit **
  20  Prefactor     .10000E-03    39.419        .90756E-06** at limit **
  21  Prefactor     .10000E-03    8.9775       -.57779E-06** at limit **
  22  Prefactor     .10000E-03    23.042       -.21656E-06** at limit **
  23  Normalizat    1.1842        .22046        .19010E-05   -.22910E-03
  24  Prefactor     .65093        .16137       -.14440E-05    .58526E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100036
  Prefactor  = 43.2662
  Prefactor  = 0.0001
  Prefactor  = 152.974
  norm       = 0.0001
  Prefactor  = 87.7682
  Prefactor  = 0.0001
  norm       = 0.847395
  Prefactor  = 12.7992
  norm       = 0.0001
  Prefactor  = 4.43924
  Prefactor  = 14.8472
  Prefactor  = 0.0001
  norm       = 125.346
  Prefactor  = 49.0833
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.1842
  Prefactor  = 0.650929
 **********
 **   18 **HESSE 
 **********

 FCN=   4830.840     FROM HESSE     STATUS=OK           389 CALLS     3085 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    54.354        .38354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     43.266        89.536        .60921E-04   -1.4391    
   3  Prefactor     .10000E-03    1.2803        .76663E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     152.97        90.475        .32590E-04   -1.3228    
   5  norm          .10000E-03    3.5218        .24898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     87.768        79.987        .42884E-04   -1.3832    
   7  Prefactor     .10000E-03    6.1243        .16785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .84740        .66052        .49120E-04   -1.5524    
   9  Prefactor     12.799        22.931        .11197E-03   -1.4992    
  10  norm          .10000E-03    .59946        .91806E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.4392        111.02        .18942E-03   -1.5287    
  12  Prefactor     14.847        11.645        .10396E-03   -1.4937    
  13  Prefactor     .10000E-03    4.0439        .13641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          125.35        24.155        .35954E-04   -1.3464    
  15  Prefactor     49.083        46.605        .57244E-04   -1.4306    
  16  Prefactor     .10000E-03    8.2776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.6691        .16062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .31236        .37842E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.3086        .10281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    39.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.9842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    23.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1842        .25805        .24570E-03   -.87093    
  24  Prefactor     .65093        .18974        .24230E-03   -1.0548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64224e-09
Minuit parameter uncertainties:
  1  0.00279906
  2  89.8157
  3  1.34904e-06
  4  90.5573
  5  6.00551e-05
  6  80.0849
  7  2.28304e-05
  8  0.660527
  9  22.9467
  10  1.33451e-05
  11  44.4928
  12  11.6466
  13  6.02117e-06
  14  24.1564
  15  46.6394
  16  4.79764e-05
  17  6.05273e-05
  18  5.60984e-07
  19  6.78628e-06
  20  0.000140377
  21  2.69538e-05
  22  1.37099e-05
  23  0.258329
  24  0.189927
Done.

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

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  4.439e+00  4.449e+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:  6.509e-01  1.899e-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.184e+00  2.583e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/571427/likelihoodResults_614390401_614649601_4FGL_J2253.2-1232_daily_bin1447.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) = 4829.15679658
delta logL = 1.68359433872

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4829.13486236
delta logL = 1.70552855361

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16432       1.0000         .10000E-03   10000.    
     2 'Index     '    5.8154       1.0000          .0000       10.000    
     3 'Normalizat'    1.0634       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71196       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=   4829.135     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      274 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16270        1.7847        .39263E-02    .13494E-02
   2  Index         5.8204        2.7567        .97789E-01    .13057E-03
   3  Normalizat    1.0638        .61902E-01    .57968E-01    .82366E-05
   4  Prefactor     .71188        .46838E-01    .42560E-01    .12729E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.162696
  Index      = 5.8204
  Normalizat = 1.0638
  Prefactor  = 0.711875
 **********
 **   18 **HESSE 
 **********

 FCN=   4829.135     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      307 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16270        3.5311        .17694E-04   -1.5627    
   2  Index         5.8204        3.9841        .39264E-02    .16482    
   3  Normalizat    1.0638        .22402        .25634E-03   -.90923    
   4  Prefactor     .71188        .16731        .23233E-03   -1.0306    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.17437e-10
Minuit parameter uncertainties:
  1  1.51555
  2  4.63799
  3  0.22422
  4  0.167431
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571427': 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) = 4829.1348568
delta logL = 1.70553411336

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  1.627e-01  1.516e+00  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  5.820e+00  4.638e+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:  7.119e-01  1.674e-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.064e+00  2.242e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.64
Ra Dec: 343.308 -12.542
Photon Index (Free Index): 5.82 +/- 4.64
Photon Flux (Free Index): 1.15e-07 +/- 7.42e-08
Energy Flux (Free Index): 1.44e-05 +/- 1.06e-05

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/571427/cmap_HighResolution_614390401_614649601_4FGL_J2253.2-1232_daily_bin1447.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', energy_flux2='1.44e-05', dlogl='1.71e+00', photon_flux2='1.15e-07', job_status='DONE', time_completed='2021-09-29 01:50:38.298911', photon_index_error2='4.64', photon_index2='5.82', ts='0.03', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', photon_flux_upper_limit='1.30e-07', energy_flux_error2='1.06e-05', EG='1.18', time_epoch_completed='1632905438.3', return_code='0', job_id='571427', GAL2='0.71', EG2='1.06', return_code2='102', photon_flux_error2='7.42e-08', ts2='3.64', photon_index='2.65' WHERE bin_id='1447' AND source_name='4FGL J2253.2-1232' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:50:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 571427: <4FGL_J2253.2-1232_daily_bin1447> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.2-1232_daily_bin1447 343.308 -12.5416 614390401 614649601 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 :                                   558.42 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             270.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   589 sec.
    Turnaround time :                            592 sec.

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

