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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1585
RA = 350.708, Dec = -49.2725
tmin = 650160001, tmax = 650419201
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='806809', job_status='RUN', time_executed='2021-09-29 14:21:18.683809', time_epoch_executed='1632950478.68' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1585'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806809

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806809/ft1_4FGL_J2322.8-4916_daily_bin1585.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806809/ft2_4FGL_J2322.8-4916_daily_bin1585.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806809/ft1_4FGL_J2322.8-4916_daily_bin1585.fits outfile=/scratch/kocevski/806809/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1585.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=650160001.0 tmax=650419201.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 4.37
user 4.12
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806809/ft1_filtered_4FGL_J2322.8-4916_daily_bin1585.fits" evtable="EVENTS" scfile=/scratch/kocevski/806809/ft2_4FGL_J2322.8-4916_daily_bin1585.fits sctable="SC_DATA" outfile=/scratch/kocevski/806809/ltcube_650160001_650419201_4FGL_J2322.8-4916_daily_bin1585.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/806809/ft2_4FGL_J2322.8-4916_daily_bin1585.fits
.....................!
real 11.70
user 11.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806809/ft1_filtered_4FGL_J2322.8-4916_daily_bin1585.fits evtable="EVENTS" scfile=/scratch/kocevski/806809/ft2_4FGL_J2322.8-4916_daily_bin1585.fits sctable="SC_DATA" expcube=/scratch/kocevski/806809/ltcube_650160001_650419201_4FGL_J2322.8-4916_daily_bin1585.fits outfile=/scratch/kocevski/806809/expmap_650160001_650419201_4FGL_J2322.8-4916_daily_bin1585.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/806809/ltcube_650160001_650419201_4FGL_J2322.8-4916_daily_bin1585.fits
.....................!
real 190.59
user 185.83
sys 4.45

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/806809/ft1_filtered_4FGL_J2322.8-4916_daily_bin1585.fits scfile=/scratch/kocevski/806809/ft2_4FGL_J2322.8-4916_daily_bin1585.fits outfile=/scratch/kocevski/806809/cmap_650160001_650419201_4FGL_J2322.8-4916_daily_bin1585.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806809/ft1_filtered_4FGL_J2322.8-4916_daily_bin1585.fits scfile=/scratch/kocevski/806809/ft2_4FGL_J2322.8-4916_daily_bin1585.fits outfile=/scratch/kocevski/806809/cmap_HighResolution_650160001_650419201_4FGL_J2322.8-4916_daily_bin1585.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/806809/ft1_filtered_4FGL_J2322.8-4916_daily_bin1585.fits evtable="EVENTS" scfile=/scratch/kocevski/806809/ft2_4FGL_J2322.8-4916_daily_bin1585.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/806809/Model_4FGL_J2322.8-4916_daily_bin1585.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/806809/ft1_filtered_4FGL_J2322.8-4916_daily_bin1585.fits.....................!
real 39.37
user 38.08
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/806809/ft1_filtered_4FGL_J2322.8-4916_daily_bin1585.fits', '/scratch/kocevski/806809/ft2_4FGL_J2322.8-4916_daily_bin1585.fits', expMap='/scratch/kocevski/806809/expmap_650160001_650419201_4FGL_J2322.8-4916_daily_bin1585.fits', expCube='/scratch/kocevski/806809/ltcube_650160001_650419201_4FGL_J2322.8-4916_daily_bin1585.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/806809/Model_4FGL_J2322.8-4916_daily_bin1585.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/806809/ft1_filtered_4FGL_J2322.8-4916_daily_bin1585.fits
Spacecraft file(s): /scratch/kocevski/806809/ft2_4FGL_J2322.8-4916_daily_bin1585.fits
Exposure map: /scratch/kocevski/806809/expmap_650160001_650419201_4FGL_J2322.8-4916_daily_bin1585.fits
Exposure cube: /scratch/kocevski/806809/ltcube_650160001_650419201_4FGL_J2322.8-4916_daily_bin1585.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/806809/Model_4FGL_J2322.8-4916_daily_bin1585.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) = 4943.65913022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    72.808       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .66679E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.860       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2526       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    104.54       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.513       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.512       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .72762       1.0000         .10000E-03   10000.    
    23 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.0507       1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.211       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .24654E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .46165       1.0000         .10000E-03   10000.    
    30 'norm      '    .22207       1.0000         .10000E-03   10000.    
    31 'Prefactor '    4.3286       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .41437       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.4480       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .69079       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=   4943.650     FROM MIGRAD    STATUS=CONVERGED   1033 CALLS     4957 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     72.819        67.004       -.61232E-05   -.68755E-04
   2  Prefactor     .10004E-03    47.479        .23810E-06** at limit **
   3  Prefactor     .10000E-03    50.227        .13276E-04** at limit **
   4  Prefactor     11.859        10.438       -.41887E-06   -.46711E-04
   5  Prefactor     .10000E-03    4.6336       -.13875E-06** at limit **
   6  Prefactor     2.2462        15.661       -.32487E-05   -.11349E-03
   7  Prefactor     .10000E-03    43.312       -.16432E-04** at limit **
   8  norm          .10000E-03    3.8710        .41435E-07** at limit **
   9  Prefactor     .10000E-03    2.7834       -.38872E-07** at limit **
  10  Prefactor     104.54        64.873        .11853E-05    .20045E-04
  11  Prefactor     .10000E-03    1.4052        .29561E-07** at limit **
  12  Prefactor     .10000E-03    15.055        .11188E-06** at limit **
  13  Prefactor     12.513        13.255        .16876E-06    .11391E-04
  14  Prefactor     .10000E-03    60.056       -.38393E-05** at limit **
  15  Prefactor     .10000E-03    2.6807       -.72874E-07** at limit **
  16  Prefactor     .10000E-03    20.106       -.28229E-06** at limit **
  17  Prefactor     .10000E-03    6.7973       -.29713E-08** at limit **
  18  norm          .10000E-03    4.8851        .26501E-07** at limit **
  19  norm          .10000E-03    4.5973        .16709E-06** at limit **
  20  norm          .10000E-03    1.8326       -.46597E-07** at limit **
  21  Prefactor     16.513        8.5852        .44111E-07   -.44372E-04
  22  Prefactor     .75446        50.606        .20029E-05   -.17252E-03
  23  norm          .10000E-03    3.5126       -.25338E-07** at limit **
  24  Prefactor     .10000E-03    27.231        .30682E-06** at limit **
  25  norm          .10000E-03    .72519       -.47532E-07** at limit **
  26  norm          5.0446        5.5778        .10846E-06   -.17284E-02
  27  Prefactor     12.212        11.910        .42894E-06    .18739E-05
  28  Prefactor     .10032E-03    3.5900        .49197E-06** at limit **
  29  Prefactor     .31728        22.988       -.12412E-05   -.41333E-04
  30  norm          .22055        32.110       -.69773E-06   -.13091E-03
  31  Prefactor     4.3380        5.2150        .10663E-05   -.20457E-02
  32  Prefactor     .40943        3.7212        .18497E-06   -.20258E-03
  33  Normalizat    1.4478        .21891        .37239E-06   -.25942E-03
  34  Prefactor     .69113        .21246        .61905E-07   -.12444E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 72.8191
  Prefactor  = 0.000100036
  Prefactor  = 0.000100002
  Prefactor  = 11.8589
  Prefactor  = 0.0001
  Prefactor  = 2.24618
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 104.538
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5133
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 16.513
  Prefactor  = 0.754458
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.04457
  Prefactor  = 12.2118
  Prefactor  = 0.00010032
  Prefactor  = 0.317283
  norm       = 0.220547
  Prefactor  = 4.33797
  Prefactor  = 0.409432
  Normalizat = 1.44778
  Prefactor  = 0.691135
 **********
 **   18 **HESSE 
 **********

 FCN=   4943.650     FROM HESSE     STATUS=OK           760 CALLS     5717 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     72.819        67.105        .47051E-04   -1.3999    
   2  Prefactor     .10004E-03    53.525        .10738       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    50.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.859        10.442        .11632E-03   -1.5019    
   5  Prefactor     .10000E-03    4.6532        .14779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.2462        15.818        .27376E-03   -1.5408    
   7  Prefactor     .10000E-03    43.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.8798        .13510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.8329        .11445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     104.54        64.837        .39329E-04   -1.3660    
  11  Prefactor     .10000E-03    1.4071        .81393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.513        13.263        .11324E-03   -1.5000    
  14  Prefactor     .10000E-03    60.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.6853        .11242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.8066        .17902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.8887        .15178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.6238        .14716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.8329        .92953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.513        8.5256        .98564E-04   -1.4895    
  22  Prefactor     .75446        69.211        .12139       -1.5534    
  23  norm          .10000E-03    3.5318        .12827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    27.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.1553        .11443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.0446        6.1418        .81907E-03   -1.5259    
  27  Prefactor     12.212        11.942        .11463E-03   -1.5009    
  28  Prefactor     .10032E-03    41.023        .21828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .31728        41.282        .93449E-01   -1.5595    
  30  norm          .22055        44.988        .11300       -1.5614    
  31  Prefactor     4.3380        8.4030        .96808E-03   -1.5291    
  32  Prefactor     .40943        14.159        .23187E-02   -1.5580    
  33  Normalizat    1.4478        .27553        .21693E-03   -.79257    
  34  Prefactor     .69113        .26087        .30909E-03   -1.0388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64947e-08
Minuit parameter uncertainties:
  1  67.1744
  2  0.0027673
  3  0.00059642
  4  10.4437
  5  5.52071e-07
  6  11.9258
  7  0.000703304
  8  5.7596e-07
  9  7.32083e-06
  10  64.8805
  11  4.95923e-07
  12  7.57075e-06
  13  13.266
  14  0.000203137
  15  2.76397e-06
  16  1.28708e-05
  17  4.33425e-06
  18  8.43937e-07
  19  9.3614e-07
  20  1.23075e-06
  21  8.52619
  22  14.4685
  23  1.05454e-05
  24  3.48492e-05
  25  9.96262e-06
  26  6.14257
  27  11.9444
  28  0.00724605
  29  7.24222
  30  6.30322
  31  8.40529
  32  4.81607
  33  0.275817
  34  0.261331
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  9.361e-07  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:  6.911e-01  2.613e-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:  1.448e+00  2.758e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/806809/likelihoodResults_650160001_650419201_4FGL_J2322.8-4916_daily_bin1585.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) = 4943.65128582
delta logL = -0.00101429120059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4943.6502715
delta logL = 3.03407432511e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6205       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4478       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69114       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=   4943.650     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      250 TOTAL
                     EDM=   .44E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .74295        .49629E-01** at limit **
   2  alpha         2.1011        3.8341        .50000        .76011E-07
   3  Normalizat    1.4478        .24490E-02    .21693E-03   -.11351E-03
   4  Prefactor     .69113        .25199E-02    .30909E-03   -.81984E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.10111
  Normalizat = 1.44778
  Prefactor  = 0.691133
 **********
 **   18 **HESSE 
 **********

 FCN=   4943.650     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      281 TOTAL
                     EDM=   .60E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    168.47        .23923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1011        3.4713        .50000       -.16024    
   3  Normalizat    1.4478        .29838E-01    .43387E-04   -.79256    
   4  Prefactor     .69113        .30702E-01    .12364E-04   -1.0388    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.96634e-12
Minuit parameter uncertainties:
  1  0.000385858
  2  1212.12
  3  0.0298384
  4  0.0307027
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806809': 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) = 4943.65027066
delta logL = 8.65993570187e-07

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  3.859e-04  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  2.101e+00  1.212e+03  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:  6.911e-01  3.070e-02  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:  1.448e+00  2.984e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 350.708 -49.273

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/806809/cmap_HighResolution_650160001_650419201_4FGL_J2322.8-4916_daily_bin1585.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.27e-05', job_status='DONE', photon_flux_upper_limit='2.86e-08', time_completed='2021-09-29 14:35:25.489762', job_id='806809', GAL2='0.69', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1632951325.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='8.66e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1585' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:35:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 806809: <4FGL_J2322.8-4916_daily_bin1585> in cluster <slac> Done

Job <4FGL_J2322.8-4916_daily_bin1585> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 14:20:41 2021
Job was executed on host(s) <bullet0293>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:20:42 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:20:42 2021
Terminated at Wed Sep 29 14:35:26 2021
Results reported at Wed Sep 29 14:35:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1585 350.708 -49.2725 650160001 650419201 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 :                                   836.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            885 sec.

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

