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


Performing analysis on: 4FGL_J2052.2-5533_daily_bin1491
RA = 313.067, Dec = -55.5624
tmin = 625795201, tmax = 626054401
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='180654', job_status='RUN', time_executed='2021-09-25 19:50:49.942539', time_epoch_executed='1632624649.94' WHERE source_name='4FGL J2052.2-5533' and cadence='daily' and bin_id='1491'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/180654

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/180654/ft1_4FGL_J2052.2-5533_daily_bin1491.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/180654/ft2_4FGL_J2052.2-5533_daily_bin1491.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/180654/ft1_4FGL_J2052.2-5533_daily_bin1491.fits outfile=/scratch/kocevski/180654/ft1_filteredMKT_4FGL_J2052.2-5533_daily_bin1491.fits ra=313.067 dec=-55.5624 rad=12.0 tmin=625795201.0 tmax=626054401.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.60
user 3.35
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/180654/ft2_4FGL_J2052.2-5533_daily_bin1491.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/180654/ft2_4FGL_J2052.2-5533_daily_bin1491.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/180654/ft1_filteredMKT_4FGL_J2052.2-5533_daily_bin1491.fits evtable="EVENTS" outfile="/scratch/kocevski/180654/ft1_filtered_4FGL_J2052.2-5533_daily_bin1491.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.60
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/180654/ft1_filtered_4FGL_J2052.2-5533_daily_bin1491.fits" evtable="EVENTS" scfile=/scratch/kocevski/180654/ft2_4FGL_J2052.2-5533_daily_bin1491.fits sctable="SC_DATA" outfile=/scratch/kocevski/180654/ltcube_625795201_626054401_4FGL_J2052.2-5533_daily_bin1491.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/180654/ft2_4FGL_J2052.2-5533_daily_bin1491.fits
.....................!
real 15.24
user 14.78
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/180654/ft1_filtered_4FGL_J2052.2-5533_daily_bin1491.fits evtable="EVENTS" scfile=/scratch/kocevski/180654/ft2_4FGL_J2052.2-5533_daily_bin1491.fits sctable="SC_DATA" expcube=/scratch/kocevski/180654/ltcube_625795201_626054401_4FGL_J2052.2-5533_daily_bin1491.fits outfile=/scratch/kocevski/180654/expmap_625795201_626054401_4FGL_J2052.2-5533_daily_bin1491.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/180654/ltcube_625795201_626054401_4FGL_J2052.2-5533_daily_bin1491.fits
.....................!
real 191.76
user 186.11
sys 5.23

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 168 point sources and 0 extended sources

Setting source of interest to:
4FGL J2052.2-5533 @ 313.067 -55.5624

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/180654/ft1_filtered_4FGL_J2052.2-5533_daily_bin1491.fits scfile=/scratch/kocevski/180654/ft2_4FGL_J2052.2-5533_daily_bin1491.fits outfile=/scratch/kocevski/180654/cmap_625795201_626054401_4FGL_J2052.2-5533_daily_bin1491.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=313.067 yref=-55.5624 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.59
user 0.38
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/180654/ft1_filtered_4FGL_J2052.2-5533_daily_bin1491.fits scfile=/scratch/kocevski/180654/ft2_4FGL_J2052.2-5533_daily_bin1491.fits outfile=/scratch/kocevski/180654/cmap_HighResolution_625795201_626054401_4FGL_J2052.2-5533_daily_bin1491.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=313.067 yref=-55.5624 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/180654/ft1_filtered_4FGL_J2052.2-5533_daily_bin1491.fits evtable="EVENTS" scfile=/scratch/kocevski/180654/ft2_4FGL_J2052.2-5533_daily_bin1491.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/180654/Model_4FGL_J2052.2-5533_daily_bin1491.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/180654/ft1_filtered_4FGL_J2052.2-5533_daily_bin1491.fits.....................!
real 75.36
user 73.92
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/180654/ft1_filtered_4FGL_J2052.2-5533_daily_bin1491.fits', '/scratch/kocevski/180654/ft2_4FGL_J2052.2-5533_daily_bin1491.fits', expMap='/scratch/kocevski/180654/expmap_625795201_626054401_4FGL_J2052.2-5533_daily_bin1491.fits', expCube='/scratch/kocevski/180654/ltcube_625795201_626054401_4FGL_J2052.2-5533_daily_bin1491.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/180654/Model_4FGL_J2052.2-5533_daily_bin1491.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2052.2-5533'

4FGL J2052.2-5533
   Spectrum: PowerLaw
319    Prefactor:  1.540e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.301e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
321        Scale:  9.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/180654/ft1_filtered_4FGL_J2052.2-5533_daily_bin1491.fits
Spacecraft file(s): /scratch/kocevski/180654/ft2_4FGL_J2052.2-5533_daily_bin1491.fits
Exposure map: /scratch/kocevski/180654/expmap_625795201_626054401_4FGL_J2052.2-5533_daily_bin1491.fits
Exposure cube: /scratch/kocevski/180654/ltcube_625795201_626054401_4FGL_J2052.2-5533_daily_bin1491.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/180654/Model_4FGL_J2052.2-5533_daily_bin1491.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) = 10131.351008

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .56257       1.0000         .10000E-03   10000.    
     2 'norm      '    .63403       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10630E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.060       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .29083E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    14.468       1.0000         .10000E-03   10000.    
     8 'norm      '    .19950       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10535E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20726E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.342       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.6910       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11728E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.2331       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .83263       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0439       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10131.25     FROM MIGRAD    STATUS=CONVERGED    363 CALLS     1767 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .56254        .93114        .18685E-06    .65863E-03
   2  norm          .63400        1.1150        .43457E-06    .49434E-03
   3  norm          .10000E-03    .93292       -.95510E-08** at limit **
   4  Prefactor     .10000E-03    3.8629       -.67834E-07** at limit **
   5  Prefactor     15.063        3.5020        .12311E-06    .14065E-03
   6  Prefactor     .10000E-03    21.550        .48055E-06** at limit **
   7  norm          14.469        2.4618        .62340E-07   -.24423E-04
   8  norm          .19840        1.9205        .25567E-05   -.53117E-03
   9  Prefactor     .10000E-03    14.945       -.34132E-06** at limit **
  10  Prefactor     .10000E-03    19.252        .25880E-06** at limit **
  11  Prefactor     .10000E-03    5.3834        .88156E-08** at limit **
  12  Prefactor     16.366        19.920        .33719E-05    .34316E-03
  13  Prefactor     8.6905        4.2048        .10162E-06   -.10085E-03
  14  norm          .10000E-03    .21117       -.21675E-07** at limit **
  15  Prefactor     .10000E-03    2.8851        .14868E-07** at limit **
  16  Prefactor     2.2340        3.4315        .68992E-06   -.17012E-03
  17  Normalizat    .83255        .19437       -.27480E-05   -.64673E-04
  18  Prefactor     1.0439        .10359        .53652E-06   -.40563E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.562542
  norm       = 0.633997
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.0633
  Prefactor  = 0.0001
  norm       = 14.4691
  norm       = 0.198402
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.3664
  Prefactor  = 8.69051
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.23404
  Normalizat = 0.83255
  Prefactor  = 1.04391
 **********
 **   18 **HESSE 
 **********

 FCN=   10131.25     FROM HESSE     STATUS=OK           246 CALLS     2013 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .56254        .75982        .12228E-02   -1.5558    
   2  norm          .63400        1.0027        .13946E-02   -1.5549    
   3  norm          .10000E-03    .93941        .94933E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.8708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.063        3.5051        .86119E-04   -1.4932    
   6  Prefactor     .10000E-03    22.229        .42806E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          14.469        2.4628        .62066E-04   -1.4947    
   8  norm          .19840        2.0036        .27042E-03   -1.5619    
   9  Prefactor     .10000E-03    15.010        .20728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.4862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.366        20.960        .99077E-04   -1.4899    
  13  Prefactor     8.6905        4.2166        .13597E-03   -1.5118    
  14  norm          .10000E-03    .21773        .90264E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.8943        .16695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.2340        3.4460        .21868E-03   -1.5409    
  17  Normalizat    .83255        .22646        .35468E-03   -.98872    
  18  Prefactor     1.0439        .12190        .18060E-03   -.91280    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.97495e-10
Minuit parameter uncertainties:
  1  0.759834
  2  1.00272
  3  1.0672e-06
  4  6.27899e-07
  5  3.50516
  6  5.21408e-05
  7  2.46286
  8  1.26072
  9  0.000102197
  10  3.87683e-05
  11  2.14752e-05
  12  20.9695
  13  4.21674
  14  6.28684e-07
  15  1.40966e-06
  16  3.44626
  17  0.226715
  18  0.121932
Done.

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

Extracting fit parameters...

4FGL J2052.2-5533
   Spectrum: PowerLaw
319    Prefactor:  1.506e+01  3.505e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.301e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
321        Scale:  9.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.044e+00  1.219e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  8.326e-01  2.267e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 54.74
Ra Dec: 313.067 -55.562
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 2.14e-07 +/- 4.97e-08
Energy Flux (Fixed Index): 8.08e-05 +/- 1.88e-05

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) = 10131.2048851
delta logL = 0.0484697044267

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10131.2022134
delta logL = 0.051141405318

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.209       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3744       1.0000          .0000       10.000    
     3 'Normalizat'    .81875       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0483       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10131.20     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      230 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.209        42.378        .26564E-02    .14803E-03
   2  Index         2.3744        2.0295        .85655E-01    .21595E-03
   3  Normalizat    .81874        .16406        .80697E-01    .41249E-04
   4  Prefactor     1.0483        .60603E-01    .40013E-01   -.65100E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.209
  Index      = 2.37438
  Normalizat = 0.818743
  Prefactor  = 1.04827
 **********
 **   18 **HESSE 
 **********

 FCN=   10131.20     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.209        4.4077        .82082E-04   -1.4954    
   2  Index         2.3744        .23701        .35563E-02   -.55286    
   3  Normalizat    .81874        .21574        .35726E-03   -.99377    
   4  Prefactor     1.0483        .11979        .18022E-03   -.91138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41421e-12
Minuit parameter uncertainties:
  1  4.40776
  2  0.237132
  3  0.215964
  4  0.119817
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/180654': 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) = 10131.2022134
delta logL = 0.0511414079228

Extracting fit parameters...

4FGL J2052.2-5533
   Spectrum: PowerLaw
319    Prefactor:  1.421e+01  4.408e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.374e+00  2.371e-01  0.000e+00  1.000e+01 (-1.000e+00)
321        Scale:  9.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.048e+00  1.198e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  8.187e-01  2.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 54.59
Ra Dec: 313.067 -55.562
Photon Index (Free Index): 2.37 +/- 0.24
Photon Flux (Free Index): 2.25e-07 +/- 6.21e-08
Energy Flux (Free Index): 7.65e-05 +/- 2.19e-05

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/180654/cmap_HighResolution_625795201_626054401_4FGL_J2052.2-5533_daily_bin1491.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.14e-07', energy_flux2='7.65e-05', photon_flux_error='4.97e-08', dlogl='5.11e-02', energy_flux='8.08e-05', photon_flux2='2.25e-07', job_status='DONE', time_completed='2021-09-25 20:01:51.093579', photon_index_error2='0.24', photon_index2='2.37', ts='54.74', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='2.19e-05', EG='0.83', time_epoch_completed='1632625311.09', return_code='0', job_id='180654', GAL2='1.05', EG2='0.82', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='6.21e-08', ts2='54.59', photon_index='2.30' WHERE bin_id='1491' AND source_name='4FGL J2052.2-5533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 20:01:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 180654: <4FGL_J2052.2-5533_daily_bin1491> in cluster <slac> Done

Job <4FGL_J2052.2-5533_daily_bin1491> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 25 19:45:36 2021
Job was executed on host(s) <bullet0008>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 19:50:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 19:50:36 2021
Terminated at Sat Sep 25 20:01:51 2021
Results reported at Sat Sep 25 20:01:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2052.2-5533_daily_bin1491 313.067 -55.5624 625795201 626054401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2052.2-5533 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   650.54 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             363.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   675 sec.
    Turnaround time :                            975 sec.

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

