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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1145
RA = 350.708, Dec = -49.2725
tmin = 536112001, tmax = 536371201
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='805144', job_status='RUN', time_executed='2021-09-29 14:16:27.301908', time_epoch_executed='1632950187.3' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1145'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805144

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805144/ft1_4FGL_J2322.8-4916_daily_bin1145.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805144/ft2_4FGL_J2322.8-4916_daily_bin1145.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805144/ft1_4FGL_J2322.8-4916_daily_bin1145.fits outfile=/scratch/kocevski/805144/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1145.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=536112001.0 tmax=536371201.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.57
user 3.31
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/805144/ft2_4FGL_J2322.8-4916_daily_bin1145.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/805144/ft2_4FGL_J2322.8-4916_daily_bin1145.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/805144/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1145.fits evtable="EVENTS" outfile="/scratch/kocevski/805144/ft1_filtered_4FGL_J2322.8-4916_daily_bin1145.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.53
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805144/ft1_filtered_4FGL_J2322.8-4916_daily_bin1145.fits" evtable="EVENTS" scfile=/scratch/kocevski/805144/ft2_4FGL_J2322.8-4916_daily_bin1145.fits sctable="SC_DATA" outfile=/scratch/kocevski/805144/ltcube_536112001_536371201_4FGL_J2322.8-4916_daily_bin1145.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/805144/ft2_4FGL_J2322.8-4916_daily_bin1145.fits
.....................!
real 12.37
user 11.94
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805144/ft1_filtered_4FGL_J2322.8-4916_daily_bin1145.fits evtable="EVENTS" scfile=/scratch/kocevski/805144/ft2_4FGL_J2322.8-4916_daily_bin1145.fits sctable="SC_DATA" expcube=/scratch/kocevski/805144/ltcube_536112001_536371201_4FGL_J2322.8-4916_daily_bin1145.fits outfile=/scratch/kocevski/805144/expmap_536112001_536371201_4FGL_J2322.8-4916_daily_bin1145.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/805144/ltcube_536112001_536371201_4FGL_J2322.8-4916_daily_bin1145.fits
.....................!
real 191.95
user 185.81
sys 5.35

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

Setting source of interest to:
4FGL J2322.8-4916 @ 350.708 -49.2725

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/805144/ft1_filtered_4FGL_J2322.8-4916_daily_bin1145.fits scfile=/scratch/kocevski/805144/ft2_4FGL_J2322.8-4916_daily_bin1145.fits outfile=/scratch/kocevski/805144/cmap_536112001_536371201_4FGL_J2322.8-4916_daily_bin1145.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=350.708 yref=-49.2725 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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805144/ft1_filtered_4FGL_J2322.8-4916_daily_bin1145.fits scfile=/scratch/kocevski/805144/ft2_4FGL_J2322.8-4916_daily_bin1145.fits outfile=/scratch/kocevski/805144/cmap_HighResolution_536112001_536371201_4FGL_J2322.8-4916_daily_bin1145.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=350.708 yref=-49.2725 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805144/ft1_filtered_4FGL_J2322.8-4916_daily_bin1145.fits evtable="EVENTS" scfile=/scratch/kocevski/805144/ft2_4FGL_J2322.8-4916_daily_bin1145.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805144/Model_4FGL_J2322.8-4916_daily_bin1145.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/805144/ft1_filtered_4FGL_J2322.8-4916_daily_bin1145.fits.....................!
real 38.49
user 37.21
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/805144/ft1_filtered_4FGL_J2322.8-4916_daily_bin1145.fits', '/scratch/kocevski/805144/ft2_4FGL_J2322.8-4916_daily_bin1145.fits', expMap='/scratch/kocevski/805144/expmap_536112001_536371201_4FGL_J2322.8-4916_daily_bin1145.fits', expCube='/scratch/kocevski/805144/ltcube_536112001_536371201_4FGL_J2322.8-4916_daily_bin1145.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/805144/Model_4FGL_J2322.8-4916_daily_bin1145.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2322.8-4916'

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.139e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.612e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
436         beta:  1.751e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
437           Eb:  2.660e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/805144/ft1_filtered_4FGL_J2322.8-4916_daily_bin1145.fits
Spacecraft file(s): /scratch/kocevski/805144/ft2_4FGL_J2322.8-4916_daily_bin1145.fits
Exposure map: /scratch/kocevski/805144/expmap_536112001_536371201_4FGL_J2322.8-4916_daily_bin1145.fits
Exposure cube: /scratch/kocevski/805144/ltcube_536112001_536371201_4FGL_J2322.8-4916_daily_bin1145.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/805144/Model_4FGL_J2322.8-4916_daily_bin1145.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) = 4692.01750167

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    23.645       1.0000         .10000E-03   10000.    
     3 'Prefactor '    122.88       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10473E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.2879       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.762       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9920       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    41.569       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10830E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.7673       1.0000         .10000E-03   10000.    
    20 'norm      '    8.0760       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10741E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.5302       1.0000         .10000E-03   10000.    
    23 'norm      '    6.9795       1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.339       1.0000         .10000E-03   10000.    
    25 'norm      '    2.5310       1.0000         .10000E-03   10000.    
    26 'norm      '    6.1409       1.0000         .10000E-03   10000.    
    27 'Prefactor '    37.425       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.5780       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10683E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .12302E-02   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .92850       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .94971       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4691.969     FROM MIGRAD    STATUS=CONVERGED    918 CALLS     4816 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.930       -.18730E-05** at limit **
   2  Prefactor     23.653        26.064        .47367E-06    .47832E-05
   3  Prefactor     122.81        68.388       -.19210E-05   -.79507E-04
   4  Prefactor     .10000E-03    5.9999        .19687E-06** at limit **
   5  Prefactor     .10000E-03    5.9194       -.30538E-06** at limit **
   6  Prefactor     .10000E-03    5.4821       -.83627E-08** at limit **
   7  Prefactor     .10000E-03    135.57        .42179E-06** at limit **
   8  norm          2.2871        5.4969       -.16993E-06   -.36932E-05
   9  Prefactor     16.765        6.0327        .17111E-08    .17715E-05
  10  Prefactor     .10000E-03    53.263        .66921E-07** at limit **
  11  Prefactor     2.9923        4.9589        .24082E-07    .33419E-05
  12  Prefactor     .10000E-03    22.218       -.35598E-06** at limit **
  13  Prefactor     .10000E-03    5.4809       -.14615E-07** at limit **
  14  Prefactor     41.540        65.921       -.18573E-05   -.19347E-04
  15  Prefactor     .10000E-03    4.5167       -.40916E-07** at limit **
  16  Prefactor     .10000E-03    28.996        .40164E-06** at limit **
  17  Prefactor     .10000E-03    10.535       -.10501E-05** at limit **
  18  norm          .10000E-03    23.555        .36621E-06** at limit **
  19  norm          4.7676        8.7300       -.52451E-07   -.13305E-03
  20  norm          8.0757        7.6229       -.79440E-07    .75656E-04
  21  Prefactor     .10000E-03    4.7153       -.51783E-06** at limit **
  22  Prefactor     8.4310        97.301       -.10481E-04   -.42778E-04
  23  norm          6.9929        9.7288        .11715E-05    .13581E-03
  24  Prefactor     12.348        17.990        .20642E-06    .19679E-04
  25  norm          2.5315        1.4085        .20908E-07    .13276E-03
  26  norm          6.1423        5.0182        .43340E-07    .45419E-04
  27  Prefactor     37.404        23.978        .11523E-06    .35041E-05
  28  Prefactor     2.5767        3.5083        .16065E-06    .39299E-04
  29  Prefactor     .10000E-03    57.646        .75081E-06** at limit **
  30  norm          .10000E-03    8.7701       -.71894E-07** at limit **
  31  Prefactor     .10000E-03    24.188       -.74420E-05** at limit **
  32  Prefactor     .10000E-03    2.2150       -.46348E-07** at limit **
  33  Normalizat    .92780        .24269       -.24065E-05    .17874E-03
  34  Prefactor     .95027        .24207        .32141E-05   -.48228E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 23.6533
  Prefactor  = 122.809
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.28712
  Prefactor  = 16.7646
  Prefactor  = 0.0001
  Prefactor  = 2.99228
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.5398
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.76756
  norm       = 8.07568
  Prefactor  = 0.0001
  Prefactor  = 8.431
  norm       = 6.99286
  Prefactor  = 12.3484
  norm       = 2.53147
  norm       = 6.14228
  Prefactor  = 37.4044
  Prefactor  = 2.57673
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.927796
  Prefactor  = 0.95027
 **********
 **   18 **HESSE 
 **********

 FCN=   4691.969     FROM HESSE     STATUS=OK           732 CALLS     5548 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.653        26.044        .82377E-04   -1.4735    
   3  Prefactor     122.81        68.670        .18154E-03   -1.3487    
   4  Prefactor     .10000E-03    6.0290        .16384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.9265        .16257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.5049        .15661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    135.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.2871        5.4698        .24136E-03   -1.5405    
   9  Prefactor     16.765        6.0380        .96629E-04   -1.4889    
  10  Prefactor     .10000E-03    53.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.9923        4.9406        .18785E-03   -1.5362    
  12  Prefactor     .10000E-03    22.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.4991        .15658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     41.540        65.971        .62174E-04   -1.4418    
  15  Prefactor     .10000E-03    4.5477        .14215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    29.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    23.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.7676        8.7503        .92136E-03   -1.5271    
  20  norm          8.0757        7.6377        .14108E-03   -1.5140    
  21  Prefactor     .10000E-03    4.7385        .14523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.4310        101.38        .13725E-03   -1.5127    
  23  norm          6.9929        9.7007        .15185E-03   -1.5179    
  24  Prefactor     12.348        17.961        .11404E-03   -1.5005    
  25  norm          2.5315        1.4045        .56216E-04   -1.5390    
  26  norm          6.1423        5.0096        .12969E-03   -1.5212    
  27  Prefactor     37.404        23.852        .65514E-04   -1.4484    
  28  Prefactor     2.5767        3.4656        .14139E-03   -1.5387    
  29  Prefactor     .10000E-03    58.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    8.7715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    24.061        .24551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    2.2273        .99519E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .92780        .26071        .25501E-03   -.95490    
  34  Prefactor     .95027        .25594        .26276E-03   -.94406    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.98452e-10
Minuit parameter uncertainties:
  1  0.000139966
  2  26.0561
  3  68.7147
  4  4.17996e-06
  5  1.3706e-05
  6  1.18565e-05
  7  1.60454e-05
  8  5.47098
  9  6.03823
  10  1.60789e-05
  11  4.94123
  12  2.73143e-05
  13  2.38413e-07
  14  66.0872
  15  3.67263e-06
  16  6.86056e-06
  17  5.41454e-05
  18  1.98663e-05
  19  8.75267
  20  7.6386
  21  2.03651e-05
  22  58.5946
  23  9.70291
  24  17.9688
  25  1.40457
  26  5.00992
  27  23.8579
  28  3.46591
  29  0.000169289
  30  4.3405e-06
  31  0.000207428
  32  4.74879e-07
  33  0.261067
  34  0.256269
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  4.768e+00  8.753e+00  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.612e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
436         beta:  1.751e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
437           Eb:  2.660e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  9.503e-01  2.563e-01  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  9.278e-01  2.611e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.39
Ra Dec: 350.708 -49.273
Photon Flux Upper Limit: 4.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.59e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/805144/likelihoodResults_536112001_536371201_4FGL_J2322.8-4916_daily_bin1145.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) = 4691.51630152
delta logL = 0.453060063758

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4691.51491588
delta logL = 0.45444570969

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7965       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6293       1.0000          .0000       5.0000    
     3 'Normalizat'    .91175       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95309       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4691.515     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      276 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7960        8.0145        .11705E-03   -.31070E-03
   2  alpha         2.6295        1.4037        .11817E-01   -.30125E-04
   3  Normalizat    .91176        .24316        .25673E-03   -.82721E-04
   4  Prefactor     .95307        .25263        .26204E-03   -.16672E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.79601
  alpha      = 2.62948
  Normalizat = 0.911763
  Prefactor  = 0.953069
 **********
 **   18 **HESSE 
 **********

 FCN=   4691.515     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7960        5.8567        .46821E-05   -1.5374    
   2  alpha         2.6295        1.0546        .47267E-03    .51815E-01
   3  Normalizat    .91176        .24117        .10269E-04   -.96048    
   4  Prefactor     .95307        .25127        .52407E-04   -.94311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67306e-10
Minuit parameter uncertainties:
  1  5.85789
  2  1.08873
  3  0.24146
  4  0.251581
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805144': 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) = 4691.51491584
delta logL = 0.454445747983

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  2.796e+00  5.858e+00  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  2.629e+00  1.089e+00  0.000e+00  5.000e+00 ( 1.000e+00)
436         beta:  1.751e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
437           Eb:  2.660e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  9.531e-01  2.516e-01  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  9.118e-01  2.415e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.31
Ra Dec: 350.708 -49.273
Photon Index (Free Index): 2.63 +/- 1.09
Photon Flux (Free Index): 2.91e-08 +/- 3.72e-08
Energy Flux (Free Index): 1.19e-05 +/- 1.38e-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/805144/cmap_HighResolution_536112001_536371201_4FGL_J2322.8-4916_daily_bin1145.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.59e-05', comment='SUCCESS', energy_flux2='1.19e-05', dlogl='4.54e-01', photon_flux2='2.91e-08', job_status='DONE', time_completed='2021-09-29 14:31:04.144181', photon_index_error2='1.09', photon_index2='2.63', ts='0.39', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='4.37e-08', energy_flux_error2='1.38e-05', EG='0.93', time_epoch_completed='1632951064.14', return_code='0', job_id='805144', GAL2='0.95', EG2='0.91', return_code2='0', photon_flux_error2='3.72e-08', ts2='1.31', photon_index='1.61' WHERE bin_id='1145' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:31:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 805144: <4FGL_J2322.8-4916_daily_bin1145> in cluster <slac> Done

Job <4FGL_J2322.8-4916_daily_bin1145> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 14:15:28 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:15:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 14:15:30 2021
Terminated at Wed Sep 29 14:31:04 2021
Results reported at Wed Sep 29 14:31:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1145 350.708 -49.2725 536112001 536371201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2322.8-4916 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   812.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            936 sec.

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

