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


Performing analysis on: 4FGL_J2253.2-1232_daily_bin1378
RA = 343.308, Dec = -12.5416
tmin = 596505601, tmax = 596764801
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='571320', job_status='RUN', time_executed='2021-09-29 01:44:39.506930', time_epoch_executed='1632905079.51' WHERE source_name='4FGL J2253.2-1232' and cadence='daily' and bin_id='1378'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571320

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571320/ft1_4FGL_J2253.2-1232_daily_bin1378.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571320/ft2_4FGL_J2253.2-1232_daily_bin1378.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571320/ft1_4FGL_J2253.2-1232_daily_bin1378.fits outfile=/scratch/kocevski/571320/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1378.fits ra=343.308 dec=-12.5416 rad=12.0 tmin=596505601.0 tmax=596764801.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.51
user 3.27
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/571320/ft2_4FGL_J2253.2-1232_daily_bin1378.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/571320/ft1_filteredMKT_4FGL_J2253.2-1232_daily_bin1378.fits evtable="EVENTS" outfile="/scratch/kocevski/571320/ft1_filtered_4FGL_J2253.2-1232_daily_bin1378.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/571320/ft1_filtered_4FGL_J2253.2-1232_daily_bin1378.fits" evtable="EVENTS" scfile=/scratch/kocevski/571320/ft2_4FGL_J2253.2-1232_daily_bin1378.fits sctable="SC_DATA" outfile=/scratch/kocevski/571320/ltcube_596505601_596764801_4FGL_J2253.2-1232_daily_bin1378.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/571320/ft2_4FGL_J2253.2-1232_daily_bin1378.fits
.....................!
real 13.96
user 13.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571320/ft1_filtered_4FGL_J2253.2-1232_daily_bin1378.fits evtable="EVENTS" scfile=/scratch/kocevski/571320/ft2_4FGL_J2253.2-1232_daily_bin1378.fits sctable="SC_DATA" expcube=/scratch/kocevski/571320/ltcube_596505601_596764801_4FGL_J2253.2-1232_daily_bin1378.fits outfile=/scratch/kocevski/571320/expmap_596505601_596764801_4FGL_J2253.2-1232_daily_bin1378.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/571320/ltcube_596505601_596764801_4FGL_J2253.2-1232_daily_bin1378.fits
.....................!
real 191.13
user 186.04
sys 4.78

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/571320/ft1_filtered_4FGL_J2253.2-1232_daily_bin1378.fits scfile=/scratch/kocevski/571320/ft2_4FGL_J2253.2-1232_daily_bin1378.fits outfile=/scratch/kocevski/571320/cmap_596505601_596764801_4FGL_J2253.2-1232_daily_bin1378.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/571320/ft1_filtered_4FGL_J2253.2-1232_daily_bin1378.fits scfile=/scratch/kocevski/571320/ft2_4FGL_J2253.2-1232_daily_bin1378.fits outfile=/scratch/kocevski/571320/cmap_HighResolution_596505601_596764801_4FGL_J2253.2-1232_daily_bin1378.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/571320/ft1_filtered_4FGL_J2253.2-1232_daily_bin1378.fits evtable="EVENTS" scfile=/scratch/kocevski/571320/ft2_4FGL_J2253.2-1232_daily_bin1378.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/571320/Model_4FGL_J2253.2-1232_daily_bin1378.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/571320/ft1_filtered_4FGL_J2253.2-1232_daily_bin1378.fits.....................!
real 45.28
user 44.07
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5080       1.0000         .10000E-03   10000.    
     4 'Prefactor '    43.574       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10901E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.476       1.0000         .10000E-03   10000.    
     8 'norm      '    .49408       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.306       1.0000         .10000E-03   10000.    
    10 'norm      '    3.3717       1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.525       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.9296       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    24.497       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.5858       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.3706       1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.6898       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10279E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.341       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .96078       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92742       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=   4580.651     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2747 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.648       -.37189E-06** at limit **
   2  Prefactor     .10000E-03    28.248       -.12251E-06** at limit **
   3  Prefactor     1.5081        3.3927        .36548E-06    .83709E-04
   4  Prefactor     43.590        70.788       -.23265E-05    .44931E-05
   5  norm          .10000E-03    1.6009       -.18778E-06** at limit **
   6  Prefactor     .10000E-03    46.592       -.40378E-06** at limit **
   7  Prefactor     23.485        24.383        .43490E-06    .14239E-04
   8  norm          .49376        .83231        .55665E-06    .18584E-02
   9  Prefactor     10.335        38.237        .10506E-04    .26774E-04
  10  norm          3.3674        3.1921       -.16187E-05    .40843E-04
  11  Prefactor     30.556        49.680       -.17532E-06    .49961E-04
  12  Prefactor     6.9227        14.918        .53958E-06    .23097E-04
  13  Prefactor     .10000E-03    6.4414        .17518E-06** at limit **
  14  norm          24.497        15.676        .23306E-07    .32506E-04
  15  Prefactor     6.6305        159.54       -.10861E-04    .20576E-04
  16  Prefactor     .10000E-03    14.178       -.23268E-07** at limit **
  17  Prefactor     6.3708        9.8857        .15298E-05    .10049E-03
  18  norm          .10000E-03    .61478       -.21162E-06** at limit **
  19  norm          4.6889        5.8795        .51569E-06    .94909E-04
  20  Prefactor     .10000E-03    46.414        .29812E-06** at limit **
  21  Prefactor     32.349        28.873        .51776E-06    .39664E-04
  22  Prefactor     .10000E-03    27.755        .24661E-06** at limit **
  23  Normalizat    .96039        .26305       -.65068E-05    .11390E-03
  24  Prefactor     .92767        .18943        .48462E-05   -.10895E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.50811
  Prefactor  = 43.5897
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.4847
  norm       = 0.49376
  Prefactor  = 10.3354
  norm       = 3.36741
  Prefactor  = 30.5556
  Prefactor  = 6.92268
  Prefactor  = 0.0001
  norm       = 24.4967
  Prefactor  = 6.63046
  Prefactor  = 0.0001
  Prefactor  = 6.3708
  norm       = 0.0001
  norm       = 4.68888
  Prefactor  = 0.0001
  Prefactor  = 32.3494
  Prefactor  = 0.0001
  Normalizat = 0.960391
  Prefactor  = 0.927675
 **********
 **   18 **HESSE 
 **********

 FCN=   4580.651     FROM HESSE     STATUS=OK           405 CALLS     3152 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    28.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.5081        3.3616        .17975E-03   -1.5462    
   4  Prefactor     43.590        70.580        .60733E-04   -1.4387    
   5  norm          .10000E-03    1.6208        .83610E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    46.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.485        24.479        .82671E-04   -1.4738    
   8  norm          .49376        .74573        .78773E-03   -1.5567    
   9  Prefactor     10.335        38.298        .12481E-03   -1.5065    
  10  norm          3.3674        3.2366        .58438E-04   -1.5341    
  11  Prefactor     30.556        49.179        .72520E-04   -1.4602    
  12  Prefactor     6.9227        14.927        .15241E-03   -1.5182    
  13  Prefactor     .10000E-03    6.4524        .16775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          24.497        15.678        .80934E-04   -1.4718    
  15  Prefactor     6.6305        156.79        .15637E-03   -1.5193    
  16  Prefactor     .10000E-03    14.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.3708        9.8181        .15902E-03   -1.5203    
  18  norm          .10000E-03    .80719        .10265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.6889        5.8590        .17171E-03   -1.5275    
  20  Prefactor     .10000E-03    46.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     32.349        28.936        .70460E-04   -1.4570    
  22  Prefactor     .10000E-03    27.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .96039        .28633        .28362E-03   -.94369    
  24  Prefactor     .92767        .20590        .21936E-03   -.95181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.89618e-10
Minuit parameter uncertainties:
  1  3.40944e-05
  2  9.79534e-06
  3  3.36197
  4  70.7161
  5  3.88346e-06
  6  3.53736e-06
  7  24.4892
  8  0.745747
  9  38.3895
  10  3.23679
  11  49.2441
  12  14.9353
  13  7.05972e-06
  14  15.6808
  15  64.6757
  16  1.54863e-05
  17  9.8206
  18  3.90447e-06
  19  5.8597
  20  9.93059e-05
  21  28.9481
  22  1.36276e-05
  23  0.286787
  24  0.206076
Done.

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

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  3.056e+01  4.924e+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:  9.277e-01  2.061e-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:  9.604e-01  2.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/571320/likelihoodResults_596505601_596764801_4FGL_J2253.2-1232_daily_bin1378.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) = 4579.85598075
delta logL = 0.795243096368

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4579.83119629
delta logL = 0.820027557874

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.510       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4006       1.0000          .0000       10.000    
     3 'Normalizat'    1.0048       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90973       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=   4579.831     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      207 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 17.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.461        47.649       -.51219E-04   -.96295E-04
   2  Index         1.3999        .80707       -.17231E-03    .37613E-04
   3  Normalizat    1.0043        .22218        .25711E-05    .46293E-03
   4  Prefactor     .90984        .16998        .64270E-06    .45986E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.461
  Index      = 1.39986
  Normalizat = 1.00428
  Prefactor  = 0.909841
 **********
 **   18 **HESSE 
 **********

 FCN=   4579.831     FROM HESSE     STATUS=OK            27 CALLS      234 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.461        44.324        .79314E-04   -1.4698    
   2  Index         1.3999        .75197        .82024E-02   -.80384    
   3  Normalizat    1.0043        .25827        .27828E-03   -.92887    
   4  Prefactor     .90984        .19766        .22135E-03   -.95798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3418e-10
Minuit parameter uncertainties:
  1  44.3818
  2  0.757984
  3  0.258594
  4  0.197814
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571320': 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) = 4579.83119012
delta logL = 0.820033726849

Extracting fit parameters...

4FGL J2253.2-1232
   Spectrum: PowerLaw
278    Prefactor:  2.546e+01  4.438e+01  1.000e-04  1.000e+04 ( 1.000e-13)
279        Index:  1.400e+00  7.580e-01  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:  9.098e-01  1.978e-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.004e+00  2.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.39
Ra Dec: 343.308 -12.542
Photon Index (Free Index): 1.40 +/- 0.76
Photon Flux (Free Index): 1.27e-08 +/- 2.33e-08
Energy Flux (Free Index): 5.63e-05 +/- 8.64e-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/571320/cmap_HighResolution_596505601_596764801_4FGL_J2253.2-1232_daily_bin1378.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.71e-02', comment='SUCCESS', energy_flux2='5.63e-05', dlogl='8.20e-01', photon_flux2='1.27e-08', job_status='DONE', time_completed='2021-09-29 01:56:04.421787', photon_index_error2='0.76', photon_index2='1.40', ts='0.73', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='2.17e-07', energy_flux_error2='8.64e-05', EG='0.96', time_epoch_completed='1632905764.42', return_code='0', job_id='571320', GAL2='0.91', EG2='1.00', return_code2='0', photon_flux_error2='2.33e-08', ts2='2.39', photon_index='2.65' WHERE bin_id='1378' AND source_name='4FGL J2253.2-1232' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 01:56:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 571320: <4FGL_J2253.2-1232_daily_bin1378> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2253.2-1232_daily_bin1378 343.308 -12.5416 596505601 596764801 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 :                                   540.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             230.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            926 sec.

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

